
CAT9532
The Input Register 0 and Input Register 1 reflect the incoming logic levels of the I/O pins, regardless of whether the pin is
defined as an input or an output. These registers are read only ports. Writes to the input registers will be acknowledged but will
have no effect.
Table 7. INPUT REGISTER 0 AND INPUT REGISTER 1
INPUT0
LED 7
LED 6
LED 5
LED 4
LED 3
LED 2
LED 1
LED 0
bit
default
7
X
6
X
5
X
4
X
3
X
2
X
1
X
0
X
INPUT1
LED 15
LED 14
LED 13
LED 12
LED 11
LED 10
LED 9
LED 8
bit
default
7
X
6
X
5
X
4
X
3
X
2
X
1
X
0
X
The Frequency Prescaler 0 and Frequency Prescaler 1
registers (PSC0, PSC1) are used to program the period of the
pulse width modulated signals BLINK0 and BLINK1
respectively:
T_BLINK0 = (PSC0 + 1) / 152;
T_BLINK1 = (PSC1 + 1) / 152
Every LED driver output can be programmed to one of
four states, LED OFF, LED ON, LED blinks at BLINK0 rate
and LED blinks at BLINK1 rate using the LED Selector
Registers (Table 10).
Table 10. LED SELECTOR REGISTERS
LS0
Table 8. FREQUENCY PRESCALER 0 AND
FREQUENCY PRESCALER 1 REGISTERS
PSC0
bit 7 6 5 4 3 2 1 0
default 0 0 0 0 0 0 0 0
PSC1
bit 7 6 5 4 3 2 1 0
default 0 0 0 0 0 0 0 0
The PWM Register 0 and PWM Register 1 (PWM0,
PWM1) are used to program the duty cycle of BLINK0 and
BLINK1 respectively:
bit
default
LS1
bit
default
LS2
bit
LED 3
7 6
0 0
LED 7
7 6
0 0
LED 11
7 6
LED 2
5 4
0 0
LED 6
5 4
0 0
LED 10
5 4
LED 1
3 2
0 0
LED 5
3 2
0 0
LED 9
3 2
LED 0
1 0
0 0
LED 4
1 0
0 0
LED 8
1 0
Duty Cycle_BLINK0 = PWM0 / 256;
default
0
0
0
0
0
0
0
0
Duty Cycle_BLINK1 = PWM1 / 256
LS3
After writing to the PWM0/1 register an 8 ? bit internal
counter starts to count from 0 to 255. The outputs are low (LED
on) when the counter value is less than the value programmed
into PWM register. The LED is off when the counter value is
bit
default
LED 15
7 6
0 0
LED 14
5 4
0 0
LED 13
3 2
0 0
LED 12
1 0
0 0
higher than the value written into PWM register.
The LED output (LED0 to LED15) is set by the 2 bits
Table 9. PWM REGISTER 0 AND PWM REGISTER 1
PWM0
bit 7 6 5 4 3 2 1
0
value from the corresponding LSx Register (x = 0 to 3):
00 = LED Output set Hi ? Z (LED Off – Default)
01 = LED Output set LOW (LED On)
10 = LED Output blinks at BLINK0 Rate
default
1
0
0
0
0
0
0
0
11 = LED Output blinks at BLINK1 Rate
PWM1
bit
default
7
1
6
0
5
0
4
0
3
0
2
0
1
0
0
0
http://onsemi.com
8