0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
TDC7201ZAXT

TDC7201ZAXT

  • 厂商:

    BURR-BROWN(德州仪器)

  • 封装:

    TFBGA25

  • 描述:

    ICTIMETODIGITALCONV25-NFBGA

  • 数据手册
  • 价格&库存
TDC7201ZAXT 数据手册
Product Folder Sample & Buy Support & Community Tools & Software Technical Documents TDC7201 SNAS686 – MAY 2016 TDC7201 Time-to-Digital Converter for Time-of-Flight Applications in LIDAR, Range Finders, and ADAS 1 Features 3 Description • • • The TDC7201 is designed for use with ultrasonic, laser and radar range finding equipment using timeof-flight technique. The TDC7201 has two built-in Time-to-Digital Converters (TDCs) that can be used to measure distance down to 4 cm and up to several kilometers using a simple architecture, which eliminates the need to use expensive FPGAs or processors. 1 • • • • • • Resolution: 55 ps Standard Deviation: 35 ps Measurement Range: – Individual Mode 1: 12 ns to 2000 ns – Individual Mode 2: 250 ns to 8 ms – Combined Operation: 0.25 ns to 8 ms Low Active Power Consumption: 2.7 mA Supports up to 10 STOP Signals Autonomous Multi-Cycle Averaging Mode for Low Power Consumption Supply Voltage: 2 V to 3.6 V Operating Temperature –40°C to +85°C SPI Interface for Register Access 2 Applications • • • • • • Range Finders LIDAR Drones and Robotics Advanced Driver Assistance Systems (ADAS) Collision Detection Systems Flow Meters Each TDC performs the function of a stopwatch and measures the elapsed time (time-of-flight or TOF) between a START pulse and up to five STOP pulses. The ability to measure simultaneously and individually on two pairs of START and STOP pins using two built-in TDCs offers high flexibility in time measurement design. The device has an internal self-calibrated time base which compensates for drift over time and temperature. Self-calibration enables time-to-digital conversion accuracy in the order of picoseconds. This accuracy makes the TDC7201 ideal for range finder applications. When placed in the Autonomous Multi-Cycle Averaging Mode, the TDC7201 device can be optimized for low system power consumption, which is ideal for battery-powered flow meters. In this mode, the host can go to sleep to save power and wake up when interrupted by the TDC upon completion of the measurement sequence. Device Information(1) PART NUMBER TDC7201 PACKAGE nFBGA (25) BODY SIZE (NOM) 4.00 mm × 4.00 mm (1) For all available packages, see the orderable addendum at the end of the data sheet. Simplified LIDAR Application Block Diagram Microcontroller (MSP430) Pulsed Laser Diode 2 CSBx START1 STOP1 DI, DO, CLK TDC7201 3 START2 STOP2 Transmission lens Object Detector Photo Diode Receiving lens Copyright © 2016, Texas Instruments Incorporated 1 An IMPORTANT NOTICE at the end of this data sheet addresses availability, warranty, changes, use in safety-critical applications, intellectual property matters and other important disclaimers. PRODUCTION DATA. TDC7201 SNAS686 – MAY 2016 www.ti.com Table of Contents 1 2 3 4 5 6 7 Features .................................................................. Applications ........................................................... Description ............................................................. Revision History..................................................... Pin Configuration and Functions ......................... Specifications......................................................... 1 1 1 2 3 4 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 4 4 4 5 6 6 7 8 Absolute Maximum Ratings ...................................... ESD Ratings ............................................................ Recommended Operating Conditions....................... Thermal Information .................................................. Electrical Characteristics........................................... Timing Requirements ................................................ Switching Characteristics .......................................... Typical Characteristics .............................................. 7.4 Device Functional Modes........................................ 13 7.5 Programming........................................................... 21 7.6 Register Maps ......................................................... 24 8 Application and Implementation ........................ 35 8.1 Application Information............................................ 35 8.2 Typical Application ................................................. 35 8.3 CLOCK Recommendations..................................... 38 9 Power Supply Recommendations...................... 40 10 Layout................................................................... 40 10.1 Layout Guidelines ................................................. 40 10.2 Layout Example .................................................... 41 11 Device and Documentation Support ................. 42 11.1 11.2 11.3 11.4 11.5 Detailed Description ............................................ 11 7.1 Overview ................................................................. 11 7.2 Functional Block Diagram ....................................... 11 7.3 Feature Description................................................. 12 Documentation Support ....................................... Community Resources.......................................... Trademarks ........................................................... Electrostatic Discharge Caution ............................ Glossary ................................................................ 42 42 42 42 42 12 Mechanical, Packaging, and Orderable Information ........................................................... 42 4 Revision History 2 DATE REVISION NOTES May 2016 * Initial release. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 5 Pin Configuration and Functions ZAX Package 25-Pin nFBGA Bottom View 1 2 3 4 5 E STOP2 GND2 DOUT2 VREG2 CSB2 D START2 TRIGG2 INTB2 DNC DIN C CLOCK DNC DNC VDD2 DOUT1 B STOP1 GND1 INTB1 VDD1 CSB1 A START1 TRIGG1 ENABLE VREG1 SCLK Not to scale Pin Functions PIN TYPE DESCRIPTION NO. NAME A1 START1 Input A2 TRIGG1 Output A3 ENABLE Input A4 VREG1 Output A5 SCLK Input SPI clock B1 STOP1 Input STOP signal for TDC1 B2 GND1 Ground Ground B3 INTB1 Output Interrupt to MCU for TDC1, active low (open drain) B4 VDD1 Power Supply input B5 CSB1 Input SPI chip select for TDC1, active low C1 CLOCK Input Clock input to TDC C2 DNC — Do not connect C3 DNC — Do not connect C4 VDD2 Power Supply input C5 DOUT1 Output SPI data output for TDC1 D1 START2 Input D2 TRIGG2 Output Trigger output signal for TDC2 D3 INTB2 Output Interrupt to MCU for TDC2, active low (open drain) D4 DNC — Do not connect D5 DIN Input SPI data input E1 STOP2 Input STOP signal for TDC2 E2 GND2 Ground Ground E3 DOUT2 Output SPI data output for TDC2 E4 VREG2 Output LDO output terminal for external decoupling cap E5 CSB2 Input START signal for TDC1 Trigger output signal for TDC1 Enable signal to TDC LDO output terminal for external decoupling cap START signal for TDC2 SPI chip select for TDC2, active low Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 3 TDC7201 SNAS686 – MAY 2016 www.ti.com 6 Specifications 6.1 Absolute Maximum Ratings at TA = 25°C , VDD1 = VDD2 = 3.3 V, GND1 = GND2 = 0 V (unless otherwise noted). (1) (2) (3) (4) (5) VDD VI MIN MAX UNIT Supply voltage –0.3 3.9 V Voltage on VREG1, VREG2 pins –0.3 1.65 V Terminal input voltage on any other pin –0.3 VDD + 0.3 VDIFF_IN |Voltage differential| between any two input terminals VIN_GND_VDD |Voltage differential| between any input terminal and GND or VDD 3.9 V II Input current at any pin –5 5 mA TA Ambient temperature –40 125 °C Tstg Storage temperature –55 150 °C (1) (2) (3) (4) (5) 3.9 V Stresses beyond those listed under Absolute Maximum Ratings may cause permanent damage to the device. These are stress ratings only, which do not imply functional operation of the device at these or any other conditions beyond those indicated under Recommended Operating Conditions. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. The algebraic convention, whereby the most negative value is a minimum and the most positive value is a maximum All voltages are with respect to ground, unless otherwise specified. Pins VDD1 and VDD2 must be tied together at the board level and supplied from the same source. When the terminal input voltage (VI) at any pin exceeds power supplies (VI < GND or VI > VDD), the current at that pin must not exceed 5 mA (source or sink), and the voltage (VI) at the pin must not exceed 3.9 V. 6.2 ESD Ratings VALUE V(ESD) (1) (2) Electrostatic discharge Human-body model (HBM), per ANSI/ESDA/JEDEC JS-001 (1) ±1000 Charged-device model (CDM), per JEDEC specification JESD22-C101 (2) ±250 UNIT V JEDEC document JEP155 states that 500-V HBM allows safe manufacturing with a standard ESD control process. JEDEC document JEP157 states that 250-V CDM allows safe manufacturing with a standard ESD control process. 6.3 Recommended Operating Conditions At TA = 25°C , VDD1 = VDD2 = 3.3 V, GND1 = GND2 = 0 V (unless otherwise noted). MIN VDD Supply voltage VI Terminal voltage VIH Voltage input high VIL Voltage input low NOM MAX UNIT 2 3.6 V 0 VDD V 0.7 × VDD 3.6 V 0 0.3 × VDD V (1) 8 16 125 1000 FCALIB_CLK Frequency (reference or calibration clock) 1 tCLOCK Time period (reference or calibration clock) 62.5 DUTYCLOCK Input clock duty cycle MHz ns 50% TIMING REQUIREMENTS: Measurement Mode 1 (1) (2) (3) T1Min_STARTSTOP Minimum time between start and stop signal T1Max_STARTSTOP Maximum time between start and stop signal T1Min_STOPSTOP Minimum time between 2 stop signals T1Max_LASTSTOP Maximum time between start and last stop signal 12 ns 2000 ns 67 ns 2000 ns TIMING REQUIREMENTS: Measurement Mode 2 (1) (2) (3) T2Min_STARTSTOP Minimum time between start and stop signal T2Max_STARTSTOP Maximum time between start and stop signal T2Min_STOPSTOP Minimum time between 2 stop signals T2Max_LASTSTOP Maximum time between start and last stop signal (1) (2) (3) 4 2 × tCLOCK s 16 (2 -2) × tCLOCK 2 × tCLOCK s s (216-2) × tCLOCK s Specified by design. Applies to both pairs of START1, STOP1 and START2, STOP2 pins. Minimum time between 2 stop signals applies to 2 stop signals on the same TDC. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Recommended Operating Conditions (continued) At TA = 25°C , VDD1 = VDD2 = 3.3 V, GND1 = GND2 = 0 V (unless otherwise noted). MIN NOM MAX UNIT TIMING REQUIREMENTS: ENABLE INPUT TREN Rise time for enable signal (20% to 80%) 1 to 100 ns TFEN Fall time for enable signal (20% to 80%) 1 to 100 ns TIMING REQUIREMENTS: START1, STOP1, CLOCK, START2, STOP2 TRST, TFST Maximum rise, fall time for START, STOP signals (20% to 80%) 1 TRXCLK, TFXCLK Maximum rise, fall time for external CLOCK (20% to 80%) 1 ns ns TIMING REQUIREMENTS: TRIGG1, TRIGG2 TTRIG1START1 Time from TRIG1 to START1 5 ns TTRIG2START2 Time from TRIG2 to START2 5 ns TIMING REQUIREMENTS: Measurement Mode 1 Combined Operation (4) T1STARTSTOP_Comb_Min Minimum time between START and STOP signal combined 0.25 ns TEMPERATURE TA Ambient temperature –40 85 °C TJ Junction temperature –40 85 °C (4) TDC7201 device in combined measurement mode where START1 and START2 are connected together: (a) A common REFERENCE_START signal is applied to START1 and START2 at least 12 ns before occurrence of actual START and STOP signals in Mode 1 (and at least 2 × tCLOCK before occurrence of actual Start and Stop signals in Mode 2). (b) Start signal is connected to STOP1 (c) Stop signal is connected to STOP2 (d) Two time periods T1 (REFERENCE_START to Start) and T2 (REFERENCE_START to Stop) are measured and their difference (T2T1) is the time between Start to Stop 6.4 Thermal Information TDC7201 THERMAL METRIC (1) ZAX (nFBGA) UNIT 25 PINS RθJA Junction-to-ambient thermal resistance 155.1 °C/W RθJC(top) Junction-to-case (top) thermal resistance 109.5 °C/W RθJB Junction-to-board thermal resistance 114.1 °C/W ψJT Junction-to-top characterization parameter 20.8 °C/W ψJB Junction-to-board characterization parameter 110.6 °C/W (1) For more information about traditional and new thermal metrics, see the Semiconductor and IC Package Thermal Metrics application report, SPRA953. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 5 TDC7201 SNAS686 – MAY 2016 www.ti.com 6.5 Electrical Characteristics TA = 25°C , VDD1 = VDD2 = 3.3 V, GND1 = GND2 = 0 V (unless otherwise noted). PARAMETER TEST CONDITIONS MIN TYP MAX UNIT TDC CHARACTERISTICS LSB Resolution (1) TACC-2 Accuracy (Mode 2) TSTD-2 Standard Deviation (Mode 2) Single shot measurement 55 ps CLOCK = 8 MHz, Jitter (RMS) < 1 ps, Stability < 5 ppm 28 ps Measured time = 100 µs 50 ps Measured time = 1 µs 35 ps OUTPUT CHARACTERISTICS: TRIGG1, TRIGG2, INTB1, INTB2, DOUT1, DOUT2 VOH Output voltage high Isource = –2 mA VOL Output voltage low Isink = 2 mA 2.31 2.95 0.35 V 0.99 V INPUT CHARACTERISTICS: START1, STOP1, START2, STOP2, CSB1, CSB2 Input capacitance (2) Cin 4 pF 8 pF INPUT CHARACTERISTICS: ENABLE, CLOCK, DIN, SCLK Input capacitance (2) Cin POWER CONSUMPTION (3) (see Measurement Mode 1 and Measurement Mode 2) Ish Shutdown current EN = LOW 0.6 µA IQA Quiescent Current A EN = HIGH; TDC running 2.7 mA IQB Quiescent Current B EN = HIGH; TDC OFF, Clock Counter running 140 µA IQC Quiescent Current C EN = HIGH; measurement stopped, SPI communication only 175 µA IQD Quiescent Current D EN = HIGH, TDC OFF, counter stopped, no communication 100 µA (1) (2) (3) Accuracy is defined as the systematic error in the output signal; the error of the device excluding noise. Specified by design. Sum of TDC1 and TDC2 values 6.6 Timing Requirements MIN NOM MAX UNIT TIMING REQUIREMENTS: START1, STOP1, START2, STOP2, CLOCK PWSTART Pulse width for Start Signal 10 ns PWSTOP Pulse width for Stop Signal 10 ns SERIAL INTERFACE TIMING CHARACTERISTICS (VDD = 3.3 V, fSCLK = 25 MHz) (See Figure 1) fSCLK SCLK frequency t1 SCLK period 25 MHz 40 ns SERIAL INTERFACE TIMING CHARACTERISTICS (VDD = 3.3 V, fSCLK = 20 MHz) (See Figure 1) t1 SCLK period 50 ns t2 SCLK High Time 16 ns t3 SCLK Low Time 16 ns t4 DIN setup time 5 ns t5 DIN hold time 5 ns t6 CSB1 or CSB2 fall to SCLK rise 6 ns t7 Last SCLK rising edge to CSB1 or CSB2 rising edge 6 ns t8 Minimum pause time (CSB high) t9 Clk fall to DOUT1 or DOUT2 bus transition 6 40 Submit Documentation Feedback ns 12 ns Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 6.7 Switching Characteristics TA = 25°C , VDD1 = VDD2 = 3.3 V, GND1 = GND2 = 0 V (unless otherwise noted). PARAMETER TEST CONDITIONS MIN TYP MAX UNIT WAKE UP TIME Time to be ready for measurement TWAKEUP_PERIOD CSBx LSB within 0.3% of settled value 300 Start Sequence µs End Sequence t6 t1 t7 Data Latched On Rising Edge of SCLK t2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 SCLK t3 DIN A7 A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0 t4 t5 DOUTx t9 DIN: SCLK rising edge DOUTx: SCLK falling edge Figure 1. SPI Register Access: 8 Bit Register Example Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 7 TDC7201 SNAS686 – MAY 2016 www.ti.com 6.8 Typical Characteristics At TA = 25°C , VDD1 = VDD2 = 3.3 V, GND1 = GND2 = 0 V, CLOCK = 8 MHz, CALIBRATION2_PERIODS = 10, AVG_CYCLES = 1 Measurement, NUM_STOP = Single STOP, Measurement Mode 2 (unless otherwise noted). 20.0002 20.0002 20.00015 Time-of-Flight at 20 µs (µs) Time-of-Flight at 20 µs (µs) 20.00015 TOF TDC1 (us) TOF TDC2 (us) 20.0001 20.00005 20 19.99995 19.9999 20.0001 20.00005 20 19.99995 19.9999 19.99985 19.99985 19.9998 19.9998 2 3.3 VDD (V) -40 3.6 D001 Figure 2. Time-of-Flight (TOF) vs VDD (Measurement Mode 2) 25 Temperature (qC) 85 D002 Figure 3. TOF vs Temperature (Measurement Mode 2) 250.1 250.1 250.05 250.05 Time-of-Flight at 250 ns (ns) Time-of-Flight at 250 ns (ns) TOF TDC1 (us) TOF TDC2 (us) 250 249.95 249.9 249.85 250 249.95 249.9 249.85 TOF TDC1 (ns) TOF TDC2 (ns) TOF TDC1 (ns) TOF TDC2 (ns) 249.8 249.8 2 3.3 VDD (V) 3.6 -40 D004 Figure 4. TOF vs VDD (Measurement Mode 1) 25 Temperature (qC) 85 D005 Figure 5. TOF vs Temperature (Measurement Mode 1) 0.53 0.522 Time-of-Flight at 0.5 ns (ns) Time-of-Flight at 0.5 ns (ns) 0.525 0.52 0.518 0.516 0.514 0.52 0.515 0.51 0.505 0.5 0.495 0.512 2 3.3 VDD (V) -40 3.6 D022 Figure 6. TOF vs. VDD (Mode 1 Combined Operation) 8 25 Temperature (qC) 85 D023 Figure 7. TOF vs. Temperature (Mode 1 Combined Operation) Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Typical Characteristics (continued) At TA = 25°C , VDD1 = VDD2 = 3.3 V, GND1 = GND2 = 0 V, CLOCK = 8 MHz, CALIBRATION2_PERIODS = 10, AVG_CYCLES = 1 Measurement, NUM_STOP = Single STOP, Measurement Mode 2 (unless otherwise noted). 61 70 LSB TDC1 (ps) LSB TDC2 (ps) 65 LSB TDC1 (ps) LSB TDC2 (ps) 60 Resolution [LSB] (ps) Resolution [LSB] (ps) 59 60 55 50 45 40 58 57 56 55 54 53 35 52 30 51 2 3.3 VDD (V) 3.6 -40 Figure 8. Resolution (LSB) vs VDD IQA TDC1 (uA) IQA TDC2 (uA) 1380 Operating Current [IQA] (µA) Operating Current [IQA] (µA) D007 1400 IQA TDC1 (uA) IQA TDC2 (uA) 1340 1330 1320 1310 1360 1340 1320 1300 1280 1300 1260 2 3.3 VDD (V) 3.6 -40 25 Temperature (qC) D008 Figure 10. Operating Current (IQA) vs VDD 85 D011 Figure 11. Operating Current (IQA) vs Temperature 60 55 IQB TDC1 (uA) IQB TDC2 (uA) Operating Current [IQB] (µA) IQB TDC1 (uA) IQB TDC2 (uA) Operating Current [IQB] (µA) 85 Figure 9. Resolution (LSB) vs Temperature 1360 1350 25 Temperature (qC) D006 53 51 49 47 57 54 51 48 45 45 2 3.3 VDD (V) -40 3.6 D003 Figure 12. Operating Current (IQB) vs VDD 25 Temperature (°C) 85 D004 Figure 13. Operating Current (IQB) vs Temperature Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 9 TDC7201 SNAS686 – MAY 2016 www.ti.com Typical Characteristics (continued) At TA = 25°C , VDD1 = VDD2 = 3.3 V, GND1 = GND2 = 0 V, CLOCK = 8 MHz, CALIBRATION2_PERIODS = 10, AVG_CYCLES = 1 Measurement, NUM_STOP = Single STOP, Measurement Mode 2 (unless otherwise noted). 70 70 Operating Current [IQC] (µA) Operating Current [IQC] (µA) IQC TDC1 (uA) IQC TDC2 (uA) 65 60 55 50 65 60 55 50 IQC TDC1 (uA) IQC TDC2 (uA) 45 45 2 3.3 VDD (V) 3.6 -40 D005 Figure 14. Operating Current (IQC) vs VDD 25 Temperature (°C) 70 IQD TDC1 (uA) IQD TDC2 (uA) Operating Current [IQD] (µA) Operating Current [IQD] (µA) IQD TDC1 (uA) IQD TDC2 (uA) 53 51 49 47 45 65 60 55 50 45 2 3.3 VDD (V) 3.6 -40 25 Temperature (°C) D007 Figure 16. Operating Current (IQD) vs VDD 85 D008 Figure 17. Operating Current (IQD) vs Temperature 0.32 0.8 0.7 0.3 Operating Current [ISH] (µA) Operating Current [ISH] (µA) D006 Figure 15. Operating Current (IQC) vs Temperature 55 0.28 0.26 0.24 0.22 ISH TDC1 (uA) ISH TDC2 (uA) 0.6 0.5 0.4 0.3 0.2 0.1 0.2 ISH TDC1 (uA) ISH TDC2 (uA) 0 2 3.3 VDD (V) 3.6 -40 D010 Figure 18. Shutdown Current (ISH) vs VDD 10 85 25 Temperature (°C) 85 D013 Figure 19. Shutdown Current (ISH) vs Temperature Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 7 Detailed Description 7.1 Overview The TDC7201 has two built-in TDCs with the capability to simultaneously and individually measure time delay on two pairs of START and STOP pins. Each TDC is a stopwatch that measures time between a single event (edge on START pin) and multiple subsequent events (edge on STOP pin). An event from a START pulse to a STOP pulse is also known as time-of-flight, or TOF for short. The TDC has an internal time base that is used to measure time with accuracy in the order of picoseconds. This accuracy makes the TDC7201 ideal for applications such as drones and range finders, which require high accuracy in the picoseconds range. NOTE In rest of the documentation, we use TDCx to refer each TDC of the TDC7201, where x = 1, 2. Also, the prefix TDCx is used in register names to identify the TDC the register belongs to. Further the associated START, STOP, TRIGG, CSB, DOUT, and INTB pins of TDCx are represented as STARTx, STOPx, TRIGGx, CSBx, DOUTx, and INTBx. 7.2 Functional Block Diagram VDD1 VDD2 VREG2 TDC7201 LDO & Reference Subsystem VREG1 Digital Core TRIGG1 ENABLE TRIGG2 CSB1 TDC1 Core START2 STOP1 STOP2 SCLK Configuration Registers START1 Schmitt Triggered Comparators Ring Osc SPI SLAVE Coarse Counter Clock Counter & Decode CSB2 DIN DOUT1 CLOCK DOUT2 INTB1 Measurement Sequencer INTB2 TDC2 Core Ring Osc Coarse Counter Clock Counter & Decode GND1 GND2 Copyright © 2016, Texas Instruments Incorporated NOTE Do not tie together VREG1 and VREG2. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 11 TDC7201 SNAS686 – MAY 2016 www.ti.com 7.3 Feature Description 7.3.1 LDO The LDO (low-dropout) is an internal supply voltage regulator for the TDC7201. Each of the two TDC cores of the TDC7201 has its own dedicated LDO. No external circuitry needs to be connected to the output of this regulator other than the mandatory external decoupling capacitor on VREG1 and VREG2. Recommendations for the decoupling capacitor parameters: • Type: ceramic • Capacitance: 0.4 µF to 2.7 µF (1 µF typical). If using a capacitor value outside the recommended range, the part may malfunction and can be damaged. • ESR: 100 mΩ (maximum) 7.3.2 CLOCK The TDC7201 needs an external reference clock connected to the CLOCK pin. This external clock input serves as the reference clock for both TDCs of the TDC7201. The external CLOCK is used to calibrate the internal time base accurately and therefore, the measurement accuracy is heavily dependent on the external CLOCK accuracy. This reference clock is also used by all digital circuits inside the device; thus, CLOCK has to be available and stable at all times when the device is enabled (ENABLE = HIGH). Figure 20 shows the typical effect of the external CLOCK frequency on the measurement uncertainty. With a reference clock of 1 MHz, the standard deviation of a set of measurement results is approximately 243 ps. As the reference clock frequency is increased, the standard deviation (or measurement uncertainty) reduces. Therefore, using a reference clock of 16 MHz is recommended for optimal performance. 400 Standard Deviation (ps) 300 200 100 80 70 60 50 40 0 2 4 6 8 10 12 Clock Frequency (MHz) 14 16 18 D001 Figure 20. Standard Deviation vs CLOCK 7.3.3 Counters 7.3.3.1 Coarse and Clock Counters Description Time measurements by each TDCx of the TDC7201 rely on two counters: the Coarse Counter and the Clock Counter. The Coarse Counter counts the number of times the ring oscillator (the TDCx’s core time measurement mechanism) wraps, which is used to generate the results in the TDCx_TIME1 to TDCx_TIME6 registers. The Clock Counter counts the number of integer clock cycles between START and STOP events and is used in Measurement Mode 2 only. The results for the Clock Counter are displayed in the TDCx_CLOCK_COUNT1 to TDCx_CLOCK_COUNT5 registers. 7.3.3.2 Coarse and Clock Counters Overflow Once the coarse counter value has reached the corresponding value of the Coarse Counter Overflow registers, then its interrupt bit will be set to 1. In other words, if (TDCx_TIMEn / 63) ≥ COARSE_CNTR_OVF, then COARSE_CNTR_OVF_INT = 1 (this interrupt bit is located in the TDCx_INT_STATUS register). 12 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Feature Description (continued) TDCx_COARSE_CNTR_OVF = (TDCx_COARSE_CNTR_OVF_H x 28 + TDCx_COARSE_CNTR_OVF_L), where TDCx_TIMEn refers to the TDCx_TIME1 to TDCx_TIME6 registers. Similarly, once the clock counter value has reached the corresponding value of the Clock Counter Overflow registers, then its interrupt bit will be set to 1. In other words, if TDCx_CLOCK_COUNTn > TDCx_CLOCK_CNTR_OVF, then CLOCK_CNTR_OVF_INT = 1 (this interrupt bit is located in the INT_STATUS register). TDCx_CLOCK_CNTR_OVF = (TDCx_CLOCK_CNTR_OVF_H × 28 + TDCx_CLOCK_CNTR_OVF_L), where TDCx_CLOCK_COUNTn refers to the TDCx_CLOCK_COUNT1 to TDCx_CLOCK_COUNT5 registers. As soon as there is an overflow detected, the running measurement will be terminated immediately. 7.3.3.3 Clock Counter STOP Mask The values in the Clock Counter STOP Mask registers define the end of the mask window. The Clock Counter STOP Mask value will be referred to as TDCx_CLOCK_CNTR_STOP_MASK = (TDCx_CLOCK_CNTR_STOP_MASK_H x 28 + TDCx_CLOCK_CNTR_STOP_MASK_L). The Clock Counter is started by the first rising edge of the external CLOCK after the START signal (see Figure 23). All STOP signals occurring before the value set by the TDCx_CLOCK_CNTR_STOP_MASK registers will be ignored. This feature can be used to help suppress wrong or unwanted STOP trigger signals. For example, assume the following values: • The first time-of-flight (TOF1), which is defined as the time measurement from the START to the 1st STOP = 19 μs. • The second time-of-flight (TOF2), which is defined as the time measurement from the START to the 2nd STOP = 119 μs. • CLOCK = 8 MHz In this example, the TDC7201 will provide a TDCx_CLOCK_COUNT1 of approximately 152 (19 μs / tCLOCK), and TDCx_CLOCK_COUNT2 of approximately 952 (119 μs / tCLOCK). If the user sets TDCx_CLOCK_CNTR_STOP_MASK anywhere between 152 and 952, then the 1st STOP will be ignored and 2nd STOP will be measured. The Clock Counter Overflow value (TDCx_CLOCK_CNTR_OVF_H × 28 + TDCx_CLOCK_CNTR_OVF_L) should always be higher than the Clock Counter STOP Mask value (TDCx_CLOCK_CNTR_STOP_MASK_H × 28 + TDCx_CLOCK_CNTR_STOP_MASK_L). Otherwise, the Clock Counter Overflow Interrupt will be set before the STOP mask time expires, and the measurement will be halted. 7.3.3.4 ENABLE The ENABLE pin is used as a reset to all digital circuits in the TDC7201. Therefore, it is essential that the ENABLE pin sees a positive edge after the device has powered up. It is also important to ensure that there are no transients (such as glitches) on the ENABLE pin; such glitches could cause the device to reset 7.4 Device Functional Modes 7.4.1 Calibration The time measurements performed by each TDCx of the TDC7201 are based on an internal time base which is represented as the LSB value of the TDCx_TIME1 to TDCx_TIME6 results registers. The typical LSB value can be seen in Electrical Characteristics. However, the actual value of the LSB can vary depending on environmental variables (temperature, systematic noise, and so forth). This variation can introduce significant error into the measurement result. There is also an offset error in the measurement due to certain internal delays in the device. In order to compensate for these errors and to calculate the actual LSB value, calibration needs to be performed. The TDCx calibration consists of two measurement cycles of the external CLOCK. The first is a measurement of a single clock cycle period of the external clock; the second measurement is for the number of external CLOCK periods set by the CALIBRATION2_PERIODS in the TDCx_CONFIG2 register. The results from the calibration measurements are stored in the TDCx_CALIBRATION1 and TDCx_CALIBRATION2 registers. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 13 TDC7201 SNAS686 – MAY 2016 www.ti.com Device Functional Modes (continued) The two-point calibration is used to determine the actual LSB in real time in order to convert the TDCx_TIME1 to TDCx_TIME6 results from number of delays to a real TOF number. Calibration is automatic and performed every time after a measurement and before measurement completion interrupt is sent to the MCU through INTBx pin. Only if a measurement is interrupted (for example, due to counter overflow or missing STOP signal), calibration is not performed. As discussed in the next sections, the calibrations will be used for calculating TOF in measurement modes 1 and 2. 7.4.2 Measurement Modes 7.4.2.1 Measurement Mode 1 In measurement mode 1, as shown in Figure 21, each TDCx of the TDC7201 performs the entire counting from START to the last STOP using its internal ring oscillator plus coarse counter. This method is recommended for measuring shorter time durations of < 2000 ns. TI does not recommend using measurement mode 1 for measuring time > 2000 ns because this decreases accuracy of the measurement (as shown in Figure 22). Input Clock 1-16 MHz STARTx 1st STOP 2nd STOP 3rd STOP STOPx Ring oscillator running IQA IQD IQD TOF3 TOF2 TOF1 Figure 21. Measurement Mode 1 500 400 Standard Deviation (ps) 300 200 100 70 50 40 30 20 0 200 400 600 800 1000 1200 1400 1600 1800 2000 Measured Time (ns) D002 Figure 22. Measurement Mode 1 Standard Deviation vs Measured Time-of-Flight 14 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Device Functional Modes (continued) 7.4.2.1.1 Calculating Time-of-Flight (Measurement Mode 1) For measurement mode 1, the TOF between the START to the nth STOP can be calculated using Equation 1: TOFn TIMEn normLSB normLSB calCount CLOCKperiod calCount CALIBRATION2 CALIBRATION1 CALIBRATION2 _ PERIODS 1 where • • • • • • • TOFn [sec] = time-of-flight measurement from the START to the nth STOP TIMEn = nth TIME measurement given by the TIME1 to TIME6 registers normLSB [sec] = normalized LSB value from calibration CLOCKperiod [sec] = external CLOCK period CALIBRATION1 = TDCx_CALIBRATION1 register value = TDC count for first calibration cycle CALIBRATION2 = TDCx_CALIBRATION2 register value = TDC count for second calibration cycle CALIBRATION2_PERIODS = setting for the second calibration cycle; located in register TDCx_CONFIG2 For example, assume the time-of-flight between the START to the 1 readouts were obtained: • TDCx_CALIBRATION2 = 21121 (decimal) • TDCx_CALIBRATION1 = 2110 (decimal) • CALIBRATION2_PERIODS = 10 • CLOCK = 8 MHz • TDCx_TIME1 = 4175 (decimal) st (1) STOP is desired, and the following Therefore, the calculation for time-of-flight is: • calCount = (21121 – 2110) / (10 – 1) = 2112.33 • normLSB = (1/8MHz) / (2112.33) = 59.17 ps • TOF1 = (4175)(5.917 x 10-11) = 247.061 ns 7.4.2.2 Measurement Mode 2 In measurement mode 2, the internal ring oscillator of each TDCx of the TDC7201 is used only to count fractional parts of the total measured time. As shown in Figure 23, the internal ring oscillator starts counting from when it receives the START signal until the first rising edge of the CLOCK. Then, the internal ring oscillator switches off, and the Clock counter starts counting the clock cycles of the external CLOCK input until a STOP pulse is received. The internal ring oscillator again starts counting from the STOP signal until the next rising edge of the CLOCK. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 15 TDC7201 SNAS686 – MAY 2016 www.ti.com Device Functional Modes (continued) Input Clock 1-16 MHz STARTx 1st STOP 2nd STOP STOPx Clock Counter Running Clock Counter Running Ring oscillator running IQD IQA IQA + IQB IQB TOF1 IQB IQD TOF2 CLOCK_COUNT1 TIME1 IQA + IQB CLOCK_COUNT2 TIME2 TIME3 Figure 23. Measurement Mode 2 16 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Device Functional Modes (continued) 7.4.2.2.1 Calculating Time-of-Flight (TOF) (Measurement Mode 2) The TOF between the START to the nth STOP can be calculated using Equation 2: TOFn normLSB TIME1 TIMEn 1 CLOCK _ COUNTn CLOCKperiod normLSB calCount CLOCKperiod calCount CALIBRATION2 CALIBRATION1 CALIBRATION2 _ PERIODS 1 where • • • • • • • • • TOFn [sec] = time-of-flight measurement from the START to the nth STOP TIME1 = TDCx_TIME1 register value = time 1 measurement given by the TDC7201 register address 0x10 TIME(n+1) = TDCx_TIME(n+1) register value = (n+1) time measurement, where n = 1 to 5 (TDCx_TIME2 to TDCx_TIME6 registers) normLSB [sec] = normalized LSB value from calibration CLOCK_COUNTn = nth clock count, where n = 1 to 5 (TDCx_CLOCK_COUNT1 to TDCx_CLOCK_COUNT5) CLOCKperiod [sec] = external CLOCK period CALIBRATION1 = TDCx_CALIBRATION1 register value = TDC count for first calibration cycle CALIBRATION2 = TDCx_CALIBRATION2 register value = TDC count for second calibration cycle CALIBRATION2_PERIODS = setting for the second calibration; located in register TDCx_CONFIG2 (2) For example, assume the time-of-flight between the START to the 1st STOP is desired, and the following readouts were obtained: • CALIBRATION2 = 23133 (decimal) • CALIBRATION1 = 2315 (decimal) • CALIBRATION2_PERIODS = 10 • CLOCK = 8 MHz • TIME1 = 2147 (decimal) • TIME2 = 201 (decimal) • CLOCK_COUNT1 = 318 (decimal) Therefore, the calculation for time-of-flight is: CALIBRATION2 CALIBRATION1 (23133 2315) calCount 2313.11 (CALIBRATION2 _ PERIODS) 1 (10 1) (CLOCKperiod) (1/ 8MHz) normLSB 54 ps (calCount) 2313.11 TOF1 (TIME1)(normLSB) (CLOCK _ COUNT1)(CLOCKperiod) (TIME2)(normLSB) TOF1 2147 5.40 10 11 (318)(1/ 8MHz) (201)(5.40 10 11 ) TOF1 39.855Ps (3) Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 17 TDC7201 SNAS686 – MAY 2016 www.ti.com Device Functional Modes (continued) 7.4.3 Timeout For one STOP, each TDCx of the TDC7201 performs the measurement by counting from the START signal to the STOP signal. If no STOP signal is received, either the Clock Counter or Coarse Counter will overflow and will generate an interrupt (see Coarse and Clock Counters Overflow). If no START signal is received, the timer waits indefinitely for a START signal to arrive. For multiple STOPs, each TDCx performs the measurement by counting from the START signal to the last STOP signal. All earlier STOP signals are captured and stored into the corresponding Measurement Results registers (TDCx_TIME1 to TDCx_TIME6, TDCx_CLOCK_COUNT1 to TDCx_CLOCK_COUNT5, TDCx_CALIBRATION1, TDCx_CALIBRATION2). The minimum time required between two consecutive STOP signals is defined in the Recommended Operating Conditions table. The device can be programmed to measure up to 5 STOP signals by setting the NUM_STOP bits in the TDCx_CONFIG2 register. 7.4.4 Multi-Cycle Averaging In the Multi-Cycle Averaging Mode, the TDC7201 will perform a series of measurements on its own and will only send an interrupt to the MCU (for example, MSP430, C2000, and so forth) for wake up after the series has been completed. While waiting, the MCU can remain in sleep mode during the whole cycle (as shown in Figure 24). Multi-Cycle Averaging Mode Setup and Conditions: • The number of averaging cycles should be selected (1 to 128). This is done by programming the AVG_CYCLES bit in the TDCx_CONFIG2 register. • The results of all measurements are reported in the Measurement Results registers (TDCx_TIME1 to TDCx_TIME6, TDCx_CLOCK_COUNT1 to TDCx_CLOCK_COUNT5, TDCx_CALIBRATION1, TDCx_CALIBRATION2 registers). The CLOCK_COUNTn registers should be right shifted by the log2(AVG_CYCLES) before calculating the TOF. For example, if using the multi-cycle averaging mode, Equation 2 should be rewritten as: TOFn = normLSB [TDCx_TIME1 - TDCx_TIME(n+1)] + [TDCx_CLOCK_COUNTn >> log 2 (AVG_CYCLES)] x [CLOCKperiod] • Following each average cycle, the TDCx generates either a trigger event on the TRIGGx pin after the calibration measurement to commence a new measurement or an interrupt on the INTBx pin, indicating that the averaging sequence has completed. This mode allows multiple measurements without MCU interaction, thus optimizing power consumption for the overall system. Trigger from TDC7201 to AFE TRIGGx STARTx STOPx CLOCK INTBx MCU Configuration AFE & TDC Sleep Mode Retrieving Data & Processing Figure 24. Multi-Cycle Averaging Mode Example with 2 Averaging Cycles and 5 STOP Signals 7.4.5 START and STOP Edge Polarity In order to achieve the highest measurement accuracy, having the same edge polarity for the START and STOP input signals is highly recommended. Otherwise, slightly different propagation delays due to symmetry shift between the rising and falling edge configuration will impact the measurement accuracy. 18 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Device Functional Modes (continued) For highest measurement accuracy in measurement mode 2, TI recommends to choose for the START and STOP signal the rising edge. This is done by setting the START_EDGE and STOP_EDGE bits in the TDCx_CONFIG1 register to 0. 7.4.6 Measurement Sequence The TDC7201 has two built-in TDCs with the capability to simultaneously and individually measure time delay on two pairs of START and STOP pins. Each TDCx is a stopwatch that measures time between a single event (edge on STARTx pin) and multiple subsequent events (edge on STOPx pin). The measurement sequence for each TDCx is as follows: 1. After powering up the device, the ENABLE pin needs to be low. There is one low to high transition required while VDD is supplied for correct initialization of the device. NOTE Pins VDD1 and VDD2 must be tied together at the board level and supplied from the same source. 2. MCU software requests new TDCx measurements to be initiated through the SPI™ interface. 3. After the start new measurement bit START_MEAS has been set in the TDCx_CONFIG1 register, the TDCx generates a trigger signal on the TRIGGx pin, which is typically used by the corresponding ultrasonic analogfront-end (such as the TDC1000) as start trigger for a measurement (for example, transmit signal for the ultrasonic burst). 4. Immediately after sending the trigger, the TDCx enables the STARTx pin and waits to receive the START pulse edge. 5. After receiving a START, the TDCx resets the TRIGGx pin. 6. The Clock counter is started after the next rising edge of the external clock signal (Measurement Mode 2). The Clock Counter STOP Mask registers (TDCx_CLOCK_CNTR_STOP_MASK_H and TDCx_CLOCK_CNTR_STOP_MASK_L) determine the length of the STOP mask window. 7. After reaching the Clock Counter STOP Mask value, the STOPx pin waits to receive a single or multiple STOP trigger signal from the analog-front-end (for example, detected echo signal of the ultrasonic burst signal). 8. After the last STOP trigger has been received, the TDCx will signal to the MCU through interrupt (INTBx pin) that there are new measurement results waiting in the registers. STARTx, STOPx and TRIGGx pins are disabled (in Multi-Cycle Averaging Mode, the TDCx will start the next cycle automatically by generating a new TRIGG signal). INTBx goes back to high whenever a new measurement is initiated through SPI or when the TDCx_INT_STATUS register bit NEW_MEAS_INT is cleared by writing a 1 to it. NOTE INTBx must be utilized to determine TDCx measurement completion; polling the TDCx_INT_STATUS register to determine measurement completion is NOT recommended as it will interfere with the TDCx measurement. 9. After the results are retrieved, the MCU can then start a new measurement with the same register settings. This is done by just setting the START_MEAS bit through SPI. It is not required to drive the ENABLE pin low between measurements. 10. The ENABLE pin can be taken low, if the time duration between measurements is long, and it is desired to put the TDC7201 in its lowest power state. However, upon taking ENABLE high again, the device will come up with its default register settings and will need to be configured through SPI. The two TDCs of TDC7201 can be used independently to measure TOF. When used independently, the TDCx operation is as explained in the measurement sequence steps above. In this case, each TDCx has dedicated START, STOP inputs and measures their STARTx to STOPx time individually when the START_MEAS bit in the TDCx_CONFIG1 register is set. The MCU has to set up, control, and read the results from the two TDCs individually through the master SPI interface. To set up the registers and read back measurement results of TDCx, MCU needs to perform SPI read and write transactions with corresponding CSBx asserted. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 19 TDC7201 SNAS686 – MAY 2016 www.ti.com Device Functional Modes (continued) NOTE START1, STOP1 and START2, STOP2 inputs can be separate from different sources or can be identical with START1 connected to START2 and STOP1 connected to STOP2. In the latter case, when the TDCx inputs are connected together and the TDCx register setup is identical, then both the TDCs measure the same input in parallel and this can be used to achieve finer resolution. By measuring the same time with both TDCs and taking the average, the LSB resolution is halved. 7.4.7 Wait Times for TDC7201 Startup The required wait time following the rising edge of the ENABLE pin of the TDC7201 is defined by three key times, as shown in Figure 25. All three times relate to the startup of the TDCx’s internal dedicated LDO, which is power gated when the device is disabled for optimal power consumption. The first parameter, T1SPI_RDY, is the time after which the SPI interface is accessible. The second (T2LDO_SET1) parameter and third (T3LDO_SET2) parameter are related to the performance of a measurement made while the internal LDO is settling. The LDO supplies the TDC7201’s time measurement device, and a change in voltage on its supply during a measurement translates directly to an inaccuracy. It is therefore recommended to wait until the LDO is settled before time measurement begins. The first time period relating to the measurement accuracy is T2LDO_SET1, the LDO settling time 1. This is the time after which the LDO has settled to within 0.3% of its final value. A 0.3% error translates to a worst case time error (due to the LDO settling) of 0.3% × tCLOCK, which is 375 ps in the case of an 8-MHz reference clock, or 187.5 ps if a 16-MHz clock is used. Finally, the time T3LDO_SET2 is the time after which the LDO has settled to its final value. For best performance, TI recommends that a time measurement is not started before T3LDO_SET2 to allow the LDO to fully settle. Typical times for these parameters are: T1SPI_RDY is 100 µs, for T2LDO_SET1 is 300 µs, and for T3LDO_SET2 is 1.5 ms. 20 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Device Functional Modes (continued) ENABLE VREGx T3 LDO_SET2 T2 LDO_SET1 T1 SPI_RDY Time Figure 25. VREGx Startup Time 7.5 Programming 7.5.1 Serial Peripheral Interface (SPI) The serial interface consists of data input (DIN), data output (DOUTx), serial interface clock (SCLK), and chip select bar (CSBx). The serial interface is used to configure the TDC7201 parameters available in various configuration registers. The two TDCs of TDC7201 share the serial interface DIN and SCLK pins but support dedicated CSB and DOUT pins. Registers of the TDCx are selected for read/write access when their corresponding dedicated CSBx pin is asserted. By connecting together DOUT1 and DOUT2, a single SPI master interface of the MCU can be used to access both the TDC register sets by asserting the corresponding CSBx. Alternatively, by keeping DOUT1 and DOUT2 separate, data can be read out of the TDCs in parallel using their dedicated DOUTx pins. This doubles the data readout throughput but requires a second dedicated SPI interface of the MCU. The communication on the SPI bus supports write and read transactions. A write transaction consists of a single write command byte, followed by single data byte. A read transaction consists of a single read command byte followed by 8 or 24 SCLK cycles. The write and read command bytes consist of a 1-bit auto-increment bit, a 1-bit read or write instruction, and a 6-bit register address. Figure 26 shows the SPI protocol for a transaction involving one byte of data (read or write). Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 21 TDC7201 SNAS686 – MAY 2016 www.ti.com Programming (continued) CSBx 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 SCLK COMMAND FIELD DATA FIELD MSB DIN c7 c6 AutoIncrement R/W c5 c4 c3 c2 c1 c0 d7 LSB d6 d5 Address (6 bits) d4 d3 d2 d1 Write Data (8-bits) MSB DOUTx d0 d7 LSB d6 R/W = Instruction 0: Read 1: Write d5 d4 d3 d2 d1 d0 Read Data (8-bits) Figure 26. SPI Protocol 7.5.1.1 CSBx CSBx is an active-low signal and needs to be low throughout a transaction. That is, CSBx should not pulse between the command byte and the data byte of a single transaction. De-asserting CSBx always terminates an ongoing transaction, even if it is not yet complete. Re-asserting CSBx will always bring the device into a state ready for the next transaction, regardless of the termination status of a previous transaction. Registers of the TDCx are selected for read/write access when their corresponding dedicated CSBx pin is asserted. 7.5.1.2 SCLK SPI clock can idle high or low. TI recommends to keep SCLK as clean as possible to prevent glitches from corrupting the SPI frame. 7.5.1.3 DIN Data In (DIN) is driven by the SPI master by sending the command and the data byte to configure the TDC7201. 7.5.1.4 DOUTx Data Out (DOUTx) is driven by the TDC7201 when the SPI master initiates a read transaction with CSBx asserted. When the TDC7201 is not being read out, the DOUT pin is in high impedance mode and is undriven. Registers of the TDCx are selected for read/write access when their corresponding dedicated CSBx pin is asserted. By connecting together DOUT1 and DOUT2, a single SPI master interface of the MCU can be used to access both the TDC register sets by asserting the corresponding CSBx. Alternatively, by keeping DOUT1 and DOUT2 separate, data can be read out of the TDCs in parallel using their dedicated DOUTx pins. This doubles the data readout throughput but requires a second dedicated SPI interface of the MCU. 7.5.1.5 Register Read/Write Access to the TDCx internal registers can be done through the serial interface formed by pins CSBx (Chip Select - active low), SCLK (serial interface clock), DIN (data input), and DOUTx (data out). 22 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Programming (continued) Serial shift of bits into the TDCx is enabled when CSBx is low. Serial data DIN is latched (MSB received first, LSB received last) at every rising edge of SCLK when CSBx is active (low). The serial data is loaded into the register with the last data bit SCLK rising edge when CSBx is low. In the case that the word length exceeds the register size, the excess bits are ignored. The interface can work with SCLK frequency from 25 MHz down to very low speeds (a few Hertz) and even with a non-50% duty-cycle SCLK. The SPI transaction is divided in two main portions: • Address and Control as shown in Table 1: Auto Increment Mode selection bit, Read/Write bit, Address 6 bits • Data: 8 bit or 24 bit When writing to a register with unused bits, these should be set to 0. Table 1. Address and Control Byte of SPI transaction Address and Control (A7 - A0) A7 A6 Auto Increment A5 A4 A3 A2 RW Register Address 0: OFF 1: ON Read = 0 Write = 1 00 h up to 3Fh A1 A0 7.5.1.6 Auto Increment Mode When the Auto Increment Mode is OFF, only the register indicated by the Register Address will be accessed, all cycles beyond the register length will be ignored. When the Auto Increment is ON, the register of the Register Address is accessed first, then without interruption, subsequent registers are accessed. The Auto Increment Mode can be either used to access the configuration (TDCx_CONFIG1 and TDCx_CONFIG2) and status (TDCx_INT_STATUS) registers, or for the Measurement Results registers (TDCx_TIME1 to TDCx_TIME6, TDCx_CLOCK_COUNT1 to TDCx_CLOCK_COUNT5, TDCx_CALIBRATION1, TDCx_CALIBRATION2). As both register block use registers with different length, it is not possible to access all registers of the device within one single access cycle. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 23 TDC7201 SNAS686 – MAY 2016 www.ti.com 7.6 Register Maps 7.6.1 Register Initialization After power up (VDD supplied, ENABLE Pin low to high transition) the internal registers are initialized with the default value. Disabling the part by pulling ENABLE pin to GND will set the device into total shutdown. As the internal LDO is turned off settings in the register will be lost. The device initializes the registers with default values with the next enable (ENABLE pin to VDD). Table 2. TDCx_ Register Summary (1) REGISTER ADDRESS (1) 24 REGISTER NAME REGISTER DESCRIPTION SIZE (BITS) RESET VALUE 00h TDCx_CONFIG1 Configuration Register 1 8 00h 01h TDCx_CONFIG2 Configuration Register 2 8 40h 02h TDCx_INT_STATUS Interrupt Status Register 8 00h 03h TDCx_INT_MASK Interrupt Mask Register 8 07h 04h TDCx_COARSE_CNTR_OVF_H Coarse Counter Overflow Value High 8 FFh 05h TDCx_COARSE_CNTR_OVF_L Coarse Counter Overflow Value Low 8 FFh 06h TDCx_CLOCK_CNTR_OVF_H CLOCK Counter Overflow Value High 8 FFh 07h TDCx_CLOCK_CNTR_OVF_L CLOCK Counter Overflow Value Low 8 FFh 08h TDCx_CLOCK_CNTR_STOP_MASK_H CLOCK Counter STOP Mask High 8 00h 09h TDCx_CLOCK_CNTR_STOP_MASK_L CLOCK Counter STOP Mask Low 8 00h 10h TDCx_TIME1 Measured Time 1 24 00_0000h 11h TDCx_CLOCK_COUNT1 CLOCK Counter Value 24 00_0000h 12h TDCx_TIME2 Measured Time 2 24 00_0000h 13h TDCx_CLOCK_COUNT2 CLOCK Counter Value 24 00_0000h 14h TDCx_TIME3 Measured Time 3 24 00_0000h 15h TDCx_CLOCK_COUNT3 CLOCK Counter Value 24 00_0000h 16h TDCx_TIME4 Measured Time 4 24 00_0000h 17h TDCx_CLOCK_COUNT4 CLOCK Counter Value 24 00_0000h 18h TDCx_TIME5 Measured Time 5 24 00_0000h 19h TDCx_CLOCK_COUNT5 CLOCK Counter Value 24 00_0000h 1Ah TDCx_TIME6 Measured Time 6 24 00_0000h 1Bh TDCx_CALIBRATION1 Calibration 1, 1 CLOCK Period 24 00_0000h 1Ch TDCx_CALIBRATION2 Calibration 2, 2/10/20/40 CLOCK Periods 24 00_0000h Registers of the TDCx are selected for read/write access when their corresponding dedicated CSBx pin is asserted. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 7.6.2 TDCx_CONFIG1: TDCx Configuration Register 1 R/W (address = 00h, CSBx asserted) [reset = 0h] Figure 27. TDCx_CONFIG1 Register 7 FORCE_CAL R/W-0 6 PARITY_EN R/W-0 5 TRIGG_EDGE R/W-0 4 STOP_EDGE R/W-0 3 START_EDGE R/W-0 2 1 MEAS_MODE R/W-0 R/W-0 0 START_MEAS R/W-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 3. TDCx_CONFIG1 Register Field Descriptions Bit 7 Field Type Reset Description FORCE_CAL R/W 0 0: Calibration is automatic and performed every time after a measurement. Only if a measurement is interrupted (for example, due to counter overflow or missing STOP signal), calibration is not performed. 1: Calibration is always performed at the end (for example, after a counter overflow) even if a measurement is interrupted. 6 PARITY_EN R/W 0 0: Parity bit for Measurement Result Registers* disabled (Parity Bit always 0) 1: Parity bit for Measurement Result Registers enabled (Even Parity) *The Measurement Results registers are the TDCx_TIME1 to TDCx_TIME6, TDCx_CLOCK_COUNT1 to TDCx_CLOCK_COUNT5, TDCx_CALIBRATION1, TDCx_CALIBRATION2 registers. 5 TRIGG_EDGE R/W 0 4 STOP_EDGE R/W 0 3 START_EDGE R/W 0 0: TRIGG is output as a Rising edge signal 1: TRIGG is output as a Falling edge signal 0: Measurement is stopped on Rising edge of STOP signal 1: Measurement is stopped on Falling edge of STOP signal 0: Measurement is started on Rising edge of START signal 1: Measurement is started on Falling edge of START signal [2:1] MEAS_MODE R/W b00 0 START_MEAS R/W 0 00: Measurement Mode 1 (for expected time-of-flight < 2000 ns). 01: Measurement Mode 2 (recommended) 10, 11: Reserved for future functionality Start New Measurement: This bit is cleared when Measurement is Completed. 0: No effect 1: Start New Measurement. Writing a 1 will clear all bits in the Interrupt Status Register and Start the measurement (by generating a TRIGG signal) and will reset the content of all Measurement Results registers (TDCx_TIME1 to TDCx_TIME6, TDCx_CLOCK_COUNT1 to TDCx_CLOCK_COUNT5, TDCx_CALIBRATION1, TDCx_CALIBRATION2) to 0. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 25 TDC7201 SNAS686 – MAY 2016 www.ti.com 7.6.3 TDCx_CONFIG2: TDCx Configuration Register 2 R/W (address = 01h, CSBx asserted) [reset = 40h] Figure 28. TDCx_CONFIG2 Register 7 6 CALIBRATION2_PERIODS R/W-0 R/W-1 5 R/W-0 4 AVG_CYCLES R/W-0 3 2 R/W-0 R/W-0 1 NUM_STOP R/W-0 0 R/W-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 4. TDCx_CONFIG2 Register Field Descriptions Bit Field [7:6] Type CALIBRATION2_PERIODS R/W Reset Description b01 00: Calibration 2 - measuring 2 CLOCK periods 01: Calibration 2 - measuring 10 CLOCK periods 10: Calibration 2 - measuring 20 CLOCK periods 11: Calibration 2 - measuring 40 CLOCK periods [5:3] AVG_CYCLES R/W b000 000: 1 Measurement Cycle only (no Multi-Cycle Averaging Mode) 001: 2 Measurement Cycles 010: 4 Measurement Cycles 011: 8 Measurement Cycles 100: 16 Measurement Cycles 101: 32 Measurement Cycles 110: 64 Measurement Cycles 111: 128 Measurement Cycles [2:0] NUM_STOP R/W b000 000: Single Stop 001: Two Stops 010: Three Stops 011: Four Stops 100: Five Stops 101, 110, 111: No Effect. Single Stop 26 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 7.6.4 TDCx_INT_STATUS: Interrupt Status Register (address = 02h, CSBx asserted) [reset = 00h] Figure 29. TDCx_INT_STATUS Register 7 6 Reserved 5 R/W-0 R/W-0 R/W-0 4 MEAS_ COMPLETE_ FLAG R/W-0 3 MEAS_STARTED_ FLAG R/W-0 2 CLOCK_ CNTR_ OVF_INT R/W-0 1 COARSE_CNTR_ OVF_INT 0 NEW_MEAS_ INT R/W-0 R/W-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 5. TDCx_INT_STATUS Register Field Descriptions Bit 7-5 4 Field Type Reset Reserved R/W b000 MEAS_COMPLETE_FLAG R/W 0 Description Writing a 1 will clear the status 0: Measurement has not completed 1: Measurement NEW_MEAS_INT) 3 MEAS_STARTED_FLAG R/W 0 has completed (same information as Writing a 1 will clear the status 0: Measurement has not started 1: Measurement has started (START signal received) 2 CLOCK_CNTR_OVF_INT R/W 0 Requires writing a 1 to clear interrupt status 0: No overflow detected 1: Clock overflow detected, running measurement will be stopped immediately 1 COARSE_CNTR_OVF_INT R/W 0 Requires writing a 1 to clear interrupt status 0: No overflow detected 1: Coarse overflow detected, running measurement will be stopped immediately 0 NEW_MEAS_INT R/W 0 Requires writing a 1 to clear interrupt status 0: Interrupt not detected 1: Interrupt detected – New Measurement has been completed Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 27 TDC7201 SNAS686 – MAY 2016 www.ti.com 7.6.5 TDCx_INT_MASK: TDCx Interrupt Mask Register R/W (address = 03h, CSBx asserted) [reset = 07h] Figure 30. TDCx_INT_MASK Register 7 6 5 Reserved R/W-0 R/W-0 R/W-0 4 3 R/W-0 R/W-0 2 CLOCK_CNTR _OVF_MASK R/W-1h 1 COARSE_CNTR _OVF_MASK R/W-1h 0 NEW_MEAS _MASK R/W-1h LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 6. TDCx_INT_MASK Register Field Descriptions Bit Field Type Reset Reserved R/W b0'0000 2 CLOCK_CNTR_OVF_MASK R/W 1 1 COARSE_CNTR_OVF_MASK R/W 1 7-3 Description 0: CLOCK Counter Overflow Interrupt disabled 1: CLOCK Counter Overflow Interrupt enabled 0: Coarse Counter Overflow Interrupt disabled 1: Coarse Counter Overflow Interrupt enabled 0 NEW_MEAS_MASK R/W 1 0: New Measurement Interrupt disabled 1: New Measurement Interrupt enabled A disabled interrupt will no longer be visible on the device pin (INTB). The interrupt bit in the TDCx_INT_STATUS register will still be active. 7.6.6 TDCx_COARSE_CNTR_OVF_H: Coarse Counter Overflow High Value Register (address = 04h, CSBx asserted) [reset = FFh] Figure 31. TDCx_COARSE_CNTR_OVF_H Register 7 6 5 R/W-1 R/W-1 R/W-1 4 3 COARSE_CNTR_OVF_H R/W-1 R/W-1 2 1 0 R/W-1 R/W-1 R/W-1 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 7. TDCx_COARSE_CNTR_OVF_H Register Field Descriptions 28 Bit Field Type Reset Description 7-0 COARSE_CNTR_OVF_H R/W FFh Coarse Counter Overflow Value, upper 8 Bit Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 7.6.7 TDCx_COARSE_CNTR_OVF_L: TDCx Coarse Counter Overflow Low Value Register (address = 05h, CSBx asserted) [reset = FFh ] Figure 32. TDCx_COARSE_CNTR_OVF_L Register 7 6 5 R/W-1 R/W-1 R/W-1 4 3 COARSE_CNTR_OVF_L R/W-1 R/W-1 2 1 0 R/W-1 R/W-1 R/W-1 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 8. TDCx_COARSE_CNTR_OVF_L Register Field Descriptions Bit Field Type Reset Description 7-0 COARSE_CNTR_OVF_L R/W FFh Coarse Counter Overflow Value, lower 8 Bit Note: Do not set COARSE_CNTR_OVF_L to 1. 7.6.8 TDCx_CLOCK_CNTR_OVF_H: Clock Counter Overflow High Register (address = 06h, CSBx asserted) [reset = FFh] Figure 33. TDCx_CLOCK_CNTR_OVF_H Register 7 6 5 R/W-1 R/W-1 R/W-1 4 3 CLOCK_CNTR_OVF_H R/W-1 R/W-1 2 1 0 R/W-1 R/W-1 R/W-1 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 9. TDCx_CLOCK_CNTR_OVF_H Register Field Descriptions Bit Field Type Reset Description 7-0 CLOCK_CNTR_OVF_H R/W FFh CLOCK Counter Overflow Value, upper 8 Bit 7.6.9 TDCx_CLOCK_CNTR_OVF_L: Clock Counter Overflow Low Register (address = 07h, CSBx asserted) [reset = FFh] Figure 34. TDCx_CLOCK_CNTR_OVF_L Register 7 6 5 R/W-1 R/W-1 R/W-1 4 3 CLOCK_CNTR_OVF_L R/W-1 R/W-1 2 1 0 R/W-1 R/W-1 R/W-1 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 10. TDCx_CLOCK_CNTR_OVF_L Register Field Descriptions Bit Field Type Reset Description 7-0 CLOCK_CNTR_OVF_L R/W FFh CLOCK Counter Overflow Value, lower 8 Bit Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 29 TDC7201 SNAS686 – MAY 2016 www.ti.com 7.6.10 TDCx_CLOCK_CNTR_STOP_MASK_H: CLOCK Counter STOP Mask High Value Register (address = 08h, CSBx asserted) [reset = 00h] Figure 35. TDCx_CLOCK_CNTR_STOP_MASK_H Register 7 6 5 R/W-0 R/W-0 R/W-0 4 3 CLOCK_CNTR_STOP_MASK_H R/W-0 R/W-0 2 1 0 R/W-0 R/W-0 R/W-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 11. TDCx_CLOCK_CNTR_STOP_MASK_H Register Field Descriptions Bit Field Type Reset Description 7-0 CLOCK_CNTR_STOP_MASK_H R/W 00h CLOCK Counter STOP Mask, upper 8 Bit 7.6.11 TDCx_CLOCK_CNTR_STOP_MASK_L: CLOCK Counter STOP Mask Low Value Register (address = 09h, CSBx asserted) [reset = 00h] Figure 36. TDCx_CLOCK_CNTR_STOP_MASK_L Register 7 6 5 R/W-0 R/W-0 R/W-0 4 3 CLOCK_CNTR_STOP_MASK_L R/W-0 R/W-0 2 1 0 R/W-0 R/W-0 R/W-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 12. TDCx_CLOCK_CNTR_STOP_MASK_L Register Field Descriptions Bit Field Type Reset Description 7-0 CLOCK_CNTR_STOP_MASK_L R/W 00h CLOCK Counter STOP Mask, lower 8 Bit 7.6.12 TDCx_TIME1: Time 1 Register (address: 10h, CSBx asserted) [reset = 00_0000h] Figure 37. TDCx_TIME1 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit TIME1: 23 bit integer value (Bit 22: MSB, Bit 0: LSB) R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 13. TDCx_TIME1 Register Field Descriptions Bit Field Type Reset Description 23 Parity Bit R 0 Parity Bit TIME1 R 00 0000h 23 bits, TIME1 measurement result 22-0 30 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 7.6.13 TDCx_CLOCK_COUNT1: Clock Count Register (address: 11h, CSBx asserted) [reset = 00_0000h] Figure 38. TDCx_CLOCK_COUNT1 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit CLOCK_COUNT1 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 14. TDCx_CLOCK_COUNT1 Register Field Descriptions Bit Field Type Reset Description 23 Parity Bit R 0 Parity Bit 22-16 Not Used R 00h 7 bits, these bits will be used in Multi-Cycle Averaging Mode in order to allow higher averaging results. 15-0 CLOCK_COUNT1 R 0000h 16 bits, CLOCK_COUNT1 measurement result 7.6.14 TDCx_TIME2: Time 2 Register (address: 12h, CSBx asserted) [reset = 00_0000h] Figure 39. TDCx_TIME2 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit TIME2: 23 bit integer value (Bit 22: MSB, Bit 0: LSB) R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 15. TDCx_TIME2 Register Field Descriptions Bit Field Type Reset Description 23 Parity Bit R 0 Parity Bit TIME2 R 00 0000h 23 bits, TIME2 measurement result 22-0 7.6.15 TDCx_CLOCK_COUNT2: Clock Count Register (address: 13h, CSBx asserted) [reset = 00_0000h] Figure 40. TDCx_CLOCK_COUNT2 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit CLOCK_COUNT2 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 16. TDCx_CLOCK_COUNT2 Register Field Descriptions Bit Field Type Reset Description 23 Parity bit R 0 Parity Bit 22-16 Not Used R 00h 7 bits, these bits will be used in Multi-Cycle Averaging Mode in order to allow higher averaging results. 15-0 CLOCK_COUNT2 R 0000h 16 bits, CLOCK_COUNT2 measurement result Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 31 TDC7201 SNAS686 – MAY 2016 www.ti.com 7.6.16 TDCx_TIME3: Time 3 Register (address: 14h, CSBx asserted) [reset = 00_0000h] Figure 41. TDCx_TIME3 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit TIME3: 23 bit integer value (Bit 22: MSB, Bit 0: LSB) R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 17. TDCx_TIME3 Register Field Descriptions Bit Field Type Reset Description 23 Parity bit R 0 Parity Bit TIME3 R 00 0000h 23 bits, TIME3 measurement result 22-0 7.6.17 TDCx_CLOCK_COUNT3: Clock Count Registers (address: 15h, CSBx asserted) [reset = 00_0000h] Figure 42. TDCx_CLOCK_COUNT3 Count Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit CLOCK_COUNT3 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 18. TDCx_CLOCK_COUNT3 Register Field Descriptions Bit Field Type Reset Description 23 Parity bit R 0 Parity bit 22-16 Not Used R 00h 7 bits, these bits will be used in Multi-Cycle Averaging Mode in order to allow higher averaging results. 15-0 CLOCK_COUNT3 R 0000h 16 bits, CLOCK_COUNT3 measurement result 7.6.18 TDCx_TIME4: Time 4 Register (address: 16h, CSBx asserted) [reset = 00_0000h] Figure 43. TDCx_TIME4 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit TIME4: 23 bit integer value (Bit 22: MSB, Bit 0: LSB) R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 19. TDCx_TIME4 Register Field Descriptions Bit Field Type Reset Description 23 Parity bit R 0 Parity Bit TIME4 R 00 0000h 23 bits, TIME4 measurement result 22-0 32 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 7.6.19 TDCx_CLOCK_COUNT4: Clock Count Register (address: 17h, CSBx asserted) [reset = 00_0000h] Figure 44. TDCx_CLOCK_COUNT4 Count Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit CLOCK_COUNT4 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 20. TDCx_CLOCK_COUNT4 Register Field Descriptions Bit Field Type Reset Description 23 Parity bit R 0 Parity bit 22-16 Not Used R 00h 7 bits, these bits will be used in Multi-Cycle Averaging Mode in order to allow higher averaging results. 15-0 CLOCK_COUNT4 R 0000h 16 bits, CLOCK_COUNT4 measurement result 7.6.20 TDCx_TIME5: Time 5 Register (address: 18h, CSBx asserted) [reset = 00_0000h] Figure 45. TDCx_TIME5 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit TIME5: 23 bit integer value (Bit 22: MSB, Bit 0: LSB) R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 21. TDCx_TIME5 Register Field Descriptions Bit Field Type Reset Description 23 Parity bit R 0 Parity Bit TIME5 R 00 0000h 23 bits, TIME5 measurement result 22-0 7.6.21 TDCx_CLOCK_COUNT5: Clock Count Register (address: 19h, CSBx asserted) [reset = 00_0000h] Figure 46. TDCx_CLOCK_COUNT5 Count Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit CLOCK_COUNT5 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 22. TDCx_CLOCK_COUNT5 Register Field Descriptions Bit Field Type Reset Description 23 Parity bit R 0 Parity bit 22-16 Not Used R 00h 7 bits, these bits will be used in Multi-Cycle Averaging Mode in order to allow higher averaging results. 15-0 CLOCK_COUNT5 R 0000h 16 bits, CLOCK_COUNT5 measurement result Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 33 TDC7201 SNAS686 – MAY 2016 www.ti.com 7.6.22 TDCx_TIME6: Time 6 Register (address: 1Ah, CSBx asserted) [reset = 00_0000h] Figure 47. TDCx_TIME6 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit TIME6: 23 bit integer value (Bit 22: MSB, Bit 0: LSB) R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 23. TDCx_TIME6 Register Field Descriptions Bit Field Type Reset Description 23 Parity bit R 0 Parity Bit TIME6 R 00 0000h 23 bits, TIME6 measurement result 22-0 7.6.23 TDCx_CALIBRATION1: Calibration 1 Register (address: 1Bh, CSBx asserted) [reset = 00_0000h] Figure 48. TDCx_CALIBRATION1 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit CALIBRATION1: 23 bit integer value (Bit 22: MSB, Bit 0: LSB) R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 24. TDCx_CALIBRATION1 Register Field Descriptions Bit Field Type Reset Description 23 Parity BIt R 0 Parity Bit CALIBRATION1 R 00 0000h 23 bits, Calibration 1 measurement result 22-0 7.6.24 TDCx_CALIBRATION2: Calibration 2 Register (address: 1Ch, CSBx asserted) [reset = 00_0000h] Figure 49. TDCx_CALIBRATION2 Register 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Parity Bit CALIBRATION2: 23 bit integer value (Bit 22: MSB, Bit 0: LSB) R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Table 25. TDCx_CALIBRATION2 Register Field Descriptions Bit Field Type Reset Description 23 Parity BIt R 0 Parity Bit CALIBRATION2 R 00 0000h 23 bits, Calibration 2 measurement result 22-0 34 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 8 Application and Implementation NOTE Information in the following applications sections is not part of the TI component specification, and TI does not warrant its accuracy or completeness. TI’s customers are responsible for determining suitability of components for their purposes. Customers should validate and test their design implementation to confirm system functionality. 8.1 Application Information The TDC7201 is targeted for the TOF measurement of laser pulses. Laser based time-of-flight applications demand picosecond accuracy plus the ability to measure very short durations. The TDC7201 is highly suited for such applications with its wide measurement range of 0.25 ns to 8 ms and high accuracy of 28 ps. It has a single shot resolution of 55 ps which is equivalent to 0.825 cm. 8.2 Typical Application The TDC7201 can be used in TOF laser range finders to measure distance to a target. Besides surveying and navigation, distance measurement using TOF laser range finders is used for collision avoidance and safety in a number of systems like drones, robotics, and autonomous vehicles. A block diagram of TOF laser range finders is shown in Figure 50. The system consists of a laser pulse emitter or transmitter, an echo receiver, and a TDC. In this system, TDC7201 can measure the round trip time between a light pulse emission and its echo from the target. The light pulse transmitter triggers the TDC7201 measurement by providing the start input and the receiver stops the TDC7201. Using the equation D = C × TOF / 2, where C is the speed of light, the distance D to the target can be calculated once the TOF is known. A TOF of 0.67 ns is equivalent to 10 cm range and 1 cm accuracy corresponds to 67 ps. Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 35 TDC7201 SNAS686 – MAY 2016 www.ti.com Typical Application (continued) LASER RECEIVER BEAMSPLITTER AND OPTICS T A R G E T Detector Pre-amplifier Amplifier with AGC Pulsed Laser Transmitter LIDAR_STOP_PULSE LIDAR_START_PULSE STOP2 STOP1 START1 TDC7201 CLOCK START2 8 MHz CLOCK ENABLE TRIGGx SCLK DIN DOUTx CSBx INTBx OSC MSP430 REFERENCE START Copyright © 2016, Texas Instruments Incorporated Figure 50. TDC7201 Based TOF Laser Range Finder Block Diagram 8.2.1 Design Requirements The TOF measurement design is driven by the extreme low measurement range and high accuracy constraints. The TDC7201 has two built-in TDCs to achieve a low measurement range of 4 cm (equivalent to a 0.25 ns TOF). The TDC7201 with its single shot resolution of 55 ps (which is equivalent to 0.825 cm) and built-in averaging of up to 128 samples can enable applications to achieve millimeter or even sub-millimeter precision. 8.2.2 Detailed Design Procedure 8.2.2.1 Measuring Time Periods Less Than 12 ns Using TDC7201 The minimum time measurable in measurement mode 1 is 12 ns. It is feasible to do measurements down to 0.25 ns using the TDC7201 in what is called combined measurement mode. In combined measurement mode, START1 and START2 are connected together: • A common REFERENCE_START signal is applied to START1 and START2 at least 12 ns before occurrence of actual Start and Stop signals • TOF Start (LIDAR_START) signal is connected to STOP1 • TOF Stop signal (LIDAR_STOP) is connected to STOP2 • Two time periods T1 (REFERENCE_START to LIDAR_START) and T2 (REFERENCE_START to LIDAR_STOP) are measured and their difference T3 = (T2 - T1) is the required TOF 36 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 Typical Application (continued) An illustration of this combined measurement mode is shown in Figure 51 and Figure 52. It is necessary that the REFERENCE_START pulse is generated at least 12 ns before the LIDAR_START pulse. The REFERENCE_START could be generated by the MCU or by some other timing circuit. Microcontroller (MSP430) REFERENCE START LIDAR_START TDC7201 START1 T1 STOP1 START2 LIDAR_STOP T2 STOP2 Copyright © 2016, Texas Instruments Incorporated Figure 51. Short Time Measurement Setup REFERENCE START LIDAR START LIDAR STOP T3 T1 T2 Figure 52. TDC7201 Short Time Measurement Timing Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 37 TDC7201 SNAS686 – MAY 2016 www.ti.com Typical Application (continued) 8.2.3 Application Curves Figure 53 and Figure 54 show a TOF measurement of 0.25ns using the TDC7201 in combined measurement mode. A Tektronix DTG5078 based test setup was used to generate the TDC7201 START, STOP inputs. Figure 53. TDC7201 Combined TOF Measurement Data: Raw and 128 x Running Average Figure 54. TDC7201 Combined TOF Measurement Data: Equivalent Distance for Raw and 128 x Running Average 8.3 CLOCK Recommendations A stable, known reference clock is crucial to the ability to measure time, regardless of the time measuring device. Two parameters of a clock source primarily affect the ability to measure time: accuracy and jitter. The following subsection will discuss recommendations for the CLOCK in order to increase accuracy and reduce jitter. 8.3.1 CLOCK Accuracy CLOCK sources are typically specified with an accuracy value as the clock period is not exactly equal to the nominal value specified. For example, an 8-MHz clock reference may have a 20-ppm accuracy. The true value of the clock period therefore has an error of ±20 ppm, and the real frequency is in the range 7.99984 MHz to 8.00016 MHz [8 MHz ± (8 MHz) x (20/106)]. If the clock accuracy is at this boundary, but the reference time used to calculate the time of flight relates to the nominal 8-MHz clock period, then the time measured will be affected by this error. For example, if the time period measured is 50 µs, and the 8-MHz reference clock has +50 ppm of error in frequency, but the time measured refers to the 125-ns period (1/8 MHz), then the 50 µs time period will have an error of 50 µs x 50/1000000 = 2.5 ns. In summary, a clock inaccuracy translates proportionally to a time measurement error. 8.3.2 CLOCK Jitter Clock jitter introduces uncertainty into a time measurement, rather than inaccuracy. As shown in Figure 55, the jitter accumulates on each clock cycle so the uncertainty associated to a time measurement is a function of the clock jitter and the number of clock cycles measured. Clock_Jitter_Uncertainty = (√n) × (θJITTER), where n is the number of clock cycles counted, and θJITTER is the cycle-to-cycle jitter of the clock. For example, if the time measured is 50 μs using an 8-MHz reference clock, n = 50 μs/(1/8 MHz) = 400 clock cycles. If the RMS cycle-to-cycle jitter, θJITTER = 10 ps, then the RMS uncertainty introduced in a single measurement is in the order of (√n) × (θJITTER) = 200 ps. Because the effect of jitter is random, averaging or accumulating time results reduces the effect of the uncertainty introduced. If the time is measured m times and the result is averaged, then the uncertainty is reduced to: Clock_Jitter_Uncertainty = (√n) × (θJITTER) / (√m). For example, if 64 averages are performed in the example above, then the jitter-related uncertainty is reduced to 25 ps RMS. 38 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 CLOCK Recommendations (continued) Figure 55. CLOCK Jitter Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 39 TDC7201 SNAS686 – MAY 2016 www.ti.com 9 Power Supply Recommendations The analog circuitry of the TDC7201 is designed to operate from an input voltage supply range between 2 V and 3.6 V. TI recommends to place a 100-nF ceramic bypass capacitor to ground as close as possible to the VDD pins. In addition, an electrolytic or tantalum capacitor with value greater than 1 µF is recommended. The bulk capacitor does not need to be in close vicinity with the TDC7201 and could be close to the voltage source terminals or at the output of the voltage regulators powering the TDC7201. 10 Layout 10.1 Layout Guidelines • • • • 40 In a 4-layer board design, the recommended layer stack order from top to bottom is: signal, ground, power and signal. Bypass capacitors should be placed in close proximity to the VDD pins. The length of the START and STOP traces from the TDC7201 to the AFE or MCU should be matched to prevent uneven signal delays. Also, avoid unnecessary via-holes on these traces and keep the routing as short and direct as possible to minimize parasitic capacitance on the PCB. Route the SPI signal traces close together. Place a series resistor at the source of DOUT (close to the TDC7201) and series resistors at the sources of DIN, SCLK, and CSB (close to the master MCU). Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 TDC7201 www.ti.com SNAS686 – MAY 2016 10.2 Layout Example Figure 56. TDC7201EVM Layout Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 41 TDC7201 SNAS686 – MAY 2016 www.ti.com 11 Device and Documentation Support 11.1 Documentation Support 11.1.1 Third-Party Products Disclaimer TI'S PUBLICATION OF INFORMATION REGARDING THIRD-PARTY PRODUCTS OR SERVICES DOES NOT CONSTITUTE AN ENDORSEMENT REGARDING THE SUITABILITY OF SUCH PRODUCTS OR SERVICES OR A WARRANTY, REPRESENTATION OR ENDORSEMENT OF SUCH PRODUCTS OR SERVICES, EITHER ALONE OR IN COMBINATION WITH ANY TI PRODUCT OR SERVICE. 11.1.2 Related Documentation For related documentation see the following: • • • • TDC7200 TDC7200 TDC1000 TDC1000 Data Sheet (SNAS647) Product Folder Data Sheet (SNAS648) Product Folder 11.2 Community Resources The following links connect to TI community resources. Linked contents are provided "AS IS" by the respective contributors. They do not constitute TI specifications and do not necessarily reflect TI's views; see TI's Terms of Use. TI E2E™ Online Community TI's Engineer-to-Engineer (E2E) Community. Created to foster collaboration among engineers. At e2e.ti.com, you can ask questions, share knowledge, explore ideas and help solve problems with fellow engineers. Design Support TI's Design Support Quickly find helpful E2E forums along with design support tools and contact information for technical support. 11.3 Trademarks E2E is a trademark of Texas Instruments. SPI is a trademark of Motorola. All other trademarks are the property of their respective owners. 11.4 Electrostatic Discharge Caution These devices have limited built-in ESD protection. The leads should be shorted together or the device placed in conductive foam during storage or handling to prevent electrostatic damage to the MOS gates. 11.5 Glossary SLYZ022 — TI Glossary. This glossary lists and explains terms, acronyms, and definitions. 12 Mechanical, Packaging, and Orderable Information The following pages include mechanical, packaging, and orderable information. This information is the most current data available for the designated devices. This data is subject to change without notice and revision of this document. For browser-based versions of this data sheet, refer to the left-hand navigation. 42 Submit Documentation Feedback Copyright © 2016, Texas Instruments Incorporated Product Folder Links: TDC7201 PACKAGE OPTION ADDENDUM www.ti.com 10-Dec-2020 PACKAGING INFORMATION Orderable Device Status (1) Package Type Package Pins Package Drawing Qty Eco Plan (2) Lead finish/ Ball material MSL Peak Temp Op Temp (°C) Device Marking (3) (4/5) (6) TDC7201ZAXR ACTIVE NFBGA ZAX 25 2000 RoHS & Green SNAGCU Level-2-260C-1 YEAR -40 to 85 TDC7201 TDC7201ZAXT ACTIVE NFBGA ZAX 25 250 RoHS & Green SNAGCU Level-2-260C-1 YEAR -40 to 85 TDC7201 (1) The marketing status values are defined as follows: ACTIVE: Product device recommended for new designs. LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect. NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in a new design. PREVIEW: Device has been announced but is not in production. Samples may or may not be available. OBSOLETE: TI has discontinued the production of the device. (2) RoHS: TI defines "RoHS" to mean semiconductor products that are compliant with the current EU RoHS requirements for all 10 RoHS substances, including the requirement that RoHS substance do not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, "RoHS" products are suitable for use in specified lead-free processes. TI may reference these types of products as "Pb-Free". RoHS Exempt: TI defines "RoHS Exempt" to mean products that contain lead but are compliant with EU RoHS pursuant to a specific EU RoHS exemption. Green: TI defines "Green" to mean the content of Chlorine (Cl) and Bromine (Br) based flame retardants meet JS709B low halogen requirements of
TDC7201ZAXT 价格&库存

很抱歉,暂时无法提供与“TDC7201ZAXT”相匹配的价格&库存,您可以联系我们找货

免费人工找货
TDC7201ZAXT
  •  国内价格
  • 1+28.72260
  • 10+25.04844
  • 30+22.86144

库存:43