beautypg.com

Register description (continued) – Rainbow Electronics MAX44000 User Manual

Page 10

background image

10 _____________________________________________________________________________________

MAX44000

Ambient and Infrared Proximity Sensor

Register Description (continued)

The individual register bits are explained below. Default power-up bit states are highlighted in bold.

Interrupt Status Register (0x00)

The PWRON bit in the Interrupt Status register 0x00, if set, indicates that a power-on-reset (POR) condition has
occurred, and any user-programmed thresholds cannot be valid anymore. The ALSINTS bit in the Interrupt Status reg-
ister 0x00 indicates that an ambient light interrupt condition has occurred. The PRXINTS bit in the Interrupt Status reg-
ister 0x00 indicates that a proximity receive interrupt condition has occurred. If any of these bits is set to 1, the INT pin
is pulled low and asserted. Note: On Rev-1 of the device, the PWRON bit does not pull the INT pin low, even if set to 1.
Reading the Interrupt Status register clears the PWRON, ALSINTS, and PRXINTS bits, if set, and deasserts the INT
pin. INT is pulled high by the off-chip pullup resistor. The ALSINTS and PRXINTS bits are disabled and set to 0 if the
respective interrupt enable bits in Main Configuration register 0x01 are set to 0.

Ambient Interrupt Status (ALSINTS)

REGISTER

B7

B6

B5

B4

B3

B2

B1

B0

REGISTER

ADDRESS

POWER-ON

RESET
STATE

R/W

Threshold Persist Timer

PRXPST[1:0]

ALSPST[1:0]

0x0A

0x00

R/W

PROX Threshold
Indicator

ABOVE

0x0B

0x00

R/W

PROX Threshold

PRXTHR[7:0]

0x0C

0x00

R/W

Digital Gain Trim of
Green Channel

TRIM_GAIN_GREEN[6:0]

TRIM_

GREEN_

IR[0]

0x0F

0x80

R/W

Digital Gain Trim of
Infrared Channel

TRIM_GAIN_IR[8:1]

0x10

0x80

R/W

REGISTER

B7

B6

B5

B4

B3

B2

B1

B0

REGISTER

ADDRESS

POWER-ON

RESET
STATE

R/W

Interrupt Status

PWRON PRXINTS ALSINTS

0x00

0x04

R

BIT 0

OPERATION

0

No interrupt trigger event has occurred.

1

The ambient light intensity has traversed outside the designated window limits defined by
Threshold registers for greater than persist timer count ALSPST[1:0], or an overflow condition in the ambient light
readings has occurred. 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 the ALSINTE bit in register 0x01 to 0.