Clock | Bytes |
| (Hex | Bit | definitions | and |
|
|
| |||||
addresses for the | clock | bytes | are | shown | in | Figure | ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Address |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(Hex) |
| Function |
|
| Byte | Number |
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| ||
000 |
| Seconds |
| 0 |
|
|
|
|
|
|
|
| ||
001 |
| Second alarm | 1 |
|
|
|
|
|
|
|
| |||
002 |
| Minutes |
| 2 |
|
|
|
|
|
|
|
| ||
003 |
| Minute | alarm | 3 |
|
|
|
|
|
|
|
| ||
004 |
| Hours |
|
| 4 |
|
|
|
|
|
|
|
| |
005 |
| Hour | alarm |
| 5 |
|
|
|
|
|
|
|
| |
006 |
| Day | of week |
| 6 |
|
|
|
|
|
|
| ||
007 |
| Date | of | month |
| 7 |
|
|
|
|
|
|
| |
008 |
| Month |
|
|
| 8 |
|
|
|
|
|
|
|
|
009 |
| Year |
|
| 9 |
|
|
|
|
|
|
|
| |
00A |
| Status | register | A | 10 |
|
|
|
|
|
|
| ||
00B |
| Status | register | B | 11 |
|
|
|
|
|
|
| ||
00C |
| Status | register | C | 12 |
|
|
|
|
|
|
| ||
00D |
| Status | register | D | 13 |
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
| |||
Figure | Clock | Bytes | (Hex |
|
|
|
|
|
| |||||
Note: | The | Setup | program | initializes | status | registers | A | and | B when | |||||
| the time and date are set. Interrupt 1AH is the BIOS | |||||||||||||
| interface to read and set the time and date; it initializes the | |||||||||||||
| registers | in | the | same | way | that the Setup program | does. | |||||||
Status | Register A | (Hex | 00A) |
|
|
|
|
|
|
|
|
|
BitFunction
7Update in progress
Figure | Register | A | (Hex | 00A) |
|
|
|
| |||||||
Bit | 7 | When | set | to | 1, | this | bit | indicates | that the | ||||||
|
| cycle |
| is | in | progress. When set to 0, it indicates | that the | ||||||||
|
| current | date | and | time |
| can | be | read. |
|
| ||||
Bits | These | bits identify which | frequency is | being | |||||||||||
|
| used. | The system initializes these bits to binary 010, | ||||||||||||
|
| which | selects a | ||||||||||||
|
| value | supported | by | the | system | for proper timekeeping. | ||||||||
Bits |
| ||||||||||||||
|
| frequency. The system | initializes the | bits | |||||||||||
|
| to a | binary | 0110, which selects a |
| ||||||||||
|
|
|
|
|
| ThinkPad | 560/560E System | Board |
|