English
Language : 

CMA3000-D0X Datasheet, PDF (17/35 Pages) VTI technologies – 3-axis accelerometer
CMA3000-D0X Series
4 Serial Interfaces
Communication between the CMA3000 sensor and master controller is based on serial data
transfer and a dedicated interrupt line (INT-pin). Two different serial interfaces are available for the
CMA3000 sensor: SPI and I2C (Phillips specification V2.1). Selection between these two interfaces
is done using the chip select signal. The I2C interface can be also disabled by re-configuring
register content. The CMA3000 acts as a slave on both the SPI and I2C bus.
4.1 SPI Interface
SPI bus is a full duplex synchronous 4-wire serial interface. It consists of one master device and
one or more slave devices. The master is defined as a micro controller providing the SPI clock, and
the slave as any integrated circuit receiving the SPI clock from the master. The CMA3000 sensor
always operates as a slave device in master-slave operation mode. A typical SPI connection is
presented in Figure 6.
MASTER
MICROCONTROLLER
DATA OUT (MOSI)
DATA IN (MISO)
SERIAL CLOCK (SCK)
SS0
SS1
SS2
SS3
SLAVE
SI
SO
SCK
CS
SI
SO
SCK
CS
SI
SO
SCK
CS
SI
SO
SCK
CS
Figure 6. Typical SPI connection
The data transfer uses the following 4-wire interface:
MOSI
MISO
SCK
CSB
master out slave in
master in slave out
serial clock
chip select (low active)
µC → CMA3000
CMA3000 → µC
µC → CMA3000
µC → CMA3000
4.1.1 SPI frame format
CMA3000 SPI frame format and transfer protocol is presented in Figure 7.
CSB
SCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
MOSI
A5
A4
A3
A2 A1
A0 RB/W
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0
MISO
PORST
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
Figure 7. SPI frame format
Each communication frame contains 16 bits. The first 8 bits in MOSI line contains info about the
register address being accessed and the operation (read/write). The first 6 bits define the 6 bit
address for the selected operation, which is defined by bit 7 (‘0’ = read ‘1’ = write), which is
followed by one zero bit. The later 8 bits in the MOSI line contain data for a write operation and are
VTI Technologies Oy
www.vti.fi
Doc.Nr. 8281000.12
17/ 35
Rev. 0.12