数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN1780 数据表(PDF) 5 Page - STMicroelectronics

部件名 AN1780
功能描述  STR71X REAL TIME CLOCK APPLICATION EXAMPLE
PDF  9 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1780 数据表(HTML) 5 Page - STMicroelectronics

  AN1780 Datasheet HTML 1Page - STMicroelectronics AN1780 Datasheet HTML 2Page - STMicroelectronics AN1780 Datasheet HTML 3Page - STMicroelectronics AN1780 Datasheet HTML 4Page - STMicroelectronics AN1780 Datasheet HTML 5Page - STMicroelectronics AN1780 Datasheet HTML 6Page - STMicroelectronics AN1780 Datasheet HTML 7Page - STMicroelectronics AN1780 Datasheet HTML 8Page - STMicroelectronics AN1780 Datasheet HTML 9Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 5 / 9 page
background image
5/9
STR71X REAL TIME CLOCK APPLICATION EXAMPLE
5.1.4 Code Description
This application note addresses how to convert the 32-bit time value into a date and time value
that can be put in the form of MM/DD/YYYY, HH:MM:SS.
The code should be set up so that:
– The UART0 and HyperTerminal are used to enter a current TIME and DATE after start-up.
– The following hyperterminal configuration is used:
HyperTerminal configuration:
- Bits per second ---- > 38 400
- Data bit --------------- > 8
- Parity ----------------- > None
- Stop bits ------------- > 1
- Flow control --------- > None
– After reset, the RTC prescaler is configured to have the RTC counter incremented every sec-
ond.
– Alarm configuration (an alarm is configured after 5s).
– Then enable the RTC alarm interrupt via the EIC configuration.
– A current Date and Time will display on the LCD.
The RTC interrupt service routine:
– Clear the RTC interrupt flag.
– The RTC alarm will be fired after 5 second and the RTC_IRQHandler routine will be execut-
ed. An alarm message will be displayed for 2s and the RTC will be configured to generate
an other alarm interrupt after 5s.
Figure 2 shows the code flow of the algorithm used to convert raw seconds to a date/time.



Html Pages

1 2 3 4 5 6 7 8 9


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com