
BAT32G1x9 user manual | Chapter 11 Real-time clock
456 / 1149
Rev.1.02
11.4.2
Start the transfer of sleep mode after running
To transfer to sleep (including deep sleep) mode immediately after the RTCE position "1", one of the
following processes must be performed. However, after placing the RTCE position "1", these processes are not
required if you want to move to sleep mode after an INTTTC interrupt occurs.
• Move to sleep mode after at least 2 counting clocks (f
RTC
) of time after RTCE position "1" has
elapsed (refer to Figure 11 Example 1 of -20).
• After the RWATCH position "1" is placed, the RWAIT position is changed to "1" and the RWST bit
is confirmed by polling. Then, place the RWAIT position "0" and confirm again by polling that the
RWST bit becomes "0" and then move to sleep mode (reference Fig. 11-20 example 2).
Figure 11-20 transfers the sleep/deep sleep mode steps after the RTCE set to "1"
RTCE=1
at least wait for 2 fRTC
clock cycles
execute WFI instruction
configure counter start operating
transfer to Sleep mode
example1
RTCE=1
RWAIT=1
execute WFI instruction
configure counter start
operating
transfer to Sleep mode
Example 2
RWST=1?
No
RWAIT=0
RWST=0?
No
Yes
Yes
configure as SEC~Year counter
stop operating, enter into read/
write mode of counter.
confirm counter wait state
configure counter operation