Data Sheet ADP5588
Rev. C | Page 21 of 28
COMPARATOR REGISTER DESCRIPTIONS
Table 37. CMP_CFG_STAT—Register 0x30 (Comparator Configuration and Status Register)
Field Bit Description
CMP2_L3_OUT 7
Sensor 2 Comparator L3 output.
0: Ambient light is greater than Level 3 (dark).
1: L3_CMP has detected a change in ambient light from Level 2 (office) to L3 (dark).
CMP2_L2_OUT 6
Sensor 2 Comparator L2 output.
0: Ambient light is greater than Level 2 (office).
1: L2_CMP has detected a change in ambient light from Level 1 (outdoor) to L2 (office).
CMP1_L3_OUT 5
Sensor 1 Comparator L3 output.
0: Ambient light is greater than Level 3 (dark).
1: L3_CMP has detected a change in ambient light from Level 2 (office) to L3 (dark).
CMP1_L2_OUT 4
Sensor 1 Comparator L2 output.
0: Ambient light is greater than Level 2 (office).
1: L2_CMP has detected a change in ambient light from Level 1 (outdoor) to L2 (office).
CMP2_IEN 3
Sensor 2 comparator interrupt.
0: Interrupt disabled.
1: Interrupt enabled.
CMP1_IEN 2
Sensor 1 comparator interrupt.
0: Interrupt disabled.
1: Interrupt enabled.
CMP2_EN 1
Sensor 2 comparator input.
0: Input disabled.
1: Input enabled.
CMP1_EN 0
Sensor 1 comparator input.
0: Input disabled.
1: Input enabled.
Table 38. CMP_CONFG_SENS1—Register 0x31 (Sensor 1 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.
FILT 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 1 input.
0: Disables the L3 comparator for Sensor 1 input.
L2_EN 0 1: Enables the L2 comparator for Sensor 1 input.
0: Disables the L2 comparator for Sensor 1 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 done and the proper registers have been updated.
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.
Data Sheet ADP5588
Rev. C | Page 23 of 28
Table 44. CMP2_LVL2_TRIPRegister 0x37 (L2 Light Sensor Reference Level (Output Falling for Sensor 2)
Field Bit Description
L2_T7 to L2_T0 [7:0] Sensor 2 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 45. CMP2_LVL2_HYSRegister 0x38 (L2 Light Sensor Hysteresis (Active When Output Rising) for Sensor 2)
Field Bit Description
L2_H7 to L2_H0 [7:0] Sensor 2 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 46. CMP2_LVL3_TRIPRegister 0x39 (L3 Light Sensor Reference Level (Output Falling for Sensor 2)
Field Bit Description
L3_T7 to L3_T0 [7:0] Sensor 2 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 47. CMP2_LVL3_HYSRegister 0x3A (L3 Light Sensor Hysteresis (Active When Output Rising) for Sensor 2)
Field
Bit
Description
L3_H [7:0] Sensor 2 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 -.5 μA.
Table 48. CMP1_ADC_DAT_R1Register 0x3B (Comparator 1 ADC Data Register 1)
Register Name Register Description Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
CMP1_ADC_DAT Comparator ADC data register,
Bits[7:0]
NA NA NA ADC12 ADC11 ADC10 ADC9 ADC8
Table 49. CMP1_ADC_DAT_R2Register 0x3C (Comparator 1 ADC Data Register 2)
1
Register Name Register Description Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
CMP1_ADC_DAT Comparator ADC data register,
Bits[7:0]
ADC7 ADC6 ADC5 ADC4 ADC3 ADC2 ADC1 ADC0
1
Read-only register; contains the most current 13-bit ADC data of the comparator for Sensor 1.
Table 50. CMP2_ADC_DAT_R1Register 0x3D (Comparator 2 ADC Data Register 1)
Register Name Register Description Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
CMP1_ADC_DAT
Comparator ADC Data Register
[7:0]
N/A
N/A
ADC12
ADC11
ADC10
ADC9
ADC8
Table 51. CMP2_ADC_DAT_R2Register 0x3E (Comparator 2 ADC Data Register 2)
1
Register Name Register Description Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
CMP1_ADC_DAT Comparator ADC data register,
Bits[7:0]
ADC7 ADC6 ADC5 ADC ADC3 ADC2 ADC1 ADC0
1
Read-only register; contains the most current 13-bit ADC data of the comparator for Sensor 2.

ADP5588ACPZ-R7

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Interface - I/O Expanders QWERTY Keypad Cntlr
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet