English
Language : 

LSM320HAY30 Datasheet, PDF (25/42 Pages) STMicroelectronics – MEMS motion sensor module: 3D digital accelerometer and 2D pitch and yaw analog gyroscope
LSM320HAY30
Digital interfaces
Figure 9. Multiple byte SPI write protocol (2 byte example)
CS
SPC
SDI
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8
RW
MS AD5 AD4 AD3 AD2 AD1 AD0
6.2.3
SPI read in 3-wires mode
3-wires mode is entered by setting to ‘1’ bit SIM (SPI serial interface mode selection) in
LA_CTRL_REG4.
Figure 10. SPI read protocol in 3-wires mode
CS
SPC
SDI/O
RW
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
MS AD5 AD4 AD3 AD2 AD1 AD0
The SPI Read command is performed with 16 clock pulses:
bit 0: READ bit. The value is 1.
bit 1: MS bit. When 0, do not increment the address. When 1, increment the 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 is read from the device (MSb first).
Multiple read command is also available in 3-wires mode.
Doc ID 16917 Rev 1
25/42