Rainbow Electronics MAX44000 User Manual
Page 11

______________________________________________________________________________________ 11
MAX44000
Ambient and Infrared Proximity Sensor
Proximity Interrupt Status (PRXINTS)
Power-On Reset Status (PWRON)
Main Configuration Register (0x01)
This register is used to set the operating mode of the IC (ALS and/or proximity) and enable interrupt operation of the
device.
TRIM
MODE[2:0]
The 3-bit MODE[2:0] defines eight operating modes for the IC, as shown below.
BIT 1
OPERATION
0
No interrupt trigger event has occurred.
1
The IR proximity receive intensity has exceeded the threshold limit for greater than persist
timer count PRXPST[1:0]. This bit also causes the INT pin to be pulled low. Once set, the only way to clear this bit is
to read this register or to set PRXINTE bit to 0.
BIT 2
OPERATION
0
No interrupt trigger event has occurred.
1
The part went through a power-up event, either because the part was turned on or because there was a power-
supply voltage glitch. All interrupt threshold settings in the registers have been reset to a default state and should
be examined. A 1 on this bit also causes the INT pin to be pulled low. Note: INT is not pulled low on Rev-1 of the
IC. Once this bit is set, the only way to clear this bit is to read this register.
REGISTER
B7
B6
B5
B4
B3
B2
B1
B0
REGISTER
ADDRESS
POWER-ON
RESET
STATE
R/W
Main Configuration
TRIM
MODE[2:0]
PRXINTE ALSINTE
0x01
0x24
R/W
BIT 5
OPERATION
0
Use bytes written to TRIM_GAIN_GREEN[7:0] and TRIM_GAIN_IR[7:0] registers to set the fine-trim gain of the
green and IR gain channels.
1
Use factory-programmed gains for green and IR channels. Ignore bytes written to TRIM_GAIN_GREEN[7:0] and
TRIM_GAIN_IR[7:0] registers.
MODE[2:0]
OPERATING
MODE
OPERATION
000
Shutdown
Analog circuits are shut down, but the digital register retains values.
001
ALS G-IR
Standard ALS mode stores the difference between green and infrared channel readings.
Proximity channel operation and updates are disabled.
010
ALS G
ALS green channel only. Proximity channel operation and updates are disabled.
011
ALS IR
Infrared channel only. Proximity channel operation and updates are disabled.
100
ALS/PROX
ALS and PROX are interleaved continuously.
101
PROX Only
PROX only continuously. ALS channel operation and updates are disabled.
110
Reserved
Do not use.
111
Reserved
Do not use.