SENSYLINK Microelectronics Co., LTD. (CT1701) Single-Wire Digital Temperature Sensor

Similar documents
SENSYLINK Microelectronics Co., LTD. (CT1820HT) Single-Wire Digital Temperature Sensor

SENSYLINK Microelectronics Co., LTD. (CT1820S) Single-Wire Digital Temperature Sensor

DS2401 Silicon Serial Number

DS2401 Silicon Serial Number

DS2405. Addressable Switch PIN ASSIGNMENT

FM24C02B/04B/08B/16B 2-Wire Serial EEPROM

FM24C02A 2-Wire Serial EEPROM

Figure 1 Typical Application Circuit

DS1821 Programmable Digital Thermostat and Thermometer

DS1821 Programmable Digital Thermostat and Thermometer

TS2043 Preliminary CMOS IC

± 2g Tri-axis Accelerometer Specifications

DS2430A 256-Bit 1-Wire EEPROM

ACE24AC64 Two-wire Serial EEPROM

Low Voltage, 10-Bit Digital Temperature Sensor in 8-Lead MSOP AD7314

Features. Description. Applications. Block Diagram PT7M3808. Fixed Voltage Diagram. Adjustable Voltage Diagram(PT7M3808G01)

ACE24AC02A1 Two-wire Serial EEPROM

Digital Thermometer and Thermostat

DS2401. Silicon Serial Number FEATURES PIN ASSIGNMENT

ACE24AC128 Two-wire Serial EEPROM

VBattery 7 VCC V DD IRLED IS31SE5001 SDA SCL INTB SDB. Figure 1 Typical Application Circuit

DS2223/DS2224. EconoRAM FEATURES PACKAGE OUTLINE. PIN CONNECTIONS Pin 1 GND Ground Pin 2 DQ Data In/Out Pin 3 V CC Supply Pin 4 GND Ground

DS WIRE INTERFACE 11 DECOUPLING CAP GND

DS Wire Digital Thermometer and Thermostat

LM75A Digital temperature sensor and thermal watchdog

ACE24AC16B Two-wire Serial EEPROM

DS75 Digital Thermometer and Thermostat

DS kbit Add-Only Memory

Debounced 8 8 Key-Scan Controller

Digital Thermometer and Thermostat

ACE24AC02A3C Two-wire Serial EEPROM

2:1 MULTIPLEXER CHIP FOR PCI-EXPRESS ICS Description. Features. Block Diagram DATASHEET

Digital Thermometer and Thermostat in SOT23

ORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE

DS1845 Dual NV Potentiometer and Memory

GT24C WIRE. 1024K Bits. Serial EEPROM

XRA BIT I2C/SMBUS GPIO EXPANDER WITH INTEGRATED LEVEL SHIFTERS

GT24C256 2-WIRE. 256K Bits. Serial EEPROM

A24C08. AiT Semiconductor Inc. ORDERING INFORMATION

2:1 MULTIPLEXER CHIP FOR PCI-EXPRESS ICS Features

XRA1201/1201P 16-BIT I2C/SMBUS GPIO EXPANDER

DS1631/DS1631A/DS1731 High-Precision Digital Thermometer and Thermostat

GT34C02. 2Kb SPD EEPROM

XRA1202/1202P 8-BIT I2C/SMBUS GPIO EXPANDER WITH RESET

Digital Thermometers and Thermostats with SPI/3-Wire Interface

A24C02. AiT Semiconductor Inc. ORDERING INFORMATION

±0.5 C Accurate, 16-Bit Digital SPI Temperature Sensor ADT7310

DS1625. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT

FM24C1024A. Apr Data Sheet. Data Sheet FM24C1024A 2-wrie Serial EEPROM Ver 1.1 1

2-Wire, 5-Bit DAC with Three Digital Outputs

DS1626/DS1726 High-Precision 3-Wire Digital Thermometer and Thermostat

HL2430/2432/2434/2436

