RTC - 72421 / 72423
Register description
1. Timing registers(1) S1 to Y10 registersThese registers are
For example, when(1, 0, 0, 1) has been written to the bits of the S1 register, the current value in the S1 register is 9. As described previously, data is handled by
When seconds are read, for example, the values in the S1 and S10 registers are both read out to give the total number of seconds.
(2) W registerThe W register is a counter that increments each time the day digits are incremented. It counts from 0 to 6. Since the value in the counter bears no relationship to the day of the week, the user can choose the coding that relates the counter value to the day of the week. The following is just one example of this relationship;
Count | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|
|
|
|
|
|
|
|
Day | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|
|
|
|
|
|
|
|
The H10 register contains a combination of the
For example, if a value of 48 is obtained from the H10 and H1 registers when the H10, H1, M10, and M1 registers are read, remember that the inclusion of a set PM/AM bit (PM/AM=1) will make the tens digit appear to be 4. Since this bit is 1, the time is p.m. If the value read from the M10 and M1 registers is 00, the actual time should be read as 8:00 p.m.
Similarly, if the value read from the H10 and H1 registers is 11, the PM/AM bit is 0, and so this time is therefore a.m. If the value read from the M10 and M1 registers is 30, this time should be read as 11:30 a.m.
When the
For details of how to set
Setting | Possible times |
|
|
12:00 to 11:59, a.m. and p.m. | |
|
|
00:00 to 23:59 | |
|
|
The Y1 and Y10 registers can handle the last two digits of the year in the Gregorian calendar. Leap years are automatically identified, and this affects the handling of the month and day digits for February 29.
[ Leap years ]In general, a year contains 365 days. However, the Earth takes slightly longer than exactly 365 days to rotate around the sun, so we need to set leap years in compensation. A leap year occurs once every four years, in years in the Gregorian calendar that are divisible by four. However, a further small correction is necessary in that years that are divisible by 100 are ordinary years, but years that are further divisible by 400 are leap years.
The main leap and ordinary years since 1900 and into the future are listed on the right.
[ Leap years in theTo identify leap years, the
This process identifies the following years as leap years: 96, (20)00, (20)04, (20)08, (20)12...
The
If
Actual leap years and ordinary years
| Year | Leap year | Ordinary |
|
|
|
| year |
|
| 1900 |
| Ο |
|
| : |
|
|
|
| 1993 |
| Ο |
|
|
|
|
|
|
| 1994 |
| Ο |
|
| 1995 |
| Ο |
|
| 1996 | Ο |
|
|
|
|
|
|
|
| 1997 |
| Ο |
|
| 1998 |
| Ο |
|
| 1999 |
| Ο |
|
|
|
|
|
|
| 2000 | Ο |
|
|
| 2001 |
| Ο |
|
| 2002 |
| Ο |
|
|
|
|
|
|
| 2003 |
| Ο |
|
| 2004 | Ο |
|
|
| 2005 |
| Ο |
|
|
|
|
|
|
| : |
|
|
|
|
|
|
|
|
| 2100 |
| Ο |
|
| 2200 |
| Ο |
|
| 2300 |
| Ο |
|
| 2400 | Ο |
|
|
If an impossible date or time is set, this may cause errors. If such a date is set, the behavior of the device is in general unpredictable, so make sure that impossible data is not set.
Page - 9 | MQ - 162 - 03 |