EasyManua.ls Logo

Cmsemicon CMS32L051 - Page 240

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 7 Real-Time Clock
www.mcu.com.cn 240 / 703
Figure 7-20 Read operation steps of the real-time clock counter
Start
RWAIT=1
设定SEC
Write SEC
Write MIN
Write HOUR
Write WEEK
Write DAY
Write MONTH
Write YEAR
RWAIT=0
RWST=0
Note
Yes
No
End
configure as SEC~Year counter
stop operating, enter into read/
write mode of counter.
confirm counter wait state
Write second count register
Write minute count register
Write hour count register
Write week count register
Write day count register
Write month count register
Write year count register
configure counter operation
RWST=1?
No
Yes
Note Be sure to confirm that the RWST bit is 0 before moving to SLEEP mode.
Note 1 RWAIT set to 1 to the RWAIT set to 0 must be processed within 1 second.
2. To overwrite the SEC, MIN, HOUR, WEEK, DAY, in the counter running (RTCE=1). When the MONTH and YEAR
registers are registered, the INTRTC must be overridden after the interrupt mask flag register is set to disable
interrupt handling, and the WAFG flag and RIFG must be cleared after the rewriting Logo and RTCIF Mark.
Note Do not limit the order of read operations for seconds/minutes/hours/weeks/days/months/and year count register.
You can read only some registers without reading all registers.

Table of Contents

Related product manuals