Revision History Rev. DRN # History Initiator Effective Date Initiator

advertisement
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
1
of
19
Revision History
Rev. DRN #
V01
History
Initial document
Initiator: 張志航
Approvals:
(IC) 余正亮
Check by: 劉貴忠
(SYS) 黃宗文
(PM)
* Signature on file in DCC*
Initiator
Effective Date
張志航
2016/07/04
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
2
of
AP1522D
Ambient Light Sensor
with I2C Interface
Agent:
訢寶企業股份有限公司 Tel: 886‐2‐8912‐1515 Fax: 886‐2‐8912‐1518 E‐mail: sales@hsinbao.com.tw This article is subject to change without notice.
19
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
3
of
19
FEATURES
ambient illumination (in Lux) to approximate the
 Light to digital conversion
human eye response. AP1522 is suitable for low
 Temperature to digital conversion
light intensity applications, especially 0~5 Lux.
 Infrared immunity support
 50/60Hz lighting ripple rejection
Besides, AP1522 supports temperature detection
 Spectral response close to human eye’s
too, detection range from -40℃ to 100℃, good
temperature linearity allowing users to know the
response
 Good light intensity sensitivity
real ambient temperature.
 Good temperature detection
 Excellent temperature compensation: -40 to
850C
suitable to be adopted in various applications.
 16-bit resolution output
 2.7V to 3.6V operating voltage range
 I2C TM interface to an external host
 4-lead 5Φflat top LED Lamp package
APPLICATIONS
 Surveillance cameras
 Camcorder
 Note Book
DESCRIPTION
AP1522 is an advanced ambient light sensor
used for high definition surveillance cameras,
camcorder and notebook applications. With
built-in 2-channel photodiodes, amplifiers and
analog circuits, AP1522 offers the best spectral
sensitivity close to human eyes. With built-in
excellent
With 4-lead 5Φ flat top lamp package, AP1522 is
temperature
compensation
circuit,
AP1522 is suitable for the applications with wide
temperature range.
The 20-bit conversion output is available through
I2C interface (up to 400KHz) to an external host.
An empirical formula can be used to derive
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
4
PIN CONFIGURATION (DIP4L)
DIP4L Mnemonic I/O Description
Pin #
AP1522
DIP4L
~
~~
~~~
4
3
1
2
1: VDD
2: GND
3: SDA
4: SCL
1
VDD
-
Power supply
2
GND
-
Ground
3
SDA
4
SCL
I/O I2C SDA line
I
I2C SCL line
of
19
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Absolute Maximum Ratings
Page:
5
of
19
(unless otherwise specified, Temperature=25 oC)
Characteristic
Symbol
Rating
Unit
Supply Voltage
VDD
3.6
V
Operating Temperature Range
TOPR
-40~85
°C
Storage Temperature Range
TSTO
-40~100
°C
ESD Tolerance (HBM)
VHBM
5000
V
Electrical Characteristics (unless otherwise specified, Temperature=25 oC & VDD=3.3V)
Limit
Characteristic
Sym.
Condition
Supply Voltage
VDD
-
Unit
Min.
Typ.
Max.
2.7
3.3
3.6
V
I2C Interface Line (SCL, SDA)
Input Low Voltage
VIL
VDD=3.3V
-0.5
-
0.8
V
Input High Voltage
VIH
VDD=3.3V
2.1
-
3.6
V
Output Low Voltage
VOL
VDD=3.3V and ISINK=3mA
-
-
0.3
V
Min.
Limit
Typ.
Max.
Solder Characteristics (DIP4L package)
Characteristic
Condition
Unit
IR Reflow Temperature Time
above Liquidus
Temperature = 250°C
-
-
10
sec
IR Reflow Max Temperature Time
Temperature = 260°C
-
-
3
sec
Hand solder Max Temperature Time
Temperature = 350°C
-
-
3
sec
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
6
of
19
Operating Characteristics (unless otherwise specified, Temperature=25oC & VDD=3.3V)
Parameter
Condition
Limit
Min.
Typ.
Max.
ADC Count Value
0 Lux
(for Light Sense)
500 Lux(white LED)
14400
16000
17600
Counts
25℃
27430
27630
27830
Counts
ADC Count Value
(for Temperature Sense)
5
Unit
Counts
Normal*
250
uA
Power-Down
6
uA
Operating Current
*: SCL/SDA current not included
**: use temperature sense, the TIG must be fixed 100ms.
Typical Application:
0Ω
Note
TIG=100ms
Gain=64
TIG=100ms
Gain=64
TIG=100ms**
Gain=64
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
7
of
19
…
I2C Interface Protocol
Write Burst Protocol
S
Slave address
Wr
A Register address=N A
Data N
A
Data N+1
A
Data N+1
A
Data N+2
A
P
Read Byte Protocol
S
Slave address
Wr
A Register address=N A
S
Slave address
Rd
A
Data N
A
P
Read Burst Protocol
S
Slave address
Wr
A Register address=N A
S
Slave address
Rd
A
Data N
Note:
Slave Address[7:1]: preset to 0x10
A: Acknowledge (0:ACK, 1:NACK)
S: Start condition
P: Stop condition
Rd: 1(read)
Wr: 0(write)
: slave to master
: master to slave
A
…
P
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Register Table
Register
Address *
Acronym
Register Description
03h
MODE
Operation mode configuration
04h
TIG_SEL
Integration time selection
05h
GAIN
Integration gain control
20h
STATUS
Integration action done flag
21h
22h
23h
24h
Sense (light/temp.)
Low byte
Sense (light/temp.)
High byte
Dark (light/temp.)
Low byte
Dark (light/temp.)
High byte
Integration counter (Low byte)
Integration counter (High byte)
Integration counter (Low byte)
Integration counter (High byte)
* Do not use the register addresses not listed in the above table.
Page:
8
of
19
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
9
of
19
Register Description
MODE( 03h ),RW: operation mode setting
Addr
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Default
03h
MODE
0
0
0
H_SELB
0
TEM_EN
PD
RESET
00h
H_SELB: High-word result selection bit.
The light sense integration result is 32-bit wide. H_SELB is used to indicate the current integration count result (in
21h, 22h, 23h and 24h registers) stands for high-word or low-word result.
H_SELB: 1 -> result [15:0] (low word)
H_SELB: 0 -> result [31:16] (high word)
TEM_EN: temperature mode selection bit
TEM_EN: 0->light sense mode
TEM_EN: 1->temperature sense mode
PD: power-down enable bit
PD: 0->normal active mode
PD: 1->power down
RESET: chip reset bit.
Write “1” to reset the chip. It is recommended to assert RESET bit before writing TIG_SEL(04h) and GAIN(05h)
registers, and de-assert PD bit after the writing is done.
TIG_SEL( 04h),RW: integration time(TIG) selection
Addr
Name
04h
TIG_SEL
Bit7
Bit6
Bit5
Bit4
Bit3
TIG_SEL
Integration time (TIG) setting for light sense measurement.
TIG_SEL
Integration time(TIG)
0x00
1.536ms
0x01
3.072ms
0x20
50ms
0x41
100ms
0X82
200ms
0XFF
400ms
Note: for temperature sense, the TIG must be fixed 100ms
Bit2
Bit1
Bit0
Default
41h
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
10
of
19
GAIN( 05h), RW: integration gain control
Addr
Name
Bit7
Bit6
Bit5
Bit4
Bit3
05h
GAIN
-
-
-
-
-
Bit4
Bit3
Bit2
Bit1
Bit0
GAIN
Default
06h
Setting integration gain for light/temperature sensitivity:
GAIN
0x00
0x01
0x02
0x03
0x04
0x05
0x06
0x07
Result gain
1x
2x
4x
8x
16x
32x
64x
128x
STATUS(20h ),RO: status register
Addr
Name
20h
STATUS
Bit7
Bit6
Bit5
Bit2
Bit1
IREF_OV SEN_OV
Bit0
Default
R_RDY
00h
SEN_OV: Sense result overflow flag
IREF_OV: standard average result overflow flag
R_RDY: integration counter result (in 21h, 22h, 23h and 24h registers) register ready flag.
SENSE ( 21h, 22h ),RO: Light or Temperature sense CH0 count result register
Addr
Name
21h
Sense (light/Temp)
Low byte
22h
Bit7
Bit6
Bit5
Sense (light/Temp)
High byte
Bit4
Bit3
Bit2
Bit1
Bit0
Default
CH0_LB[7:0]
00h
CH0_HB[15:8]
00h
When TEM_EN=0, the result is for light sense. When TEM_EN=1, the result is for temperature sense.
SENSE ( 23h, 24h ),RO: Light or Temperature sense CH1 count result register
Addr
Name
23h
Dark (light/Temp)
Low byte
24h
Dark (light/Temp)
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Default
CH1_LB[7:0]
00h
CH1_HB[15:8]
00h
High byte
When TEM_EN=0, the result is for light sense. When TEM_EN=1, the result is for temperature sense.
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Basic Operation
Lux Calculating formula (for white LED):
Lux  (CH 0  CH 1) 
128 400ms

 3.7765103
