NXP Semiconductors PCA9665 User Manual
Page 90
![background image](/manuals/191580/90/background.png)
PCA9665_2
© NXP B.V. 2006. All rights reserved.
Product data sheet
Rev. 02 — 7 December 2006
90 of 91
continued >>
NXP Semiconductors
PCA9665
Fm+ parallel bus to I
2
C-bus controller
22. Contents
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Ordering information . . . . . . . . . . . . . . . . . . . . . 2
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinning information . . . . . . . . . . . . . . . . . . . . . . 4
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5
Functional description . . . . . . . . . . . . . . . . . . . 6
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Internal oscillator . . . . . . . . . . . . . . . . . . . . . . . 6
Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Direct registers . . . . . . . . . . . . . . . . . . . . . . . . . 8
The Status register, I2CSTA (A1 = 0, A0 = 0) . . 8
C-bus Data register, I2CDAT (A1 = 0,
A0 = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
The Control register, I2CCON (A1 = 1, A0 = 1) 9
The indirect data field access register,
INDIRECT (A1 = 1, A0 = 0) . . . . . . . . . . . . . . 11
Indirect registers . . . . . . . . . . . . . . . . . . . . . . . 12
The Clock Rate registers, I2CSCLL and
I2CSCLH (indirect addresses 02h and 03h) . . 13
The Parallel Software Reset register,
I2CPRESET (indirect address 05h) . . . . . . . . 14
C-bus mode register, I2CMODE
(indirect address 06h) . . . . . . . . . . . . . . . . . . . 15
PCA9665 modes. . . . . . . . . . . . . . . . . . . . . . . . 16
Configuration modes. . . . . . . . . . . . . . . . . . . . 16
Byte mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Buffered mode . . . . . . . . . . . . . . . . . . . . . . . . 16
Operating modes . . . . . . . . . . . . . . . . . . . . . . 16
Byte mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Master Transmitter Byte mode . . . . . . . . . . . . 17
Master Receiver Byte mode . . . . . . . . . . . . . . 22
Slave Receiver Byte mode . . . . . . . . . . . . . . . 25
Slave Transmitter Byte mode . . . . . . . . . . . . . 29
Buffered mode . . . . . . . . . . . . . . . . . . . . . . . . 31
Master Transmitter Buffered mode . . . . . . . . . 31
Master Receiver Buffered mode. . . . . . . . . . . 36
Slave Receiver Buffered mode. . . . . . . . . . . . 40
Slave Transmitter Buffered mode . . . . . . . . . . 45
Buffered mode examples . . . . . . . . . . . . . . . . 48
Buffered Master Receiver mode of operation. 48
Buffered Slave Transmitter mode . . . . . . . . . . 49
Buffered Slave Receiver mode. . . . . . . . . . . . 50
Example: Read 128 bytes in two 64-byte
sequences of an EEPROM
(I
2
C-bus address = A0h for write operations
and A1h for read operations) starting at
Location 08h. . . . . . . . . . . . . . . . . . . . . . . . . . 50
I2CCOUNT register . . . . . . . . . . . . . . . . . . . . 51
2
C-busaddresses and data) in Byte and
Buffered modes . . . . . . . . . . . . . . . . . . . . . . . 53
Miscellaneous states . . . . . . . . . . . . . . . . . . . 57
I2CSTA = F8h. . . . . . . . . . . . . . . . . . . . . . . . . 57
I2CSTA = 00h . . . . . . . . . . . . . . . . . . . . . . . . . 57
I2CSTA = 70h . . . . . . . . . . . . . . . . . . . . . . . . . 57
I2CSTA = 78h . . . . . . . . . . . . . . . . . . . . . . . . . 58
Some special cases . . . . . . . . . . . . . . . . . . . . 58
Data transfer after loss of arbitration . . . . . . . 58
2
C-bus . . . . . . . . . . . . . 58
C-bus obstructed by a LOW level on SCL or
SDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Bus error . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Power-on reset . . . . . . . . . . . . . . . . . . . . . . . . 60
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
C-bus timing diagrams, Unbuffered mode . . 61
C-bus timing diagrams, Buffered mode . . . . 63
C-bus . . . . . . . . . . . . 65
Bit transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
START and STOP conditions . . . . . . . . . . . . . 65
System configuration . . . . . . . . . . . . . . . . . . . 65
Acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . 66
Application design-in information . . . . . . . . . 67
Specific applications. . . . . . . . . . . . . . . . . . . . 67
C-bus port . . . . . . . . . . . . . . . . . . . . . . 67
C-bus ports . . . . . . . . . . . . . 68
Convert 8 bits of parallel data into
I
C-bus serial data stream . . . . . . . . . . . . . . . 68
Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 69