Datasheet

V850ES/JG3-H, V850ES/JH3-H CHAPTER 12 REAL-TIME COUNTER
R01UH0042EJ0500 Rev.5.00 Page 662 of 1513
Aug 12, 2011
12.4.8 Initializing real-time counter
The procedure for initializing the real-time counter is shown below.
Figure 12-9. Initializing Real-Time Counter
Start
Setting RTCnMK bit Masks interrupt signal (INTRTCn)
End
RC1CC0.RC1PWR bit = 0 Initializes real-time counter (RTC).
RTCDIV interrupt disable processing
RTC1HZ interrupt disable processing
RTCCL interrupt disable processing
RC1CC3.CLOE2 bit = 0
RC1CC1.CLOE1 bit = 0
RC1CC1.CLOE0 bit = 0
Clearing RTCnIF flag
Clears interrupt request bit.
Clearing RTCnMK flag Unmasks interrupt signal (INTRTCn).
Remarks 1. See 23.3.4 Interrupt control register (xxICn) for details of the RTCnIF and RTCnMK bits.
2. n = 0 to 2