English
Language : 

LSM303AH Datasheet, PDF (45/82 Pages) –
LSM303AH
Digital interfaces
6.2.1
Accelerometer SPI write
Figure 15. Accelerometer SPI write protocol
&6
63&
6',
5:
', ', ', ', ', ', ', ',
$' $' $' $' $' $' $'
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 -7: address AD(6:0). This is the address field of the indexed register.
bit 8-15: data DI(7:0) (write mode). This is the data that is written inside the device (MSb
first).
bit 16-... : data DI(...-8). Additional data in multiple byte writes.
The accelerometer address auto increment is enabled by default (volatile bit IF_ADD_INC in
CTRL2_A (21h) must be set to ‘0’ to disable).
Figure 16. Accelerometer multiple byte SPI write protocol (2-byte example)
&6
63&
6',
', ', ', ', ', ', ', ', ', ', ', ', ', ', ', ',
5:
$' $' $' $' $' $' $'
DocID027766 Rev 6
45/82
82