GAIN
TIG
Temperature sense calculating formula: (TIG must be fixed 100ms)
Temp (℃)  [(CH 0  CH 1) 
128
1
 50801] 
GAIN
178.18
Page:
11
of
19
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
12
of
19
Temperature Compensation
AP1522 supports built-in temperature compensation function to eliminate the temperature effects of light
sensing. No extra circuits are needed to implement temperature compensation by users. The measurement
result shows that, comparing with the result in 25°C, the light sensor average counts(normalized) was showed
as below curve, when the temperature ranges from -40°C to 85°C.
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
TIG vs. Sensitivity (High Light Condition, Gain=64, TIG=400ms)
TIG vs. Sensitivity (Low Light Condition, Gain=64, TIG=400ms)
13
of
19
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
ADC Count Values vs Light Intensity (at 0~10 lux performance)
14
of
19
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
15
of
19
Temperature Sensor Variation
AP1522 supports built-in temperature sensor function to detect the ambient temperature. No extra
components are needed to implement circuit by user. The measurement result shows that, comparing each
temperature, the temperature sensor average variation was showed as below curve, when the temperature
ranges from -40°C to 100°C.
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
16
of
19
ADC Count Values vs Temperature sense (Condition: Gain=128, TIG=100ms)
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
17
of
19
Spectrum Profile
The package of AP1522 is designed to contain near infrared cutting material for optical encapsulation purpose.
The spectrum profile is shown as below.
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Wave Soldering Profile Condition Suggestion
Page:
18
of
19
Document No.
Title
Rev.: V0.1.0
AP1522D – Ambient Light Sensor with I2C interface
Page:
DIMENSION (DIP4L, in unit of mm)
5.80+/-0.15
5.00+/-0.15
1.00
+/-0.15
See
Note 1
0.50+/-0.05
4.30
+/-0.15
25.30+/-0.50
~~~~
27.70+/-0.50
~
0.80min
0.80min
0.80min
3.81+/-0.20
Note 1: Protruded resin under flange is maximally 0.5mm.
19
of
19
Download