ACE803ND 3-Pin Microprocessor Reset Circuits

Digital Thermometer and Thermostat

DS18B20 Programmable Resolution 1-Wire Digital Thermometer

MAS6240 Piezo Driver with Multi-Mode Charge Pump

DS1624 Digital Thermometer and Memory

A24C64. AiT Semiconductor Inc. ORDERING INFORMATION

PI4IOE5V bit I 2 C-bus and SMBus low power I/O port with interrupt and reset

ILI2511. ILI2511 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.4. Date: 2018/7/5

UNISONIC TECHNOLOGIES CO.,LTD. UL318 Preliminary LINEAR INTEGRATED CIRCUIT

SN8200 LI+ DUAL BATTERY CONTROLLER

DS28CM00. I²C/SMBus Silicon Serial Number

ORDERING INFORMATION # of Ports Pressure Type Device Name

PCA bit multiplexed/1-bit latched 6-bit I 2 C EEPROM DIP switch

ILI2303. ILI2303 Capacitive Touch Sensor Controller. Specification

FEATURES APPLICATIONS C1 C2 C3 C4 C5 C6 C7 C8 R8/C9 R7/C10 R6/C11. Figure 1 Typical Application Circuit

FM24C32A/64A 2-Wire Serial EEPROM

XRD87L85 Low-Voltage CMOS 8-Bit High-Speed Analog-to-Digital Converter

INTEGRATED CIRTUIT OF DIGITAL THERMOMETER OF INDUSTRIAL TEMPERATURE RANGE (functional equivalent of DS18B20 "Maxim-Dallas Semiconductor")

PI4IOE5V bit general purpose outputs for 1MHz I 2 C bus

DS1855 Dual Nonvolatile Digital Potentiometer and Secure Memory

SRV05-4L. Ultra Low Capacitance Array for ESD Protection. Features. Description. Main applications. Protection solution to meet. Ordering Information

PI4IOE5V bit I 2 C-bus and SMBus I/O port with reset. Description. Features. Pin Configuration

Freescale Semiconductor Data Sheet: Technical Data

A8241. AiT Semiconductor Inc. APPLICATION ORDERING INFORMATION. Low 60mV Dropout at 20mA 4% LED Current Matching

USB Charging Controller

WS3210C62 WS3210C62 Over-Voltage Protection Load Switch Descriptions CSP-9L (Bottom View) Pin Configuration (Top View)

APX803/D 3-PIN MICROPROCESSOR RESET CIRCUIT. Description. Pin Assignments. Features. Applications APX803. ( Top View ) SOT23. ( Top View ) SOT23R GND

Figure 1: TSSOP-24 ( Top View ) Figure 2: TQFN 4x4-24 ( Top View )

DS2430AP. 256 Bit 1 Wire TM EEPROM FEATURES PIN ASSIGNMENT

FM24C16C-GTR. 16Kb Serial 5V F-RAM Memory. Features. Description. Pin Configuration NC NC NC VSS VDD WP SCL SDA. Ordering Information.

SKB360I Bluetooth 4.0 Low Energy Module Datasheet

12-Bit Plus Sign Temperature Sensors with SMBus/I2C-Compatible Serial Interface

GT24C64 2-WIRE. 64K Bits. Serial EEPROM

ILI2312. ILI2312 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.03.

2 TO 4 DIFFERENTIAL CLOCK MUX ICS Features

Craft Port Tiny RS-232 Transceiver for Portable Applications ADM101E. Data Sheet FUNCTIONAL BLOCK DIAGRAM

4-Megabit 2.7-volt Only Serial DataFlash AT45DB041. Features. Description. Pin Configurations

DS1302. Trickle Charge Timekeeping Chip FEATURES PIN ASSIGNMENT PIN DESCRIPTION

Remote 16-bit I/O expander for Fm+ I 2 C-bus with interrupt and reset. Description

RM24C64AF 64-Kbit 1.65V Minimum Non-volatile Fast Write Serial EEPROM I 2 C Bus

