PCF2127AT/1 NXP [NXP Semiconductors], PCF2127AT/1 Datasheet

no-image

PCF2127AT/1

Manufacturer Part Number
PCF2127AT/1
Description
Integrated RTC, TCXO and quartz crystal
Manufacturer
NXP [NXP Semiconductors]
Datasheet
1. General description
2. Features and benefits
1.
The definition of the abbreviations and acronyms used in this data sheet can be found in
The PCF2127A is a CMOS
Temperature Compensated Crystal (Xtal) Oscillator (TCXO) and a 32.768 kHz quartz
crystal optimized for very high accuracy and very low power consumption. The PCF2127A
has 512 bytes of general purpose static RAM, a selectable I
battery switch-over circuit, a programmable watchdog function, a timestamp function, and
many other features.
PCF2127A
Integrated RTC, TCXO and quartz crystal
Rev. 02 — 7 May 2010
Temperature Compensated Crystal Oscillator (TCXO) with integrated capacitors
Typical accuracy: ±3 ppm from −15 °C to +60 °C
Integration of a 32.768 kHz quartz crystal and oscillator in the same package
Provides year, month, day, weekday, hours, minutes, and seconds
512 bytes of general purpose static RAM
Timestamp function
Two line bidirectional 400 kHz Fast-mode I
SDA/CE)
3 line SPI-bus with separate data input and output (maximum speed 6.5 Mbit/s)
Battery backup input pin and switch-over circuitry
Battery backed output voltage pin
Battery low detection function
Extra power fail detection function with input and output pins
Power-On Reset Override (PORO)
Oscillator stop detection function
Interrupt output and system reset pin (open-drain)
Programmable 1 second or 1 minute interrupt
Programmable countdown timer with interrupt capability
Programmable watchdog timer with interrupt and reset capability
Programmable alarm function with interrupt capability
Programmable square wave open-drain output pin
Clock operating voltage: 1.2 V to 4.2 V
Low supply current: typical 0.65 μA at V
with interrupt capability
detection of two different events on one multilevel input pin (e.g. for tamper
detection)
1
Real Time Clock (RTC) and calendar with an integrated
DD
2
= 3.0 V and T
C-bus interface (I
Section
17.
2
amb
C-bus or SPI-bus, a backup
= 25 °C
OL
Product data sheet
= 3 mA at pin

Related parts for PCF2127AT/1

PCF2127AT/1 Summary of contents

Page 1

PCF2127A Integrated RTC, TCXO and quartz crystal Rev. 02 — 7 May 2010 1. General description The PCF2127A is a CMOS Temperature Compensated Crystal (Xtal) Oscillator (TCXO) and a 32.768 kHz quartz crystal optimized for very high accuracy and very ...

Page 2

... Timekeeping instruments with high precision GPS equipment to reduce time to first fix Applications that require an accurate process timing Products with long automated unattended operation time 4. Ordering information Table 1. Type number Package PCF2127AT/1 SO20 5. Marking Table 2. Type number PCF2127AT/1 PCF2127A_2 Product data sheet ...

Page 3

NXP Semiconductors 6. Block diagram CLKOUT BBS V DD BATTERY BACK UP V SWITCH-OVER BAT CIRCUITRY V SS OSCILLATOR MONITOR RST INTERFACE SDA/CE SERIAL BUS SDO INTERFACE SDI SELECTOR SCL IFS INTERFACE TS PFI 1.25 V (internal) PFO Fig 1. ...

Page 4

NXP Semiconductors 7. Pinning information 7.1 Pinning Fig 2. 7.2 Pin description Table 3. Symbol SCL SDI SDO SDA/CE IFS TS CLKOUT V SS n.c. TEST PFO PFI RST INT BBS V BAT V DD PCF2127A_2 Product data sheet SCL ...

Page 5

NXP Semiconductors 8. Functional description The PCF2127A is a Real Time Clock (RTC) and calendar with an on-chip Temperature Compensated Crystal (Xtal) Oscillator (TCXO) and a 32.768 kHz quartz crystal integrated into the same package. Address and data are transferred ...

Page 6

NXP Semiconductors 8.1 Register overview The PCF2127A contains 30 8-bit registers (see address register: the built-in address register will increment automatically after each read or write of a data byte up to the register 1Bh. After register 1Bh the auto-incrementing ...

Page 7

NXP Semiconductors • Address registers 1Ah and 1Bh define the RAM address. Address register 1Ch (RAM_wrt_cmd) is the RAM write command; address register 1Dh (RAM_rd_cmd) is the RAM read command. Data is transferred to or from the RAM via the ...

Page 8

NXP Semiconductors Table 4. Register overview …continued Bit positions labeled as - are not implemented and will return a 0 when read. Bit T must always be written with logic 0. Bits labeled as X are undefined at power-on and ...

Page 9

NXP Semiconductors 8.2 Control registers PCF2127A has 30 8-bit registers. The first 3 registers with the addresses 00h, 01h, and 02h are used as control registers. 8.2.1 Register Control_1 Table 5. Bit ...

Page 10

NXP Semiconductors 8.2.2 Register Control_2 Table 6. Bit [1] Default value. PCF2127A_2 Product data sheet Control_2 - control and status register 2 (address 01h) bit description Symbol Value Description [1] MSF 0 ...

Page 11

NXP Semiconductors 8.2.3 Register Control_3 Table 7. Bit PWRMNG[2: [1] Values see [2] Default value. PCF2127A_2 Product data sheet Control_3 - control and status register 3 (address 02h) bit description Symbol Value ...

Page 12

NXP Semiconductors 8.3 Register CLKOUT_ctl Table 8. Bit Symbol TCR[1: COF[2:0] 8.3.1 Temperature compensated crystal oscillator The frequency of tuning fork quartz crystal oscillators is temperature-dependent. In the PCF2127A the ...

Page 13

NXP Semiconductors Table 10. COF[2:0] [2] 000 001 010 011 100 101 110 111 [1] Duty cycle definition: % HIGH-level time : % LOW-level time. [2] Default value. PCF2127A_2 Product data sheet CLKOUT frequency selection CLKOUT frequency (Hz) 32768 16384 ...

Page 14

NXP Semiconductors 8.4 Register Aging_offset Table 11. Bit Symbol AO[3:0] 8.4.1 Crystal aging correction The PCF2127A has an aging offset register Aging_offset to correct the crystal aging 2 effects The accuracy of the ...

Page 15

NXP Semiconductors 8.5 General purpose 512 bytes static RAM The PCF2127A contains a general purpose 512 bytes static RAM. This integrated SRAM is battery backed and can therefore be used to store data which is essential for the application to ...

Page 16

NXP Semiconductors 8.5.5 Operation examples Writing to the RAM 8.5.5.1 1. Set RAM address: – Select register RAM_addr_MSB (send address 1Ah). – Set value for bit RA8 (data byte of register 1Ah). Note: register address will be incremented automatically to ...

Page 17

NXP Semiconductors 8.6 Power management functions The PCF2127A has two power supply pins and one power output pin: • • V BAT • BBS - battery backed output voltage pin (equal to the internal power supply) The PCF2127A ...

Page 18

NXP Semiconductors 8.6.1 Battery switch-over function The PCF2127A has a backup battery switch-over circuit which monitors the main power supply V condition is detected. One of two operation modes can be selected: • Standard mode: the power failure condition happens ...

Page 19

NXP Semiconductors V V th(sw)bat (= 2 Fig 4. 8.6.1.2 Direct switching mode If V > < th(sw)bat (= 2 ...

Page 20

NXP Semiconductors The direct switching mode is useful in systems where V The direct switching mode is not recommended if the V (e. reduced compared to the standard mode because the monitoring of V not performed. 8.6.1.3 Battery ...

Page 21

NXP Semiconductors V BBS (mV) Fig 7. 8.6.3 Battery low detection function The PCF2127A has a battery low detection circuit which monitors the status of the battery V . BAT When V (register Control_3) is set to indicate that the ...

Page 22

NXP Semiconductors th(bat)low (= 2.5 V) Fig 8. 8.6.4 Extra power fail detection function The PCF2127A has an extra power fail detection circuit which compares the voltage at the power fail input pin PFI ...

Page 23

NXP Semiconductors uvp V th(uvp) below the minimum operating voltage of the system, in order to allow the microcontroller to perform early backup operations. If the extra power fail detection function is not used, pin PFI ...

Page 24

NXP Semiconductors th(uvp) V th(sw)bat (= 2 comparator enabled PF0 Fig 11. PFO signal behavior when battery switch-over is enabled in direct switching 8.6.4.2 Extra power fail detection when the battery ...

Page 25

NXP Semiconductors 8.7 Oscillator stop detection function The PCF2127A has an on-chip oscillator detection circuit which monitors the status of the oscillation: whenever the oscillation stops, a reset occurs and the oscillator stop flag OSF (in register Seconds) is set ...

Page 26

NXP Semiconductors 8.8 Reset function The PCF2127A has an active LOW open-drain output reset pin (RST). The reset output is activated at Power-On Reset (POR) and whenever the oscillator is stopped (see Section 8.8.1 Power-On Reset (POR) The POR is ...

Page 27

NXP Semiconductors Fig 15. Power-On Reset (POR) system The setting of the PORO mode requires that POR_OVRD in register Control_1 is set logic 1 and that the signals at the interface pins SDA/CE and SCL are toggled as illustrated in ...

Page 28

NXP Semiconductors 8.9 Time and date function The majority of these registers are coded in the Binary Coded Decimal (BCD) format. 8.9.1 Register Seconds Table 19. Bit Symbol 7 OSF SECONDS [1] Start-up value. ...

Page 29

NXP Semiconductors 8.9.3 Register Hours Table 22. Bit Symbol hour mode 5 AMPM 4 HOURS hour mode HOURS [1] Hour mode is set by the ...

Page 30

NXP Semiconductors 8.9.6 Register Months Table 26. Bit Symbol MONTHS Table 27. Month January February March April May June July August September October November December 8.9.7 Register Years Table 28. Bit Symbol ...

Page 31

NXP Semiconductors Fig 17. Data flow of the time function After this read/write access is completed, the time circuit is released again and any pending request to increment the time counters that occurred during the read/write access is serviced. A ...

Page 32

NXP Semiconductors 8.10 Alarm function When one or more of the alarm bit fields are loaded with a valid second, minute, hour, day, or weekday and its corresponding alarm enable bit (AE_x) is logic 0, then that information is compared ...

Page 33

NXP Semiconductors 8.10.2 Register Minute_alarm Table 30. Bit Symbol 7 AE_M MINUTE_ALARM [1] Default value. 8.10.3 Register Hour_alarm Table 31. Bit Symbol 7 AE_H hour mode 5 AMPM 4 HOUR_ALARM 3 ...

Page 34

NXP Semiconductors 8.10.5 Register Weekday_alarm Table 33. Bit Symbol 7 AE_W WEEKDAY_ALARM [1] Default value. 8.10.6 Alarm flag When all enabled comparisons first match, the alarm flag AF (register Control_2) is set. AF ...

Page 35

NXP Semiconductors 8.11 Timer functions The PCF2127A has two different timer functions, a watchdog timer and a countdown timer. The timers can be selected by using the control bits WD_CD[1:0] in the register Watchdg_tim_ctl. • The watchdog timer has four ...

Page 36

NXP Semiconductors 8.11.2 Register Watchdg_tim_val Table 35. Bit WATCHDG_TIM_VAL[7:0] Table 36. TF[1:0] Timer source 8.11.3 Watchdog timer function The watchdog timer function is controlled by the WD_CD[1:0] bits of the register Watchdg_tim_ctl (see ...

Page 37

NXP Semiconductors Remark: WDTF is read only and cannot be cleared with the interface. WDTF can be cleared by: • loading a value in register Watchdg_tim_val • reading of the register Control_2 Writing a logic 0 or logic 1 to ...

Page 38

NXP Semiconductors Table 37. WD_CD[1:0] 11 8.11.4 Countdown timer function The countdown timer function is controlled by the WD_CD[1:0] bits in register Watchdg_tim_ctl (see The timer counts down from the software programmed 8 bit binary value n in register Watchdg_tim_val. ...

Page 39

NXP Semiconductors When the countdown timer flag CDTF is set, an interrupt signal on INT will be generated provided that this mode is enabled. See be controlled. When starting the countdown timer for the first time, only the first period ...

Page 40

NXP Semiconductors Table 40. Register Control_2 The following tables show what instruction must be sent to clear the appropriate flag. Table 41. Register Control_2 [1] The bits labeled as - have to be rewritten with the previous values. Table 42. ...

Page 41

NXP Semiconductors 8.12 Timestamp function The PCF2127A has an active LOW timestamp input pin TS, internally pulled with an on-chip pull-up resistor to the internal power supply of the device. It also has a timestamp detection circuit which can detect ...

Page 42

NXP Semiconductors The TSF1 and TSF2 flags can be cleared by using the interface; clearing both flags will clear the interrupt. Once TSF2 is cleared it will only be set again when TS pin is driven to ground once again. ...

Page 43

NXP Semiconductors 8.12.3.4 Register Hour_timestp Table 48. Bit Symbol hour mode 5 AMPM 4 HOUR_TIMESTP hour mode HOUR_TIMESTP [1] Hour mode is set by the ...

Page 44

NXP Semiconductors 8.12.4 Dependency between Battery switch-over and timestamp The timestamp function depends on the control bit BTSE in register Control_3: Table 52. BTSE [1] Default value. PCF2127A_2 Product data sheet Battery switch-over and timestamp Description [1] ...

Page 45

NXP Semiconductors 8.13 Interrupt output, INT SECONDS COUNTER MINUTES COUNTER from interface: clear MSF WD_CD[1: COUNTDOWN COUNTER from interface: clear CDTF WD_CD[1: WATCHDOG COUNTER MCU loading watchdog counter set alarm flag, AF from interface: clear AF ...

Page 46

NXP Semiconductors • watchdog timer • alarm • timestamp • battery switch-over • battery low detection The control bit TI_TP (register Watchdg_tim_ctl) is used to configure whether the interrupts generated from the second/minute timer (flag MSF in register Control_2) and ...

Page 47

NXP Semiconductors INT when only MI enabled MSF when only MI enabled Fig 26. INT example for SI and MI when TI_TP is logic 1 Fig 27. INT example for SI and MI when TI_TP is logic 0 The pulse ...

Page 48

NXP Semiconductors 8.13.3 INT pulse shortening The pulse generator for the countdown timer interrupt also uses an internal clock, but this time it is dependent on the selected source clock for the countdown timer and on the countdown value n. ...

Page 49

NXP Semiconductors (1) Indicates normal duration of INT pulse. Fig 29. Example of shortening the INT pulse by clearing the CDTF flag 8.13.4 Watchdog timer interrupts The generation of interrupts from the watchdog timer is controlled using the WD_CD[1:0] bits ...

Page 50

NXP Semiconductors 8.13.6 Timestamp interrupts Interrupt generation from the timestamp function is controlled using the TSIE bit (register Control_2). If TSIE is enabled the INT pin follows the status of the flags TSFx. Clearing the flags TSFx immediately clears INT. ...

Page 51

NXP Semiconductors 8.14 External clock test mode A test mode is available which allows on-board testing. In this mode it is possible to set up test conditions and control the operation of the RTC. The test mode is entered by ...

Page 52

NXP Semiconductors 8.15 STOP bit function The function of the STOP bit is to allow for accurate starting of the time circuits. STOP will cause the upper part of the prescaler (F are generated. The time circuits can then be ...

Page 53

NXP Semiconductors 32768 Hz F OSC Fig 31. STOP bit functional diagram Fig 32. STOP bit release timing PCF2127A_2 Product data sheet LOWER PRESCALER 128 Hz 16384 Hz 8192 Hz 4096 stop ...

Page 54

NXP Semiconductors 9. Interfaces The PCF2127A has a selectable I the interface selection pin IFS (see Table 56. Pin IFS V DD SCL SDI SDO CE SCL 1 SDI 2 SDO 3 SDA/CE 4 IFS 5 PCF2127A ...

Page 55

NXP Semiconductors 9.1 SPI-bus interface Data transfer to and from the device is made via a 3 wire SPI-bus (see lines for input and output are split. The data input and output line can be connected together to facilitate a ...

Page 56

NXP Semiconductors Table 58. Bit R SCL SDI SDA/CE address xx counter In this example, the register Seconds is set to 45 seconds and ...

Page 57

NXP Semiconductors 2 9.2 I C-bus interface 2 The I C-bus is for bidirectional, two-line communication between different ICs or modules. The two lines are a serial data line (SDA) and a serial clock line (SCL). Both lines are connected ...

Page 58

NXP Semiconductors SDA SCL MASTER TRANSMITTER RECEIVER Fig 40. System configuration 9.2.4 Acknowledge The number of data bytes transferred between the START and STOP conditions from transmitter to receiver is unlimited. Each byte of eight bits is followed by an ...

Page 59

NXP Semiconductors Table 59. Bit The R/W bit defines the direction of the following single or multiple byte data transfer (read is logic 1, write is logic 0). For the format and the timing of the START condition (S), the ...

Page 60

NXP Semiconductors S P/S Fig 44. Bus protocol, writing to RAM PCF2127A_2 Product data sheet acknowledge from PCF2127A slave address write bit acknowledge from PCF2127A data byte 1Ah A acknowledge from ...

Page 61

NXP Semiconductors S P/S P/S Fig 45. Bus protocol, reading from RAM PCF2127A_2 Product data sheet acknowledge from PCF2127A slave address write bit acknowledge from PCF2127A data byte 1Ah A acknowledge ...

Page 62

NXP Semiconductors 10. Internal circuitry Fig 46. Device diode protection diagram of PCF2127A PCF2127A_2 Product data sheet SCL SDI SDO SDA/CE IFS TS CLKOUT V SS PCF2127A All information provided in this document is subject to legal disclaimers. Rev. 02 ...

Page 63

NXP Semiconductors 11. Limiting values Table 60. In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol BAT P tot V ESD stg ...

Page 64

NXP Semiconductors 12. Static characteristics Table 61. Static characteristics Symbol Parameter Supplies V supply voltage DD V battery supply voltage BAT V calibration supply voltage DD(cal) ...

Page 65

NXP Semiconductors Table 61. Static characteristics Symbol Parameter Inputs V input voltage I V LOW-level input voltage IL V HIGH-level input voltage IH I input leakage ...

Page 66

NXP Semiconductors 12.1 Current consumption characteristics, typical Fig 47. I (μA) Fig 48. I PCF2127A_2 Product data sheet (mA 1.5 Typical value 0 pin SDA/CE OL 2.0 I ...

Page 67

NXP Semiconductors (μA) a. PWRMNG[2:0] = 111; TSOFF = 1; T (μA) b. PWRMNG[2:0] = 000; TSOFF = 0; T Fig 49. I PCF2127A_2 Product data sheet 2 1.6 1.2 0.8 0.4 0 1.8 2.2 2.6 4.0 I ...

Page 68

NXP Semiconductors 12.2 Frequency characteristics Table 62. Frequency characteristics Symbol Parameter f output frequency o Δf/f frequency stability Δf /f relative crystal frequency variation xtal xtal ...

Page 69

NXP Semiconductors 13. Dynamic characteristics 13.1 SPI-bus timing characteristics Table 63. SPI-bus characteristics 4.2V operating supply voltage at ambient temperature and referenced to V Symbol Parameter Pin SCL ...

Page 70

NXP Semiconductors CE t su(CE_N) SCL WRITE SDI R/W SA2 high-Z SDO READ SDI b7 high-Z SDO Fig 51. SPI-bus timing PCF2127A_2 Product data sheet t w(CE_N 80% 20% RA0 b6 b0 ...

Page 71

NXP Semiconductors 2 13 interface timing characteristics Table 64. All timing characteristics are valid within the operating supply voltage and ambient temperature range and reference and 70 % with an input voltage swing of V ...

Page 72

NXP Semiconductors START PROTOCOL CONDITION (S) t SU;STA SCL t BUF SDA t HD;STA 2 Fig 52. I C-bus timing diagram; rise and fall times refer and 70 % 14. Application information For information about application configuration ...

Page 73

NXP Semiconductors 15. Package outline SO20: plastic small outline package; 20 leads; body width 7 pin 1 index 1 e DIMENSIONS (inch dimensions are derived from the original mm dimensions) A UNIT ...

Page 74

NXP Semiconductors 16. Soldering For information about soldering see 17. Abbreviations Table 65. Acronym AM BCD CDM CMOS DC GPS HBM LSB MCU MM MSB PM POR PORO PPM RAM RC RTC SCL SDA SPI SRAM ...

Page 75

NXP Semiconductors 18. References [1] AN10365 — Surface mount reflow soldering description [2] AN10853 — Handling precautions of ESD sensitive devices [3] AN10857 — Application and soldering information for PCF2127A and PCF2129A TCXO RTC [4] IEC 60134 — Rating systems ...

Page 76

NXP Semiconductors 19. Revision history Table 66. Revision history Document ID Release date PCF2127A_2 20100507 • Modifications: The format of this data sheet has been redesigned to comply with the new identity guidelines of NXP Semiconductors. • Legal texts have ...

Page 77

NXP Semiconductors 20. Legal information 20.1 Data sheet status [1][2] Document status Product status Objective [short] data sheet Development Preliminary [short] data sheet Qualification Product [short] data sheet Production [1] Please consult the most recently issued document before initiating or ...

Page 78

NXP Semiconductors Non-automotive qualified products — Unless this data sheet expressly states that this specific NXP Semiconductors product is automotive qualified, the product is not suitable for automotive use neither qualified nor tested in accordance with automotive testing ...

Page 79

NXP Semiconductors 22. Contents 1 General description . . . . . . . . . . . . . . . . . . . . . . 1 2 Features and benefits . . . . . . ...

Page 80

NXP Semiconductors 9 Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 9.1 SPI-bus interface . . . ...

Related keywords