English
Language : 

BS82B12A-3 Datasheet, PDF (112/170 Pages) Holtek Semiconductor Inc – Touch Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Flash MCU with LED/LCD Driver
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
IICHBB: I2C Bus busy flag
0: I2C Bus is not busy
1: I2C Bus is busy
The IICHBB flag is the I2C busy flag. This flag will be "1" when the I2C bus is busy
which will occur when a START signal is detected. The flag will be set to "0" when
the bus is free which will occur when a STOP signal is detected.
IICHTX: Select I2C slave device is transmitter or receiver
0: Slave device is the receiver
1: Slave device is the transmitter
IICTXAK: I2C Bus transmit acknowledge flag
0: Slave send acknowledge flag
1: Slave do not send acknowledge flag
The IICTXAK bit is the transmit acknowledge flag. After the slave device receipt of
8-bits of data, this bit will be transmitted to the bus on the 9th clock from the slave
device. The slave device must always clear the IICTXAK bit to zero before further
data is received.
IICSRW: I2C Slave Read/Write flag
0: Slave device should be in receive mode
1: Slave device should be in transmit mode
The IICSRW flag is the I2C Slave Read/Write flag. This flag determines whether
the master device wishes to transmit or receive data from the I2C bus. When the
transmitted address and slave address is match, that is when the IICHAAS flag is set
high, the slave device will check the IICSRW flag to determine whether it should be
in transmit mode or receive mode. If the IICSRW flag is high, the master is requesting
to read data from the bus, so the slave device should be in transmit mode. When the
IICSRW flag is zero, the master will write data to the bus, therefore the slave device
should be in receive mode to read this data.
IICAMWU: I2C Address Match Control
0: Disable
1: Enable – must be cleared by the application program after wake-up.
This Bit should be set to “1” to enable the I2C address match wake up from the SLEEP
or IDLE Mode. If the IAMWU Bit has been set before entering either the SLEEP or
IDLE mode to enable the I2C address match wake up, then this Bit must be cleared by
application program after wake-up to ensure correction device operation.
IICRXAK: I2C Bus Receive acknowledge flag
0: Slave receive acknowledge flag
1: Slave do not receive acknowledge flag
The IICRXAK flag is the receiver acknowledge flag. When the IICRXAK flag is "0",
it means that a acknowledge signal has been received at the 9th clock, after 8 bits of
data have been transmitted. When the slave device in the transmit mode, the slave
device checks the IICRXAK flag to determine if the master receiver wishes to receive
the next byte. The slave transmitter will therefore continue sending out data until the
IICRXAK flag is "1". When this occurs, the slave transmitter will release the SDA line
to allow the master to send a STOP signal to release the I2C Bus.
Rev. 1.60
112
December 15, 2016