I
2
C Bus Slave Address Acknowledge Signal
After the master has transmitted a calling address, any slave device on the I
2
C bus, whose own internal
address matches the calling address, must generate an acknowledge signal. The acknowledge signal
will inform the master that a slave device has accepted its calling address. If no acknowledge signal is
received by the master then a STOP signal must be transmitted by the master to end the
communication. When the HAAS flag is high, the addresses have matched and the slave device must
check the SRW flag to determine if it is to be a transmitter or a receiver. If the SRW flag is high, the
slave device should be setup to be a transmitter so the HTX bit in the SIMC1 register should be set to
²
1
²
. If the SRW flag is low, then the microcontroller slave device should be setup as a receiver and the
HTX bit in the SIMC1 register should be set to
²
0
²
.
I
2
C Bus Data and Acknowledge Signal
The transmitted data is 8-bits wide and is transmitted after the slave device has acknowledged receipt
of its slave address. The order of serial bit transmission is the MSB first and the LSB last. After receipt
of 8-bits of data, the receiver must transmit an acknowledge signal, level
²
0
²
, before it can receive the
next data byte. If the slave transmitter does not receive an acknowledge bit signal from the master
receiver, then the slave transmitter will release the SDA line to allow the master to send a STOP signal
to release the I
2
C Bus. The corresponding data will be stored in the SIMD register. If setup as a
transmitter, the slave device must first write the data to be transmitted into the SIMD register. If setup
as a receiver, the slave device must read the transmitted data from the SIMD register.
When the slave receiver receives the data byte, it must generate an acknowledge bit, known as TXAK,
on the 9th clock. The slave device, which is setup as a transmitter will check the RXAK bit in the
SIMC1 register to determine if it is to send another data byte, if not then it will release the SDA line and
await the receipt of a STOP signal from the master.
Rev. 1.50
94
April 28, 2020
BS83B08-3/B12-3/B16-3/B16G-3/C24-3
8-Bit Touch Key Flash MCU
S t a r t
H A A S = 1
?
H T X = 1
?
S R W = 1
?
Y e s
N o
Y e s
N o
R X A K = 1
?
Y e s
N o
N o
R e a d f r o m
S I M D t o r e l e a s e
S C L l i n e
R E T I
Y e s
D u m m y r e a d f r o m
S I M D t o r e l e a s e
S C L L i n e
R E T I
R E T I
W r i t e d a t a t o S I M D
r e l e a s e S C L L i n e
S E T H T X
W r i t e d a t a t o S I M D
t o r e l e a s e S C L L i n e
R E T I
C L R H T X
C L R T X A K
D u m m y r e a d f r o m
S I M D t o r e l e a s e
S C L L i n e
C L R H T X
C L R T X A K
R E T I
I
2
C Bus ISR Flow Chart