Rev. 2.00, 09/03, page 358 of 690
15.3.8
Year Counter (RYRCNT)
The year counter (RYRCNT) is a 16-bit readable/writable register used for setting/counting in the
BCD-coded year section. The four digits of the western calendar year are counted. The count
operation is performed by a carry for each year of the month counter.
The range for year that can be set is 0000 to 9999 (decimal). Errant operation will result if any
other value is set. Carry out write processing after stopping the count operation with the START
bit in RCR2 or using a carry flag.
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. The year counter value 0000 is recognized as a leap year.
Bit
Bit Name
Initial Value
R/W
Description
15 to 12
R/W
1000-unit of the year counter in the BCD-code.
The range that can be set is 0 to 9 (decimal).
11 to 8
R/W
100-unit of the year counter in the BCD-code.
The range that can be set is 0 to 9 (decimal).
7 to 4
R/W
10-unit of the year counter in the BCD-code.
The range that can be set is 0 to 9 (decimal).
3 to 0
R/W
1-unit of the year counter in the BCD-code.
The range that can be set is 0 to 9 (decimal).
15.3.9
Second Alarm Register (RSECAR)
The second alarm register (RSECAR) is an 8-bit readable/writable register, and an alarm register
corresponding to the second counter RSECCNT. When the ENB bit is set to 1, a comparison with
the RSECCNT value is performed. For alarm registers RSECAR, RMINAR, RHRAR, RWKAR,
RDAYAR, and RMONAR, a comparison with the corresponding counter value is performed for
those whose ENB bit is set to 1, and for RCR3, a comparison is performed when the YAEN bit is
set to 1. If all of those match, an RTC alarm interrupt is generated.
The range of second alarm that can be set is 00 to 59 (decimal). Errant operation will result if any
other value is set.
The ENB bit in RSECAR is initialized to 0 by a power-on reset, and it is not initialized by manual
reset and standby mode. The remaining RSECAR fields are not initialized by a power-on reset or
manual reset, or in standby mode.
Содержание SH7705
Страница 2: ......
Страница 46: ...Rev 2 00 09 03 page xlvi of xlvi Appendix Table A 1 I O Port States in Each Processing State 679 ...
Страница 70: ...Rev 2 00 09 03 page 24 of 690 ...
Страница 194: ...Rev 2 00 09 03 page 148 of 690 ...
Страница 284: ...Rev 2 00 09 03 page 238 of 690 ...
Страница 338: ...Rev 2 00 09 03 page 292 of 690 ...
Страница 354: ...Rev 2 00 09 03 page 308 of 690 ...
Страница 374: ...Rev 2 00 09 03 page 328 of 690 ...
Страница 420: ...Rev 2 00 09 03 page 374 of 690 ...
Страница 476: ...Rev 2 00 09 03 page 430 of 690 ...
Страница 482: ...Rev 2 00 09 03 page 436 of 690 ...
Страница 552: ...Rev 2 00 09 03 page 506 of 690 ...
Страница 630: ...Rev 2 00 09 03 page 584 of 690 ...
Страница 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...