FM24C16B-GTR. 16Kb Serial 5V F-RAM Memory. Features. Pin Configuration. Description. Ordering Information NC NC NC VSS VDD WP SCL SDA.

DIO V Current Limited Load Switch

CW2013. Low-Cost 1s Fuel Gauge IC with Low-SOC Alert. General Description. Features. Applications. Order Information

PCIe 3.0 Clock Generator with 4 HCSL Outputs. Description OE VDDXD S0 S1 S2 X1 X2 PD OE GNDXD IREF CLK0 CLK0 CLK1 CLK1 CLK2 CLK2 CLK3 CLK3

XRD8775 CMOS 8-Bit High Speed Analog-to-Digital Converter

UM3221E/UM3222E/UM3232E

Stereo PDM-to-I 2 S or TDM Conversion IC ADAU7002

GT24C02. 2-Wire. 2Kb Serial EEPROM (Smart Card application)

Transcription:

SENSYLINK Microelectronics () Single-Wire Digital Temperature Sensor is a Low Cost Digital Temperature Sensor with±0.1 C Accuracy over 33 C to 43 C with Single-wire Interface. It is ideally used in General Temperature Monitor, Human Body Temperature Measurement etc. 1

Table of Contents DESCRIPTION... 4 FEATURES... 4 APPLICATIONS... 4 PIN CONFIGURATIONS (TOP VIEW)... 4 TYPICAL APPLICATION... 4 PIN DESCRIPTION... 5 FUNCTION BLOCK... 5 ORDERING INFORMATION... 6 ABSOLUTE MAXIMUM RATINGS (NOTE 3)... 7 RECOMMENDED OPERATING CONDITIONS... 7 ELECTRICAL CHARACTERISTICS (NOTE 4)... 8 1 FUNCTION DESCRIPTIONS... 11 1.1 DIGITAL TEMPERATURE DATA... 11 1.2 DEVICE READY COMMAND [0XCC]... 12 1.3 TEMPERATURE CONVERSION [0X44]... 12 1.4 READ TEMPERATURE COMMAND [0XBE]... 12 2 SINGLE-WIRE COMMUNICATION PROTOCOL... 13 3 SOFTWARE REFERENCE CODE... 16 PACKAGE OUTLINE DIMENSIONS... 19 2

Figures and Tables Figure 1. Typical Application of... 4 Figure 2. function block... 5 Figure 3. Communication Protocol Operation Diagram... 9 Figure 4. Read Temperature Diagram [Temperature Data is 0x01, 0x90, means 25 o C]... 10 Figure 5 Initialization Timing Diagram... 14 Figure 6 Read/Write Timing Slot Diagram... 15 Table 1. 12-bit Temperature Data... 11 Table 2. Temperature Data in Register... 12 3

Description is a low cost digital temperature sensor with ±0.1 o C accuracy over 33 o C to 43 o C Temperature data can be read out directly via Single- Wire interface by MCU. It includes a high precision band-gap circuit, a 13- bit analog to digital converter that can offer 0.03125 o C resolution, a calibration unit with non-volatile memory and a digital interface block. The chip is calibrated for ±0.1 o C(Max.) accuracy over 33 o C to 43 o C range in factory before shipment to customers. Available Package: SOT-23 package Features Operation Voltage: 2.2V to 5.5V Operating Current: 15uA(Typ.) during Temperature Conversion; Average Current Consumption: 0.55uA(Typ.) with reading once temperature per second Standby Current: 0.1uA(Typ.), 0.3uA(Max.) Temperature Conversion time: 35ms(Typ.) Temperature Accuracy: ±0.1 o C(Max.) from 33 o C to 43 o C 13 bit ADC for 0.03125 o C resolution Temperature Range: -40 o C to 125 o C Applications General Temperature Monitor Human Body Temperature Monitor PIN Configurations (Top View) GND 1 2 3 VCC DIO Typical Application SOT-23 (package code K) VCC = 2.2V to 5.5V MCU GPIO Rp 1.0-4.7k VCC DIO GND Figure 1. Typical Application of 4

