
P89V660_662_664
All information provided in this document is subject to legal disclaimers.
NXP B.V. 2011. All rights reserved.
Product data sheet
Rev. 3.1 — 17 October 2011
25 of 90
NXP Semiconductors
P89V660/662/664
80C51 with 512 B/1 kB/2 kB RAM, dual I2C-bus, SPI
Multimaster bus (no central master)
Arbitration between simultaneously transmitting masters without corruption of serial
data on the bus
Serial clock synchronization allows devices with different bit rates to communicate via
one serial bus
Serial clock synchronization can be used as a handshake mechanism to suspend and
resume serial transfer
The I2C-bus may be used for test and diagnostic purposes
A typical I2C-bus configuration is shown in Figure 7. Depending on the state of the direction bit (R/W), two types of data transfers are possible on the I2C-bus:
Data transfer from a master transmitter to a slave receiver. The first byte transmitted
by the master is the slave address. Next follows a number of data bytes. The slave
returns an acknowledge bit after each received byte.
Data transfer from a slave transmitter to a master receiver. The first byte (the slave
address) is transmitted by the master. The slave then returns an acknowledge bit.
Next follows the data bytes transmitted by the slave to the master. The master returns
an acknowledge bit after all received bytes other than the last byte. At the end of the
last received byte, a ‘not acknowledge’ is returned. The master device generates all of
the serial clock pulses and the START and STOP conditions. A transfer is ended with
a STOP condition or with a repeated START condition. Since a repeated START
condition is also the beginning of the next serial transfer, the I2C-bus will not be
released.
The P89V660/662/664 device provides two byte-oriented I2C-bus interfaces. For
simplicity, the description in this text is written for the primary interface. However, unless
otherwise noted, the description applies to the secondary I2C-bus interface with
consideration given to the SFR’s addresses for the secondary interface. Please note that
the secondary I2C-bus interface uses quasi-bidirectional I/O pins instead of open-drain
pins. The interface has four operation modes: Master Transmitter mode, Master Receiver
mode, Slave Transmitter mode and Slave Receiver mode
The P89V660/662/664 CPU interfaces with the I2C-bus through four Special Function
Registers (SFRs): S1CON (primary I2C-bus Control Register), S1DAT (primary I2C-bus
Data Register), S1STA (primary I2C-bus Status Register), and the S1ADR (primary
I2C-bus Slave Address Register).
Fig 7.
I2C-bus configuration
OTHER DEVICE
WITH I2C-BUS
INTERFACE
SDA
SCL
Rpu
OTHER DEVICE
WITH I2C-BUS
INTERFACE
P1[7]/SDA
P1[6]/SCL
P89V660/662/664
I2C-bus
002aab911