Datasheet

MCP7940N
DS20005010F-page 22 2010-2014 Microchip Technology Inc.
REGISTER 5-10: ALMxHOUR: ALARM0/1 HOURS VALUE REGISTER (ADDRESSES 0x0C/0x13)
U-0 R-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
12/24 AM/PM
HRTEN1
HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown
If 12/
24 = 1 (12-hour format):
bit 7 Unimplemented: Read as ‘0
bit 6 12/24: 12 or 24 Hour Time Format bit
(1)
1 = 12-hour format
0 = 24-hour format
bit 5 AM
/PM: AM/PM Indicator bit
1 = PM
0 = AM
bit 4 HRTEN0: Binary-Coded Decimal Value of Hour’s Tens Digit
Contains a value from 0 to 1
bit 3-0 HRONE<3:0>: Binary-Coded Decimal Value of Hour’s Ones Digit
Contains a value from 0 to 9
If 12/
24 = 0 (24-hour format):
bit 7 Unimplemented: Read as ‘0
bit 6 12/24: 12 or 24 Hour Time Format bit
(1)
1 = 12-hour format
0 = 24-hour format
bit 5-4 HRTEN<1:0>: Binary-Coded Decimal Value of Hour’s Tens Digit
Contains a value from 0 to 2.
bit 3-0 HRONE<3:0>: Binary-Coded Decimal Value of Hour’s Ones Digit
Contains a value from 0 to 9
Note 1: This bit is read-only and reflects the value of the 12/24
bit in the RTCHOUR register.