8.3 Initialization Set Up
After device power up, apply device reset by applying an active-low pulse of duration > 30 µs.
Write the following registers to set the device running in required condition.
- Write the NUM_SUB_FRAMES and NUM_AVG_SUB_FRAMES registers to set the device to operate at the required sample rate.
- Select the maximum ambient current to be supported by writing IAMB_MAX_SEL.
- Enable adaptive HDR mode if required: EN_ADAPTIVE_HDR.
- Write illumination DAC currents ILLUM_DAC_L_TX0 and ILLUM_DAC_H_TX0.
- Program the adaptive HDR thresholds: HDR_THR_LOW and HDR_THR_HIGH.
- Load all the calibration settings: illumination crosstalk, phase offset, phase temperature coefficient, and phase ambient coefficient.
- Enable frequency calibration if an external reference CLK is connected to GP2: EN_AUTO_FREQ_COUNT = 1, EN_FLOOP = 1, EN_FREQ_CORR = 1, SYS_CLK_DIVIDER = round(log2(40×106 / fEXT)), REF_COUNT_LIMIT = 214 × (40×106 / 2SYS_CLK_DIV) / fEXT, EN_CONT_FCALIB = 1
- Enable on-chip temperature conversion: EN_TEMP_CONV = 1
- Write I2C host settings to read the external temperature sensor if it is present in the system. Register settings are listed in Table 26.
- Enable the timing generator by setting TG_EN = 1
- Perform internal crosstalk correction by making INT_XTALK_CALIB = 1, followed by INT_XTALK_CALIB = 0.