HT46RU25 Holtek Semiconductor Inc., HT46RU25 Datasheet - Page 31

no-image

HT46RU25

Manufacturer Part Number
HT46RU25
Description
Ht46ru25/ht46cu25 -- A/d Type 8-bit Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT46RU25
Manufacturer:
HOLTEK/合泰
Quantity:
20 000
Start Signal
The START signal is generated only by the master de-
vice. The other device in the bus must detect the START
signal to set the I
nal is SDA line from high to low, when SCL is high.
Slave Address
The master must select a device for transferring the
data by sending the slave device address after the
START signal. All device in the I
I
slave address (7 bits). If the slave address is matched,
the slave device will generate an interrupt and save the
subsequent bit (8th bit) to the SRW bit and sends an ac-
knowledge bit (low level) to the 9th bit. The slave device
also sets the status flag (HAAS), when the slave ad-
dress is matched.
In interrupt subroutine, check the HAAS bit to know
whether the I
dress that is matched or a data byte transfer is com-
pleted. When the slave address is matched, the device
must be in transmit mode or receive mode and write
data to HDR or dummy read from HDR to release the
SCL line.
SRW Bit
The SRW bit means that the master device wants to
read from or write to the I
check this bit to understand itself if it is a transmitter or a
receiver. The SRW bit is set to 1 means that the mas-
ter wants to read data from the I
vice must write data to a bus as a transmitter. The SRW
is cleared to 0 means that the master wants to write
data to the I
from the I
Rev. 1.30
2
C Bus slave address (7 bits) to compare with its own
2
C Bus as a receiver.
2
C Bus, so the slave device must read data
2
C Bus interrupt comes from a slave ad-
2
C Bus busy bit (HBB). The START sig-
Start Bit
2
C Bus. The slave device
2
C Bus, so the slave de-
2
C Bus will receive the
31
Acknowledge Bit
One of the slave device generates an acknowledge signal,
when the slave address is matched. The master device
can check this acknowledge bit to know if the slave device
accepts the calling address. If no acknowledge bit, the
master must send a STOP bit and end the communication.
When the I
means the address is matched, so the slave must check
the SRW as a transmitter (set HTX) to 1 or as a re-
ceiver (clear HTX) to 0 .
Data Byte
The data is 8 bits and is sent after the slave device has
acknowledged the slave address. The first bit is MSB
and the 8th bit is LSB. The receiver sends the acknowl-
edge signal ( 0 ) and continues to receive the next one
byte data. If the transmitter checks and there s no ac-
knowledge signal, then it release the SDA line, and the
master sends a STOP signal to release the I
data is stored in the HDR register. The transmitter must
write data to the HDR before transmitting data and the
receiver must read data from the HDR after receiving
data.
Receive Acknowledge Bit
When the receiver wants to continue to receive the next
data byte, it generates an acknowledge bit (TXAK) at
the 9th clock. The transmitter checks the acknowledge
bit (RXAK) to continue to write data to the I
change to receive mode and a dummy reads the HDR
register to release the SDA line and the master sends
the STOP signal.
2
C Bus status register bit 6 HAAS is high, it
Data Timing Diagram
HT46RU25/HT46CU25
Stop Bit
March 9, 2007
2
C Bus. The
2
C Bus or

Related parts for HT46RU25