CAT9552
http://onsemi.com
7
Acknowledge
After a successful data transfer, each receiving device is
required to generate an acknowledge. The acknowledging
device pulls down the SDA line during the ninth clock cycle,
signaling that it received the 8 bits of data. The SDA line
remains stable LOW during the HIGH period of the
acknowledge related clock pulse (Figure 7).
The CAT9552 responds with an acknowledge after
receiving a START condition and its slave address. If the
device has been selected along with a write operation, it
responds with an acknowledge after receiving each 8ï bit
byte.
When the CAT9552 begins a READ mode it transmits 8
bits of data, releases the SDA line, and monitors the line for
an acknowledge. Once it receives this acknowledge, the
CAT9552 will continue to transmit data. If no acknowledge
is sent by the Master, the device terminates data transmission
and waits for a STOP condition. The master must then issue
a stop condition to return the CAT9552 to the standby power
mode and place the device in a known state.
Registers and Bus Transactions
After the successful acknowledgement of the slave
address, the bus master will send a command byte to the
CAT9552 which will be stored in the Control Register. The
format of the Control Register is shown in Figure 8.
The Control Register acts as a pointer to determine which
register will be written or read. The four least significant
bits, B0, B1, B2, B3, are used to select which internal
register is accessed, according to the Table 6.
If the auto increment flag is set (AI = 1), the four least
significant bits of the Control Register are automatically
incremented after a read or write operation. This allows the
user to access the CAT9552 internal registers sequentially.
The content of these bits will rollover to “0000” after the last
register is accessed.
Table 6. INTERNAL REGISTERS SELECTION
B3 B2 B1 B0 Register Name Type Register Function
0 0 0 0 INPUT0 READ Input Register 0
0 0 0 1 INPUT1 READ Input Register 1
0 0 1 0 PSC0 READ/WRITE Frequency Prescaler 0
0 0 1 1 PWM0 READ/WRITE PWM Register 0
0 1 0 0 PSC1 READ/WRITE Frequency Prescaler 1
0 1 0 1 PWM1 READ/WRITE PWM Register 1
0 1 1 0 LS0 READ/WRITE LED 0ï3 Selector
0 1 1 1 LS1 READ/WRITE LED 4ï7 Selector
1 0 0 0 LS2 READ/WRITE LED 8ï11 Selector
1 0 0 1 LS3 READ/WRITE LED 12ï15 Selector
Figure 7. Acknowledge Timing
ACKNOWLEDGE
1
START
SCL FROM
MASTER
89
DATA OUTPUT
FROM TRANSMITTER
DATA OUTPUT
FROM RECEIVER
Figure 8. Control Register
000AIB3 B2 B1 B0
AUTOïINCREMENT FLAG
RESET STATE: 00h
REGISTER ADDRESS