English
Language : 

LSM303DLHC Datasheet, PDF (20/43 Pages) STMicroelectronics – Ultra compact high performance e-compass 3D accelerometer and 3D magnetometer module
Digital interfaces
LSM303DLHC
5.1.2
Linear acceleration digital interface
For linear acceleration the default (factory) 7-bit slave address is 0011001b.
The slave address is completed with a Read/Write bit. If the bit is ‘1’ (read), a repeated
START (SR) condition must be issued after the two sub-address bytes; if the bit is ‘0’ (write)
the master transmits to the slave with the direction unchanged. Table 14 explains how the
ead/write bit pattern is composed, listing all the possible configurations.
Table 14. SAD+Read/Write patterns
Command
SAD[7:1]
Read
0011001
Write
0011001
R/W
SAD+R/W
1
00110011 (33h)
0
00110010 (32h)
In order to read multiple bytes, it is necessary to assert the most significant bit of the sub-
address field. In other words, SUB(7) must be equal to 1 while SUB(6-0) represents the
address of the first register to be read.
In the presented communication format, MAK is master acknowledge and NMAK is no
master acknowledge.
Table 15.
Master
Slave
Transfer when master is receiving (reading) multiple bytes of data from slave
SAD
ST
+W
SUB
SAD
SR
+R
MAK
MAK
NMAK SP
SAK
SAK
SAK DATA
DATA
DATA
20/42
Doc ID 018771 Rev 1