|
Application note from Kionix
This application note provides an example interface for a Kionix accelerometer with an example Bluetooth DIP Module. First, this application note talks about the hardware and software interface that is made between a C8051 microcontroller and the Kionix KXPB5 accelerometer.
Next, the hardware and software interface between the Bluetooth DIP Module and the microcontroller are discussed. Finally, there is also an attachment of all the AT Commands for the end user to be able to update the code in order to execute numerous functions of the Bluetooth DIP Module.
Hardware connections, schematics, timing diagrams and example code are provided in this application note as well. The applications of this interface include serial streaming of acceleration data to a PC for data logging.
Feature Description
Communication to the accelerometer sensor is established via SPI communication interface, and the accelerometer always operates as a slave device. SPI is a 4-wire synchronous serial interface that uses two control and two data lines. With respect to the Master (C8051), the Serial Clock output (SCLK), the Data Output (MOSI) and the Data Input (MISO) are shared among the Slave devices. The Master (C8051) generates an independent Chip Select (nCS) for each Slave device that goes low at the start of transmission and goes back high at the end.
The Slave Data Output (SDO) line, remains in a high-impedance (hi-z) state when the device is not selected (nCS = high), so it does not interfere with any active devices. This allows multiple Slave devices to share a master SPI port. Please refer to Figure 1 for the schematic.
For details, click http://www.kionix.com/viewer.html?url=/App-Notes/AN018.
accelerometer with an example Bluetooth DIP Module. First, this application note talks about the hardware and software interface that is made between a C8051 microcontroller and the Kionix KXPB5 accelerometer. Next, the hardware and software interface between the Bluetooth DIP Module and the microcontroller are discussed. Finally, there is also an attachment of all the AT Commands for the end user to be able to update the code in order to execute numerous functions of the Bluetooth DIP Module. Hardware connections, schematics, timing diagrams and example code are provided in this application note as well. The applications of this interface include serial streaming of acceleration data to a PC for data logging.
Feature Description
Communication to the accelerometer sensor is established via SPI communication interface, and the accelerometer always operates as a slave device. SPI is a 4-wire synchronous serial interface that uses two control and two data lines. With respect to the Master (C8051), the Serial Clock output (SCLK), the Data Output (MOSI) and the Data Input (MISO) are shared among the Slave devices. The Master (C8051) generates an independent Chip Select (nCS) for each Slave device that goes low at the start of transmission and goes back high at the end. The Slave Data Output (SDO) line, remains in a high-impedance (hi-z) state when the device is not selected (nCS = high), so it does not interfere with any active devices. This allows multiple Slave devices to share a master SPI port. Please refer to Figure 1 for the schematic. Copyright © Display Plus. All rights reserved. |