English
Language : 

SH7727 Datasheet, PDF (537/1109 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
Section 16 Realtime Clock (RTC)
16.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 settable range is 00 to 99 in decimal. If other values are set, correct operation is not provided.
When modifying RYRCNT, check that the count operation is halted with the START bit in RCR2.
RYRCNT is not initialized by a power-on reset or manual reset, or in standby mode, and the
operation is continued.
Leap years are recognized by dividing the year counter value by 4 and obtaining a fractional result
of 0. Note that a counter value of 00 is treated as a leap year.
Bit: 7
6
5
4
3
2
1
0
10 years
1 year
Initial value: —
—
—
—
—
—
—
—
R/W: R/W R/W R/W R/W R/W R/W R/W R/W
16.2.9 Second Alarm Register (RSECAR)
The second alarm register (RSECAR) is an 8-bit read/write alarm register that corresponds to the
BCD-coded second section counter RSECCNT of the RTC. When the ENB bit is set to 1in
RSECAR, the RSECAR value and RSECCNT value are compared. In this way, the RSECAR,
RMINAR, RHRAR, RWKAR, RDAYAR, and RMONAR registers are checked, and when the
ENB bit is set to 1, the alarm register and the corresponding counter are compared. If all values in
the specified alarm registers and the corresponding counters match, an RTC alarm interrupt is
generated.
The settable range is “00 to 59 in decimal + ENB bit”. If other values are set, correct operation is
not provided.
Only the ENB bit in RSECAR is initialized to 0 by a power-on reset, and the other bits are not
initialized. The RSECAR contents are retained after a manual reset or in standby mode.
Bit: 7
6
5
4
3
2
1
0
ENB
10 seconds
1 second
Initial value: 0
—
—
—
—
—
—
—
R/W: R/W R/W R/W R/W R/W R/W R/W R/W
Rev. 5.00 Dec 12, 2005 page 465 of 1034
REJ09B0254-0500