English
Language : 

LSM303AGR Datasheet, PDF (39/68 Pages) STMicroelectronics – ultra-low-power 3D accelerometer and 3D magnetometer
LSM303AGR
Digital interfaces
6.2.1
Accelerometer SPI write
Figure 11. Accelerometer SPI write protocol
The SPI Write command is performed with 16 clock pulses. A multiple byte write command
is performed by adding blocks of 8 clock pulses to the previous one.
bit 0: WRITE bit. The value is 0.
bit 1: MS bit. When O do not increment address, when 1 increment address in multiple
writing.
bit 2-7: address AD(5:0). This is the address field of the indexed register.
bit 8-15. data 01(7:0) {write mode). This is the data that is written inside the device (MSb
first).
bit 16-...: data Dl(...-8). Further data in multiple byte writes.
Figure 12. Accelerometer multiple byte SPI write protocol (2-byte example)
DocID027765 Rev 5
39/68
68