|
CAT9532 Datasheet, PDF (12/18 Pages) ON Semiconductor – 16-bit Programmable LED Dimmer with I2C Interface | |||
|
◁ |
CAT9532
APPLICATION INFORMATION
Programming Example
The following programming sequence is an
example how to set:
â LED0 to LED3: ON
â LED4 to LED7: Dimming at 30% brightness;
Blink 1: 152Hz, duty cycle 30%
â LED8 to LED11: Blink at 2Hz with 50% duty
cycle (Blink 2)
â LED12 to LED15: OFF
Command Description
1 START
2 Send Slave address, A0-A2 = low
3 Command Byte: AI=â1â; PSC0 Addr
4
Set Blink 1 at 152Hz, T_Blink1 = 1/152
Write PSC0 = 0
5
Set PWM0 duty cycle to 30%
PWM0 / 256 = 0.3; Write PWM0=77
6
Set Blink 2 at 2Hz, T_Blink1 = 1/2
Write PSC1 = 75
7
Set PWM1 duty cycle to 50%
PWM1 / 256 = 0.5; Write PWM1=128
8 Write LS0: LED0 to LED3 = ON
9 Write LS1: LED4 to LED7 at Blink1
10 Write LS2: LED8 to LED11 at Blink2
11 Write LS3: LED12 to LED15 = OFF
12 STOP
I2C Data
C0h
12h
00h
4Dh
4Bh
80h
55h
AAh
FFh
00h
5V
5V
VCC
SDA
SCL
RESET
GND
I2C/SMBus MASTER
10k⦠(x 3)
VCC
LED0
SDA
LED1
LED2
SCL
LED3
LED4
RESET
LED5
LED6
LED7
CAT9532
LED8
LED9
A2
LED10
A1
LED11
A0
LED12
VSS
LED13
LED14
LED15
Note: LED0 to LED11 are used as LED drivers and LED12 to LED15 are used as regular GPIOs.
GPIOs
Figure 10. Typical Application
Doc. No. MD-9001 Rev. E
12
© 2010 SCILLC. All rights reserved
Characteristics subject to change without notice
|
▷ |