Procedure:
LDC1000
- Set Rp_MIN to 0x3F, Rp_MAX to 0x00.
- closest target position.
- Start reducing RP_MIN setting one code at a time.
- When RP gets in the range of 20,000–30,000 codes, it is the optimal RP_MIN setting.
- farthest position
- Start increasing RP_MAX setting one code at a time,When RP gets in the range of 2,000–3,000 codes, or the difference between RP_MIN and RP_MAX values reaches 25x to 26x, that is the optimal RP_MAX setting
LDC1612 - Set target at the maximum planned operating distance from the sensor
- Place the device into SLEEP mode by setting CONFIG.SLEEP_MODE_EN to b1.
- Program the desired values of SETTLECOUNT and RCOUNT values for the channel.
- Enable auto-calibration by setting RP_OVERRIDE_EN to b0.
- Take the device out of SLEEP mode by setting CONFIG.SLEEP_MODE_EN to b0.
- Allow the device to perform at least one measurement, with the target stable (fixed) at the maximum
operating range. - Read the channel current drive value from the appropriate DRIVE_CURRENT_CHx register
(addresses 0x1e, 0x1f, 0x20, or 0x21), in the CHx_INIT_DRIVE field (bits 10:6). Save this value. - During startup for normal operating mode, write the value saved from the CHx_INIT_DRIVE bit field
into the CHx_IDRIVE bit field (bits 15:11). - During normal operating mode, the RP_OVERRIDE_EN must set to b1 to force the fixed current drive.