PCA9530_3 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 03 — 26 February 2009 6 of 24
NXP Semiconductors
PCA9530
2-bit I
2
C-bus LED dimmer
6.3.5 PWM1 - Pulse Width Modulation 1
The PWM1 register determines the duty cycle of BLINK1. The outputs are LOW (LED on)
when the count is less than the value in PWM1 and HIGH (LED off) when it is greater.
If PWM1 is programmed with 00h, then the PWM1 output is always HIGH (LED off).
The duty cycle of BLINK1 = PWM1 / 256.
6.3.6 LS0 - LED selector
The LS0 LED select register determines the source of the LED data.
00 = output is set high-impedance (LED off; default)
01 = output is set LOW (LED on)
10 = output blinks at PWM0 rate
11 = output blinks at PWM1 rate
6.4 Pins used as GPIOs
LEDn pins not used to control LEDs can be used as General Purpose I/Os (GPIOs).
For use as input, set LEDn to high-impedance (00) and then read the pin state via the
INPUT register.
For use as output, connect external pull-up resistor to the pin and size it according to the
DC recommended operating characteristics. LEDn output pin is HIGH when the output is
programmed as high-impedance, and LOW when the output is programmed LOW through
the ‘LED selector’ register LS0. The output can be pulse-width controlled when PWM0 or
PWM1 are used.
6.5 Power-on reset
When power is applied to V
DD
, an internal Power-On Reset (POR) holds the PCA9530 in
a reset condition until V
DD
has reached V
POR
. At that point, the reset condition is released
and the PCA9530 registers are initialized to their default states, all the outputs in the
OFF state. Thereafter, V
DD
must be lowered below 0.2 V to reset the device.
Table 8. PWM1 - Pulse Width Modulation 1 register description
Bit 7 6 5 4 3 2 1 0
Symbol PWM1
[7]
PWM1
[6]
PWM1
[5]
PWM1
[4]
PWM1
[3]
PWM1
[2]
PWM1
[1]
PWM1
[0]
Default 10000000
Table 9. LS0 - LED selector register bit description
Legend: * default value.
Register Bit Value Description
LS0 7:4 1111* reserved
3:2 00* LED1 selected
1:0 00* LED0 selected