English
Language : 

LSM330 Datasheet, PDF (37/75 Pages) STMicroelectronics – Power-down and sleep modes
LSM330
6.2.2 SPI write
Figure 18. SPI write protocol
Digital interfaces
Note:
CS
SPC
SDI
RW
D I7 D I6 D I5 D I4 DI3 DI2 DI1 DI0
MS AD5 AD 4 AD 3 AD2 AD 1 AD0
AM10132V1
Data on CS, SPC, SDI and SDO refer to pins: CS_A, CS_G, SCL_A/G, SDA_A/G, SDO_A /
SDO_G.
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 0, does not increment the address; when 1, increments the address in
multiple writes.
bit 2 -7: address AD(5:0). This is the address field of the indexed register.
bit 8-15: data DI(7:0) (Write mode). This is the data that will be written to the device (MSb
first).
bit 16-... : data DI(...-8). Further data in multiple-byte writes.
Figure 19. Multiple byte SPI write protocol (2-byte example)
CS
SPC
SDI
DI7 D I6 DI5 D I4 DI3 DI2 DI1 DI0 DI15 D I1 4DI13 D I1 2DI11 DI10 DI9 DI8
RW
MS AD5 AD4 AD3 AD2 AD1 AD 0
AM10133V1
DocID023426 Rev 3
37/75
75