KT0803K
I2C Compatible 2-Wire Serial Interface
General Descriptions
The serial interface consists of a serial controller and registers. An internal address decoder transfers the
content of the data into appropriate registers. Please note that the I2C address is 0x 0111110 the same as
in KT0803. Neither software nor hardware change is needed if KT0803K is used to replace KT0803.
Both the write and read operations are supported according to the following protocol:
Write Operations:
BYTE WRITE:
The write operation is accomplished via a 3-byte sequence:
Serial address with write command
Register address
Register data
A write operation requires an 8-bit register address following the device address word and acknowledgment.
Upon receipt of this address, the KT0803K will again respond with a “0” and then clock in the 8-bit
register data. Following receipt of the 8-bit register data, the KT0803K will output a “0” and the addressing
device, such as a microcontroller, must terminate the write sequence with a stop condition (see Figure 3).
Read Operations:
RANDOM READ:
The read operation is accomplished via a 4-byte sequence:
Serial address with write command
Register address
Serial address with read command
Register data
Once the device address and register address are clocked in and acknowledged by the KT0803K, the
microcontroller must generate another start condition. The microcontroller now initiates a current address
read by sending a device address with the read/write select bit high. The KT0803K acknowledges the
device address and serially clocks out the register data. The microcontroller does not respond with a “0” but
does generate a following stop condition (see Figure 3).
RANDOM REGISTER WRITE PROCEDURE
S 0 1 1 1 1 1 0 W A
A
A P
7 bit address
register address
Acknowledge
data
Acknowledge
STOP condition
Acknowledge
START condition
WRITE command
RANDOM REGISTER READ PROCEDURE
S 0 1 1 1 1 1 0 W A
A S 0 1 1 1 1 1 0 R A
7 bit address
A P
7 bit address
register address
Acknowledge
data
Acknowledge
Acknowledge
READ condition
START condition
WRITE command
NO Acknowledge
STOP condition
Figure 3: Serial Interface Protocol
CURRENT ADDRESS READ: The internal data register address counter maintains the last address
DS-1896P-03 070604
深圳市圣邦达电子有限公司
联系人:邓 生 13798386757 QQ:278815928 E-MAIL:dengwangs@163.com
MSN:dengwangs@hotmail.com 网址:www.sbdsemi.com
传真:068-0755-61351350
4
本资料来源来自互联网,一切版权归属原设计公司,如有与法律相抵触之处,请及时联系我们,我们会及时修改更正