English
Language : 

M16C65 Datasheet, PDF (456/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
20. Real-Time Clock
20.3.2 Compare Mode
In compare mode, time data (1) and compare data (1) are compared, and compare value match is
detected. When match is detected, the following occur.
• Compare interrupt request
Refer to 20.4 “Interrupts” for details.
• RTCOUT pin output level inversion
While the TOENA bit in the RTCCR1 register is 1 (compare output enabled), when compare value
match is detected, RTCOUT pin output level is converted.
Notes:
1. Bits for time data are as follows:
Bits SC12 to SC10 and SC03 to SC00 in the RTCSEC register
Bits MN12 to MN10 and MN03 to MN00 in the RTCMIN register
Bits HR11 to HR10 and HR03 to HR00 in the RTCHR register
The RTCPM bit in the RTCCR1 register
Bits for compare data are as follows:
Bits SCMP12 to SCMP10 and SCMP03 to SCMP00 in the RTCCSEC register
Bits MCMP12 to MCMP10 and MCMP03 to MCMP00 in the RTCCMIN register
Bits HCMP11 to HCMP10 and HCMP03 to HCMP00 in the RTCCHR register
The PMCMP bit in the RTCCHR register
In compare mode, set the SEIE, MNIE, or HRIE bit in the RTCCR2 register to 1 (interrupt enabled)
according to compare data (second, minute, or hour). Refer to 20.2.6 “Real-Time Clock Control
Register 2 (RTCCR2)” for details.
Compare mode has three modes: compare 1 mode, compare 2 mode, and compare 3 mode. Operation
after compare value match differs depending on a compare mode.
• Compare 1 mode
The time data is used continuously and counting continues.
• Compare 2 mode
The value after reset is used as the time data and counting continues.
• Compare 3 mode
The value after reset is used as the time data and counting stops.
Figure 20.6 shows Difference between Compare Modes, Figure 20.7 shows Count Start/Stop Operating
Example, Figure 20.8 shows Compare 1 Mode Operating Example, Figure 20.9 shows Compare 2
Mode Operating Example, and Figure 20.10 shows Compare 3 Mode Operating Example.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 421 of 791