Datasheet

PCF2127AT All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
Product data sheet Rev. 6 — 11 July 2013 85 of 86
continued >>
NXP Semiconductors
PCF2127AT
Integrated RTC, TCXO and quartz crystal
27. Contents
1 General description . . . . . . . . . . . . . . . . . . . . . . 1
2 Features and benefits . . . . . . . . . . . . . . . . . . . . 1
3 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
4 Ordering information. . . . . . . . . . . . . . . . . . . . . 2
4.1 Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 2
5 Marking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
6 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3
7 Pinning information. . . . . . . . . . . . . . . . . . . . . . 4
7.1 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
7.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 4
8 Functional description . . . . . . . . . . . . . . . . . . . 6
8.1 Register overview . . . . . . . . . . . . . . . . . . . . . . . 6
8.2 Control registers . . . . . . . . . . . . . . . . . . . . . . . 10
8.2.1 Register Control_1 . . . . . . . . . . . . . . . . . . . . . 10
8.2.2 Register Control_2 . . . . . . . . . . . . . . . . . . . . . 11
8.2.3 Register Control_3 . . . . . . . . . . . . . . . . . . . . . 12
8.3 Register CLKOUT_ctl. . . . . . . . . . . . . . . . . . . 13
8.3.1 Temperature compensated crystal oscillator . 13
8.3.1.1 Temperature measurement . . . . . . . . . . . . . . 13
8.3.2 Clock output . . . . . . . . . . . . . . . . . . . . . . . . . . 13
8.4 Register Aging_offset . . . . . . . . . . . . . . . . . . . 15
8.4.1 Crystal aging correction . . . . . . . . . . . . . . . . . 15
8.5 General purpose 512 bytes static RAM . . . . . 16
8.5.1 Register RAM_addr_MSB . . . . . . . . . . . . . . . 16
8.5.2 Register RAM_addr_LSB . . . . . . . . . . . . . . . . 16
8.5.3 Register RAM_wrt_cmd . . . . . . . . . . . . . . . . . 16
8.5.4 Register RAM_rd_cmd . . . . . . . . . . . . . . . . . . 16
8.5.5 Operation examples . . . . . . . . . . . . . . . . . . . . 17
8.5.5.1 Writing to the RAM . . . . . . . . . . . . . . . . . . . . . 17
8.5.5.2 Reading from the RAM. . . . . . . . . . . . . . . . . . 17
8.6 Power management functions . . . . . . . . . . . . 18
8.6.1 Battery switch-over function . . . . . . . . . . . . . . 19
8.6.1.1 Standard mode . . . . . . . . . . . . . . . . . . . . . . . . 20
8.6.1.2 Direct switching mode . . . . . . . . . . . . . . . . . . 21
8.6.1.3 Battery switch-over disabled: only one power
supply (V
DD
) . . . . . . . . . . . . . . . . . . . . . . . . . . 21
8.6.1.4 Battery switch-over architecture . . . . . . . . . . . 22
8.6.2 Battery backup supply . . . . . . . . . . . . . . . . . . 22
8.6.3 Battery low detection function. . . . . . . . . . . . . 23
8.6.4 Extra power fail detection function . . . . . . . . . 24
8.6.4.1 Extra power fail detection when the battery
switch over function is enabled. . . . . . . . . . . . 25
8.6.4.2 Extra power fail detection when the battery
switch-over function is disabled . . . . . . . . . . . 26
8.7 Oscillator stop detection function . . . . . . . . . . 27
8.8 Reset function . . . . . . . . . . . . . . . . . . . . . . . . 28
8.8.1 Power-On Reset (POR) . . . . . . . . . . . . . . . . . 28
8.8.2 Power-On Reset Override (PORO) . . . . . . . . 28
8.9 Time and date function. . . . . . . . . . . . . . . . . . 30
8.9.1 Register Seconds. . . . . . . . . . . . . . . . . . . . . . 30
8.9.2 Register Minutes . . . . . . . . . . . . . . . . . . . . . . 30
8.9.3 Register Hours. . . . . . . . . . . . . . . . . . . . . . . . 31
8.9.4 Register Days . . . . . . . . . . . . . . . . . . . . . . . . 31
8.9.5 Register Weekdays . . . . . . . . . . . . . . . . . . . . 31
8.9.6 Register Months. . . . . . . . . . . . . . . . . . . . . . . 32
8.9.7 Register Years . . . . . . . . . . . . . . . . . . . . . . . . 32
8.9.8 Setting and reading the time . . . . . . . . . . . . . 32
8.10 Alarm function . . . . . . . . . . . . . . . . . . . . . . . . 34
8.10.1 Register Second_alarm . . . . . . . . . . . . . . . . . 34
8.10.2 Register Minute_alarm. . . . . . . . . . . . . . . . . . 35
8.10.3 Register Hour_alarm . . . . . . . . . . . . . . . . . . . 35
8.10.4 Register Day_alarm . . . . . . . . . . . . . . . . . . . . 35
8.10.5 Register Weekday_alarm. . . . . . . . . . . . . . . . 36
8.10.6 Alarm flag. . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
8.11 Timer functions. . . . . . . . . . . . . . . . . . . . . . . . 37
8.11.1 Register Watchdg_tim_ctl . . . . . . . . . . . . . . . 37
8.11.2 Register Watchdg_tim_val . . . . . . . . . . . . . . . 38
8.11.3 Watchdog timer function . . . . . . . . . . . . . . . . 38
8.11.4 Countdown timer function . . . . . . . . . . . . . . . 40
8.11.5 Pre-defined timers: second and minute
interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
8.11.6 Clearing flags. . . . . . . . . . . . . . . . . . . . . . . . . 41
8.12 Timestamp function . . . . . . . . . . . . . . . . . . . . 43
8.12.1 Timestamp flag. . . . . . . . . . . . . . . . . . . . . . . . 43
8.12.2 Timestamp mode . . . . . . . . . . . . . . . . . . . . . . 44
8.12.3 Timestamp registers. . . . . . . . . . . . . . . . . . . . 44
8.12.3.1 Register Timestp_ctl . . . . . . . . . . . . . . . . . . . 44
8.12.3.2 Register Sec_timestp. . . . . . . . . . . . . . . . . . . 44
8.12.3.3 Register Min_timestp . . . . . . . . . . . . . . . . . . . 44
8.12.3.4 Register Hour_timestp . . . . . . . . . . . . . . . . . . 45
8.12.3.5 Register Day_timestp. . . . . . . . . . . . . . . . . . . 45
8.12.3.6 Register Mon_timestp . . . . . . . . . . . . . . . . . . 45
8.12.3.7 Register Year_timestp . . . . . . . . . . . . . . . . . . 45
8.12.4 Dependency between Battery switch-over
and timestamp . . . . . . . . . . . . . . . . . . . . . . . . 46
8.13 Interrupt output, INT
. . . . . . . . . . . . . . . . . . . . 47
8.13.1 Minute and second interrupts. . . . . . . . . . . . . 48
8.13.2 Countdown timer interrupts . . . . . . . . . . . . . . 49
8.13.3 INT
pulse shortening . . . . . . . . . . . . . . . . . . . 49
8.13.4 Watchdog timer interrupts . . . . . . . . . . . . . . . 51
8.13.5 Alarm interrupts . . . . . . . . . . . . . . . . . . . . . . . 51
8.13.6 Timestamp interrupts . . . . . . . . . . . . . . . . . . . 52
8.13.7 Battery switch-over interrupts . . . . . . . . . . . . 52
8.13.8 Battery low detection interrupts . . . . . . . . . . . 52