/* // PCA2129T RTC Registers Register: Control_1 0x00 ===================================================================================== 7 6 5 4 3 2 1 0 EXT_TEST T STOP TSF1 POR_OVRD 12_24 MI SI | | | | | | | | | | | | | | | | | | | | | | | SI | | | | | | | 0=Second interrupt disabled | | | | | | | 1=Second interrupt enabled. | | | | | | | | | | | | | MI | | | | | | 0=Minute interrupt diabled | | | | | | 1=Minute interrupt enabled | | | | | | | | | | | 12_24 | | | | | 0=24 hour mode | | | | | 1=12 hour mode | | | | | | | | | POR_OVRD | | | | 0=Power-On reset Overrride (default) | | | | 1=Power-On reset Override enabled | | | | | | | TSF1 | | | 0=no Timestamp Interrupt | | | 1=Flag on TS interrup (flag must be cleared to clear interrupt) | | | | | STOP | | 0=RTC source clock runs | | 1=RTC clock is stopped | | | T=Unused | | EXT_TEST 0 - normal mode 1 - external clock test mode Register: Control_2 0x01 ===================================================================================== 7 6 5 4 3 2 1 0 MSF WDTF TSF2 AF T TSIE AIE T | | | | | | | | | | | | | | | T=unused | | | | | | | | | | | | | AIE (Alarm Interrupt Enabled) | | | | | | 0=Alarm Interrupt Disabled | | | | | | 1=Alarm Interrupt Enabled | | | | | | | | | | | TSIE (TimeStamp Interrup Enabled) | | | | | 0=TimeStamp Interrupt Enabled | | | | | 1=TimeStamp Interrupt Disabled | | | | | | | | | T=Unused | | | | | | | AF | | | 0=Alarm Flag: No Alarm | | | 1=Alarm Flag: Alarm Triggered (must be cleared) | | | | | TSF2 | | 0=TimeStampFlag2: No Timestamp | | 1=TimeStampFlag2: Timestamp Triggered (must be cleared) | | | WDTF (Watchdog Timer Flag) | 0=WTD No flag | 1=WDT flag set (cannot be cleared read-only) | MSF 0=Minute Second Flag not set 1=Minute Second Flag Set (must be cleared) Register: Control_3 0x02 ===================================================================================== 7 6 5 4 3 2 1 0 PWRMNG | | BTSE BF BLF BIE BLIE | | | | | | | | | | | | | | | BLIE | | | | | | | 0=Battery Low Interrupt Disabled | | | | | | | 1=Battery Low Interrupt Enabled | | | | | | BIE | | | | | | 0=Battery Interrupt Disabled | | | | | | 1=Battery Interrupt Enable | | | | | BLF | | | | | 0=Battery Status OK | | | | | 1=Battery Status LOW | | | | BF | | | | 0=no battery switch over interrupt generated | | | | 1=flag set when batter switch-over occurs (must be cleared) | | | BTSE | | | 0=No timestamp when battery swtich-over occurs | | | 1=timestamped when battery swtich over occurs | | | PWRMNG 000 battery switch-over function is enabled in standard mode; battery low detection function is enabled 001 battery switch-over function is enabled in standard mode; battery low detection function is disabled 010 battery switch-over function is enabled in standard mode; battery low detection function is disabled 011 battery switch-over function is enabled in direct switching mode; battery low detection function is enabled 100 battery switch-over function is enabled in direct switching mode; battery low detection function is disabled 101 battery switch-over function is enabled in direct switching mode; battery low detection function is disabled 111 battery switch-over function is disabled, only one power supply (V DD); battery low detection function is disabled */