Datasheet

ADP5588 Data Sheet
Rev. C | Page 22 of 28
Table 39. CMP_CONFG_SENS2Register 0x32 (Sensor 2 Comparator Configuration Register)
Field Bit Description
[7:6] Not used.
FILT (2-0) [5:3] Programs the number of consecutive measurements required to transition the L2 and L3 levels.
FI LT Number Required Approximate Time (sec)
000 1 0.08
001
2
0.16
010 4 0.32
011 8 0.64
100 16 1.28
101 32 2.56
110 64 5.12
111 128 10.24
FORCE_RD 2 1: Forces a read of the light sensor; reset by the internal state machine after conversion is complete and
L2_OUT and L3_OUT are valid.
1
L3_EN 1 1: Enables the L3 comparator for Sensor 2 input.
0: Disables the L3 comparator for Sensor 2 input.
L2_EN 0 1: Enables the L3 comparator for Sensor 2 input.
0: Disables the L3 comparator for Sensor 2 input.
Note that the L3 comparator has priority over the L2 comparator.
1
When the software forces a conversion, the state machine clears the forced bit after the conversion is complete and the proper registers have been updated.
Table 40. CMP1_LVL2_TRIPRegister 0x33 (L2 Light Sensor Reference Level (Output Falling for Sensor 1)
Field Bit Description
L2_T7 to L2_T0 [7:0] Sensor 1 comparator Level 2 (Office) reference. If the comparator input is below this trip point, the
comparator trips and enters Level 2 (office) mode and L2_OUT is set. The programmable range is from 0 μA
to 1000 μA (0 lux to 2550 lux) in steps of 4 μA.
Table 41. CMP1_LVL2_HYSRegister 0x34 (L2 Light Sensor Hysteresis (Active When Output Rising) for Sensor 1)
Field Bit Description
L2_H7 to L2_H0 [7:0] Sensor 1 comparator Level 2 (Office) hysteresis. If the comparator input is above L2_TRP + L2_HYS, the
comparator trips and enters Level 1 (outdoor) mode and L2_OUT is cleared. The programmable range is from
0 μA to 1000 μA (0 lux to 2550 lux) in steps of 4 μA.
Table 42. CMP1_LVL3_TRIPRegister 0x35 (L3 Light Sensor Reference Level (Output Falling for Sensor 1)
Field Bit Description
L3_T7 to L3_T0 [7:0] Sensor 1 comparator Level 3 (Dark) reference. If the comparator input is below L3_TRP, the comparator trips
and enters Level 3 (dark) mode and L3_OUT is set. The programmable range is from 0 μA to 127.5 μA (0 lux to
318.75 lux) in steps of 0.5 μA.
Table 43. CMP1_LVL3_HYSRegister 0x36 (L3 Light Sensor Hysteresis (Active When Output Rising) for Sensor 1)
Field Bit Description
L3_H [7:0] Sensor 1 comparator Level 3 (Dark) hysteresis. If the comparator input is above L3_TRP + L3_HYS, the
comparator trips and enters Level 2 (office) mode and L3_OUT is cleared. The programmable range is from
0 μA to 127.5 μA (0 lux to 318.75 lux) in steps of 0.5 μA.