BS85B12-3 HOLTEK [Holtek Semiconductor Inc], BS85B12-3 Datasheet - Page 129

no-image

BS85B12-3

Manufacturer Part Number
BS85B12-3
Description
Touch Key Flash Type 8-Bit MCU with LCD/LED Driver
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
BS85B12-3/BS85C20-3
Touch Key Flash MCU with LCD/LED Driver
Note:
Rev. 1.00
* When a slave address is matched, the device must be placed in either the transmit mode and then write data
to the SIMD register, or in the receive mode where it must implement a dummy read from the SIMD register to
release the SCL line.
Slave Address
I
2
C Bus Read/Write Signal
The transmission of a START signal by the master will be detected by all devices on the I
determine which slave device the master wishes to communicate with, the address of the slave device
will be sent out immediately following the START signal. All slave devices, after receiving this 7-bit
address data, will compare it with their own 7-bit slave address. If the address sent out by the master
matches the internal address of the microcontroller slave device, then an internal I
signal will be generated. The next bit following the address, which is the 8th bit, defines the read/write
status and will be saved to the SRW bit of the SIMC1 register. The slave device will then transmit an
acknowledge bit, which is a low level, as the 9th bit. The slave device will also set the status flag
HAAS when the addresses match.
As an I
the HAAS bit should be examined to see whether the interrupt source has come from a matching slave
address or from the completion of a data byte transfer. When a slave address is matched, the device
must be placed in either the transmit mode and then write data to the SIMD register, or in the receive
mode where it must implement a dummy read from the SIMD register to release the SCL line.
The SRW bit in the SIMC1 register defines whether the slave device wishes to read data from the I
bus or write data to the I
transmitter or a receiver. If the SRW flag is 1 then this indicates that the master device wishes to read
data from the I
transmitter. If the SRW flag is 0 then this indicates that the master wishes to send data to the I
therefore the slave device must be setup to read data from the I
2
C bus interrupt can come from two sources, when the program enters the interrupt subroutine,
2
C bus, therefore the slave device must be setup to send data to the I
I
2
C Communication Timing Diagram
2
C bus. The slave device should examine this bit to determine if it is to be a
123
2
C bus as a receiver.
February 1, 2011
2
C bus interrupt
2
C bus as a
2
C bus. To
2
C bus,
2
C

Related parts for BS85B12-3