tdc1000 q1 PDF
tdc1000 q1 PDF
tdc1000 q1 PDF
TDC1000, TDC1000-Q1
SNAS648B – OCTOBER 2014 – REVISED AUGUST 2015
TDC1000 Ultrasonic Sensing Analog Front End (AFE) for Level Sensing, Flow Sensing,
Concentration Sensing, and Proximity Sensing Applications
1 Features 3 Description
•
1 Automotive AEC-Q100 (TDC1000-Q1) The TDC1000 is a fully integrated analog front-end
(AFE) for ultrasonic sensing measurements of level,
• Measurement Range: Up to 8 ms fluid identification/concentration, flow, and proximity/
• Operating Current: 1.8 µA (2 SPS) distance applications common in automotive,
• Transmitter Channels TX1/TX2: industrial, medical, and consumer markets. When
paired with an MSP430/C2000 MCU, power, wireless,
– Supports Single or Dual-Transducer
and source code, TI provides the complete ultrasonic
Application sensing solution.
– Programmable Excitation: 31.25 kHz to 4 MHz,
Up to 31 Pulses TI's Ultrasonic AFE offers programmability and
flexibility to accommodate a wide-range of
• Receiver Channels RX1/RX2: applications and end equipment. The TDC1000 can
– STOP Cycle-to-Cycle Jitter: 50 psRMS be configured for multiple transmit pulses and
– Low-Noise and Programmable Gain Amplifiers frequencies, gain, and signal thresholds for use with
a wide-range of transducer frequencies (31.25kHz to
– Access to Signal Chain for External Filter 4MHz) and Q-factors. Similarly, the programmability
Design of the receive path allows ultrasonic waves to be
– Programmable Threshold Comparator for Echo detected over a wider range of distances/tank sizes
Qualification and through various mediums.
– Automatic Channel Swapping for Differential Selecting different modes of operation, the TDC1000
Time-of-Flight (TOF) Measurement can be optimized for low power consumption,
– Programmable Low Power Mode for Long TOF making it ideal for battery powered flow meters,
Measurements level instrumentation, and distance/proximity
measurements. The low noise amplifiers and
• Temperature Measurement comparators provide extremely low jitter, enabling
– Interface to Two PT1000/500 RTDs picosecond resolution and accuracy for zero and low
– RTD-to-RTD Matching Accuracy 0.02°CRMS flow measurements.
• Operating Temperature Range: -40°C to 125°C Device Information(1)
PART NUMBER PACKAGE BODY SIZE (NOM)
2 Applications
TDC1000 TSSOP (28) PW 9.70 mm × 4.40 mm
• Measurements through tanks of varying materials: TDC1000-Q1 TSSOP (28) PW 9.70 mm × 4.40 mm
– Fluid Level
(1) For all available packages, see the orderable addendum at
– Fluid Identification / Concentration the end of the data sheet.
• Flow Metering: Water, Gas, Heat
• Distance/Proximity Sensing
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.
TDC1000, TDC1000-Q1
SNAS648B – OCTOBER 2014 – REVISED AUGUST 2015 www.ti.com
Table of Contents
1 Features .................................................................. 1 8.4 Device Functional Modes........................................ 20
2 Applications ........................................................... 1 8.5 Programming .......................................................... 31
3 Description ............................................................. 1 8.6 Register Maps ......................................................... 32
4 Revision History..................................................... 2 9 Application and Implementation ........................ 41
9.1 Application Information............................................ 41
5 Pin Configuration and Functions ......................... 3
9.2 Typical Applications ................................................ 41
6 Specifications......................................................... 4
6.1 Absolute Maximum Ratings ...................................... 4 10 Power Supply Recommendations ..................... 51
6.2 ESD Ratings.............................................................. 4 11 Layout................................................................... 52
6.3 Recommended Operating Conditions....................... 4 11.1 Layout Guidelines ................................................. 52
6.4 Thermal Information .................................................. 5 11.2 Layout Example .................................................... 52
6.5 Electrical Characteristics........................................... 6 12 Device and Documentation Support ................. 53
6.6 Timing Requirements ................................................ 8 12.1 Device Support...................................................... 53
6.7 Switching Characteristics .......................................... 8 12.2 Documentation Support ........................................ 53
6.8 Typical Characteristics .............................................. 9 12.3 Related Links ........................................................ 53
7 Parameter Measurement Information ................ 11 12.4 Community Resources.......................................... 53
12.5 Trademarks ........................................................... 53
8 Detailed Description ............................................ 12
12.6 Electrostatic Discharge Caution ............................ 53
8.1 Overview ................................................................. 12
12.7 Glossary ................................................................ 53
8.2 Functional Block Diagram ....................................... 12
8.3 Feature Description................................................. 13 13 Mechanical, Packaging, and Orderable
Information ........................................................... 54
4 Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
• Added Pin Configuration and Functions section, Specifications section, Parameter Measurement Information
section, Detailed Description section, Application and Implementation section, Power Supply Recommendations
section and Layout section ..................................................................................................................................................... 1
• Changed Device and Documentation Support section .......................................................................................................... 1
TSSOP
28 Pin PW
Top View
RX1 1 28 TX1
RX2 2 27 TX2
VCOM 3 26 GND
LNAOUT 4 25 CLKIN
PGAIN 5 24 VDD
TDC1000
PGAOUT 6 23 VDD
COMPIN 7 22 VIO
RTD1 8 21 SDO
RTD2 9 20 SDI
RREF 10 19 CSB
CHSEL 11 18 SCLK
ERRB 12 17 RESET
START 13 16 TRIGGER
STOP 14 15 EN
Pin Functions
PIN
TYPE (1) DESCRIPTION
NAME NO.
RX1 1 I Receive input 1
RX2 2 I Receive input 2
VCOM 3 P Output common mode voltage bias
LNAOUT 4 O Low noise amplifier output (for ac decoupling capacitor)
PGAIN 5 I Programmable gain amplifier input
PGAOUT 6 O Programmable gain amplifier output
COMPIN 7 I Echo qualification and zero-crossing detector input
RTD1 8 O Resistance temperature detector channel 1
RTD2 9 O Resistance temperature detector channel 2
RREF 10 O Reference resistor for temperature measurement
CHSEL 11 I External channel selection
ERRB 12 O Error flag (open drain)
START 13 O Start pulse output
STOP 14 O Stop pulse output
EN 15 I Enable (active high; when low the TDC1000 is in SLEEP mode)
TRIGGER 16 I Trigger input
RESET 17 I Reset (active high)
SCLK 18 I Serial clock for the SPI interface
CSB 19 I Chip select for the SPI interface (active low)
SDI 20 I Serial data input for the SPI interface
SDO 21 O Serial data output for the SPI interface
VIO 22 P Positive I/O supply
VDD (2) 23, 24 P Positive supply; all VDD supply pins must be connected to the supply.
CLKIN 25 I Clock input
GND 26 G Negative supply
6 Specifications
6.1 Absolute Maximum Ratings
(1) (2)
Over operating free-air temperature range (unless otherwise noted)
MIN MAX UNIT
VDD Analog supply voltage, VDD pins –0.3 6.0 V
VIO I/O supply voltage (VIO must always be lower than or equal to VDD supply) –0.3 6.0 V
(3)
VI Voltage on any analog input pin –0.3 VDD + 0.3 V
VI Voltage on any digital input pin (3) –0.3 VIO + 0.3 V
II Input current at any pin 5 mA
TJ Operating junction temperature –40 125 °C
Tstg Storage temperature range –65 150 °C
(1) 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.
(2) All voltages are with respect to ground, unless otherwise specified.
(3) When the input voltage at a pin exceeds the power supplies, the current at that pin must not exceed 5 mA and the voltage (VI) at that
pin must not exceed 6.0 V.
(1) AEC Q100-002 indicates HBM stressing is done in accordance with the ANSI/ESDA/JEDEC JS-001 specification.
(1) For more information about traditional and new thermal metrics, see the IC Package Thermal Metrics application report, SPRA953.
(1) The slew rate is measured from 10% to 90% and is represented by the average of the rising and falling slew rates.
(1) The slew rate is measured from 10% to 90% and is represented by the average of the rising and falling slew rates.
SCLK
t9 t2 t1 t7
t3
CSB
t8
t4 t5
D15 D14 D0
t6
90% 90%
Prior D15 Prior D1 Prior D0
10% 10%
tr tf
500 500
Output Impedance Magnitude (||)
300 300
200 200
100 100
0 0
±100 ±100
100 1k 10k 100k 1M 10M 100 1k 10k 100k 1M 10M
Frequency (Hz) C001 Frequency (Hz) C002
VDD = VIO = 3.7V Capacitive RL = 1kΩ VDD = VIO = 3.7V Gain of 21dB RL = 1kΩ
Feedback Mode
8 8
7 7
6 6
5 5
4 4
3 3
2 2
1 1
0 0
5k 50k 500k 2M 5k 50k 500k 2M
Frequency (Hz) C013 Frequency (Hz) C014
Figure 4. LNA Input-referred Noise vs Frequency Figure 5. PGA Input-referred Noise vs Frequency
Output Voltage (250mV/DIV)
C005 C006
VDD = VIO = 3.7V Resistive Feedback RL = 1kΩ VDD = VIO = 3.7V Gain of 21dB RL = 100kΩ
VIN = 100mV Mode fIN = 100kHz VIN = 100mV fIN = 100kHz
20 20
10 10
Gain (dB)
Gain (dB)
0 0
±10 ±10
±20 ±20
±30 ±30
10k 100k 1M 10M 10k 100k 1M 10M
Frequency (Hz) C007 Frequency (Hz) C008
VDD = VIO = 3.7V Capacitive RL = 100kΩ VDD = VIO = 3.7V Gain of 21dB RL = 100kΩ
Feedback Mode
CIN = 300 pF
Count (%)
12 12
10 10
8 8
6 6
4 4
2 2
0 0
100
200
300
100
200
300
0
0
-300
-200
-100
-300
-200
-100
VDD = VIO = 5V LNA Capacitive PGA Gain of 6dB VDD = VIO = 3.7V LNA Capacitive PGA Gain of 6dB
VIN = 100mV Feedback Mode fIN = 1MHz VIN = 100mV Feedback Mode fIN = 1MHz
(See Figure 14) Count >= 10000 TA = 25C° (See Figure 14) Count >= 10000
Count (%)
12 12
10 10
8 8
6 6
4 4
2 2
0 0
100
200
300
100
200
300
0
0
-300
-200
-100
-300
-200
-100
VDD = VIO = 3.7V LNA Capacitive PGA Gain of 6dB VDD = VIO = 3.7V LNA Capacitive PGA Gain of 6dB
VIN = 100mV Feedback Mode fIN = 1MHz VIN = 100mV Feedback Mode fIN = 1MHz
TA = -40C° (See Figure 14) Count >= 10000 TA = 125C° (See Figure 14) Count >= 10000
CIN = 300 pF
INPUT LNAIN
CF1 = 1 nF
LNAOUT PGAIN
RF1 = 1 N CF2 = 51 pF
PGAOUT COMPIN
GND VCOM
Figure 14. External Circuits for Jitter Measurement
8 Detailed Description
8.1 Overview
The main functional blocks of TDC1000 are the Transmit (TX) and the Receive (RX) Channels. The transmitter
supports flexible settings for driving various ultrasonic transducers, and the receiver provides configurable blocks
with a wide range of settings for signal conditioning in various applications. The receive signal chain consists of
an LNA (Low Noise Amplifier), a PGA (Programmable Gain Amplifier), and two auto-zeroed comparators for
echo qualification and STOP pulse generation.
The TDC1000 provides three modes of operation: Mode 0, Mode 1 and Mode 2. Each mode is intended for one
or more applications such as flow/concentration measurement, container level measurement, proximity detection,
distance measurement, and a range of other applications where a precision measurement of Time-of-Flight
(TOF) is required.
A measurement cycle is initiated with a trigger signal on the TRIGGER pin of the device. After a trigger signal is
asserted, an output pulse is generated on the START pin. This signal is used as the time reference to begin a
TOF measurement. The transmitter generates programmable TX pulses, synchronous to the rising edge of the
START pulse, to drive an ultrasonic transducer and generate an ultrasonic wave that is shot through an acoustic
medium. The receiver detects the ultrasound wave that traveled through the medium and generates STOP
signals. Whether the ultrasound wave is received directly or from a reflection will depend on the system
configuration. The STOP signals are used by an external Time-to-Digital Converter (TDC), which functions as a
very accurate stopwatch. The system must include a TDC to measure the TOF based on the interval between
the START and STOP pulses. In some applications with medium-range accuracy requirements (ns range), a
microcontroller can be used to measure the TOF duration. In applications with high-range accuracy requirements
(ps range), TI recommends using the TDC7200 time-to-digital converter to measure the TOF duration.
In each application, the TDC1000 has to be configured by a serial interface (SPI) for one of the three modes of
operation available. In addition, the device must be programmed to various application-specific parameters that
are explained in the following sections.
CHSEL
CLKIN
ERRB
SCLK
VDD
VDD
SDO
CSB
VIO
SDI
EN
TX1
Tx Clock SM Control Serial
Generator Divider Unit Interface
TX2
MUX
Channel
START
Select enable
RX1 Event
DAC
MUX
MUX
± + Manager STOP
RX2 LNA PGA Threshold Detect
+ VCOM ±
20 dB 0 to 21 dB
VCOM
Analog Bias Temp. Sense
TDC1000
Zero-Cross Detect
GND
LNAOUT
PGAIN
PGAOUT
COMPIN
VCOM
RREF
RTD2
RTD1
Channel
Select enable
DAC Event
MUX
MUX
± + Manager
Threshold Detect STOP
LNA PGA
+ VCOM ±
20dB 0 to 21 dB
VCOM
Analog Bias Temp. Sense
TDC1000
Zero-Cross Detect
GND
LNAOUT
PGAIN
PGAOUT
COMPIN
VCOM
RREF
RTD2
RTD1
CF 30 pF
RF 9 lQ
MUX
CIN
Transducer 300 pF RX1
t
LNA LNAOUT
RX2
+
300 pF VCOM
CIN
Figure 16. LNA Capacitive Feedback Configuration
The capacitive feedback configuration of the LNA has a band-pass frequency response. The high-pass corner
frequency is set by the internal feedback components RF (9 kΩ) and CF (30 pF), and is approximately 590 kHz.
The in-band gain is set by the capacitor ratio and the LNA’s 50-MHz gain-bandwidth product sets the low-pass
corner of the frequency response. For example, an in-band gain of 10 results in a bandpass response between
590 kHz and 5 MHz.
The LNA can be configured in resistive feedback mode for transducers with resonant frequencies in the order of
a couple of hundreds of kHz. This is done by setting the LNA_FB bit in the TOF_1 register to 1. In this
configuration, the internal feedback capacitor CF is disconnected (see Figure 17), and the DC gain of the LNA
circuit is determined by the ratio between the internal feedback resistor RF (9 kΩ) and an external resistor RIN.
For RIN = 900 Ω, the gain of the circuit is 10.
RF 9 lQ
MUX
RIN
Transducer 900 Q RX1
t
LNA LNAOUT
RX2
+
900 Q VCOM
RIN
Figure 17. LNA Resistive Feedback Configuration
The LNA can be bypassed and disabled by writing a 1 to the LNA_CTRL bit in the TOF_1 register.
The PGA can be bypassed and disabled by writing a 1 to the PGA_CTRL bit in the TOF_1 register. The output of
the PGA should not be loaded directly with capacitances greater than 10 pF.
RFB
VCOM
More complex filters can be used; external gain is acceptable if the signal amplitude is too low. If the pass-band
of the filter is wider than an octave, it is recommended to use a filter design which has linear group delay.
GND VCOM
Figure 19. Filter for a 1-MHz Operation
COMPIN +
STOP
Threshold
Detect Event Manager
ECHO_QUAL_THLD ±
+
DAC VTHLD
± +
RECEIVE_MODE
NUM_RX
Signal into
COMPIN
VCOM
VHYST = 10 mV
Zero Cross
Detect Output
Figure 21. Zero-Cross Detector Output Signal
The output of the zero-cross detect comparator is passed to the event manager, where depending on the
decision of the threshold-detect comparator.
STOP
COMPIN
VCOM
VTHLD
GND
Passes VTHLD Passes VTHLD
Figure 22. Signal Qualification, Zero-cross Detection and STOP Pulse Generation
TDC1011 MEAS_MODE
tof_start
MUX START
MEAS_MODE
tof_stop
MUX STOP
Temp
Sensor
RTD1
RREF
RTD1
(external)
RTD2
RTD2
(external)
Accurate measurements of flow, level, and concentration require compensation for the temperature dependency
of the speed of sound in the medium. The TDC1000 provides two temperature sensor connections, allowing to
measure up to two locations with RTDs, as shown in Figure 23.
The temperature sensor block supports PT1000 or PT500 sensors. The type of RTD used must be selected in
the TEMP_RTD_SEL bit of the CONFIG_3 register. The system requires a temperature-stable external reference
resistor (RREF). If the RTD type is PT500, then RREF should be 500 Ω. If the RTD type is PT1000, then RREF
should be 1 kΩ. The reference resistor needs to have either a low temperature coefficient or be calibrated for
temperature shift.
The logic timing in a temperature measurement is controlled by the TEMP_CLK_DIV bit in the CONFIG_3
register. As shown in Figure 24, the external clock can be divided by 8 or by the value resulting from the
TX_FREQ_DIV field configuration in the CONFIG_0 register. It is recommended to operate the temperature
measurement block at frequencies of 1 MHz or less.
0x03[4] ± TEMP_CLK_DIV
y8
0 ¦TEMP 1
CLKIN ¦CLKIN TTEMP =
1 ¦TEMP
TX_FREQ_DIV+1
y2
0x00[7:5] ± TX_FREQ_DIV
The resistance of RTD1 and RTD2 can be calculated from the time intervals in Figure 25 as follows:
t
R RTDx R REF u REF
t RTDx (3)
With a 1-kΩ reference resistor, the tREF interval is approximately 200 μs. The following intervals, tRTD1 and tRTD2,
will depend on the resistance of the RTDs. The time delay between measurements, td1 and td2, can be
approximated as follows:
td1 = (51 × TTEMP) + ( tRTD1 × 0.55 ) (4)
td2 = (51 × TTEMP) + ( tRTD2 × 0.55 ) (5)
For example, two PT1000 sensors at 0°C will have an approximate resistance of 1 kΩ; the same as the
reference resistor in this example. Given an external 8-MHz clock and the default temperature clock divide-by-8
from the TEMP_CLK_DIV bit, the overall measurement time between the START pulse and the last STOP pulse
is approximately 922 µs.
START
td1 td2
The resistance of RTD1 can be calculated using Equation 3. The time delay between measurements can be
approximated using Equation 4 and Equation 5, with the exception that in this case, td1 is a function of ½ tREF and
td2 is a function of tRTD1.
If the temperature measurement runs in PT500 mode (TEMP_RTD_SEL = 1), the first interval is a redundant
measurement on RREF and should be neglected, the second interval corresponds to RREF, and the third interval
corresponds to RTD1. This operation is represented in Figure 27.
START
td1 td2
The resistance of RTD1 can be calculated using Equation 3. The time delay between measurements can be
approximated using Equation 4 and Equation 5, with the exception that in this case, td1 is a function of tREF and
td2 is a function of tRTD1.
8.4.1.1 Mode 0
Mode 0 is intended for Level and Fluid Identification Measurements applications. The TDC1000 associates each
transducer to complementary TX and RX channels. The transmit/receive pair “TX1/RX2” will act as both
transmitter and receiver for a measurement if CH_SEL = 0 in the CONFIG_2 register. The transmit/receive pair
“TX2/RX1” will act as both transmitter and receiver for the measurement if CH_SEL = 1.
The TDC1000 performs a single TOF measurement after receiving a trigger signal and returns to the SLEEP
mode when the measurement is complete.
8.4.1.2 Mode 1
In Mode 1 the TDC1000 associates each transducer to a single TX and RX channels. The transmit/receive pair
"TX1/RX1" will act as both transmitter and receiver for a measurement if CH_SEL = 0. The transmit/receive pair
"TX2/RX2" will act as both transmitter and receiver for the measurement if CH_SEL = 1.
The TDC1000 performs a single TOF measurement (one direction) and returns to the SLEEP mode when the
measurement is complete.
8.4.1.3 Mode 2
Mode 2 is intended for transit time water flow metering applications (see Water Flow Metering). In this mode, the
channel definitions are the same as for Mode 1: Channel 1 = "TX1/RX1" and Channel 2 = "TX2/RX2". The
TDC1000 will perform one TOF measurement and go into READY state waiting for the next trigger signal.
Mode 2 supports averaging cycles and automatic channel swap. The averaging mode is active if NUM_AVG > 0
and allows for the stopwatch or MCU to perform the average of multiple TOF measurement cycles. In this mode,
the device performs a TOF measurement on one channel (direction) for every trigger pulse until the averaging
count is reached, and if CH_SWP = 1, it will automatically swap channels and perform a TOF measurement on
the other channel (direction) for every trigger pulse until the averaging count is reached.
The number of averages is controlled with the NUM_AVG field found in the CONFIG_1 register. Channel
swapping is controlled with the CH_SWP bit in the CONFIG_2 register. The EXT_CHSEL bit in the CONFIG_2
register must be 0 for automatic channel swap to work. If EXT_CHSEL is 1, the active channel selection is
controlled manually with the CHSEL pin.
NOTE
If an echo measurement times out in averaging mode (indicated by the error flags or
ERRB pin), the state machine should be reset and the error flags should be cleared. The
state machine can be cleared by writing a 1 to bit [1] of the ERROR_FLAGS register and
the error flags can be cleared by writing a 1 to bit [0] of the ERROR_FLAGS register. After
completing these steps, the averaged measurement should be restarted.
NOTE
Although the SPI block is always active, it is not recommended to perform configuration
changes while the device is active. Configuration changes should be performed while the
device is in the SLEEP state or in the READY state.
If the EN pin is high and a trigger signal is received, the state machine will begin the execution of the configured
measurement. If the device is configured in Mode 0 or Mode 1, the state machine will return to the SLEEP state
after the measurement is completed. If the device is configured in Mode 2, the state machine returns to the
READY state and waits for the next trigger to continue with the next measurement.
The device can be forced to exit a measurement by applying a logic high on the RESET pin high or a logic low
on the EN pin.
SW Reset
EN=Low HW Reset
Timeout=1
Ready
Trigger
pulse?
TOF_MEAS_MODE = 0h (Mode 0)
= 1h (Mode 1) Yes
TX Burst
Output START
Pulse
RX Active
Output
STOP pulses
Mode?
TOF_MEAS_MODE = 2h (Mode 2)
Count <
Yes Increment Count
Average?
No
Toggle Channel
CH-flag TRUE? Yes Set Count = 0
Set Ch-flag FALSE
As shown in Figure 30, enabling the TX 180° pulse shift has the effect of decreasing the number of transmitted
pulses by 1.
Normal Operation:
NUM_TX = 0x07
TX_PH_SHIFT_POS = 0x1F
180| Shift:
NUM_TX = 0x07
TX_PH_SHIFT_POS = 0x03
In some cases, the 180° pulse shift may help improving the turn-off time of a transducer, and thus suppress the
transmit ringing.
The 180° pulse shift is disabled by setting TX_PH_SHIFT_POS to position 31. Setting the 180° pulse shift to
positions 0 or 1 is not recommended.
8.0
Damping disabled
6.0
Damping enabled
4.0
2.0
Amplitude
0.0
-2.0
-4.0
-6.0
-8.0
0.0 2.0 4.0 6.0 8.0 10.0 12.0 14.0 16.0 18.0 20.0
7LPHV
There are two invalid use combinations of the damping feature that may result in unexpected behavior. First,
damping should not be combined with the 180° pulse shift described in the previous section. Second, damping
should not be enabled if the number of TX pulses is set to 31.
COMPIN
VCOM
ECHO_QUAL_THLD
Threshold
Output on
STOP pin
If the number of expected pulses programmed in NUM_RX is not received or the time-of-flight operation times
out, the TDC1000 will indicate an error condition in the ERROR_FLAGS register and will set the ERRB pin low.
COMPIN
VCOM
Programmed
threshold
Output on
STOP pin
No pulse on STOP No pulse on STOP pin because
pin because signal did not maximum number of programmed events
exceed threshold (5 in this example) already produced.
The rising edge of a STOP pulse is generated by a zero-crossing event. As in the Single Echo Receive Mode,
the threshold comparator qualifies the next zero-cross after an RX amplitude smaller than the programmed
threshold voltage is detected. The STOP pulse will extend until a zero-cross after the RX amplitude is no longer
smaller than the threshold voltage (see Figure 35).
Signal zero-crossing without
Zero-crossing detected exceeding threshold
after threshold exceeded
COMPIN
VCOM
Programmed
threshold
Signal exceeds
threshold
Output on
STOP pin
If the number of expected pulses programmed in NUM_RX is not received or the time-of-flight operation times
out, the TDC1000 will indicate an error condition in the ERROR_FLAGS register and will set the ERRB pin low.
8.4.5 Timing
1
y 2CLOCKIN_DIV ¦0 T0 =
¦0
CLKIN ¦CLKIN
1
y 2TX_FREQ_DIV+1 ¦1 T1 =
¦1
0x00[7:5] ± TX_FREQ_DIV
All transmit and receive function sequencing is synchronous to the external clock applied to the CLKIN pin. The
external clock is divided to generate two internal clocks with corresponding time periods denoted as T0 and T1 in
Figure 36. The division factor used to generate T0 is controlled with the CLOCKIN_DIV bit in the CLOCK_RATE
register. The division factor used to generate T1 is controlled with the TX_FREQ_DIV field located in the
CONFIG_0 register.
The SPI block is synchronous with the clock applied to the SCLK pin, and it is independent of the clock applied
to CLKIN. See the Serial Peripheral Interface (SPI) section for a complete description of the SPI block.
Analog OFF
Analog ON
TRIG (see Note A)
Echo listen period
TX
(see Note C)
RX
STOP
In a short time of flight measurement, the RX path is activated before the TX burst, as shown in Figure 37. The
input MUX is automatically swapped to the alternate receive channel before and during the TX burst. Swapping
the input prevents the TX burst from being amplified in the RX path. After the TX burst, the input MUX remains
switched to the alternate channel for a masking period determined by the SHORT_TOF_BLANK_PERIOD field in
the TIMEOUT register. Masking the RX path avoids the issue of amplifying the transducer's residual TX ringing in
the RX path.
The short TOF is the default measurement sequence selected at power-on. The short TOF measurement is
selected if the value of the TIMING_REG[9:0] field is less than 30, or if the FORCE_SHORT_TOF bit is set to 1.
The TIMING_REG[9:0] is a 10-bit wide field, with its 2 most significant bits located in the TOF_1 register, and the
8 least significant bits located in the TOF_0 register. The FORCE_SHORT_TOF bit is located in the TIMEOUT
register.
The comparator's input offset is stored in an internal capacitor during the auto-zero period. The length of the
auto-zero period is controlled by the AUTOZERO_PERIOD field in the CLOCK_RATE register.
The length of the window when the comparators are able to qualify and generate STOP pulses is configured by
the TOF_TIMEOUT_CTRL field. A timeout will occur if the number of expected pulses is not received during the
allocated time and an error condition is reported to the ERROR_FLAGS register and the ERRB pin. It is possible
to disable the echo timeout (see TOF Measurement Interval). The TOF_TIMEOUT_CTRL field is located in the
TIMEOUT register.
See the Timing Control and Frequency Scaling (CLKIN) section for the definition of the time periods T0 and T1.
Analog OFF
Analog ON
TRIG
Echo listen period
TX
(see Note A)
START
(see Note B) (see Note C)
RX
STOP
READY TRANSMIT COMMON-MODE AUTOZERO WAIT / ECHO LISTEN ECHO LISTEN END READY
In a standard time of flight measurement, the RX path is activated after the TX burst is completed, as shown in
Figure 38.
The standard TOF measurement sequence is enabled if the value of the TIMING_REG field is greater than or
equal to 30, and only if the FORCE_SHORT_TOF bit is set to 0. The TIMING_REG is a 10-bit wide field, with its
2 most significant bits located in the TOF_1 register, and the 8 least significant bits located in the TOF_0 register.
The FORCE_SHORT_TOF bit is located in the TIMEOUT register.
The comparator's input offset is stored in an internal capacitor during the auto-zero period. The length of the
auto-zero period is controlled by the AUTOZERO_PERIOD field in the CLOCK_RATE register.
The length of the window when the comparators are able to qualify and generate STOP pulses is configured by a
combination of the TIMING_REG field and the TOF_TIMEOUT_CTRL field. With the addition of the
TIMING_REG in the calculation, the standard TOF measurement allows for a longer wait time and listening
window. A timeout will occur if the number of expected pulses is not received during the allocated time and an
error condition is reported to the ERROR_FLAGS register and the ERRB pin. It is possible to disable the echo
timeout (see TOF Measurement Interval). The TOF_TIMEOUT_CTRL field is located in the TIMEOUT register.
NOTE
If the FORCE_SHORT_TOF bit = 1, the measurement sequencing will behave as a Short
TOF Measurement, thus overriding the setting of the TIMING_REG field.
Analog OFF
Analog ON
TRIG
Echo listen period
TX
(see Note A)
START
(see Note B) (see Note C)
RX
STOP
The power blanking sequence is a variation to the standard TOF measurement sequence, and can be enabled
by setting the BLANKING bit to 1. In addition, all other conditions described in the Standard TOF Measurement
should be met. The BLANKING bit can be found in the CONFIG_3 register.
Power blanking allows the device to remain in a low-power state while the TX signals propagate to the RX
transducer in situations when the expected time-of-flight is long. Power blanking uses the TIMING_REG to
control a wait time between the transmit sequence and the receive sequence, during which, the complete RX
chain is disabled, as shown in Figure 39. The TIMING_REG is a 10-bit wide field, with its 2 most significant bits
located in the TOF_1 register, and the 7 least significant bits located in the TOF_0 register.
If the number of STOP events programmed in the NUM_RX field is not received within the listening interval, a
timeout event will occur and the device will return to the READY state. In addition, an error will be reported to the
ERROR_FLAGS register and the ERRB pin will be driven low.
The echo timeout can be disabled by setting the ECHO_TIMEOUT bit to 1 in the TIMEOUT register. If the echo
timeout is disabled, the device will not exit from the receive state until the expected number of STOP events set
in NUM_RX occur. If the number of events does not occur, the device can be forced out of the receive state by
writing a value of 0x03 to the ERROR_FLAGS register, or by de-asserting the EN pin, or asserting the RESET
pin.
NOTE
Writing a logic 1 to bit [1] of the ERROR_FLAGS register clears the state machine. Writing
a logic 1 to bit[0] clears the error flags.
NOTE
It is not recommended to hold the RX in an active state for intervals longer than 100ms, as
the comparator auto-zero may no longer be accurate.
NOTE
If the bit [1] in the ERROR_FLAGS register is written to 1, the TDC1000 will reset its
internal averaging counter and the software channel selection.
NOTE
It is recommended to reset the state machine when the error flags are cleared. This can
be done simultaneously by writing a value of 0x03 to the ERROR_FLAGS register.
8.5 Programming
8.5.1 Serial Peripheral Interface (SPI)
The serial interface consists of serial data input (SDI), serial data output (SDO), serial interface clock (SCLK) and
chip select bar (CSB). The serial interface is used to configure the TDC1000 parameters available in various
configuration registers. All the registers are organized into individually addressable byte-long registers with a
unique address.
The communication on the SPI bus normally 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 SCLK cycles. The write and read command bytes consist of 1 reserved bit, a 1-bit instruction,
and a 6-bit register address. Figure 40 shows the SPI protocol for a transaction involving one byte of data (read
or write).
CSB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
SCK
MSB LSB
SDI c7 c6 c5 c4 c3 c2 c1 c0 d7 d6 d5 d4 d3 d2 d1 d0
MSB LSB
SDO d7 d6 d5 d4 d3 d2 d1 d0
NOTE
• Reserved bits must be written to 0 unless otherwise indicated.
• Read-back value of reserved bits and registers is unspecified and should be discarded.
• Recommended values must be programmed and forbidden values must not be
programmed where they are indicated to avoid unexpected results.
(1) See Timing Control and Frequency Scaling (CLKIN) for the definition of the time period T1.
TX burst damping
[5] DAMPING R/W 0h 0h: Disable damping (default)
1h: Enable damping
RTD type
[5] TEMP_RTD_SEL R/W 0h 0h: PT1000 (default)
1h: PT500
PGA gain
0h: 0 dB (default)
1h: 3 dB
2h: 6 dB
[7:5] PGA_GAIN R/W 0h 3h: 9 dB
4h: 12 dB
5h: 15 dB
6h: 18 dB
7h: 21 dB
PGA control
[4] PGA_CTRL R/W 0h 0h: Active (default)
1h: Bypassed and powered off
LNA control
[3] LNA_CTRL R/W 0h 0h: Active (default)
1h: Bypassed and powered off
(1) It is recommended to read the error status register or the ERRB pin before initiating a new measurement.
(2) All error flags should be cleared before initiating a new measurement.
(1) See Timing Control and Frequency Scaling (CLKIN) for the definition of the time period T0.
(1) See Timing Control and Frequency Scaling (CLKIN) for the definition of the time period T0.
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.
TX2/RX1
A
RREF
TX1/RX2 RTD
B
TX2
TX1 START
OR
RX1 TDC1000 STOP Gate
RX2
TRIGGER
16-MHz CLK
RESET
ERRB
SPI
EN
OSC
TMS320F28035
C2000 MCU
Trigger
START
TX1
Echo Pulse
received
RX2
TOF
STOP
Figure 52. Relation Between Transmit and Receive Pulses in Level Measurements
Level measurements have 2 main criteria: resolution and range (maximum height). Resolution accuracies of 1-2
mm are achievable but are impractical due to any environmental disturbances, such as tank vibrations, creating
millimeter level surface waves. Ranges of up to 1 m are measurable utilizing VDD level excitation pulses, but
surface disturbances and signal loss over longer distances make the reliable echo reception an issue. Greater
level measurement reception can be achieved by mechanical means (level guide tube) and/or electronic means
(level shifting the TX pulses to greater voltages; see TIDA-00322).
The measurement process is identical to the level example above. The speed of sound can be used to uniquely
identify a variety of fluids. In this example, the concentration of diesel exhaust fluid (DEF) is measured with a
desired accuracy resolution of 0.5% of concentration variation. For most fluids, the speed of sound varies over
temperature, so every application will be different. In this example, all samples were all at ambient temperature of
23°C.
150 1650
1625
135
105 1550
90 1525
1500
75
1475
60
1450
45 1425
30 1400
2 3 4 5 6 7 8 9 10
er
%
er
at
at
.0
.0
.0
.5
.0
.5
Height (cm)
W
10
20
30
31
32
32
d
EF
EF
EF
EF
EF
EF
le
Ta
D
is
D
1483.5 1632
1630
1483.0
1628
1482.5
1626
1624
1482.0
1622
1481.5
1620
1481.0 1618
%
er
er
.0
.5
.0
.5
at
at
30
31
32
32
W
W
d
EF
EF
EF
EF
le
Ta
til
D
is
D
RTD
Flow
l
TX1/RX2 TX2/RX1
B A TX2 START
TX1 STOP
RX1 TDC1000 TRIGGER TDC7200
RX2
EN
RESET
ERRB
SPI
8-MHz CLK
OSC
SPI
MSP430 ENABLE
MCU INT
A water meter is designated by the numerical value of Q3 in m3/h and the ratio Q3/Q1. The value of Q3 and the
ratio of Q3/Q1 are selected from the lists provided in the OIML standards.
Water meters have to be designed and manufactured such that their errors do not exceed the maximum
permissible errors (MPE) defined in the standards. For example, in OIML standards, water meters need to be
designated as either accuracy class 1 or accuracy class 2, according to the requirements.
For class 1 water meters, the maximum permissible error in the upper flow rate zone (Q2 ≤ Q ≤ Q4) is ±1%, for
temperatures from 0.1°C to 30°C, and ±2% for temperatures greater than 30°C. The maximum permissible error
for the lower flow-rate zone (Q1 ≤ Q < Q2) is ±3%, regardless of the temperature range.
For class 2 water meters, the maximum permissible error for the upper flow rate zone (Q2 ≤ Q ≤ Q4) is ±2%, for
temperatures from 0.1°C to 30°C, and ±3% for temperatures greater than 30°C. The maximum permissible error
for the lower flow rate zone (Q1 ≤ Q < Q2) is ±5% regardless of the temperature range.
The flow meter accuracy specified in the standards dictates the required accuracy in the electronics used for
driving the ultrasonic transducers, circuits in the receiver path, and time measurement sub circuits. The stringent
accuracy required at lower flow rates would require a very low noise signal chain in the transmitter and receiver
circuits used in ultrasonic flow meters, as well as the ability to measure picosecond time intervals.
Trigger
START
STOP
Upstream Downstream
tBA tAB
Figure 58. Relation Between Transmit and Receive Pulses Upstream/Downstream
9.2.2.2.4 Operation
The TDC1000 is used to drive the transmitter, amplify and filter the received signal and conditioning the echo for
START and STOP pulse generation. The TDC7200 ps-accurate timer is used to measure the time interval
between the rising edge of the START pulse and the rising edge of the STOP pulse produced by the TDC1000.
The microcontroller should first configure the TDC7200 and the TDC1000 for the measurement. When the
microcontroller issues a start command to the TDC7200 via the SPI interface, the TDC7200 sends a trigger pulse
to the TRIGGER pin of the TDC1000. When the TDC1000 drives the transmit transducer, a synchronous START
pulse is produced on the START pin, which commands the TDC7200 to start its counters. When a valid echo
pulse is received on the receive transducer, the TDC1000 generates a STOP pulse on the STOP pin, which
commands the TDC7200 to stop its counters. This procedure is repeated for the upstream and downstream
cycles.
A temperature measurement can be performed and the result can be used to correct for temperature
dependency of the speed of sound.
0.4
Raw calibrated data
0.3 10x running average
0.2
Delta time-of-flight (ns)
0.1
-0.1
-0.2
-0.3
-0.4
0 1000 2000 3000 4000 5000 6000
Samples (n)
Figure 59. Calibrated Raw and Averaged Delta Time-of-Flight Data
1800 1600
V = 82 ps V = 31 ps
1600 1400
1400
1200
1200
Number of hits
Number of hits
1000
1000
800
800
600
600
400
400
200 200
0 0
6
04
10
16
22
28
01
03
05
07
09
.2
.2
.1
.0
.0
.0
.0
.0
.0
.0
0.
0.
0.
0.
0.
0.
0.
0.
0.
0.
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
11 Layout
GND
RX1 1 TX1
GND RX2 TX2 System Clock
VCOM GND
GND LNAOUT CLKIN
RTD1 PGAIN VDD
GND
TDC1000
PGAOUT VDD
COMPIN VIO
To RTDs: Match trace RTD1 SDO
length (resistance) RTD2 SDI MCU
RREF CSB SPI Master
GND CHSEL SCLK
RTD2 ERRB RESET
MCU
GND START TRIGGER I/Os
STOP EN Trigger:stop
watch/MCU
Matched
trace
length to
MCU stopwatch
I/Os /MCU
12.5 Trademarks
E2E is a trademark of Texas Instruments.
All other trademarks are the property of their respective owners.
12.6 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.
12.7 Glossary
SLYZ022 — TI Glossary.
This glossary lists and explains terms, acronyms, and definitions.
www.ti.com 10-Mar-2015
PACKAGING INFORMATION
Orderable Device Status Package Type Package Pins Package Eco Plan Lead/Ball Finish MSL Peak Temp Op Temp (°C) Device Marking Samples
(1) Drawing Qty (2) (6) (3) (4/5)
(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)
Eco Plan - The planned eco-friendly classification: Pb-Free (RoHS), Pb-Free (RoHS Exempt), or Green (RoHS & no Sb/Br) - please check http://www.ti.com/productcontent for the latest availability
information and additional product content details.
TBD: The Pb-Free/Green conversion plan has not been defined.
Pb-Free (RoHS): TI's terms "Lead-Free" or "Pb-Free" mean semiconductor products that are compatible with the current RoHS requirements for all 6 substances, including the requirement that
lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, TI Pb-Free products are suitable for use in specified lead-free processes.
Pb-Free (RoHS Exempt): This component has a RoHS exemption for either 1) lead-based flip-chip solder bumps used between the die and package, or 2) lead-based die adhesive used between
the die and leadframe. The component is otherwise considered Pb-Free (RoHS compatible) as defined above.
Green (RoHS & no Sb/Br): TI defines "Green" to mean Pb-Free (RoHS compatible), and free of Bromine (Br) and Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight
in homogeneous material)
(3)
MSL, Peak Temp. - The Moisture Sensitivity Level rating according to the JEDEC industry standard classifications, and peak solder temperature.
(4)
There may be additional marking, which relates to the logo, the lot trace code information, or the environmental category on the device.
(5)
Multiple Device Markings will be inside parentheses. Only one Device Marking contained in parentheses and separated by a "~" will appear on a device. If a line is indented then it is a continuation
of the previous line and the two combined represent the entire Device Marking for that device.
(6)
Lead/Ball Finish - Orderable Devices may have multiple material finish options. Finish options are separated by a vertical ruled line. Lead/Ball Finish values may wrap to two lines if the finish
value exceeds the maximum column width.
Addendum-Page 1
PACKAGE OPTION ADDENDUM
www.ti.com 10-Mar-2015
Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is provided. TI bases its knowledge and belief on information
provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and
continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals.
TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release.
In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI to Customer on an annual basis.
• Catalog: TDC1000
• Automotive: TDC1000-Q1
Addendum-Page 2
PACKAGE MATERIALS INFORMATION
www.ti.com 31-Oct-2015
Pack Materials-Page 1
PACKAGE MATERIALS INFORMATION
www.ti.com 31-Oct-2015
Pack Materials-Page 2
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other
changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest
issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and
complete. All semiconductor products (also referred to herein as “components”) are sold subject to TI’s terms and conditions of sale
supplied at the time of order acknowledgment.
TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TI’s terms
and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary
to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily
performed.
TI assumes no liability for applications assistance or the design of Buyers’ products. Buyers are responsible for their products and
applications using TI components. To minimize the risks associated with Buyers’ products and applications, Buyers should provide
adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI components or services are used. Information
published by TI regarding third-party products or services does not constitute a license to use such products or services or a warranty or
endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of significant portions of TI information in TI data books or data sheets is permissible only if reproduction is without alteration
and is accompanied by all associated warranties, conditions, limitations, and notices. TI is not responsible or liable for such altered
documentation. Information of third parties may be subject to additional restrictions.
Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service
voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice.
TI is not responsible or liable for any such statements.
Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements
concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support
that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which
anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause
harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use
of any TI components in safety-critical applications.
In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TI’s goal is to
help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and
requirements. Nonetheless, such components are subject to these terms.
No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties
have executed a special agreement specifically governing such use.
Only those TI components which TI has specifically designated as military grade or “enhanced plastic” are designed and intended for use in
military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components
which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and
regulatory requirements in connection with such use.
TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of
non-designated products, TI will not be responsible for any failure to meet ISO/TS16949.
Products Applications
Audio www.ti.com/audio Automotive and Transportation www.ti.com/automotive
Amplifiers amplifier.ti.com Communications and Telecom www.ti.com/communications
Data Converters dataconverter.ti.com Computers and Peripherals www.ti.com/computers
DLP® Products www.dlp.com Consumer Electronics www.ti.com/consumer-apps
DSP dsp.ti.com Energy and Lighting www.ti.com/energy
Clocks and Timers www.ti.com/clocks Industrial www.ti.com/industrial
Interface interface.ti.com Medical www.ti.com/medical
Logic logic.ti.com Security www.ti.com/security
Power Mgmt power.ti.com Space, Avionics and Defense www.ti.com/space-avionics-defense
Microcontrollers microcontroller.ti.com Video and Imaging www.ti.com/video
RFID www.ti-rfid.com
OMAP Applications Processors www.ti.com/omap TI E2E Community e2e.ti.com
Wireless Connectivity www.ti.com/wirelessconnectivity
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2016, Texas Instruments Incorporated