LTR-659PS-01 [LITEON]
AMBIENT LIGHT PHOTO SENSOR;型号: | LTR-659PS-01 |
厂家: | LITE-ON TECHNOLOGY CORPORATION |
描述: | AMBIENT LIGHT PHOTO SENSOR |
文件: | 总31页 (文件大小:646K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
Optical Sensor
Product Data Sheet
LTR-659PS-01
Spec No.: DS86-2013-0008
Effective Date: 07/03/2014
Revision: B
LITE-ON DCC
RELEASE
BNS-OD-FC001/A4
LITE-ON Technology Corp. / Optoelectronics
No.90,Chien 1 Road, Chung Ho, New Taipei City 23585, Taiwan, R.O.C.
Tel: 886-2-2222-6181 Fax: 886-2-2221-1948 / 886-2-2221-0660
http://www.liteon.com/opto
Optical Sensor
LTR-659PS-01
1. Description
The LTR-659PS-01 is an integrated low voltage I2C digital proximity sensor [PS] with built-in emitter, in a single miniature chipled
lead-free surface mount package. With built-in proximity sensor (emitter and detector), LTR-659PS-01 offers the feature to detect
object at a user configurable distance.
The sensor supports an interrupt feature that removes the need to poll the sensor for a reading which improves system efficiency.
The sensor also supports several features that help to minimize the occurrence of false triggering. This CMOS design and factory-set
one time trimming capability ensure minimal sensor-to-sensor variations for ease of manufacturability to the end customers.
2. Features
I2C interface (Fast Mode @ 400kbit/s)
Ultra-small ChipLED package
Built-in temperature compensation circuit
Low active power consumption with standby mode
Supply voltage range from 2.4V to 3.6V capable of 1.7V
logic voltage
Operating temperature range from -30 C to +70
RoHS and Halogen free compliant
Proximity Sensor
C
Built-in LED driver, emitter and detector
Programmable LED drive settings
11-bit effective resolution
High ambient light suppression
3. Applications
Todetect andcontroldisplaybacklightinpresenceof objectin
MobileDevices: Mobilephone, PDA
ComputingDevices:Notebook PC, DesktopMonitor
Consumer Devices: LCD/PDPTVbacklightsystems, Cameras, PersonalNavigationDevice, Digital PhotoFrame
Dashboard
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
1/30
Optical Sensor
LTR-659PS-01
4. Ordering Information
Part Number
Packaging Type
Tape and Reel
Package
Quantity
LTR-659PS-01
8-pins chipled package
8000
5. Outline Dimensions
Notes :
1. All dimensions are in millimeters.
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
2/30
Optical Sensor
LTR-659PS-01
6. Functional Block Diagram
7. Application Circuit
LTR-659PS
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
3/30
Optical Sensor
LTR-659PS-01
I/O Pins Configuration Table
Pin
I/O Type
Symbol
Description
I/O
SDA
I2C serial data. This pin is an open drain input / output.
1
O
I
INT
Level Interrupt Pin. This pin is an open drain output.
2
3
4
5
6
7
8
LDR
LED Driver for proximity emitter. This pin is an open drain input.
LED Cathode. Connect to LDR pin if using internal LED driver circuit.
LED Anode. Connect to VDD or VBAT on PCB
Ground
O
I
LED K
LED A
GND
SCL
I
I2C serial clock. This pin is an open drain input.
Power Supply Voltage
VDD
LTR-659PS
Recommended Application Circuit Components
Component
Recommended Value
1 k to 10 k
1uF
Rp1, Rp2, Rp3 [1]
C1, C2
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
4/30
Optical Sensor
LTR-659PS-01
8. Ratings and Specifications
Absolute Maximum Ratings at Ta = 25C
Parameter
Symbol
Rating
3.8
Unit
V
Supply Voltage
VDD
Digital Voltage Range
Digital Output Current
Storage Temperature
SCL, SDA, INT
SCL, SDA, INT
Tstg
-0.5 to 3.8
-1 to 20
-40 to 100
V
mA
C
Note: Exceeding these ratings could cause damage to the sensor. All voltages are with respect to ground. Currents are
positive into, negative out of the specified terminal.
Recommended Operating Conditions
Description
Symbol
VDD
VLED
VIO
Min.
2.4
2.5
1.7
-30
Typ.
Max.
3.6
Unit
V
Supply Voltage
LED Supply Voltage
Interface Bus Power Supply Voltage
Operating Temperature
4.35
3.6
V
V
Tope
70
C
Electrical & Optical Specifications
All specifications are at VDD = 3.0V, Tope = 25C, unless otherwise noted.
Parameter
Min.
Typ.
Max.
250
5
Unit
uA
Condition
Active Supply Current
Standby Current
Active Mode, Tope = 25C
Standby / Sleep Mode
(Note 1)
uA
Initial Startup Time
Wakeup Time from Standby
60
100
1000
10
ms
ms
(Note 1)
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
5/30
Optical Sensor
LTR-659PS-01
Proximity Sensor
Parameter
Min.
Typ.
Max.
2047
870
Unit
count
nm
Condition
Full Scale ADC Count
Peak Sensitivity
840
20
855
Detection Distance
Ambient Light Suppression
LED Pulse Count
mm
lux
100mA, 4 pulses, 18% Gray Card
Direct sunlight
50k
15
1
pulses
Hz
LED Pulse Frequency
LED Duty Cycle
30k
25
100k
100
Increment of 10k Hz
%
Increment of 25%
LED Peak Current
5
10
20
50
100
mA
mA
mA
mA
mA
ns
LED Peak Current = 000
LED Peak Current = 001
LED Peak Current = 010
LED Peak Current = 011
LED Peak Current = 1XX
Optical Rise / Fall Time
100
Notes:
1. Startup Sequence
Supply VDD to Sensor
(Sensor in Standby Mode)
Wait 100 ms (min) - initial startup time
I2C Command (Write)
To enable sensor to Active Mode
Wait 10 ms (max) - wakeup time from standby
Sensor is Active and starts measurement
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
6/30
Optical Sensor
LTR-659PS-01
AC Electrical Characteristics
All specifications are at VBus = 1.8V, Tope = 25C, unless otherwise noted.
Parameter
Symbol
fSCL
Min.
Max.
Unit
SCL clock frequency
1
400
kHz
Bus free time between a STOP and START condition
1.3
0.6
1.3
0.6
us
us
us
us
tBUF
Hold time (repeated) START condition. After this period, the first
clock pulse is generated
tHD;STA
LOW period of the SCL clock
tLOW
tHIGH
HIGH period of the SCL clock
tSU;STA
Set-up time for a repeated START condition
0.6
us
tSU;STO
Set-up time for STOP condition
Rise time of both SDA and SCL signals
Fall time of both SDA and SCL signals
Data hold time
0.6
30
30
0.3
100
0
us
ns
ns
us
ns
ns
300
300
0.9
tr
t f
tHD;DAT
tSU;DAT
Data setup time
Pulse width of spikes which must be suppressed by the input filter
50
tSP
Definition of timing for I2C bus
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
7/30
Optical Sensor
LTR-659PS-01
9. Principles of Operation
I2C Protocols
.I2C Write Protocol (type 1):
1
7
1
1
8
1
1
Slave address
Register Address
S
W
A
A P
Slave ID (Write)
Slave ID (Write)
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
SCL
SDA
S
6
S
5
S
4
S
3
S
2
S
1
S
0
A A A A A A A A
7
6
5
4
3
2
1
0
S
Slave address
W
A
Register Address
A
P
.I2C Write Protocol (type 2):
1
7
1
1
8
1
8
1
1
Slave address
Register Address
Register Command
A P
S
W
A
A
Slave ID (Write)
Slave ID (Write)
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
SCL
SDA
S
6
S
5
S
4
S
3
S
2
S
1
S
0
A
7
A
6
A
5
A
4
A
3
A
2
A
1
A
0
A A A A A A A A
7
6
5
4
3
2
1
0
S
Slave address
W
A
Register Address
A
Register Command
A
P
.I2C Read Protocol:
1
7
1
1
8
1
1
Slave address
Register Command
N P
S
R
A
Slave ID (Read)
Slave ID (Read)
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
SCL
SDA
S
6
S
5
S
4
S
3
S
2
S
1
S
0
C C C C C C C C
7
6
5
4
3
2
1
0
S
Slave address
R
A
Register Command
N
P
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
8/30
Optical Sensor
LTR-659PS-01
.I2C Read (Combined format) Protocol:
1
7
1
1
8
1
1
7
1
1
8
1
1
Slave address
Register Address
Slave address
Slave ID (Read)
Register Command
S
W
A
A Sr
R
A
N
P
Slave ID (Write)
Slave ID (Write)
Slave ID (Read)
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
SCL
SDA
……
……
S
6
S
5
S
4
S
3
S
2
S
1
S
0
A
7
A
6
A
5
A
4
A
3
A
2
A
1
A
0
S
6
S
5
S
4
S
3
S
2
S
1
S
0
S
Slave address
W A
Register Address
A
Sr
Slave address
R
A
1
2
3
4
5
6
7
8
9
……
……
C
7
C
6
C
5
C
4
C
3
C
2
C
1
C
0
A
Register Command
N
P
A
S
Acknowledge (0 for an ACK)
Start condition
N
Non-Acknowledge(1 for an NACK)
Repeated Start condition
Sr
P
Stop condition
W
Write (0 for writing)
Slave-to-master
R
Read (1 for read)
Master-to-Slave
I2C Slave Address
The 7 bits slave address for this sensor is 0x23H. A read/write bit should be appended to the slave address by the master
device to properly communicate with the sensor.
I2C Slave Address
(0x23H)
W/R
Bit0
0
Command
Type
value
Bit7
0
Bit6
1
Bit5
0
Bit4
0
Bit3
0
Bit2
1
Bit1
1
Write
Read
0x46H
0x47H
0
1
0
0
0
1
1
1
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
9/30
Optical Sensor
LTR-659PS-01
Register Set
Address R / W Register Name
Description
Reset Value
0x80
0x81
0x82
0x83
0x84
0x85
0x86
0x87
0x88
0x89
0x8A
0x8B
0x8C
0x8D
0x8E
0x8F
0x90
0x91
0x92
0x93
0x94
0x95
0x97
0x98
0x99
0x9A
0x9E
R / W SW_RESET
R / W PS_CONTR
R / W PS_LED
SW reset
0x00
0x00
0x7F
0x01
0x02
0x03
0x92
0x05
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0xFF
0x07
0x00
0x00
0x00
0x00
0xFF
0xFF
0x00
0x00
0x00
PS operation mode control
PS LED setting
R / W PS_N_PULSES
R / W PS_MEAS_RATE
R / W RESERVED
PS number of pulses
PS measurement rate in active mode
Reserved
R
R
R
R
R
R
R
R
R
PART_ID
Part Number ID and Revision ID
Manufacturer ID
MANUFAC_ID
RESERVED
RESERVED
RESERVED
RESERVED
PS_STATUS
PS_DATA_0
PS_DATA_1
Reserved
Reserved
Reserved
Reserved
PS new data status
PS measurement data, lower byte
PS measurement data, upper byte
Interrupt settings
R / W INTERRUPT
R / W PS_THRES_UP_0
R / W PS_THRES_UP_1
R / W PS_THRES_LOW_0
R / W PS_THRES_LOW_1
PS interrupt upper threshold, lower byte
PS interrupt upper threshold, upper byte
PS interrupt lower threshold, lower byte
PS interrupt lower threshold, upper byte
PS offset, upper byte
PS offset, lower byte
Reserved
R/W
R/W
PS_OFFSET_1
PS_OFFSET_0
R / W RESERVED
R / W RESERVED
R / W RESERVED
R / W RESERVED
Reserved
Reserved
Reserved
R / W INTERRUPT PERSIST PS Interrupt persist setting
Notes:
1. When reading PS data registers, read sequence should always be from lower address to higher address (E.g. read 0x8D first
then 0x8E)
2. When setting of INTERRUPT register (0x8F) is necessary, it should be done before the device is in Active mode.
3. Reserved registers should not be written with any value other than its default value.
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
10/30
Optical Sensor
LTR-659PS-01
SW_RESET Register (0x80)
The SW_RESET register controls the software (SW) reset for the sensor.
0x80
SW_RESET (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
Reserved
SW Reset
Reserved
Field
Bits
Default
Type
Description
Reserved
7:2
000000
--
--
0
--
Initial start-up procedure is NOT started (default)
Initial start-up procedure is started, bit has default value
of 0 after start-up
SW reset
1
0
0
RW
--
1
Reserved
0
--
--
PS_CONTR Register (0x81)
The PS_CONTR register controls the PS operation modes. The PS sensor can be set to either standby mode or active
mode. At either of these modes, the I2C circuitry is always active. The default mode after power up is standby mode.
During standby mode, there is no PS measurement performed but I2C communication is allowed to enable read/write to all
the registers. PS Gain controls the gain setting for the PS sensor. PS Saturation Indicator Enable bit is used for enabling
the saturation indicator in Bit 7 of PS_DATA register (0x8E).
0x81
PS_CONTR (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
PS
Saturation
Indicator
Enable
Reserved
Reserved
PS Gain
PS Mode
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
11/30
Optical Sensor
LTR-659PS-01
Field
Bits
Default
Type
Description
Reserved
7:6
00
--
--
Must be 0
PS
0
1
Saturation indicator disable
Saturation indicator enable
Saturation
Indicator
Enable
5
0
R/W
Reserved
4
0
--
--
Must be 0
X16 (default)
X32
00
10
X1
00
01
10
11
PS Gain
3:2
00
RW
X64
Stand-by mode (default)
Active mode
PS Mode
1:0
00
RW
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
12/30
Optical Sensor
LTR-659PS-01
PS_LED Register (0x82)
The PS_LED register controls the LED pulse modulation frequency, LED current duty cycle and LED peak current.
0x82
PS_LED (default = 0x7F)
B4 B3
LED Duty Cycle
B7
B6
B5
B2
B1
B0
LED Pulse Frequency
LED Peak Current
Field
Bits
Default
Type Description
000
001
010
011
100
101
110
111
00
LED pulse period = 30kHz
LED pulse period = 40kHz
LED pulse period = 50kHz
LED pulse
Modulation
Frequency
LED pulse period = 60kHz (default)
LED pulse period = 70kHz
LED pulse period = 80kHz
LED pulse period = 90kHz
LED pulse period = 100kHz
DUTY = 25%
7:5
011
RW
RW
RW
01
DUTY = 50%
LED Current DUTY
4:3
11
10
DUTY = 75%
11
DUTY = 100% (default)
000
001
010
011
100
101
110
111
LED pulsed current level = 5mA
LED pulsed current level = 10mA
LED pulsed current level = 20mA
LED pulsed current level = 50mA
LED current
2:0
111
LED pulsed current level = 100mA (default)
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
13/30
Optical Sensor
LTR-659PS-01
PS_N_Pulses Register (0x83)
The PS_N_Pulses register controls the number of LED pulses to be emitted.
0x83
PS_N_Pulses (default = 0x01)
B7
B6
B5
B4
B3
B2
B1
B0
Reserved
LED Pulse Count
Field
Bits
Default
Type
Description
0000 (default)
7:4
0000
RW
RESERVED (Write only 0000)
RESERVED
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
Number of pulses = 1 (default)
Number of pulses = 2
Number of pulses = 3
Number of pulses = 4
Number of pulses = 5
Number of pulses = 6
Number of pulses = 7
Number of pulses = 8
Number of pulses = 9
Number of pulses = 10
Number of pulses = 11
Number of pulses = 12
Number of pulses = 13
Number of pulses = 14
Number of pulses = 15
PS number of
LED pulses
3:0
0001
RW
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
14/30
Optical Sensor
LTR-659PS-01
PS_MEAS_RATE Register (0x84)
The PS_MEAS_RATE register controls the timing of the periodic measurements of the PS in active mode. PS Measurement
Repeat Rate is the interval between PS_DATA registers update.
0x84
PS_MEAS_RATE (default = 0x02)
B7
B6
B5
B4
B3
B2
B1
B0
Reserved
PS Measurement Repeat Rate
Field
Bits
7:4
Default
Type
Description
Reserved
0000
--
--
--
0000
0001
0010
0011
0100
0101
0110
0111
1XXX
50ms
70ms
100ms (default)
200ms
PS
measurement
rate
3:0
0010
RW
500ms
1000ms
2000ms
10ms
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
15/30
Optical Sensor
LTR-659PS-01
PART_ID Register (0x86) (Read Only)
The PART_ID register defines the part number and revision identification of the sensor.
0x86
PART_ID (default = 0x92)
B7
B6
B5
B4
B3
B2
B1
B0
Part Number ID
Revision ID
Field
Bits
7:4
Default
1001
Type
Description
Part Number ID
Revision ID
R
R
--
--
3:0
0010
MANUFAC_ID Register (0x87) (Read Only)
The MANUFAC_ID register defines the manufacturer identification of the sensor.
0x87
MANUFAC_ID (default = 0x05)
B4 B3
B7
B6
B5
B2
B1
B0
Manufacturer ID
Field
Manufacturer ID
Bits
Default
00000101
Type
Description
7:0
R
Manufacturer ID (0x05H)
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
16/30
Optical Sensor
LTR-659PS-01
PS_STATUS Register (0x8C) (Read Only)
The PS_STATUS register stores the information about interrupt status and PS data status. New data means data has
not been read yet. When the measurement is completed and data is written to the data register, the data status bit will be
set to logic 1. When the data register is read, the data status bit will be set to logic 0. Interrupt status determines if the PS
interrupt criteria are met. It will check if the PS measurement data is outside of the range defined by the upper and lower
threshold limits.
0x8C
PS_STATUS (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
PS
Interrupt
Status
PS Data
Status
Reserved
Field
Bits
Default
Type
Description
Reserved
7:2
1
000000
--
--
--
0
1
0
1
interrupt signal INACTIVE (default)
interrupt signal ACTIVE
PS interrupt
status
0
0
R
R
OLD data (data already read), (default)
NEW data (first time data is being read)
PS data status
0
PS_DATA_0 Register (0x8D / 0x8E) (Read Only)
The PS ADC channel data are expressed as a 11-bit data spread over two registers. The PS_DATA_0 and PS_DATA_1
registers provide the lower and upper byte respectively. When the I2C read operation starts, both the registers are locked
until the I2C read operation is completed. This will ensure that the data in the registers is from the same measurement
even if an additional integration cycle ends during the read operation. New measurement data is stored into temporary
registers and the PS_DATA registers are updated as soon as there is no on-going I2C read operation.
PS Saturation Flag is used for monitoring the internal IC saturation. It will be flagged when the IC has reached saturation
and not able to perform any further PS measurement. The PS Saturation Indicator Enable bit in PS_CONTR Register
(0x81) has to be enabled in order to use this feature. If it is not enable, the flag will always be indicated as 0.
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
17/30
Optical Sensor
LTR-659PS-01
0x8D
PS_DATA_0 (default = 0x00)
B4 B3
PS Data Low
B7
B6
B5
B2
B1
B0
0x8E
PS_DATA_1 (default = 0x00)
B4 B3
B7
B6
B5
B2
B1
B0
PS
Saturatio
n Flag
Reserved
PS Data High
Field
Address
Bits
Default
Type
Description
PS Data, Low
0x8D
0x8E
7:0
00000000
0
R
--
PS ADC lower byte data
0
1
PS not saturated
PS saturated
PS Saturation Flag
7
R
Reserved
0x8E
0x8E
6:3
2:0
00000
000
--
R
--
--
--
PS Data, High
PS ADC upper byte data
INTERRUPT Register (0x8F)
The INTERRUPT register controls the operation of the interrupt pin and functions. When the Interrupt Mode is set to 00,
the INT output pin 2 is inactive / disabled and will not trigger any interrupt. However at this condition, the PS_STATUS
register will still be updated. Note that when this register is to be set with values other than its default values, it should be
set before device is in Active mode.
0x8F
INTERRUPT (default = 0x00)
B4 B3
B7
B6
B5
B2
B1
B0
Interrupt
Polarity
Interrupt
Mode
Reserved
Reserved
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
18/30
Optical Sensor
LTR-659PS-01
Field
Bits
Default
Type Description
Reserved
7:3
00000
--
--
0
--
INT pin is considered active when it is a logic 0 (default)
Interrupt
Polarity
2
0
RW
1
--
0
1
INT pin is considered active when it is a logic 1
--
Reserved
1
0
--
Interrupt pin is INACTIVE/high impedance state (default)
PS measurement can trigger interrupt
Interrupt mode
1:0
00
RW
PS_THRES Register (0x90 / 0x91 / 0x92 / 0x93)
The PS_THRES_UP and PS_THRES_LOW registers determines the upper and lower limit of the interrupt threshold value
respectively. These two values form a range and the interrupt function compares if the measurement value in PS_DATA
registers is inside or outside the range. The interrupt function is active if the measurement data is outside the range
defined by the upper and lower limits. The data format for PS_THRES must be the same as PS_DATA registers.
0x90
PS_THRES_UP_0 (default = 0xFF)
B4 B3
B7
B7
B6
B6
B5
B2
B1
B0
PS Upper Threshold Low
0x91
PS_THRES_UP_1 (default = 0x07)
B5
B4
B3
B2
B1
B0
Reserved
PS Upper Threshold High
0x92
0x93
PS_THRES_LOW _0 (default = 0x00)
B5 B4 B3 B2
PS Lower Threshold Low
PS_THRES_LOW_1 (default = 0x00)
B7
B7
B6
B6
B1
B1
B0
B5
B4
B3
B2
B0
Reserved
PS Lower Threshold High
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
19/30
Optical Sensor
LTR-659PS-01
Field
Address Bits
Default
Type
Description
PS Upper Threshold Low
0x90
0x91
0x91
0x92
0x93
0x93
7:0
7:3
2:0
7:0
7:3
2:0
11111111
RW
PS upper threshold lower byte
Reserved
00000
111
--
Reserved
PS Upper Threshold High
PS lower threshold, Low
Reserved
RW
RW
--
PS upper threshold upper byte
PS lower interrupt threshold value, lower byte
Reserved
00000000
00000
000
PS lower threshold, High
RW
PS lower interrupt threshold value, upper byte
PS_OFFSET Register (0x94 / 0x95)
The PS_OFFSET register defines the offset compensation value for proximity offsets caused by device variations, optical
crosstalk and other environment factors. This value will be used and cancelled from the original PS raw data such that the
data in PS_DATA register (0x8D and 0x8E) are the compensated value.
0x94
PS_OFFSET_1 (default = 0x00)
B4 B3
B7
B6
B5
B2
B1
B0
PS Offset,
High byte
Reserved
0x95
PS_OFFSET_0 (default = 0x00)
B4 B3
PS Offset, Low byte
B7
B6
B5
B2
B1
B0
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
20/30
Optical Sensor
LTR-659PS-01
INTERRUPT PERSIST Register (0x9E)
The INTERRUPT PERSIST register controls the N number of times the measurement data is outside the range defined by
the upper and lower threshold limits before asserting the interrupt.
0x9E
INTERRUPT PERSIST (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
PS Persist
Reserved
Field
Bits
7:4
Default
0000
Type
Description
0000
0001
Every PS value out of threshold range (default)
2 consecutive PS values out of threshold range
PS persist
Reserved
RW
--
......
......
1111
--
16 consecutive PS values out of threshold range
--
3:0
0000
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
21/30
Optical Sensor
LTR-659PS-01
10. Device Operation(using Interrupt)
Below flow diagram illustrates the LTR-659PS operation involving the use of Thresholds and Interrupts.
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
22/30
Optical Sensor
LTR-659PS-01
11. Pseudo Codes Examples
Control Registers
// The Control Registers define the operating modes and gain settings of PS of LTR-659.
// Default settings are 0x00 for both registers (both in Standby mode).
Slave_Addr = 0x23
// Slave address of LTR-659 device
// Enable PS
Register_Addr = 0x81
Command = 0x03
// PS_CONTR register
// Gain = 16
// For Gain = 32, Command = 0x0B
// For Gain = 64, Command = 0x0F
WriteByte(Slave_Addr, Register_Addr, Command)
PS LED Registers
// The PS LED Registers define the LED pulse modulation frequency, duty cycle and peak current.
// Default setting is 0x7F (60kHz, 100%, 100mA).
Slave_Addr = 0x23
// Slave address of LTR-659 device
// Set LED Pulse Freq 30kHz (duty cycle 100%, peak curr 100mA)
Register_Addr = 0x82
Command = 0x1F
// PS_LED register
// Pulse Freq = 30kHz, (duty cyc 100%, peak curr 100mA)
// For Pulse Freq = 40kHz, (100%, 100mA), Command = 0x3F
// For Pulse Freq = 50kHz, (100%, 100mA), Command = 0x5F
// For Pulse Freq = 60kHz, (100%, 100mA), Command = 0x7F
// For Pulse Freq = 70kHz, (100%, 100mA), Command = 0x9F
// For Pulse Freq = 80kHz, (100%, 100mA), Command = 0xBF
// For Pulse Freq = 90kHz, (100%, 100mA), Command = 0xDF
// For Pulse Freq = 100kHz, (100%, 100mA), Command = 0xFF
WriteByte(Slave_Addr, Register_Addr, Command)
// Set LED Duty Cycle 25% (pulse freq 60kHz, peak curr 100mA)
Register_Addr = 0x82
Command = 0x67
// PS_LED register
// Duty Cycle = 25%, (pulse freq 60kHz, peak curr 100mA)
// For Duty Cycle = 50%, (60kHz, 100mA), Command = 0x6F
// For Duty Cycle = 75%, (60kHz, 100mA), Command = 0x77
// For Duty Cycle = 100%, (60kHz, 100mA), Command = 0x7F
WriteByte(Slave_Addr, Register_Addr, Command)
// Set LED Peak Current 5mA (pulse freq 60kHz, duty cycle 100%)
Register_Addr = 0x82
Command = 0x78
// PS_LED register
// Peak Current = 5mA, (pulse freq 60kHz, duty cyc 100%)
// For Peak Current = 10mA, (60kHz, 100%), Command = 0x79
// For Peak Current = 20mA, (60kHz, 100%), Command = 0x7A
// For Peak Current = 50mA, (60kHz, 100%), Command = 0x7B
WriteByte(Slave_Addr, Register_Addr, Command)
PS Measurement Rate Register
// The PS_MEAS_RATE register controls the PS measurement rate.
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
23/30
Optical Sensor
LTR-659PS-01
// Default setting of the register is 0x02 (repeat rate 100ms)
Slave_Addr = 0x23
// Slave address of LTR-659 device
// Set PS Repeat Rate 50ms
Register_Addr = 0x84
Command = 0x00
// PS_MEAS_RATE register
// Meas rate = 50ms
// For Meas rate = 500ms, Command = 0x04
WriteByte(Slave_Addr, Register_Addr, Command)
PS Status Register (Read Only)
// The PS_STATUS Register contains the information on Interrupt, PS data availability status.
// This register is read only.
Slave_Addr = 0x23
// Slave address of LTR-659 device
// PS_STATUS register address
// Read back Register
Register_Addr = 0x8C
ReadByte(Slave_Addr, Register_Addr, Data)
Interrupt_Status = Data & 0x02
NewData_Status = Data & 0x01
// Interrupt_Status = 2(decimal) PS Interrupt
// NewData_Status = 1(decimal) PS New Data
PS Data Registers (Read Only)
// The PS Data Registers contain the ADC output data.
// These registers should be read as a group, with the lower address being read first.
Slave_Addr = 0x23
// Slave address of LTR-659 device
// Read back PS_DATA registers
Register_Addr = 0x8D
ReadByte(Slave_Addr, Register_Addr, Data0)
Register_Addr = 0x8E
// PS_DATA low byte address
// PS_DATA high byte address
ReadByte(Slave_Addr, Register_Addr, Data1)
PS_ADC_Data = (Data1 << 8) | Data0
// Combining lower and upper bytes to give 16-bit PS data
Interrupt Registers
// The Interrupt register controls the operation of the interrupt pins and function.
// The default value for this register is 0x08 (Interrupt inactive)
Slave_Addr = 0x23
// Slave address of LTR-659 device
// Set Interrupt Polarity for Active Low, for PS trigger
Register_Addr = 0x8F
Command = 0x03
// Interrupt Register address
// Interrupt is Active Low, PS can trigger
// For Active High Interrupt, Command = 0x05
WriteByte(Slave_Addr, Register_Addr, Command)
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
24/30
Optical Sensor
LTR-659PS-01
PS Threshold Registers
// The PS_THRES_UP and PS_THRES_LOW registers determines the upper and
// lower limit of the interrupt threshold value.
// Following example illustrates the setting of the PS threshold window of
// decimal values of 200 (lower threshold) and 1000 (upper threshold)
Slave_Addr = 0x23
// Slave address of LTR-659 device
// Upper Threshold Setting (decimal 1000)
PS_Upp_Threshold_Reg_0 = 0x90
PS_Upp_Threshold_Reg_1 = 0x91
Data1 = 1000 >> 8
// PS Upper Threshold Low Byte Register address
// PS Upper Threshold High Byte Register address
// To convert decimal 1000 into two eight bytes register values
Data0 = 1000 & 0xFF
WriteByte(Slave_Addr, PS_Upp_Threshold_Reg_0, Data0)
WriteByte(Slave_Addr, PS_Upp_Threshold_Reg_1, Data1)
// Lower Threshold Setting (decimal 200)
PS_Low_Threshold_Reg_0 = 0x92
PS_Low_Threshold_Reg_1 = 0x93
Data1 = 200 >> 8
// PS Lower Threshold Low Byte Register address
// PS Lower Threshold High Byte Register address
// To convert decimal 200 into two eight bytes register values
Data0 = 200 & 0xFF
WriteByte(Slave_Addr, PS_Low_Threshold_Reg_0, Data0)
WriteByte(Slave_Addr, PS_Low_Threshold_Reg_1, Data1)
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
25/30
Optical Sensor
LTR-659PS-01
12. Recommended Leadfree Reflow Profile
MAX 260C
255
230
R3
R4
217
200
R2
180
150
120
60 sec to 90 sec
Above 217 C
R5
R1
80
25
0
100
150
200
P3
SOLDER
REFLOW
250
P4
COOL DOWN
300
t-TIME
(SECONDS)
50
P1
HEAT
UP
P2
SOLDER PASTE DRY
Process Zone
Heat Up
Symbol
T
Maximum T/time or Duration
P1, R1
P2, R2
25C to 150C
150C to 200C
3C/s
Solder Paste Dry
100s to 180s
P3, R3
P3, R4
200C to 260C
260C to 200C
3C/s
Solder Reflow
Cool Down
-6C/s
P4, R5
200C to 25C
> 217C
-6C/s
60s to 90s
-
Time maintained above liquidus point , 217C
Peak Temperature
260C
Time within 5C of actual Peak Temperature
Time 25C to Peak Temperature
> 255C
20s
25C to 260C
8mins
It is recommended to perform reflow soldering no more than twice.
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
26/30
Optical Sensor
LTR-659PS-01
13. Moisture Proof Packaging
All LTR-659PS-01 are shipped in moisture proof package. Once opened, moisture absorption begins. This part is
compliant to JEDEC J-STD-033A Level 3.
Time from Unsealing to Soldering
After removal from the moisture barrier bag, the parts should be stored at the recommended storage conditions and
soldered within seven days. When the moisture barrier bag is opened and the parts are exposed to the recommended
storage conditions for more than seven days, the parts must be baked before reflow to prevent damage to the parts.
Recommended Storage Conditions
Storage Temperature
Relative Humidity
10C to 30C
Below 60% RH
Baking Conditions
Package
Temperature
60C
Time
In Reels
48 hours
4 hours
In Bulk
100C
Baking should only be done once.
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
27/30
Optical Sensor
LTR-659PS-01
14. Recommended Land Pattern and Metal Stencil Aperture
Stencil
Aperture
Land
Pattern
Metal Stencil
for Solder
Paste Printing
PCBA
Recommended Land Pattern
Note:
1. All dimensions are in millimeters
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
28/30
Optical Sensor
LTR-659PS-01
Recommended Metal Stencil Aperture
It is recommended that the metal stencil used for solder paste printing has a thickness (t) of 0.11mm (0.004 inches / 4 mils)
or 0.127mm (0.005 inches / 5 mils).
The stencil aperture opening is recommended to be 0.72mm x 0.60mm which has the same dimension as the land
pattern. This is to ensure adequate printed solder paste volume and yet no shorting.
Aperture
Opening
t
3.63
2.00
Note:
1. All dimensions are in millimeters
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
29/30
Optical Sensor
LTR-659PS-01
15. Package Dimension for Tape and Reel
Note:
1. All dimensions are in millimeters
Notes:
1. All dimensions are in millimeters (inches)
2. Empty component pockets sealed with top cover tape
3. 13 inch reel - 8000 pieces per reel
4. In accordance with ANSI/EIA 481-1-A-1994 specifications.
Part No. : LTR-659PS-01
BNS-OD-FC002/A4
30/30
相关型号:
©2020 ICPDF网 联系我们和版权申明