Pin Description PIN No. PIN Name Description 1 VCC 2 DIO 3 GND Ground pin. Power supply input pin, it should connect a 100nF to 1.0uF ceramic cap at least to ground. Digital interface data input and output pin, Generally it needs a pull-up resistor to VCC in most applications, between 1.0k and 4.7k. Function Block VCC Regulator Amplifer &ADC Digital Logic & Interface DIO T-Sensor VREF Calibration Memory GND Figure 2. function block 5

Ordering Information X X Package Type K : SOT-23 Packing R : Tape & Reel Order PN Accuracy Green 1 Package KR ±0.1 o C Halogen free Marking ID 2 Packing MPQ Operation Temperature SOT-23 AEWW Tape&Reel 3,000-40 o C~+125 o C Notes 1. Based on ROHS Y2012 spec, Halogen free covers lead free. So most package types Sensylink offers only states halogen free, instead of lead free. 2. Marking ID includes 2 rows of characters. In general, the 1 st row of characters are part number, and the 2 nd row of characters are date code plus production information. 1) Generally, date code is represented by 3 numbers. The number stands for year and work week information. e.g. 501stands for the first work week of year 2015;621 stands for the 21st work week of year 2016. 2) Right after the date code information, the next 2-3 numbers or letters are specified to stands for supplier or production location information. 3. For very small outline package, there s 4 digits to stands for product information and date code, first 2 digits represent product code, and the other 2 digits stands for work week 6

Absolute Maximum Ratings (Note 3) Parameter Symbol Value Unit Supply Voltage V CC to GND -0.3 to 5.5 V I/O pin Voltage V IO to GND -0.3 to 5.5 V Operation junction temperature T J -50 to 150 ºC Storage temperature Range T STG -65 to 150 ºC Lead Temperature (Soldering, 10 Seconds) T LEAD 260 ºC ESD MM ESD MM 600 V ESD HBM ESD HBM 6000 V ESD CDM ESD CDM 1000 V Note 3 1. Stresses greater than those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. These are stress ratings only. Functional operation of the device at the "Absolute Maximum Ratings" conditions or any other conditions beyond those indicated under "Recommended Operating Conditions" is not recommended. Exposure to "Absolute Maximum Ratings" for extended periods may affect device reliability. 2. Using 2oz dual layer (Top, Bottom) FR4 PCB with 4x4 mm 2 cooper as thermal PAD Recommended Operating Conditions Parameter Symbol Value Unit Supply Voltage V CC 2.2 ~ 5.5 V Ambient Operation Temperature Range T A -40 ~ +125 C 7

Electrical Characteristics (Note 4) Test Conditions: V CC = 3.3V, T A = -40 to 125 o C unless otherwise specified. All limits are 100% tested at T A =25 o C. Parameter Symbol Test Conditions Min Typ Max Unit Supply Voltage V CC 2.2 5.5 V Temperature Accuracy T AC T A = 33 o C to 43 o C -0.1 0.1 T A = -40 o C to 125 o C -0.8 0.8 Temperature Resolution 13-bit ADC 0.03125 Operating Current I OC during Temperature conversion 15 ua Shutdown Current I SHUTDOWN Idle, not temperature conversion 0.1 0.3 ua Average Operating Current I AOC 1 time reading temperature per second 0.55 ua Conversion time t CON From active to finish completely 35 ms Digital Interface Logic Input Capacitance C IL I/O pin 20 pf Logic Input High Voltage V IH I/O pin 1.0 VCC- 1.5V V Logic Input Low Voltage V IL I/O pin 0 0.5 V Logic Input Current I INL I/O pin -2.0 2.0 ua Communication Timing Single-Wire Communication Clock T CLK 12 us Recovery time t REC 3.0 us Time slot for "0" or "1" t SLOT 4*T CLK+ t REC Initialization Low Time t INIT 32*T CLK us Initialization Low Response Time t PDL 8* T CLK us Initialization Response Sampling t HSP 2*T CLK 10*T CLK us Time Write '0' Low Time' t W0L 4*T CLK 8*T CLK us Write '1' Low Time' t W1L 2.0 1*T CLK us Read bit Low Time t RL 2.5 1*T CLK us Read bit sampling Time t HSR t RL 2*T CLK us o C o C o C us 8

Part 1 Part 2 Part 3 Initialization the slave device, pull-low DIO pin with 450us to 650us duration time. Send below Command Code respectively with LSB first, 1). 0xCC, [Device Ready]; 2). 0x44, [Temperature Conversion]; 3). Pull up DIO, and waiting for 35ms at least until the chip finish temperature conversion. 4). 0xBE, [Read Temperature]; Then the chip will output 2 bytes temperature data, 1). LSB byte in first; 2). MSB byte secondly. Figure 3. Communication Protocol Operation Diagram 9

Initialization 0xCC... 0x44 Temperature Conversion cont Initialization 0xCC 0xBE cont... Temp_LSB [0x90] Temp_MSB [0x01] The End or using Initialization for next time cont... Figure 4. Read Temperature Reference Diagram [Temperature Data is 0x90, 0x01, means 25 o C] *Note: 1.During initialization, MCU has to pull-low DIO pin with time range: 450us to 650us; 2. For temperature conversion, it will spends 35ms time in typical, user can check the finish FLAG by monitoring DIO pin every certain time, like 5ms, or just wait for 40ms. 10

1 Function Descriptions The chip can sense temperature and convert it into digital data by a 13-bit ADC. Single-Wire interface's protocol shown in Figure-3. Generally, one complete communication with host or reading temperature by host, like MCU, include Part1, Part2 and Part3. And the time diagram is shown as below Figure-4. In general, user can obtain the temperature by following below example operation procedure. Function Initialization Force the device do temperature conversion Initialization Read temperature data Data transmission Data on line (LSB first) direction Comments (host) Step 1, Initialization & temperature conversion Tx low pulse with 450us to The host generate valid initialization low pulse 650us duration. Rx Low presence pulse The device response this by presenting low pulse Tx 0xCC Make sure the chip is ready for Temp conversion. Tx 0x44 Temperature conversion Host read the status bit is '0 ', then the temperature conversion has not been completed; If '1', then the Rx Finish checking temperature conversion is complete. This step can also wait the required time of the temperature conversion (>35ms in Typ.). Step 2, read temperature data from single-wire Tx low pulse with 450us - The host generate valid low pulse 650us duration. Rx Low presence pulse The device response this by presenting low pulse Tx 0xCC Make sure the chip is ready for reading temperature. Tx 0xBE Reading Temperature Data command Rx 2 bytes, LSB in first, The chip sends 2 bytes of temperature data, with then MSB. LSB first, then MSB. Once the chip finished sending data [0xFF], the chip 0xFF/Initialization Again will enter into standby mode. The ends 1.1 Digital Temperature Data The major function of the chip is to measure temperature. The A-to-D converter resolution of the sensor is 13 bit, corresponding to 0.03125 C resolution. The powers up in a low-power idle state. To initiate a temperature measurement and A-to-D conversion, the host has to issue a Temperature Conversion command [0x44h]. After the conversion, the temperature data is stored in the 2-byte temperature register in the registers [0x00, 0x01], and then the chip returns to idle state. The temperature data is stored in the temperature register as a 16-bit sign-extended two s complement format in degrees Celsius. The sign bits(s) indicate if the temperature is positive or negative: for positive numbers S = 0 and for negative numbers S = 1. Table 1 and Table 2 show examples of digital output data and the corresponding temperature ( o C). Table 1. 13-bit Temperature Data Temperature ( C) Digital Output (HEX) Digital Output (BIN) +127.96875 0x0FFF 0000, 1111, 1111, 1111 +37.03125 0x04A1 0000, 0100, 1010, 0001 0.0000 0x0000 0000, 0000, 0000, 0000-10.1250 0xFF5E 1111, 1111, 0101, 1110 11

Table 2. Temperature Data in Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 LSB 2 2 2 1 2 0 2-1 2-2 2-3 2-4 2-5 MSB S S S S 2 6 2 5 2 4 2 3 1.2 Device Ready Command [0xCC] After the host detects a presence pulse, it can issue a Device Ready command. The command code length is 8-Bit. Before perform Temperature conversion command [0x44] is issued, the host must submit this command. Please note, if user issue a Device Ready command followed by a Read temperature [0xBE] command, the temperature data will be output at single-wire. 1.3 Temperature Conversion [0x44] This command forces the chip to do temperature conversion. After the conversion is complete, the measured temperature data will be stored into the register temporary. then returns to a low-power idle state. The host monitors the conversion process in each time slot. When the host reads the logic '1 'instead of '0', it indicates the temperature conversion is complete. 1.4 Read Temperature Command [0xBE] This command allows the host to read the temperature data measured in last time. Data transmission always starts from LSB byte in first, the MSB byte. Also the host can send a initialization low pulse signal to end this reading operation. The detail timing diagram is shown as above Figure-4. 12

2 Single-Wire Communication Protocol Single-Wire Protocol consists of a host and a salve device. In any case, is used as slave device. The host could be a microcontroller or SoC. Discussion of Single-Wire Protocol is divided into three parts: the hardware configuration, the operation sequence and Single-Wire timing. 2.1 Hardware Configuration According to the definition of Single-Wire Protocol, it has only one data line physically. In order to facilitate this, the slave device on the line needs to have open-drain or tri-state output, and 's DIO pin uses an open-drain output. A typical circuit is shown in above Figure 1. supports fixed 15kbps (default rate) communication rate. For other communication rate, please contact Sensylink sales. Pull-up resistor depends primarily on the distance between the host and CT7310. For example with the communication distance of less than 20cm, a single node and an independent power supply condition, requires an external 4.7kΩ (typical) pull-up resistor. If the communication distance is greater than 30m, you need a 1.0k or smaller pull-up resistor. Single-Wire line in idle state is high. It is ok to use another IO pin (GPIO-0) of host instead of VDD, shown as below. Both GPIO pins can be set low once finished temperature conversion & reading, which can saved power consumption further. IO Volts = 2.2V to 5.5V GPIO-0 MCU GPIO-1 Rp 1.0-4.7k VCC DIO GND 2.2 Operation Sequence To access through Single-Wire Line (DIO pin), the complete procedure is shown as previous Figure 3 and Figure 4, it includes: Part 1, Initialization. Part 2, Device Ready command, Temperature Conversion command and Read temperature command. Part3, Data Receiving/Transmitting, includes receive data from Single-Wire device or send data to Singe-Wire device. 2.3 Initialization All operations of Single-Wire line always begins with a Initialization. It consists of a low pulse sent by the host and a device responses pulse shown in below Figure. The presence pulse is used to notify the host that is already connected on the line. When the slave device sends a response pulse to the host, it tells the host that it is on the line and ready to work. During the initialization process, host pulls the line low for t INIT period time (450us to 650us), thus produces (Tx) Initialization pulse. Then, the host releases the line and goes into receive mode (Rx). When the line is released, the line is pulled up by an external pull-up resistor. Single-Wire device operating clock T is set in production. When a Single-Wire device detects a rising edge, it will remain high for t PDH (2T in typical), then the Single-Wire device generates a presence 13

pulse by pulling the line low for t PDL (8T in typical). After that the line is released and pulled back high by the external pull-up resistor, at least keeping the 6T time. Thus, the entire Single-Wire device response cycle is at least t PD (16T in typical). After that, the host can begin to perform Device Ready command [0xCC]. If user needs more precise communication time match, the host can measure the Single-Wire device response t PDL (8T in typical) low pulse, and adjust the time of the original Initialization pulse, t INIT, and the read sampling timing. Once the device successfully captures the initialization low pulse, it will use it to set the communication speed. Single-Wire communication rate is fixed and NOT be change. Host Tx Initialization low pulse Host Rx pulse: t PD treset t PDH tpdl Device presence pulse VCC/VPULL-UP GND Host pull low External resistor pull-up Device pull low Figure 5 Initialization Timing Diagram 2.4 Single-Wire Timing After complete initialization successfully on Single-Wire line, the next step is to perform Device ready command. The following section is to descript the bit transmission. The protocol defines several signal types: initialization pulse, presence pulse, write 0, write 1, read 0, and read 1. All these signals are synchronous signals issued by the host. And all the commands and data are the low byte first. For each byte data transmission, it is always LSB first. During Write Time Slot the host writes data to a the slave device; and during the Read Time Slot, the host reads the data from the slave device. Write Time Slot There are two write time slot modes: write "1" and write "0" slot. The host writes into Single-Wire device "1" by using a write "1" slot, and host write into Single-Wire device "0" by using write "0". All write time slots are at least t SLOT (4*T + t REC in typical), and need the recovery time at least 3μs between two separate time slots. Two kinds of write slots start with pull-down line by the host shown in below Figure 6. To produce a write "1" slot, the host must release the line within t W1L (<= 1*T) after pulling down for 1us, and then the line is pulled-up by an external pull-up resistors on the line. To produce a write "0" slot, after the host is pulling the line low, it maintains a low level during the entire time slot, that is t W0L (> = 4T). During the write time slots, Single-Wire device samples line level status at t SSR (2*T in typical) time. If sampling results at this time is high, then the logic "1" is written to the device; If "0", the write logic is "0". Read Time Slot Single-Wire device can only transmit data to the host after the host issues read time slots. After the host issues a read temperature command, a read time slot must be generated in order to read data from the Single-Wire device. A complete read time slot is at least t SLOT (4*T + t REC ), and requires at least 3us 14

recovery time between two separate time slots. Each time slot is generated by the host to initiate the read bit, a low level period is required to be at least 1μs shown in Figure 6. Once the device detects a Single- Wire line low, the device immediately sent bit "0" or "1" on the line. If Single-Wire device sends "1", the line is pulled-up high by a pull-up resistor after the short low period; if sent "0", then the line is keeping low for t DRV (2*T in typical). After that the device releases the line from pull-up resistors and back to idle high. Therefore, the data issued by Single-Wire device after read time slot at the beginning stay effective during time t DRV (2*T in typical). During the read time slots the host must release the line, and samples the line states at 2T after the start of a slot (optimum sampling time point 1T). Host write 0 time slot Host write 1 time slot t W0L = 4*T t REC: 1us to 1us< t W1L <1*T VCC/VPULL-UP GND Slave sampling time: t SSR Min. Typ. Max. Slave sampling time: t SSR Min. Typ. Max. T T 2*T T T 2*T t SLOT = 4*T+t REC Host read 0 time slot Host read 1 time slot t REC: 1us to >1us VCC/VPULL-UP GND >1us host sampling time: t HSR = 1*T host sampling time: t HSR =1*T T T 2*T T T 2*T t RDV = 2*T t RDV = 2*T Host pull low External resistor pull-up Device pull low Figure 6 Read/Write Timing Slot Diagram 15

3 Software Reference Code Below are windows based GUI of demo application for Sensylink temperature sensor, select page, there are 2 Buttons. Press [connect] button, then press [Read Temperature] button, temperature data will be displayed, as shown on the right side. Below lists reference software code based on C++ language. For more information about software source code support, please contact our sales. 16

1. /**********************************************/ 2. uchar Init() 3. { 4. uchar i; 5. DIOPORT = 0; //pull-low line 6. delay600us(); //delay 450us to 650us 7. DIOPORT = 1; //pull-high line 8. i = 0; // 9. while(dioport) //waiting for pull-low line, once give response. 10. { 11. delay500us(); 12. i++; 13. if(i>1)//if waiting time > 5ms 14. { 15. return 0;//Return 0, initialization fail 16. } 17. } 18. return 1;// Return 1, initialization success 19. } 20. 21. void _Write_Byte(uchar dat) 22. { 23. uint j; 24. for(j=0; j<8; j++) 25. { 26. DIOPORT = 0; //pull-low line with 1us 27. i++; 28. delay7us(); 29. DIOPORT = dat & 0x01; //write one-bit data with LSB in first 30. delay50us(); 31. DIOPORT = 1; //release single-wire line,to be ready for next byte 32. dat >>= 1; 33. } 34. } 35. 36. uchar _Read_Byte() 37. { 38. uchar byte, bi; 39. uint i, j; 40. for(j=8; j>0; j--) 41. { 42. DIOPORT = 0;//pull-low line with 1us 43. DIOPORT = 1;//then release line 17

44. bi = DIOPORT; //Read Data from line, LSB in first 45. /*move byte 1-bit to right,& move bi 7-bit to left*/ 46. byte = (byte >> 1) (bi << 7); 47. delay48us(); 48. } 49. return byte; 50. } 51. void _Temp_Conv() 52. { 53. Init(); 54. _Write_Byte(0xcc); // make the chip ready command 55. delay50us(); 56. _Write_Byte(0x44); // Temp converter command 57. delay50ms(); 58. } 59. 60. void _Read_Temp_Com() 61. { 62. Init(); 63. delay200us(); 64. _Write_Byte(0xcc); // make the chip ready Command 65. delay200us(); 66. _Write_Byte(0xbe); // Read temperature command 67. } 68. 69. int _Read_Temp_Degree() 70. { 71. int temp = 0; 72. uchar tmh, tml; 73. _Temp_Conv(); //Send Temp converter command, 0x44 74. _Read_Temp_Com(); //Read Temp 75. delay200us(); 76. tml = _Read_Byte(); //Read LSB for Temperature in first 77. delay200us(); 78. tmh = _Read_Byte(); //Then read MSB, Reg1_T_MSB 79. temp = tmh; 80. temp <<= 8; 81. temp = tml; 82. return temp; 83. } 84. 18

Package Outline Dimensions SOT-23 Unit (mm) θ Symbol Dimensions in Millimeters Dimensions in Inches Min. Max. Min. Max. A 0.900 1.150 0.035 0.045 A1 0.000 0.100 0.000 0.004 A2 0.900 1.050 0.035 0.041 b 0.300 0.500 0.012 0.020 c 0.080 0.200 0.003 0.008 D 2.800 3.000 0.110 0.118 E 1.200 1.400 0.047 0.055 E1 2.200 2.600 0.087 0.102 e 0.950(BSC) 0.037(BSC) e1 1.800 2.000 0.071 0.079 L 0.300 0.600 0.012 0.024 θ 0 8 0 8 19

SENSYLINK SENSYLINK Microelectronics Co.,Ltd www.sensylink.com IMPORTANT NOTICE SENSYLINK Microelectronics Co., Ltd reserves the right to make modifications, enhancements, improvements, corrections or other changes without further notice to this document and any product described herein or to discontinue any product or service. Customers should obtain the latest relevant information before placing orders and should verify the latest and complete information. SENSYLINK Microelectronics does not assume any responsibility for use of any product, nor does SENSYLINK Microelectronics any liability arising out of the application or use of this document or any product or circuit described herein. SENSYLINK Microelectronics assumes no liability for applications assistance or the design of Customers products. Customers are responsible for their products and applications using SENSYLINK Microelectronics components. SENSYLINK Microelectronics does not convey any license under its patent or trademark rights nor the other rights. SENSYLINK Microelectronics Co., Ltd 2018. 20