PCA9665_3 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 03 — 12 August 2008 13 of 90
NXP Semiconductors
PCA9665
Fm+ parallel bus to I
2
C-bus controller
7.3.2.3 The Clock Rate registers, I2CSCLL and I2CSCLH (indirect addresses 02h and 03h)
I2CSCLL and I2CSCLH are 8-bit read/write registers. They define the data rate for the
PCA9665 when used as a bus master. The actual frequency is determined by t
HIGH
(time
where SCL is HIGH), t
LOW
(time where SCL is LOW), t
r
(rise time), and t
f
(fall time) values.
t
HIGH
and t
LOW
are calculated based on the values that are programmed into I2CSCLH
and I2CSCLL registers and the internal oscillator frequency. t
r
and t
f
are
system/application dependent.
(1)
with T
osc
= internal oscillator period = 35 ns ± 5ns
Remark: The I2CMODE register needs to be programmed before programming the
I2CSCLL and I2CSCLH registers in order to know which I
2
C-bus mode is selected. See
Section 7.3.2.6 “The I
2
C-bus mode register, I2CMODE (indirect address 06h)” for more
detail.
Standard-mode is the default selected mode at power-up or after reset.
Table 17. I2CSCLL - Clock Rate Low register (indirect address 02h) bit allocation
7 6 5 4 3 2 1 0
L7 L6 L5 L4 L3 L2 L1 L0
Table 18. I2CSCLL - Clock Rate Low register (indirect address 02h) bit description
Bit Symbol Description
7:0 L[7:0] Eight bits defining the LOW state of SCL.
Table 19. I2CSCLH - Clock Rate High register (indirect address 03h) bit allocation
7 6 5 4 3 2 1 0
H7 H6 H5 H4 H3 H2 H1 H0
Table 20. I2CSCLH - Clock Rate High register (indirect address 03h) bit description
Bit Symbol Description
7:0 H[7:0] Eight bits defining the HIGH state of SCL.
f
SCL
1
T
osc
I2CSCLL I2CSCLH+()t
r
t
f
++
-----------------------------------------------------------------------------------------------
=
PCA9665_3 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 03 — 12 August 2008 14 of 90
NXP Semiconductors
PCA9665
Fm+ parallel bus to I
2
C-bus controller
7.3.2.4 The Time-out register, I2CTO (indirect address 04h)
I2CTO is an 8-bit read/write register. It is used to determine the maximum time that SCL is
allowed to be in a LOW logic state before the I
2
C-bus state machine is reset or the
PCA9665 initiates a forced action on the I
2
C-bus.
When the I
2
C-bus interface is operating, I2CTO is loaded in the time-out counter at every
LOW SCL transition.
The Time-out register can be used in the following cases:
When the bus controller, in the master mode, wants to send a START condition and
the SCL line is held LOW by some other device. Then the bus controller waits a time
period equivalent to the time-out value for the SCL to be released. In case it is not
released, the bus controller concludes that there is a bus error, loads 78h in the
I2CSTA register, generates an interrupt signal and releases the SCL and SDA lines.
After the microcontroller reads the status register, it needs to send a reset in order to
reset the bus controller.
In the master mode, the time-out feature starts every time the SCL goes LOW. If SCL
stays LOW for a time period equal to or greater than the time-out value, the bus
controller concludes there is a bus error and behaves in the manner described above.
When the I
2
C-bus interface is operating, I2CTO is loaded in the time-out counter at
every SCL transition. See Section 8.11 “Reset” for more information.
In case of a forced access to the I
2
C-bus. (See more details in Section 8.9.3 “Forced
access to the I
2
C-bus”.)
7.3.2.5 The Parallel Software Reset register, I2CPRESET (indirect address 05h)
I2CPRESET is an 8-bit write-only register. Programming the I2CPRESET register allows
the user to reset the PCA9665 under software control. The software reset is achieved by
writing two consecutive bytes to this register. The first byte must be A5h while the second
byte must be 5Ah. The writes must be consecutive and the values must match A5h and
5Ah. If this sequence is not followed as described, the reset is aborted.
Table 21. I2CTO - Time-out register (indirect register 04h) bit allocation
7 6 5 4 3 2 1 0
TE TO6 TO5 TO4 TO3 TO2 TO1 TO0
Table 22. I2CTO - Time-out register (indirect register 04h) bit description
Bit Symbol Description
7 TE Time-out enable/disable
TE = 1: Time-out function enabled
TE = 0: Time-out function disabled
6:0 TO[6:0] Time-out value. The time-out period = (I2CTO[6:0] + 1) × 143.36 µs.
The time-out value may vary some, and is an approximate value.
PCA9665_3 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 03 — 12 August 2008 15 of 90
NXP Semiconductors
PCA9665
Fm+ parallel bus to I
2
C-bus controller
7.3.2.6 The I
2
C-bus mode register, I2CMODE (indirect address 06h)
I2CMODE is an 8-bit read/write register. It contains the control bits that select the correct
timing parameters when the device is used in master mode (AC[1:0]). Timing parameters
involved with AC[1:0] are t
BUF
, t
HD;STA
, t
SU;STA
, t
SU;STO
, t
HIGH
, t
LOW
.
Remark: Change from an I
2
C-bus mode to a slower one (Fast-mode to Standard-mode,
for example) will cause the HIGH and LOW timings of SCL to be violated. It is then
required to program the I2CSCLL and I2CSCLH registers with values in accordance with
the selected mode.
[1] I2CSCLL and I2CSCLH values in the table also represents the minimum values that can be used for the
corresponding I
2
C-bus mode. Use of lower values will cause the minimum values to be loaded.
[2] Using the formula
Table 23. I2CMODE - I
2
C-bus Mode register (indirect address 06h) bit allocation
7 6 5 4 3 2 1 0
------AC1AC0
Table 24. I2CMODE - I
2
C-bus Mode register (indirect address 06h) bit description
Bit Symbol Description
7:2 - Reserved. When I2CMODE is read, zeroes are read. Must be written
with zeroes.
1:0 AC[1:0] I
2
C-bus mode selection to ensure proper timing parameters (see
Table 25 and Table 51).
AC[1:0] = 00: Standard-mode AC parameters selected.
AC[1:0] = 01: Fast-mode AC parameters selected.
AC[1:0] = 10: Fast-mode Plus AC parameters selected.
AC[1:0] = 11: Turbo mode. In this mode, the user is not limited to a
maximum frequency of 1 MHz.
Table 25. I
2
C-bus mode selection example
[1]
I2CSCLL
(hexadecimal)
I2CSCLH
(hexadecimal)
I
2
C-bus frequency
(kHz)
[2]
AC[1:0] Mode
9D 86 99.9 00 Standard
2C 14 396.8 01 Fast
11 09 952.3 10 Fast-mode Plus
0E 05 11 Turbo mode
f
SCL
1
T
osc
I2CSCLL I2CSCLH+()t
r
t
f
++
-----------------------------------------------------------------------------------------------
=

PCA9665N,112

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC CNTRLR PARALLEL/I2C 20-DIP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet