TMD2712
ALS + Proximity Sensor Module
General Description
The TMD2712 features proximity detection and digital ambient
light sensing (ALS). The extremely tiny 1mm x 2mm module
incorporates an IR VCSEL and factory calibrated VCSEL driver.
The proximity detection feature provides object detection (e.g.
mobile device screen to user’s ear) by photodiode detection of
reflected IR energy (sourced by the integrated VCSEL).
Detect/release events are interrupt driven, and occur when
proximity result crosses upper and/or lower threshold settings.
The proximity engine features a wide range offset adjustment
to compensate for unwanted IR energy reflection at the sensor.
Proximity results are further improved by automatic ambient
light subtraction. The ALS and IR photodiodes have dedicated
data converters producing 16-bit data. This architecture allows
applications to accurately measure ambient light which
enables devices to calculate illuminance to control display
backlight.
Ordering Information and Content Guide appear at end of
datasheet.
Key Benefits & Features
The benefits and features of TMD2712, ALS + Proximity Sensor
Module are listed below:
Figure 1:
Added Value of Using TMD2712
Benefits
Features
• Optimized for narrow bezel mobile phones
• Tiny 1mm x 2mm x 0.5mm module
• Reduced power consumption
• 1.8V power supply with 1.8V I²C bus
• Sleep mode (0.7μA)
• VCSEL IR emitter
• Enabled superior proximity detection
• Integrated factory calibrated 940nm IR VCSEL
• Crosstalk and ambient light cancellation
• Wide configuration range
• Accurate ambient light sensing
• High sensitivity
• 2 channels (photopic ALS + IR)
• Programmable gain and integration time
• Industrial design flexibility
• Offset emitter/detector package design
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 1
Document Feedback
TMD2712 − General Description
Applications
The TMD2712 applications include:
• Mobile phone display management
• Mobile phone and wearable user proximity detection
• Wearable ambient light measurement
Block Diagram
The functional blocks of this device are shown below:
Figure 2:
Functional Blocks of TMD2712
940nm IR
VCSEL
VDD3
Open Drain
Current Sink
Lower
Proximity
Integration
IR
Prox ADC Prox Data
GND
Upper
Prox Thresholds
Proximity Control
I2 C
Interface
SCL
SDA
ALS Control
Photopic
CH0 ADC CH0 Data
ALS Thresholds
CH1 ADC CH1 Data
Lower
Upper
IR
Interrupt Open
Drain Output
INT
VDD
Page 2
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Pin Assignments
Pin Assignments
Figure 3:
Pin Diagram (Top View)
,17
9''
*1'
6&/
9''
6'$
Figure 4:
Pin Description of TMD2712
Pin Number
Pin Name
Description
1
INT
Interrupt. Open drain output (active low). If INT is not used, tie to
GND for enhanced ESD protection.
2
GND
Ground. All voltages are referenced to GND.
3
VDD3
Supply voltage for IR emitter (3.0/3.3V)
4
SDA
I²C serial data I/O terminal
5
SCL
I²C serial clock input terminal
6
VDD
Supply voltage for sensor (1.8V). To enable the device to recover
from a high voltage ESD strike, it is recommended to connect
VDD to a host GPIO pin for independent power control.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 3
Document Feedback
TMD2712 − Absolute Maximum Ratings
Absolute Maximum Ratings
Stresses beyond those listed under Absolute Maximum Ratings
may cause permanent damage to the device. These are stress
ratings only. Functional operation of the device at these or any
other conditions beyond those indicated under Electrical
Characteristics is not implied. Exposure to absolute maximum
rating conditions for extended periods may affect device
reliability.
Figure 5:
Absolute Maximum Ratings
Symbol
Parameter
Min
Max
Units
Comments
Electrical Parameters
VDD
Supply Voltage to GND
-0.3
1.98
V
VDD3
IR Emitter Voltage to GND
-0.3
3.6
V
VIO
Digital I/O Terminal Voltage
-0.3
3.6
V
IIO
Digital Output Terminal
Current
-1
20
mA
Electrostatic Discharge
Input Current
(latch-up immunity)
± 100
mA
ESDHBM
HBM Electrostatic
Discharge
± 2000
V
JEDEC/ESDA JS-001-2017
ESDCDM
CDM Electrostatic
Discharge
± 500
V
JEDEC JS-002-2014
ISCR
Class II JEDEC JESD78E
Temperature Ranges and Storage Conditions
TSTRG
Storage Temperature
Range
-40
85
°C
TBODY
Package Body Temperature
260
°C
RHNC
Relative Humidity
(non-condensing)
85
%
PDISS
Power Dissipation
50
mW
MSL
Moisture Sensitivity Level
Page 4
Document Feedback
3
IPC/JEDEC J-STD-020
The reflow peak soldering
temperature (body temperature) is
specified according to IPC/JEDEC
J-STD-020 “Moisture/Reflow
Sensitivity Classification for
Non-hermetic Solid State Surface
Mount Devices.”
Average power dissipation over a
1 second period
Maximum floor life time of 168h
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Electrical Characteristics
Electrical Characteristics
All limits are guaranteed. The parameters with min and max
values are guaranteed with production tests or SQC (Statistical
Quality Control) methods.
Figure 6:
Recommended Operating Conditions
Symbol
Parameter
Min
Typ
Max
Unit
VDD
Supply Voltage to Sensor
1.7
1.8
1.98
V
VDD3
Supply Voltage to IR Emitter
2.9
3.3
3.6
V
Operating Ambient Temperature
-30
85
°C
TA
Note(s):
1. While the device is operational across the temperature range, performance will vary with temperature. Operational characteristics
are at 25°C, unless otherwise noted.
Figure 7:
Operating Characteristics, VDD = 1.8V, TA = 25°C (unless otherwise noted)
Symbol
fOSC
IDD
Parameter
Conditions
Oscillator frequency
Supply current
Min
Typ
Max
Unit
7.9
8.1
8.3
MHz
Active Proximity State (PON=1) (2)
345
Active ALS State (PON=1) (2)
80
Idle State (PON=1) (3)
35
Sleep State (PON = 0) (4)
0.6
(1)
μA
VOL
INT, SDA output low voltage
ILEAK
Leakage current, SDA, SCL, INT
-5
VIH
SCL, SDA input high voltage (5)
1.26
VIL
SCL, SDA input low voltage
TActive
6mA sink current
Time from power-on to ready
to receive I²C commands
0.6
V
5
μA
V
0.54
1.5
V
ms
Note(s):
1. Values are shown at the VDD pin and do not include current through the IR VCSEL emitter.
2. Active state occurs when PON =1 and the device is actively integrating either proximity or ALS. For proximity, this time is determined
by the number of pulses (PPLUSE) and the pulse length (PULSE_LEN). For ALS, this time is determined by the ALS integration time
(ATIME). Both proximity and ALS active states can occur at the same time.
3. Idle state occurs when PON=1 and the device is not in the active state.
4. Sleep state occurs when PON = 0 and I²C bus is idle. If sleep state has been entered as the result of operational flow, SAI = 1, PON
will remain high.
5. Digital pins: SDA, SCL, INT are tolerant to a communication voltage up to 3.4V
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 5
Document Feedback
TMD2712 − Electrical Characteristics
Figure 8:
ALS Optical Characteristics (VDD = 1.8V, TA = 25°C unless otherwise noted)
Parameter
Conditions
Min
Typ
Max
Unit
CH0 ALS sensitivity
Warm White LED @ 8μW/cm2
AGAIN = 128x
ATIME = 100ms
-15%
1113
+15%
Counts
CH1 ALS sensitivity
940nm LED @ 21.1μW/cm2
AGAIN = 128x
ATIME = 100ms
-20%
375
+20%
Counts
2.68
2.78
2.90
ms
0
1
2
Counts
ALS integration step size
ALS CH0 / CH1 dark count
0μW/cm2
AGAIN = 1024x
ATIME = 50ms
ALS 16x gain scaling
Relative to 128x
0.125
x
ALS 1024x gain scaling
Relative to 128x
8.2
x
ALS noise (1)
AGAIN = 128x
ATIME = 100ms
0.05
% (σ)
Note(s):
1. Representative result by characterization.
Page 6
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Electrical Characteristics
Figure 9:
Proximity Optical Characteristics (VDD = 1.8V, VDD3 = 3.0V, TA = 25°C unless otherwise noted)
Parameter
Conditions
Response: absolute (1)
PGAIN1 = 1x; PGAIN2 = 10x
PLDRIVE = 8mA
PPULSE = 4 pulses
PPULSE_LEN = 34μs
HW Averaging = 8
BINSRCH_TARGET = 15
APC = disabled
Post Calibration
Target material: 18% reflective
surface
No glass above module
Target Size: 100mm x 100mm
Target Distance: 30mm
Part to Part Variation (3)
Same as Response: absolute
except target is 51mm diameter
diffusor
Response: no target (2)
Same as Response: absolute
except no target
Min
Typ
Max
120
4
14
Unit
Counts
±25
%
30
Counts
Note(s):
1. Representative result by characterization.
2. Response with no target varies with power supply characteristics and system noise.
3. At factory final test.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 7
Document Feedback
TMD2712 − Typical Operating Characteristics
Typical Operating
Characteristics
Figure 10:
ALS Average Angular Response to 2700K White LED (pin 1 [-90°] to pin 3 [90°])
Angular Response to 2700K White LED (pin 1 [-90°] to pin 3 [90°])
1
0.9
ALS Channel (CH0)
Response (normalized to 0°)
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-90
-70
-50
-30
-10
10
30
50
70
90
Angle of Incidence (degrees)
Figure 11:
ALS Average Angular Response to 2700K White LED (pin 6 [90°] to pin 1 [-90°])
Angular Response to 2700K White LED (pin 6 [+90°] to pin 1 [-90°])
1
0.9
ALS Channel (CH0)
Response (normalized to 0°)
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-90
-70
-50
-30
-10
10
30
50
70
90
Angle of Incidence (degrees)
Page 8
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Typical Operating Characteristics
Figure 12:
Spectral Responsivity
Spectral Response
1
0.9
Response (normalized to ALS channel)
ALS Channel (CH0)
0.8
IR Channel (CH1)
Photopic
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
300
400
500
600
700
800
900
1000
1100
Wavelength (nm)
Figure 13:
Illuminance (Lux) vs Counts (ALS Channel (CH0))
Dynamic Range (ATIME = 100ms)
10000
1000
Illuminance (lux)
100
10
16x
1
128x
1024x
0.1
0.01
0.001
1
10
100
1000
10000
100000
ALS Channel (CH0) [counts]
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 9
Document Feedback
TMD2712 − Detailed Description
Detailed Description
Proximity
Proximity results are affected by three fundamental factors: the
integrated IR VCSEL emission, IR reception, and environmental
factors, including target distance and surface reflectivity. The
IR reception signal path begins with IR detection from a
photodiode and ends with the 14-bit proximity result in PDATA
register. Signal from the photodiode is amplified, and offset
adjusted to optimize performance. Offset correction or
cross-talk compensation is accomplished by adjustment to the
POFFSET register. The analog circuitry of the device applies the
offset value as a subtraction to the signal accumulation;
therefore a positive offset value has the effect of decreasing the
results.
Ambient Light Sensing, ALS
The ALS reception signal path begins as photodiodes receive
filtered light and ends with 16-bit results. Channel 0 contains a
photopic filter and channel 1 contains an infrared (IR) filter
which is used both for the proximity function and also to
accurately measure ambient light levels. Signals from both
photodiodes are simultaneously accumulated for a period of
time set by the value in ATIME before the results are available.
Gain is adjustable by either 128x or 1024x to facilitate operation
over a wide range of lighting conditions under dark glass with
low transmissivity. Based on the optical glass used on top of the
device, custom equations are empirically derived to calculate
the amount of ambient light using the ALS results.
Page 10
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Detailed Description
Operational State Diagram
Figure 14:
Operational State Diagram
SLEEP
(PON = 0)
IDLE
(PON = 1)
PEN = 1
AEN = 1
ALS
ACTIVE1
Hardware
Averaging
Loop 2 to 16
Times
Update
CH0/1 DATA
Y
Y
SAI
(if enabled)
Proximity
ACTIVE2
PWTIME
(if enabled)
Wait
Time
Complete
PRATE
SAI
(if enabled)
Y
PROX_AVG
(if enabled)
Update
PDATA
AWTIME
(if enabled)
IDD Supply
Current
Sleep
Idle
Active
Note(s):
1. ALS active time = ALS integration time (ATIME)
2. Proximity active time = (7 x PULSE_LEN) + PPULSE x (2x PULSE_LEN + 22μs) + 78.75μs.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 11
Document Feedback
TMD2712 − Detailed Description
I²C Characteristics
The device uses I²C serial communication protocol for
communication. The device supports 7-bit chip addressing and
both standard and fast clock frequency modes with a chip
address of 0x39. Read and write transactions comply with the
standard set by Philips (now NXP).
Internal to the device, an 8-bit buffer stores the register address
location of the desired byte to read or write. This buffer
auto-increments upon each byte transfer and is retained
between transaction events (i.e. valid even after the master
issues a STOP command and the I²C bus is released). During
consecutive Read transactions, the future/repeated I²C Read
transaction may omit the memory address byte normally
following the chip address byte; the buffer retains the last
register address + 1.
I²C Write Transaction
A Write transaction consists of a START, CHIP-ADDRESS WRITE,
REGISTER-ADDRESS, DATA BYTE(S), and STOP. Following each
byte (9 th clock pulse) the slave places an ACKNOWLEDGE/
NOT-ACKNOWLEDGE (ACK/NACK) on the bus. If NACK is
transmitted by the slave, the master may issue a STOP.
I²C Read Transaction
A Read transaction consists of a START, CHIP-ADDRESS WRITE,
REGISTER-ADDRESS, START, CHIP-ADDRESS READ, DATA BYTE(S),
and STOP. Following all but the final byte the master places an
ACK on the bus (9 TH clock pulse). Termination of the Read
transaction is indicated by a NACK being placed on the bus by
the master, followed by STOP.
Alternately, if the previous I²C transaction was a Read, the
internal register address buffer is still valid, allowing the
transaction to proceed without “re”-specifying the register
address. In this case the transaction consists of a START,
CHIP-ADDRESS READ, DATA BYTE(S), and STOP. Following all but
the final byte the master places an ACK on the bus (9 th clock
pulse). Termination of the Read transaction is indicated by a
NACK being placed on the bus by the master, followed by STOP.
The I²C bus protocol was developed by Philips (now NXP). For
a complete description of the I²C protocol, please review the
NXP I²C design specification at:
http://www.i2c-bus.org/references/
Page 12
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Detailed Description
Timing Diagrams
Figure 15:
I²C Timing Diagrams
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 13
Document Feedback
TMD2712 − Register Description
Register Description
Figure 16:
Register Overview
Reset
Value
Address
Register Name
R/W
0x80
ENABLE
R/W
Enables states and interrupts
0x00
0x81
ATIME
R/W
ADC integration time
0x00
0x82
PRATE
R/W
Proximity time
0x1F
0x83
AWTIME
R/W
ALS wait time
0x00
0x84
AILTL
R/W
ALS interrupt low threshold low byte
0x00
0x85
AILTH
R/W
ALS interrupt low threshold high byte
0x00
0x86
AIHTL
R/W
ALS interrupt high threshold low byte
0x00
0x87
AIHTH
R/W
ALS interrupt high threshold high byte
0x00
0x88
PILTL
R/W
Proximity interrupt low threshold low byte
0x00
0x89
PILTH
R/W
Proximity interrupt low threshold high byte
0x00
0x8A
PIHTL
R/W
Proximity interrupt high threshold low byte
0x00
0x8B
PIHTH
R/W
Proximity interrupt high threshold high byte
0x00
0x8C
PERS
R/W
ALS and proximity interrupt persistence filters
0x00
0x8D
CFG0
R/W
Configuration zero
0x58
0x8E
PCFG0
R/W
Proximity configuration zero
0x8F
0x8F
PCFG1
R/W
Proximity configuration one
0x32
0x90
PCFG2
R/W
Proximity configuration two
0x20
0x91
REVID
R
Revision ID
0x00
0x92
ID
R
Device ID
0x64
0x93
CFG1
R/W
Configuration one
0x68
0x94
STATUS
R, SC
Device status
0x00
0x95
ALSL
R
ALS (CH0) low data
0x00
0x96
ALSH
R
ALS (CH0) high data
0x00
0x97
IRL
R
IR (CH1) low data
0x00
0x98
IRH
R
IR (CH1) high data
0x00
0x99
PDATAL
R
Proximity ADC low data
0x00
0x9A
PDATAH
R
Proximity ADC high data
0x00
Page 14
Document Feedback
Register Function
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
Register Function
Reset
Value
Address
Register Name
R/W
0xA6
REVID2
R
0xA8
SOFTRST
R/W
Soft reset
0x00
0xA9
PWTIME
R/W
Proximity wait time
0x00
0xAA
CFG8
R/W
Configuration eight (must be set to 0x29)
0x2A
0xAB
CFG3
R/W
Configuration three
0x01
0xAE
CFG6
R/W
Configuration six
0x3F
0xC0
POFFSETL
R/W
Proximity offset low data
0x00
0xC1
POFFSETH
R/W
Proximity offset high data
0x00
0xD7
CALIB
R/W
Proximity offset calibration
0x00
0xD8
CALIB_OFFSET
R/W
Proximity offset extension
0x00
0xD9
CALIBCFG
R/W
Proximity offset calibration control
0x50
0xDC
CALIBSTAT
R
Proximity offset calibration status
0x00
0xDD
INTENAB
R/W
Interrupt enables
0x00
0xE6
FAC_L
R
Factory data low
0x00 to 0xFF
0xE7
FAC_H
R
Factory data high
0x00 to 0xFF
0xF9
TEST9
R/W
Revision ID two
Test nine (must be set to 0x06)
0x00 or 0x0F
0x0C
Note(s):
1. R = Read Only / W = Write Only / R/W = Read or Write / SC = Self Clearing after access.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 15
Document Feedback
TMD2712 − Register Description
Detailed Register Description
Enable Register (Address 0x80)
Figure 17:
Enable Register
Addr: 0x80
Enable
Bit
Bit Name
Default
Access
Bit Description
7:5
Reserved
0
RW
Reserved. Must be set to default value.
4
PWEN
0
RW
This bit activates the proximity wait feature which is set
by the PWTIME register. Active high. (1)
3
AWEN
0
RW
This bit activates the ALS wait feature which is set by the
AWTIME register. Active high.
2
PEN
0
RW
This bit activates the proximity detection. Active high.
1
AEN
0
RW
This bit actives the ALS function. Active high.
0
PON
0
RW
This field activates the internal oscillator and ADC
channels. Active high.
Note(s):
1. When the ALS function is enabled (AEN = 1), this bit must be set to a one (PWEN = 1).
Before activating AEN or PEN, preset each applicable operating
mode registers and bits.
Page 16
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
ATIME Register (Address 0x81)
Figure 18:
ATIME Register
Addr: 0x81
Bit
Bit Name
ATIME
Default
Access
Bit Description
The ATIME value specifies the ALS integration time in 2.78ms
intervals. 0x00 indicates 2.78ms. The maximum ALS count
value depends on the integration time. For every 2.78ms, the
maximum value increases by 1024. This means that to be
able to reach ALS full scale, the integration time has to be at
least 64*2.78ms.
7:0
ATIME
0x00
RW
Value
Integration
Cycles
Integration
Time
Maximum
ALS Value
0x00
1
2.78ms
1023
0x01
2
5.56ms
2047
0x11
18
50.0ms
18431
0x23
36
100ms
36863
0x3F
64
178ms
65535
0xFF
256
712ms
65535
The ATIME register controls the integration time of the ALS
ADCs. The timer is implemented with a down counter with 0x00
as the terminal count. The timer is clocked at a 2.78ms nominal
rate. Loading 0x00 will generate a 2.78ms integration time,
loading 0x01 will generate a 5.56ms integration time, and so
forth.
PRATE Register (Address 0x82)
Figure 19:
PRATE Register
Addr: 0x82
PRATE
Bit
Bit Name
Default
Access
7:0
PRATE
0x1F
RW
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Bit Description
This register defines the duration of 1 Prox Sample,
which is (PRATE + 1)*88μs.
Page 17
Document Feedback
TMD2712 − Register Description
AWTIME Register (Address 0x83)
Figure 20:
AWTIME Register
Addr: 0x83
Bit
Bit Name
AWTIME
Default
Access
Bit Description
Value that specifies the wait time in 2.78ms increments.
7:0
AWTIME
0x00
Value
Increments
Wait Time
0x00
1
2.78ms (33.4ms)
0x01
2
5.56ms (66.7ms)
0x11
18
50.0ms (600ms)
0x23
36
100ms (1.20s)
0x3F
64
178ms (2.14s)
0xFF
256
712ms (8.54s)
RW
The wait timer is implemented using a down counter. Wait time
= Increment x 2.78ms. If AWLONG is enabled then Wait time =
Increment x 2.78ms x 12.
AILTL Register (Address 0x84)
Figure 21:
AILTL Register
Addr: 0x84
AILTL
Bit
Bit Name
Default
Access
Bit Description
7:0
AILTL
0x00
RW
This register sets the low byte of the LOW ALS threshold.
AILTH Register (Address 0x85)
Figure 22:
AILTH Register
Addr: 0x85
AILTH
Bit
Bit Name
Default
Access
7:0
AILTH
0x00
RW
Page 18
Document Feedback
Bit Description
This register sets the high byte of the LOW ALS
threshold.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
The ALS (CH0) channel is compared against low-going 16-bit
threshold value set by AILTL and AILTH.
The contents of the AILTH and AILTL registers are combined and
treated as a sixteen bit threshold value. If the value generated
by the ALS channel (CH0) is below the AILTL/H threshold and
the APERS value is reached, the AINT bit is asserted. If AIEN is
set, then the INT pin will also assert. When setting the 16-bit
ALS threshold AILTL must be written first, immediately followed
by AILTH. Internally, the lower 8-bits are buffered until the upper
8-bits are written. As the upper 8-bits are written both the high
and low bytes are simultaneously latched as a 16-bit value.
AIHTL Register (Address 0x86)
Figure 23:
AIHTL Register
Addr: 0x86
AIHTL
Bit
Bit Name
Default
Access
7:0
AIHTL
0x00
RW
Bit Description
This register sets the low byte of the HIGH ALS
threshold.
AIHTH Register (Address 0x87)
Figure 24:
AIHTH Register
Addr: 0x87
AIHTH
Bit
Bit Name
Default
Access
7:0
AIHTH
0x00
RW
Bit Description
This register sets the high byte of the HIGH ALS
threshold.
The ALS (CH0) channel is compared against high-going 16-bit
threshold value set by AIHTL and AIHTH.
The contents of the AIHTH and AIHTL registers are combined
and treated as a sixteen bit threshold value. If the value
generated by the ALS channel (CH0) is above the AIHTL/H
threshold and the APERS value is reached, the AINT bit is
asserted. If AIEN is set, then the INT pin will also assert.
When setting the 16-bit ALS threshold AIHTL must be written
first, immediately followed by AIHTH. Internally, the lower 8-bits
are buffered until the upper 8-bits are written. As the upper
8-bits are written both the high and low bytes are
simultaneously latched as a 16-bit value.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 19
Document Feedback
TMD2712 − Register Description
PILTL Register (Address 0x88)
Figure 25:
PILTL Register
Addr: 0x88
Bit
7:0
Bit Name
PILTL
PILTL
Default
0x00
Access
Bit Description
RW
This register contains the low byte of the 14-bit
proximity LOW threshold when APC is enabled. If APC
is disabled, this register contains the LOW threshold
which is an 8-bit value which is compared against the
upper 8-bits of the 10-bit proximity value.
PILTH Register (Address 0x89)
Figure 26:
PILTH Register
Addr: 0x89
PILTH
Bit
Bit Name
Default
Access
Bit Description
7:6
Reserved
00
RW
Reserved. Must be set to default value.
5:0
PILTH
0x00
RW
This register contains the upper 6 bits of the 14-bit
proximity LOW threshold when APC is enabled. If APC
is disabled, this register is ignored.
The contents of the PILTH and PILTL registers are combined and
treated as a fourteen (14) bit threshold low value. If the value
generated by the proximity ADC (PDATA) is below the PILTL/H
threshold and the PPERS value is reached, then the low
proximity threshold is breached. When setting the 14-bit
proximity threshold, PILTL must be written first, immediately
follow by PILTH. Internally, the lower 8-bits are buffered until
the upper 8-bits are written. As the upper 8-bits are written both
the high and low bytes are simultaneously latched as a 14-bit
value.
If Automatic Pulse Control (APC) is disabled by setting bit 6 in
CFG6 to 1, then the proximity data converts to a 10-bit value.
PILTL contains an 8-bit threshold which is compared against the
upper 8-bits of the 10-bit value. PILTH is ignored.
Page 20
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
PIHTL Register (Address 0x8A)
Figure 27:
PIHTL Register
Addr: 0x8A
Bit
7:0
Bit Name
PIHTL
PIHTL
Default
0x00
Access
Bit Description
RW
This register contains the low byte of the 14-bit
proximity HIGH threshold when APC is enabled. If APC
is disabled, this register contains the HIGH threshold
which is an 8-bit value which is compared against the
upper 8-bits of the 10-bit proximity value.
PIHTH Register (Address 0x8B)
Figure 28:
PIHTH Register
Addr: 0x8B
PIHTH
Bit
Bit Name
Default
Access
Bit Description
7:6
Reserved
00
RW
Reserved. Must be set to default value.
5:0
PIHTH
0x00
RW
This register contains the upper 6 bits of the 14-bit
proximity HIGH threshold when APC is enabled. If APC
is disabled, this register is ignored.
The contents of the PIHTH and PIHTL registers are combined
and treated as a fourteen (14) bit threshold high value. If the
value generated by the proximity ADC (PDATA) is above the
PIHTL/H threshold and the PPERS value is reached, then the
high proximity threshold is breached. When setting the 14-bit
proximity threshold, PIHTL must be written first, immediately
follow by PIHTH. Internally, the lower 8-bits are buffered until
the upper 8-bits are written. As the upper 8-bits are written both
the high and low bytes are simultaneously latched as a 14-bit
value.
If Automatic Pulse Control (APC) is disabled by setting bit 6 in
CFG6 to 1, then the proximity data converts to a 10-bit value.
PIHTL contains an 8-bit threshold which is compared against
the upper 8-bits of the 10-bit value. PIHTH is ignored.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 21
Document Feedback
TMD2712 − Register Description
PERS Register (Address 0x8C)
Figure 29:
PERS Register
Addr: 0x8C
Bit
Bit Name
PERS
Default
Access
Bit Description
This register sets the proximity persistence filter.
7:4
PPERS
0
(0000)
Value
Interrupt
0 (0000)
Every proximity cycle
1 (0001)
Any value outside proximity thresholds
2 (0010)
2 consecutive proximity values out of range
3 (0011)
3 consecutive proximity values out of range
…
….
15 (1111)
15 consecutive proximity values out of range
RW
This register sets the ALS persistence filter.
3:0
APERS
0
(0000)
RW
0 (0000)
Every ALS cycle
1 (0001)
Any value outside ALS thresholds
2 (0010)
2 consecutive ALS values out of range
3 (0011)
3 consecutive ALS values out of range
4 (0100)
5 consecutive ALS values out of range
5 (0101)
10 consecutive ALS values out of range
6 (0110)
15 consecutive ALS values out of range
7 (0111)
20 consecutive ALS values out of range
…
…
13 (1101)
50 consecutive ALS values out of range
14 (1110)
55 consecutive ALS values out of range
15 (1111)
60 consecutive ALS values out of range
The frequency of consecutive proximity channel results outside
of threshold limits are counted; this count value is compared
against the PPERS value. If the counter is equal to the PPERS
value an interrupt is asserted. Any time a proximity channel
result is inside the threshold values the counter is cleared.
Page 22
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
The frequency of consecutive ALS (CH0) channel results outside
of threshold limits are counted; this count value is compared
against the APERS value. If the counter is equal to the APERS
setting an interrupt is asserted. Any time an ALS (CH0) channel
result is inside the threshold values the counter is cleared.
CFG0 Register (Address 0x8D)
Figure 30:
CFG0 Register
Addr: 0x8D
CFG0
Bit
Bit Name
Default
Access
7:3
Reserved
01011
RW
Reserved. Must be set to default value.
2
PWLONG
0
RW
When PWLONG (PROX Wait Long) is asserted the wait
period as set by PWTIME is increased by a factor of 12.
1
AWLONG
0
RW
When AWLONG (ALS Wait Long) is asserted the wait
period as set by AWTIME is increased by a factor of 12.
0
Reserved
0
RW
Reserved. Must be set to default value.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Bit Description
Page 23
Document Feedback
TMD2712 − Register Description
PCFG0 Register (Address 0x8E)
Figure 31:
PCFG0 Register
Addr: 0x8E
Bit
Bit Name
PCFG0
Default
Access
Bit Description
This field along with the PGAIN2 bits in the CFG1
register, sets the gain of the proximity IR sensor.
7:6
PGAIN1
2
(10)
RW
Value
Stage 1 Gain
0 (00)
1x
1 (01)
2x
2 (10)
4x
3 (11)
8x
Maximum number of pulses in a single proximity cycle.
5:0
PPULSE
15
(001111)
RW
Value
Maximum Number of Pulses
0 (000000)
1
1 (000001)
2
2 (000010)
3
…
…
63 (111111)
64
The PPULSE field sets the maximum number of IR VCSEL pulses
that may occur in a proximity cycle. The proximity engine will
automatically continue to add IR VCSEL pulses, up to the value
set in PPULSE or if a near-saturation condition occurs if
Automatic Pulse Control (APC) is enabled. The dynamic range
of the sensor is automatically adjusted to detect distant targets
as well as prevent saturation from close targets. This operation
also reduces power consumption because proximity
integration period is automatically shortened when a target is
close to the sensor.
If Automatic Pulse Control (APC) is disabled by setting bit 6 in
CFG6 to 1, then PPULSE always determines the number of
proximity pulses to be transmitted.
Page 24
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
PCFG1 Register (Address 0x8F)
Figure 32:
PCFG1 Register
Addr: 0x8F
PCFG1
Bit
Bit Name
Default
Access
Bit Description
7:6
PPULSE_
LENH
00
RW
These bits are the 2 most significant bits of the 10-bit
Pulse Length control setting. The lower 8 bits are in the
PCFG2 register. See the PCFG2 register for details.
5:4
Reserved
11
RW
Reserved. Must be set to default value.
This field sets the drive strength of the IR VCSEL
current. Values are approximate; actual current
through the VCSEL is factory trimmed to normalize IR
intensity. For lowest part to part variation, 8mA is
recommended.
3:0
PLDRIVE
2
(0010)
RW
Value
VCSEL Current
5 (0101)
7mA
6 (0110)
8mA
7 (0111)
9mA
8 (1000)
10mA
All other values
Reserved
PCFG2 Register (Address 0x90)
Figure 33:
PCFG2 Register
Addr: 0x90
Bit
Bit Name
PCFG2
Default
Access
Bit Description
These bits are the 8 least significant bits of the 10-bit
Pulse Length control setting. The upper 2 bits are in
the PCFG1 register. The minimum pulse length is 4μs.
7:0
PPULSE_LENL
0x20
RW
Value
Pulse Length
3 (0000000011)
4μs
32 (0000100000)
33μs
Pulse Length = (PULSE_LEN + 1) μs
1023 (1111111111)
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
1024μs
Page 25
Document Feedback
TMD2712 − Register Description
REVID Register (Address 0x91)
Figure 34:
REVID Register
Addr: 0x91
REVID
Bit
Bit Name
Default
Access
Bit Description
7:3
Reserved
00000
RO
Reserved.
2:0
REV_ID
000
RO
Device revision number.
ID Register (Address 0x92)
Figure 35:
ID Register
Addr: 0x92
ID
Bit
Bit Name
Default
Access
7:2
ID
011001
RO
Device type identification.
1:0
Reserved
00
RO
Reserved
Page 26
Document Feedback
Bit Description
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
CFG1 Register (Address 0x93)
Figure 36:
CFG1 Register
Addr: 0x93
CFG1
Bit
Bit Name
Default
Access
7
Reserved
0
RW
Bit Description
Reserved. Must be set to default value.
This field along with the PGAIN1 bits in the PCFG0
register, sets the gain of the proximity IR sensor.
For optimal noise performance, PGAIN2 = 5x is
recommended.
6:5
PGAIN2
3
(11)
RW
Value
Stage 2 Gain
0 (00)
2.5x
1 (01)
5x
2 (10)
Reserved
3 (11)
10x
This field sets the gain of the ALS sensor.
4:0
AGAIN
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
8
(01000)
Value
ALS Gain
5 (00101)
16x
8 (01000)
128x
11 (01011)
1024x
All other values
Reserved
RW
Page 27
Document Feedback
TMD2712 − Register Description
STATUS Register (Address 0x94)
Figure 37:
STATUS Register
Addr: 0x94
STATUS Register
Bit
Bit Name
Default
Access
Bit Description
7
ASAT
0
R, SC
Analog saturation flag signals that the ALS results may
be unreliable due to saturation of the AFE.
6
PSAT
0
R, SC
Proximity saturation flag indicates that an ambient- or
reflective-saturation event occurred during a previous
proximity cycle.
5
PINT
0
R, SC
Proximity interrupt flag indicates that proximity results
have exceeded thresholds and persistence settings.
4
AINT
0
R, SC
ALS interrupt flag indicates that ALS results (CH0) have
exceeded thresholds and persistence settings.
3
CINT
0
R, SC
Calibration interrupt flag indicates that calibration has
completed.
2
ZINT
0
R, SC
Zero detection interrupt flag indicates that a zero value
in PDATA has caused the proximity offset to be
decremented (if AUTO_OFFSET_ADJ = 1).
1
PSAT_REFLECTIVE
0
R, SC
The Reflective Proximity Saturation Interrupt flag signals
that the AFE has saturated during the IR VCSEL active
portion of proximity integration.
0
PSAT_AMBIENT
0
R, SC
The Ambient Proximity Saturation Interrupt flag signals
that the AFE has saturated during the IR VCSEL inactive
portion of proximity integration.
All flags in this register can be cleared by setting the bit high.
Alternatively, if the INT_READ_CLEAR in the CFG3 register bit is
set, then simply reading this register automatically clears all
eight flags.
ALSL Register (Address 0x95)
Figure 38:
ALSL Register
Addr: 0x95
ALSL
Bit
Bit Name
Default
Access
7:0
ALSL
0x00
RO
Page 28
Document Feedback
Bit Description
This register contains the low byte of the 16-bit ALS
channel (CH0) data.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
ALSH Register (Address 0x96)
Figure 39:
ALSH Register
Addr: 0x96
ALSH
Bit
Bit Name
Default
Access
7:0
ALSH
0x00
RO
Bit Description
This register contains the high byte of the 16-bit ALS
channel (CH0) data.
IRL Register (Address 0x97)
Figure 40:
IRL Register
Addr: 0x97
IRL
Bit
Bit Name
Default
Access
7:0
IRL
0x00
RO
Bit Description
This register contains the low byte of the 16-bit IR
channel (CH1) data.
IRH Register (Address 0x98)
Figure 41:
IRH Register
Addr: 0x98
IRH
Bit
Bit Name
Default
Access
7:0
IRH
0x00
RO
Bit Description
This register contains the high byte of the 16-bit IR
channel (CH1) data.
PDATAL Register (Address 0x99)
Figure 42:
PDATAL Register
Addr: 0x99
Bit
7:0
Bit Name
PDATAL
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
PDATAL
Default
0x00
Access
RO
Bit Description
This register contains the low byte of the 14-bit
proximity ADC data when APC is enabled. If APC is
disabled, this register contains the upper 8 most
significant bits of the 10-bit proximity value.
Page 29
Document Feedback
TMD2712 − Register Description
PDATAH Register (Address 0x9A)
Figure 43:
PDATAH Register
Addr: 0x9A
Bit
7:0
Bit Name
PDATAH
PDATAH
Default
Access
0x00
Bit Description
This register contains the high byte of the 14-bit
proximity ADC data when APC is enabled. If APC is
disabled, bits 1:0 contain the lower 2 bits of the 10-bit
proximity value.
RO
Proximity data is stored as a 14-bit value (two bytes). Reading
the low byte first latches the high byte. Proximity detection
uses an Automatic Pulse Control (APC) mechanism that adjusts
the number of pulses per measurement based on the
magnitude of the reflected IR signal. As the magnitude of the
signal increases, the number of pulses decreases. Proximity
detection uses a 10-bit ADC that is extended to a 14-bit dynamic
range for PDATA using the following formula:
PDATA = ADC value x (16 / actual number of pulses transmitted)
PDATA is therefore proportional to the reflected energy
independent of the number of pulses transmitted.
If Automatic Pulse Control (APC) is disabled by setting bit 6 in
CFG6 to 1, then the proximity data converts to a 10-bit value.
PDATAL contains the 8 most significant bits of the 10-bit value
and PDATAH bit locations 1:0 contain the lower 2-bits. When
APC is disabled, only the upper 8-bits are compared against the
threshold values contained in PILTL and PIHTL.
REVID2 Register (Address 0xA6)
Figure 44:
REVID2 Register
Addr: 0xA6
REVID2
Bit
Bit Name
Default
Access
7:4
Reserved
0000
R
Reserved.
3:0
VER_ID
0000 or 1111
R
Device version number.
Page 30
Document Feedback
Bit Description
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
SOFTRST Register (Address 0xA8)
Figure 45:
SOFTRST Register
Addr: 0xA8
SOFTRST
Bit
Bit Name
Default
Access
7:2
Reserved
0
RW
Reserved. Must be set to default value.
RW
Writing a 1 to this bit will cause a power on
reset. This will immediately terminate all
device operation and put the device into the
sleep state.
RW
Writing a 1 to this bit will cause all registers to be
reset to their default state. This will immediately
terminate all device operation and put the
device into the sleep state.
1
POR
0
SOFTRST
0
0
Bit Description
PWTIME Register (Address 0xA9)
Figure 46:
PWTIME Register
Addr: 0xA9
Bit
Bit Name
PWTIME
Default
Access
Bit Description
Value that specifies the wait time in 2.78ms increments.
7:0
PWTIME
0x00
Value
Increments
Wait Time
0x00
1
2.78ms (33.4ms)
0x01
2
5.56ms (66.7ms)
0x11
18
50.0ms (600ms)
0x23
36
100ms (1.20s)
0x3F
64
178ms (2.14s)
0xFF
256
712ms (8.54s)
RW
The wait timer is implemented using a down counter.
Wait time = Increment x 2.78ms. If PWLONG is enabled then Wait
time = Increment x 2.78ms x 12.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 31
Document Feedback
TMD2712 − Register Description
CFG8 Register (Address 0xAA)
Figure 47:
CFG8 Register
Addr: 0xAA
CFG8
Bit
Bit Name
Default
Access
7:0
Reserved
0x2A
RW
Bit Description
Reserved. Must be set to 0x29.
CFG3 Register (Address 0xAB)
Figure 48:
CFG3 Register
Addr: 0xAB
CFG3
Bit
Bit Name
Default
Access
Bit Description
7
INT_READ_CLEAR
0
RW
If set, then flag bits in the STATUS register will be
reset whenever the STATUS register is read over I²C.
6:5
Reserved
0
RW
Reserved. Must be set to default value.
The Sleep After Interrupt bit is used to place the
device into a low power mode upon an interrupt pin
assertion.
4
3:0
SAI
Reserved
0
0001
RW
RW
PON
SAI
INT
Oscillator
0
X
X
OFF
1
0
X
ON
1
1
1
ON
1
1
0
OFF
Reserved. Must be set to default value.
The SAI bit sets the device operational mode following the
completion of an ALS or proximity cycle. If AINT and AIEN are
both set or if PINT and PIEN are both set, causing an interrupt
on the INT pin, and the SAI bit is set, then the oscillator will
deactivate. The device will appear as if PON = 0, however, PON
will read as 1. The device can only be reactivated (oscillator
enabled) by clearing the interrupts in the STATUS register.
Page 32
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
CFG6 Register (Address 0xAE)
Figure 49:
CFG6 Register
Addr: 0xAE
CFG6
Bit
Bit Name
Default
Access
Bit Description
7
Reserved
0
RW
Reserved. Must be set to default value.
6
APC_
DISABLE
0
RW
Proximity automatic pulse control (APC) disable.
0 = APC enable
1 = APC disable
5:0
Reserved
111111
RW
Reserved. Must be set to default value.
POFFSETL Register (Address 0xC0)
Figure 50:
POFFSETL Register
Addr: 0xC0
POFFSETL
Bit
Bit Name
Default
Access
7:0
POFFSETL
0x00
RW
Bit Description
This register contains the magnitude portion of
proximity offset adjust value.
POFFSETH Register (Address 0xC1)
Figure 51:
POFFSETH Register
Addr: 0xC1
POFFSETH
Bit
Bit Name
Default
Access
Bit Description
7:1
Reserved
0
RW
Reserved. Must be set to default value.
0
POFFSETH
0
RW
This register contains the sign portion of
proximity offset adjust value.
Typically, optical and/or electrical crosstalk negatively
influence proximity operation and results. The
POFFSETL/POFFSETH registers provide a mechanism to remove
system crosstalk from the proximity data. POFFSETL and
POFFSETH contains the magnitude and sign of a value which
adjusts PDATA is generated in the AFE. An offset value in the
range of ± 255 is possible.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 33
Document Feedback
TMD2712 − Register Description
CALIB Register (Address 0xD7)
Figure 52:
CALIB Register
Addr: 0xD7
Bit
Bit Name
CALIB
Default
Access
Bit Description
7
CALAVG
0
RW
Enables proximity hardware averaging as
selected with PROX_AVG during calibration.
0 = No hardware averaging
1 = Hardware averaging enabled
6
Reserved
0
RW
Reserved. Must be set to default value.
5
ELECTRICAL_
CALIBRATION
0
RW
Selects proximity calibration type.
0 = Electrical and optical crosstalk.
1 = Electrical crosstalk only.
4
CALPRATE
0
RW
Enables PRATE during calibration. Useful when
averaging is enabled.
0 = PRATE ignored
1 = PRATE applied between averaging samples
3:1
Reserved
0
RW
Reserved. Must be set to default value.
0
START_OFFSET_CAL
0
RW
Set to 1 to start a calibration sequence.
Proximity response in systems with electrical and optical
crosstalk may be improved by using the calibration feature.
Optical crosstalk is caused when the photodiode receives a
portion of the VCSEL IR which was unintentionally reflected by
a surface other than the target. Electrical offset is caused by
electrical disturbance in the sensor AFE, and also influences the
proximity result. The calibration routine adjusts the value in
POFFSETL/H until the proximity result is as close to the binary
search target as possible. Optical and electrical calibration
function identically, except that during an electrical calibration
the proximity photodiode is disconnected from the AFE.
An electrical calibration can be initiated anytime by setting the
ELECTRICAL_CALIBRATION and START_OFFSET_CAL bits. To
perform an optical (and electrical) calibration do not set the
ELECTRICAL_CALIBRATION bit when setting the START_
OFFSET_CALIB. The CINT flag will assert after calibration has
finished. Upon completion proximity offset registers are
automatically loaded with calibration result.
Page 34
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
CALIB_OFFSET Register (Address 0xD8)
Figure 53:
CALIB_OFFSET Register
Addr: 0xD8
CALIB_OFFSET
Bit
Bit Name
Default
Access
7:6
Reserved
0
RW
Reserved. Must be set to default value.
5
EN_RANGE_
EXTENSION
RW
Setting this bit to a 1 enables the proximity offset range
extension functionality. See the OFFSET_RANGE_
EXTENSION bits. If this bit is set to 0, the offset range
extension is disabled.
0
Bit Description
Offset range extension selection.
4:0
OFFSET_
RANGE_
EXTENSION
0
(00000)
Value
Selection
0 (00000)
Nominal
1 (00001)
Nominal + 1 Step
2 (00010)
Nominal + 2 Steps
3 (00011)
Nominal + 3 Steps
RW
Nominal + (Value) Steps
31 (11111)
Nominal + 31 Steps
For applications with high optical proximity crosstalk (the
emitted IR optical signal appears at the IR sensor), the offset
range can be extended in discrete steps. To determine the best
range extension step for the application, a proximity calibration
cycle is initiated and the resulting proximity offset is captured
in the POFFSETL/H registers.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 35
Document Feedback
TMD2712 − Register Description
CALIBCFG Register (Address 0xD9)
Figure 54:
CALIBCFG Register
Addr: 0xD9
Bit
Bit Name
CALIBCFG
Default
Access
Bit Description
Proximity offset calibration result target.
7:5
BINSRCH_
TARGET
2
(010)
Value
PDATA Target
0 (000)
3
1 (001)
7
2 (010)
15
3 (011)
31
4 (100)
63
5 (101)
127
6 (110)
255
7 (111)
511
RW
4
Reserved
1
RW
Reserved. Must be set to default value.
3
AUTO_OFFSET_
ADJ
0
RW
If set, this bit causes the value in POFFSETL register to be
decremented if PDATA ever becomes zero.
PROX_AVG defines the number of ADC samples collected
and hardware averaged during a proximity cycle.
2:0
PROX_AVG
0
(000)
RW
Value
Sample Size
0 (000)
Disable
1 (001)
2
2 (010)
4
3 (011)
8
4 (100)
16
All other values
Reserved
The binary search target field is used by the calibration feature
to set the baseline value for PDATA when no target is present.
For example, calibration of a device in open air, with no target,
and BINSEARCH_TARGET setting of 2 causes the PDATA value to
be approximately 15 counts. This feature is useful because it
forces PDATA result to always be above zero.
Page 36
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Register Description
The PROX_AVG field sets the number of ADC samples that are
averaged. Each ADC sample causes the programmed number
of proximity pulses to be transmitted. Once all samples have
been completed and the average is calculated, the proximity
state machine will then pass this value directly to PDATA.
CALIBSTAT Register (Address 0xDC)
Figure 55:
CALIBSTAT Register
Addr: 0xDC
CALIBSTAT
Bit
Bit Name
Default
Access
Bit Description
7:3
Reserved
0
R
Reserved. Must be set to default value.
2
OFFSET_
ADJUSTED
0
R
Bit is set when the proximity offset has been
automatically decremented if AUTO_OFFSET_
ADJ = 1 (see CALIBCFG register). This bit can
be cleared by writing 1 to it or setting AUTO_
OFFSET_ADJ to 0.
1
Reserved
0
R
Reserved. Must be set to default value.
R
This flag indicates that calibration has
finished. This bit is a copy of the CINT bit in the
STATUS register. It will be cleared when the
CINT bit is cleared.
0
CALIB_FINISHED
0
INTENAB Register (Address 0xDD)
Figure 56:
INTENAB Register
Addr: 0xDD
INTENAB
Bit
Bit Name
Default
Access
7
ASIEN
0
RW
ALS Saturation Interrupt Enable
6
PSIEN
0
RW
Proximity Saturation Interrupt Enable
5
PIEN
0
RW
Proximity Interrupt Enable
4
AIEN
0
RW
ALS Interrupt Enable
3
CIEN
0
RW
Calibration Interrupt Enable
2
ZIEN
0
RW
Zero Detect Interrupt Enable
1:0
Reserved
0
RW
Reserved. Must be set to default value.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Bit Description
Page 37
Document Feedback
TMD2712 − Register Description
FAC_L Register (Address 0xE6)
Figure 57:
FAC_L Register
Addr: 0xE6
FAC_L
Bit
Bit Name
Default
Access
7:0
Reserved
0x00 – 0xFF
R
Bit Description
Reserved for factory use.
FAC_H Register (Address 0xE7)
Figure 58:
FAC_H Register
Addr: 0xE7
FAC_H
Bit
Bit Name
Default
Access
7:0
Reserved
0x00 – 0xFF
R
Bit Description
Reserved for factory use.
TEST9 Register (Address 0xF9)
Figure 59:
TEST9 Register
Addr: 0xF9
TEST9
Bit
Bit Name
Default
Access
7:0
Reserved
0x0C
R/W
Page 38
Document Feedback
Bit Description
Reserved. Must be set to 0x06.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Application Information
Application Information
Schematic
Figure 60:
Typical Applications Circuit
RPU
1.8V
R1
22ȍ
3.0V
C1
2.2µF
C2
2.2µF
RPU
10Kȍ
TMD2712
VDD
SCL
VDD3
SDA
GND
INT
Note(s):
1. Place the 2.2μF VDD (C1) and 2.2μF VDD3 (C2) capacitors within 5mm of the module.
2. The value of the I²C pull up resistors (R PU) should be based on the 1.8V bus voltage, system bus speed and trace capacitance.
3. C1 and C2 are critical components to protect the device during high voltage ESD strikes.
4. In systems subjected to high voltage ESD strikes, it is recommended to connect VDD to a host GPIO pin to allow the device to be
independently power cycled.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 39
Document Feedback
TMD2712 − Application Information
Recommended Circuit Layout
Figure 61:
With INT Pin Operational
With INT pin operational
With INT pin tied to GND
Note(s):
1. The dominant factor governing device performance is the component placement, not necessarily component value. The placement
of the decoupling capacitor, C1, is the most critical. Place the component on the same side of PCB as device as shown in the figure
above. Make connection as close as possible to minimize series inductance and resistance. This is critical.
Page 40
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Package Drawings & Markings
Package Drawings & Markings
Figure 62:
Package Drawings
3$57('*(72352; &/
&/
&/
3$57 &/ 72$/6 &/
3$57 &/ 72352; &/
3$57 &/ 72,5 &/
3$57 &/ 72$/6,5 &/
3$57 &/ 72352; &/
352; &/ 72(0,77(5 &/
$
%
&
;
6&/
9''
,17
;
&/
*1'
6'$
0 & $ %
0 & $ %
;
9''
&/
'(9,&(3,1287
%277209,(:
RoHS
Green
Note(s):
1. All linear dimensions are in millimeters.
2. Dimension tolerances are 0.05mm unless otherwise noted.
3. Contact finish is Au.
4. This package contains no lead (Pb).
5. This drawing is subject to change without notice.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 41
Document Feedback
TMD2712 − Package Drawings & Markings
Recommended PCB Pad Layout
Suggested PCB pad layout guidelines for the surface mount
module are shown. Flash Gold is recommended as a surface
finish for the landing pads.
Figure 63:
Recommended PCB Pad Layout
;
&/
;
&/
;
;
Note(s):
1. All linear dimensions are in millimeters.
2. Dimension tolerances are 0.05mm unless otherwise noted.
3. Contact finish is Au.
4. This drawing is subject to change without notice.
Page 42
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Tape & Reel Information
Tape & Reel Information
Figure 64:
Tape and Reel Information
Note(s):
1. All linear dimensions are in millimeters. Dimension tolerance is ±0.10mm unless otherwise noted.
2. The dimensions on this drawing are for illustrative purposes only. Dimensions of an actual carrier may vary slightly.
3. Symbols on drawing Ao, Bo, and Ko are defined in ANSI EIA Standard 481-B 2001.
4. ams packaging tape and reel conform to the requirements of EIA Standard 481-B.
5. In accordance with EIA standard device pin 1 is located next to the sprocket holes in the tape.
6. This drawing is subject to change without notice.
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
Page 43
Document Feedback
TMD2712 − Soldering & Storage Information
Soldering & Storage
Information
The module has been tested and has demonstrated an ability
to be reflow soldered to a PCB substrate. The solder reflow
profile describes the expected maximum heat exposure of
components during the solder reflow process of product on a
PCB. Temperature is measured on top of component. The
components should be limited to a maximum of three passes
through this solder reflow profile.
Figure 65:
Solder Reflow Profile
Profile Feature
Preheat/ Soak
Sn-Pb Eutectic Assembly
Pb-Free Assembly
Temperature Min (Tsmin)
100 °C
150 °C
Temperature Max (Tsmax)
150 °C
200 °C
Time (ts) from (Tsmin to Tsmax)
60-120 seconds
60-120 seconds
Ramp-up rate (TL to TP)
3 °C/second max.
3 °C/second max.
Liquidous temperature (TL)
Time (tL) maintained above TL
183 °C
60-150 seconds
217 °C
60-150 seconds
Peak package body temperature (TP)
For users TP must not exceed the
classification temp. of 235 °C.
For suppliers TP must equal or
exceed the classification temp.
of 235 °C
For users TP must not exceed the
classification temp. of 260 °C.
For suppliers TP must equal or
exceed the classification temp. of
260 °C
Time (tP) (1) within 5 °C of the
specified classification temperature
(Tc)
20 (1)seconds
30 (1)seconds
Ramp-down rate (TP to TL)
6 °C/second max.
6 °C/second max.
Time 25 °C to peak temperature
6 minutes max.
8 minutes max.
Note(s):
1. Tolerance for peak profile temperature (TP) is defined as a supplier minimum and a user maximum.
Page 44
Document Feedback
ams Datasheet, Confidential
[v1-01] 2020-Aug-27
TMD2712 − Soldering & Storage Information
Figure 66:
Solder Reflow Profile Graph
Not to Scale – For Reference Only
TP
Max Ramp Up Rate = 3°C/s
Max Ramp Down Rate = 6°C/s
TL
TC - 5°C
tP
Temperature (°C)
tL
Tsmax
Preheat Area
Tsmin
25
Time (seconds)
Storage Information
Moisture Sensitivity Optical characteristics of the device can be
adversely affected during the soldering process by the release
and vaporization of moisture that has been previously
absorbed into the package. To ensure the package contains the
smallest amount of absorbed moisture possible, each device is
baked prior to being dry packed for shipping. Devices are dry
packed in a sealed aluminized envelope called a
moisture-barrier bag with silica gel to protect them from
ambient moisture during shipping, handling, and storage
before use.
Shelf Life
The calculated shelf life of the device in an unopened moisture
barrier bag is 12 months from the date code on the bag when
stored under the following conditions:
• Shelf Life: 12 months
• Ambient Temperature: