ams TMD2755 Temperature Sensor Function

Introduction
The purpose of this document is to describe TMD2755 registers that are related to the temperature sensor functionality and how to use them correctly. These registers are not published in the TMD2755 datasheet.
Register Descriptions
Settings for the Temperature Sensor
CFG1 Register (0x91) Bit 7
enab_temp_sensor (Bit7)
Access RW
Description: Enable or disable the comparator for temp sensor
Default 0: Disable temp sensor comparator
Set to 1: Enable temp sensor comparator
ADCCFG Register (0xBF) Bit [1:0]
adc_sel (Bit [1:0])
Access RW
Description: ADC input selection
Default 0: ADC input path for normal prox operation
Set to 1: ADC input path for temp sensor
ADCCFG Register (0xBF) Bit [3:2]
adc_settling (Bit [3:2])
Access RW
Description: ADC settling time selection
Default 1: 2 µs for normal prox operation
Set to 3: 8 µs for temp sensor
CALIB Register (0xD7) Bit 1
start_adc (Bit 1)
Access WS_SC (Write to start self clearing)
Description: Manually start ADC conversion
Default 0: No manual ADC start
Set to 1: Manually start ADC conversion for temp sensor (ADC conversion is automatic for prox when PEN is enabled)
Recommended Sequences in SW Driver
In some applications, there is a need to get the chip temperature information by reading out temp sensor ADCs periodically. At each time of setting up temp sensor and reading 10-bit temp ADCs from PDATA registers, the ongoing prox operation is affected. The sequences in the SW driver have to be optimized to reduce turnaround time, and avoid unwanted prox related interrupts if it operates in interrupt mode.
Sequences from Prox to Temp Sensor
Figure 1 below shows a recommended sequence from normal prox operation to temp sensor operation. The minimum lengths of the timers required are related to some of the prox configurations being used in an application.
Figure 1:
Sequences from Prox to Temp Sensor
| Sequence Step | Actions/States | Notes |
| 0 | Ongoing prox operation | |
| 1 | Disable PEN | Enable Register (x80) |
| 2 | Start timer1 | |
| 3 | Timer1 expires | |
| 4 | Disable prox-related INTs | INTENAB Register (0xDD) |
| 5 | Clear prox-related flags | STATUS Register (0x94) |
| 6 | Disable PWEN | Enable Register (x80) |
| 7 | Disable hw prox_avg | CALIBCFG Register (0xD9) |
| 8 | Set enab_temp_sensor bit to 1 | CFG1 Register (0x91) Bit 7 |
| 9 | Set adc_sel to 1 | ADCCFG Register (0xBF) Bit [1:0] |
| 10 | Set adc_settling to 3 (8µs) | ADCCFG Register (0xBF) Bit [3:2] |
| 11 | Set start_adc bit to 1 | CALIB Register (0xD7) Bit 1 |
| 12 | Start timer2 | |
| 13 | Timer2 expires | |
| 14 | Read 10-bit temp ADC from Pdata registers | Pdata Registers 0x99 and 0x9A |
Sequences from Temp Sensor to Prox
Figure 2 below shows a recommended sequence from temp sensor operation to prox operation. The minimum lengths of the timer required are related to some of the prox configurations being used in an application.
Figure 2:
Sequences from Temp Sensor to Prox
| Sequence Step | Actions/States | Notes |
| 0 | Temp sensor option just finished | |
| 1 | Set enab_temp_sensor bit to 0 | CFG1 Register (0x91) Bit 7 |
| 2 | Set adc_sel to 0 | ADCCFG Register (0xBF) Bit [1:0] |
| 3 | Set adc_settling to 1 (2µs) | ADCCFG Register (0xBF) Bit [3:2] |
| 4 | Clear prox-related flags | STATUS Register (0x94) |
| 5 | Enable prox-related INTs | INTENAB Register (0xDD) |
| 6 | Set hw prox_avg to its original setting | CALIBCFG Register (0xD9) |
| 7 | Enable PWEN | Enable Register (x80) |
| 8 | Enable PEN | Enable Register (x80) |
| 9 | Start timer | |
| 10 | Timer expires | |
| 11 | First valid Pdata available. Prox now running | Pdata Registers 0x99 and 0x9A |
Revision Information

Legal Information
Copyrights & Disclaimer
Copyright ams AG, Tobelbader Strasse 30, 8141 Premstaetten, Austria-Europe. Trademarks Registered. All rights reserved. The material herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner.
Information in this document is believed to be accurate and reliable. However, ams AG does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information.
Applications that are described herein are for illustrative purposes only. ams AG makes no representation or warranty that such applications will be appropriate for the specified use without further testing or modification. ams AG takes no responsibility for the design, operation and testing of the applications and end-products as well as assistance with the applications or end-product designs when using ams AG products. ams AG is not liable for the suitability and fit of ams AG products in applications and end-products planned.
ams AG shall not be liable to recipient or any third party for any damages, including but not limited to personal injury, property damage, loss of profits, loss of use, interruption of business or indirect, special, incidental or consequential damages, of any kind, in connection with or arising out of the furnishing, performance or use of the technical data or applications described herein. No obligation or liability to recipient or any third party shall arise or flow out of ams AG rendering of technical or other services.
ams AG reserves the right to change information in this document at any time and without notice.
RoHS Compliant & ams Green Statement
RoHS Compliant: The term RoHS compliant means that ams AG products fully comply with current RoHS directives. Our semiconductor products do not contain any chemicals for all 6 substance categories plus additional 4 substance categories (per amendment EU 2015/863), including the requirement that lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, RoHS compliant products are suitable for use in specified lead-free processes.
ams Green (RoHS compliant and no Sb/Br/Cl): ams Green defines that in addition to RoHS compliance, our products are free of Bromine (Br) and Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight in homogeneous material) and do not contain Chlorine (Cl not exceed 0.1% by weight in homogeneous material).
Important Information: The information provided in this statement represents ams AG knowledge and belief as of the date that it is provided. ams AG bases its knowledge and belief on information provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. ams AG has taken and continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals. ams AG and ams AG suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release.
Headquarters
ams AG
Tobelbader Strasse 30
8141 Premstaetten Austria, Europe
Tel: +43 (0) 3136 500 0
Please visit our website at www.ams.com
Buy our products or get free samples online at www.ams.com/Products
Technical Support is available at www.ams.com/Technical-Support
Provide feedback about this document at www.ams.com/Document-Feedback
For sales offices, distributors and representatives go to www.ams.com/Contact
For further information and requests, e-mail us at a[email protected]
















