PCA9685 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2015. All rights reserved.
Product data sheet Rev. 4 — 16 April 2015 28 of 52
NXP Semiconductors
PCA9685
16-channel, 12-bit PWM Fm+ I
2
C-bus LED controller
7.6 Software reset
The Software Reset Call (SWRST Call) allows all the devices in the I
2
C-bus to be reset to
the power-up state value through a specific formatted I
2
C-bus command. To be performed
correctly, it implies that the I
2
C-bus is functional and that there is no device hanging the
bus.
The SWRST Call function is defined as the following:
1. A START command is sent by the I
2
C-bus master.
2. The reserved SWRST I
2
C-bus address ‘0000 000’ with the R/W bit set to ‘0’ (write) is
sent by the I
2
C-bus master.
3. The PCA9685 device(s) acknowledge(s) after seeing the General Call address
‘0000 0000’ (00h) only. If the R/W
bit is set to ‘1’ (read), no acknowledge is returned to
the I
2
C-bus master.
4. Once the General Call address has been sent and acknowledged, the master sends
1 byte with 1 specific value (SWRST data byte 1):
a. Byte 1 = 06h: the PCA9685 acknowledges this value only. If byte 1 is not equal to
06h, the PCA9685 does not acknowledge it.
If more than 1 byte of data is sent, the PCA9685 does not acknowledge any more.
5. Once the correct byte (SWRST data byte 1) has been sent and correctly
acknowledged, the master sends a STOP command to end the SWRST Call: the
PCA9685 then resets to the default value (power-up value) and is ready to be
addressed again within the specified bus free time (t
BUF
).
The I
2
C-bus master must interpret a non-acknowledge from the PCA9685 (at any time) as
a ‘SWRST Call Abort’. The PCA9685 does not initiate a reset of its registers. This
happens only when the format of the SWRST Call sequence is not correct.
Fig 12. SWRST Call
0 0 0 0 0 0 0 AS 0
General Call address
START condition acknowledge
from slave
002aac900
SWRST data byte 1
A
acknowledge
from slave
P
STOP
condition
00001100
PCA9685 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2015. All rights reserved.
Product data sheet Rev. 4 — 16 April 2015 29 of 52
NXP Semiconductors
PCA9685
16-channel, 12-bit PWM Fm+ I
2
C-bus LED controller
7.7 Using the PCA9685 with and without external drivers
The PCA9685 LED output drivers are 5.5 V only tolerant and can sink up to 25 mA at 5 V.
If the device needs to drive LEDs to a higher voltage and/or higher current, use of an
external driver is required.
INVRT bit (MODE2 register) can be used to keep the LED PWM control firmware the
same independently of the type of external driver. This bit allows LED output polarity
inversion/non-inversion only when OE
=0.
OUTDRV bit (MODE2 register) allows minimizing the amount of external components
required to control the external driver (N-type or P-type device).
[1] When OE = 1, LED output state is controlled only by OUTNE[1:0] bits (MODE2 register).
[2] Correct configuration when LEDs directly connected to the LEDn outputs (connection to V
DD
through current limiting resistor).
[3] Optimum configuration when external N-type (NPN, NMOS) driver used.
[4] Optimum configuration when external P-type (PNP, PMOS) driver used.
Table 12. Use of INVRT and OUTDRV based on connection to the LEDn outputs when OE =0
[1]
INVRT OUTDRV Direct connection to LEDn External N-type driver External P-type driver
Firmware External
pull-up
resistor
Firmware External
pull-up
resistor
Firmware External
pull-up
resistor
0 0 formulas and LED
output state values
inverted
LED current
limiting R
[2]
formulas and LED
output state
values inverted
required formulas and LED
output state values
apply
required
0 1 formulas and LED
output state values
inverted
LED current
limiting R
[2]
formulas and LED
output state
values apply
[3]
not
required
[3]
formulas and LED
output state values
inverted
not required
1 0 formulas and LED
output state values
apply
[2]
LED current
limiting R
formulas and LED
output state
values apply
required formulas and LED
output state values
inverted
required
1 1 formulas and LED
output state values
apply
[2]
LED current
limiting R
formulas and LED
output state
values inverted
not required formulas and LED
output state values
apply
[4]
not
required
[4]
INVRT = 0
OUTDRV = 1
INVRT = 1
OUTDRV = 1
INVRT = 1
OUTDRV = 0
Fig 13. External N-type driver Fig 14. External P-type driver Fig 15. Direct LED connection
LED0
+5 V
002aad169
LED0
+5 V
002aad170
LED0 +V
DD
002aad171
PCA9685 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2015. All rights reserved.
Product data sheet Rev. 4 — 16 April 2015 30 of 52
NXP Semiconductors
PCA9685
16-channel, 12-bit PWM Fm+ I
2
C-bus LED controller
8. Characteristics of the I
2
C-bus
The I
2
C-bus is for 2-way, 2-line communication between different ICs or modules. The two
lines are a serial data line (SDA) and a serial clock line (SCL). Both lines must be
connected to a positive supply via a pull-up resistor when connected to the output stages
of a device. Data transfer may be initiated only when the bus is not busy.
8.1 Bit transfer
One data bit is transferred during each clock pulse. The data on the SDA line must remain
stable during the HIGH period of the clock pulse as changes in the data line at this time
will be interpreted as control signals (see Figure 16
).
8.1.1 START and STOP conditions
Both data and clock lines remain HIGH when the bus is not busy. A HIGH-to-LOW
transition of the data line while the clock is HIGH is defined as the START condition (S). A
LOW-to-HIGH transition of the data line while the clock is HIGH is defined as the STOP
condition (P) (see Figure 17
).
8.2 System configuration
A device generating a message is a ‘transmitter’; a device receiving is the ‘receiver’. The
device that controls the message is the ‘master’ and the devices which are controlled by
the master are the ‘slaves’ (see Figure 18
).
Fig 16. Bit transfer
mba607
data line
stable;
data valid
change
of data
allowed
SDA
SCL
Fig 17. Definition of START and STOP conditions
mba608
SDA
SCL
P
STOP condition
S
START condition

PCA9685BS,118

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
LED Display Drivers 16-CH 12-BIT PWM FM+ I2C-BUS LED CTRL
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union