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 58 of 86
NXP Semiconductors
PCF2127AT
Integrated RTC, TCXO and quartz crystal
Table 59. Command byte definition
Bit Symbol Value Description
7R/W
data read or write selection
0 write data
1 read data
6 to 5 SA 01 subaddress;
other codes will cause the device to ignore data
transfer
4 to 0 RA 00h to 1Dh register address
In this example, the Seconds register is set to 45 seconds and the Minutes register to 10 minutes.
Fig 36. SPI-bus write example
001aaj348
seconds data 45
BCD
minutes data 10
BCD
addr 03hR/W
SA
03xx 04 05
SCL
SDI
SDA/CE
address
counter
b7
0
b6
0
b5
1
b4
0
b3
0
b2
0
b1
1
b0
1
b7
0
b6
1
b5
0
b4
0
b3
0
b2
1
b1
0
b0
1
b7
0
b6
0
b5
0
b4
1
b3
0
b2
0
b1
0
b0
0
In this example, the registers Months and Years are read. The pins SDI and SDO are not connected together. For this
configuration, it is important that pin SDI is never left floating. It must always be driven either HIGH or LOW. If pin SDI is left
open, high I
DD
currents may result.
Fig 37. SPI-bus read example
001aaj349
months data 11
BCD
years data 06
BCD
addr 08hR/W
SA
08xx 09 0A
SCL
SDI
SDA/CE
address
counter
b7
1
b6
0
b5
1
b4
0
b3
1
b2
0
b1
0
b0
0
b7
0
b6
0
b5
0
b4
1
b3
0
b2
0
b1
0
b0
1
b7
0
b6
0
b5
0
b4
0
b3
0
b2
1
b1
1
b0
0
SDO