English
Language : 

LSM330D Datasheet, PDF (36/66 Pages) STMicroelectronics – Low power mode
Digital interfaces
LSM330D
6.2.1
SPI read
Figure 15. SPI read protocol
CS
SPC
SDI
SDO
RW
MS AD5 AD4 AD3 AD2 AD1 AD0
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
AM10130V1
The SPI read command is performed with 16 clock pulses. A multiple-byte read command is
performed by adding blocks of 8 clock pulses to the previous one.
bit 0: READ bit. The value is 1.
bit 1: MS bit. When 0, do not increment address; when 1, increment address in multiple
reading.
bit 2-7: address AD(5:0). This is the address field of the indexed register.
bit 8-15: data DO(7:0) (Read mode). This is the data that will be read from the device (MSb
first).
bit 16-... : data DO(...-8). Further data in multiple-byte reading.
Figure 16. Multiple-byte SPI read protocol (2-byte example)
CS
SP C
SDI
SD O
RW
M S A D5 A D4 AD 3 A D2 A D1 A D0
DO 7 DO 6 DO 5 DO 4 DO 3 DO 2 DO 1 DO 0 DO 15 DO 14 DO 13 DO 12 DO 11 DO 10 D O9 D O8
AM10131V1
36/66
Doc ID 022562 Rev 2