± 2g Tri-axis Digital Accelerometer
Specifications
PART NUMBER:
KXTE9-1026
Rev. 3
Nov-2009
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
091104-02
Page 8 of 26
KXTE9 Digital Interface
The Kionix KXTE9 digital accelerometer has the ability to communicate over an I
2
C digital serial interface
bus. This flexibility eases system integration by eliminating analog-to-digital converter requirements and by
providing direct communication with system micro-controllers.
The serial interface terms and descriptions indicated in Table 6 below will be observed throughout this
document.
Term Description
Transmitter The device that transmits data to the bus.
Receiver The device that receives data from the bus.
Master The device that initiates a transfer, generates clock signals and terminates a transfer.
Slave The device addressed by the Master.
Table 6. Serial Interface Terminologies
I
2
C Serial Interface
The KXTE9 has the ability to communicate on an I
2
C bus. I
2
C is primarily used for synchronous serial
communication between a Master device and one or more Slave devices. The Master, typically a micro
controller, provides the serial clock signal and addresses Slave devices on the bus. The KXTE9 always
operates as a Slave device during standard Master-Slave I
2
C operation.
I
2
C is a two-wire serial interface that contains a Serial Clock (SCL) line and a Serial Data (SDA) line. SCL
is a serial clock that is provided by the Master, but can be held low by any Slave device, putting the Master
into a wait condition. SDA is a bi-directional line used to transmit and receive data to and from the
interface. Data is transmitted MSB (Most Significant Bit) first in 8-bit per byte format, and the number of
bytes transmitted per transfer is unlimited. The I
2
C bus is considered free when both lines are high.
I
2
C Operation
Transactions on the I
2
C bus begin after the Master transmits a start condition (S), which is defined as a
high-to-low transition on the data line while the SCL line is held high. The bus is considered busy after this
condition. The next byte of data transmitted after the start condition contains the Slave Address (SAD) in
the seven MSBs (Most Significant Bits), and the LSB (Least Significant Bit) tells whether the Master will be
receiving data ‘1’ from the Slave or transmitting data ‘0’ to the Slave. When a Slave Address is sent, each
device on the bus compares the seven MSBs with its internally-stored address. If they match, the device
considers itself addressed by the Master. The Slave Address associated with the KXTE9 is 0001111.
It is mandatory that receiving devices acknowledge (ACK) each transaction. Therefore, the transmitter
must release the SDA line during this ACK pulse. The receiver then pulls the data line low so that it
remains stable low during the high period of the ACK clock pulse. A receiver that has been addressed,
whether it is Master or Slave, is obliged to generate an ACK after each byte of data has been received. To