English
Language : 

SH7708 Datasheet, PDF (344/633 Pages) Renesas Technology Corp – SuperH™ RISC engine
12.2.7 Month Counter (RMONCNT)
The month counter (RMONCNT) is an 8-bit read/write register used for setting/counting in the
BCD-coded month section of the RTC. The count operation is performed by a carry for each
month of the date counter.
The range that can be set is 00–12 (decimal). Errant operation will result if any other value is set.
Carry out write processing after halting the count operation with the START bit in RCR2, or
perform a write using the carry flag as shown in figure 12.2.
RMONCNT is not initialized by a power-on reset or manual reset, or in standby mode.
Bit: 7
6
5
4
3
2
1
0
Bit name: —
—
—
10
months
1 month
Initial value: 0
0
0
—
—
—
—
—
R/W: R
R
R
R/W R/W R/W R/W R/W
12.2.8 Year Counter (RYRCNT)
The year counter (RYRCNT) is an 8-bit read/write register used for setting/counting in the BCD-
coded year section of the RTC. The least significant 2 digits of the western calendar year are
displayed. The count operation is performed by a carry for each year of the month counter.
The range that can be set is 00–99 (decimal). Errant operation will result if any other value is set.
Carry out write processing after halting the count operation with the START bit in RCR2, or
perform a write using the carry flag as shown in figure 12.2.
RYRCNT is not initialized by a power-on reset or manual reset, or in standby mode.
Leap years are recognized by dividing the year counter value by 4 and obtaining a fractional result
of 0.
Bit: 7
6
5
4
3
2
1
0
Bit name:
10 years
1 year
Initial value: —
—
—
—
—
—
—
—
R/W: R/W R/W R/W R/W R/W R/W R/W R/W
326