Subsection 12.4.3 CTRL_REG4_A: Range and Resolution
The second register of the pair is
CTRL_REG4_A, at address 0x23, described in §8.9 (p. 49), Tables 41 and 42 (Figure 12.4.3). The two fields that matter for us are FS[1:0] (full scale), which selects the measurement range: ±2 g, ±4 g, ±8 g, or ±16 g, and HR (high resolution), which is the second half of the mode selection: LPen in CTRL_REG1_A and HR here together pick one of the three resolution modes. We want ±2 g, which is the range we assumed in every conversion we worked yesterday. The remaining fields, BDU (block data update), BLE (big/little endian data selection), the self-test bits, and SPI_ENABLE, which picks the 3-wire form of the SPI interface we are not using (the chip is on I2C because the breakout ties its chip-select pin high, not because of this bit), we leave at their default values, which Table 42 lists.
/ctrl_reg4_fields.png)
CTRL_REG4_A. FS[1:0] selects the full-scale range, and HR is half of the resolution-mode selection; the other fields stay at their defaults.How LPen and HR combine is in a different part of the datasheet: §4.2.1, Table 14 (p. 27), reproduced in Figure 12.4.4. Each mode row lists its data width and its sensitivity at ±2 g, and the last row is a disallowed combination. We want normal mode, the 10-bit row. Read off what LPen and HR must be for that row, then assemble your eight-bit
CTRL_REG4_A value the same way you assembled CTRL_REG1_A.
/accel_modes.png)
CTRL_REG1_A and the HR bit of CTRL_REG4_A together select the row, and each mode row lists its data width and its sensitivity at ±2 g in mg/digit.