element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog TI Ultrasonic Sensor - SPI Traffic Snooping
  • Blog
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
  • Share
  • More
  • Cancel
  • Author Author: Jan Cumps
  • Date Created: 30 Dec 2015 2:51 PM Date Created
  • Views 2196 views
  • Likes 7 likes
  • Comments 4 comments
Related
Recommended
  • RoadTest
  • tdc1000-tdc7200evm
  • papilio_pro
  • papilio
  • spi
  • ultrasonic_sensor
  • texas_instruments
  • protocol
  • tdc1000

TI Ultrasonic Sensor - SPI Traffic Snooping

Jan Cumps
Jan Cumps
30 Dec 2015

The  TDC1000-TDC7200EVMTDC1000-TDC7200EVM evaluation module has 4 main parts

The TDC1000 analog front-end and a pre-programmed MSP430 microcontroller on the board, a 1MHz Piezo Ceramic sensor that plugs into the board and a GUI client for on your PC.

 

In this blog I'm tapping into the SPI traffic.

 

a

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

a

 

 

 

SPI Traffic and Bodging the Board

 

The evaluation board has some interesting SPI communication going on. The ultrasonic sensing ic TDC1000 is configured by it, and you can get at the config and measurements of the fancy timer chip TCD7200.

 

image

image edited from TDC1000 | Ultrasonic Analog Front End | Ultrasonic Sensing | Online datasheet

 

Although the communication with the TDC7200 may be more exciting to monitor - we'd be able to see values change when water levels change - I'm focusing on what's sent back and forth between the on-board microcontroller and the TDC1000.

 

Getting at the Signals

 

It's not too difficult to get at 3 of the 4 SPI signals. There are test points on the board to get at the SCLK, MOSI and MISO.

These test points are not populated, so my first action was to solder in male headers.

 

image

I initially thought that I could get away without breaking out the CS. But the traffic that I could tap off was containing info for the TDC1000 and TDC7200 intermixed.

Because my logic analyzer has limitations, I couldn't define a nice trigger point to isolate TDC1000 traffic from the stream.

The only way - with my limited setup - to sample TDC1000 traffic, was to hack myself access into the CS signal.

That meant scraping off the solder mask of a tiny trace on the bottom layer, and soldering a thin wire onto that.

image

 

I used an open via to bring the wire  to the front side, and secured the bodge with some tape at the underside.

image

 

I've marked the connection points on the drawing below.

image

 

 

Sampling the SPI Data

 

My logic analyzer is a Papilio that's configured as an OpenLogic compatible device (see Make a Logic Analyzer from your Dev Kit Part 2: Papilio FPGA).

I connected all four SPI signals to the inputs of the LA.

 

SPI signalTest pointColouranalyzer input
SCLKTP19orange0
MOSITP20white1
MISOTP21blue2
CSbodge wireyellow3

 

Once that was done, I set up my sample on the falling edge of the CS. So I started collecting data as soon as the chip select was pulled low (active).

On the images that follow, you can see the activity of a read and a write operation to the register on address 0x01.

image

 

We select read or write by setting bit 6 of the command field to 0 or 1. The address that is read or written is determined by bit 0 to 5.

image

 

 

Reading from address 0x01

In this exercise, we'll send a SPI command to read address 0x01. In binary, we're sending 00000001.

0: read

000001: address 0x01.

Since this is a read operation, the value should come to us in the second 8 bits burst via the MISO (slave TDC1000 tells us the value of the Config-1 register).

You can see on the GUI, signal display and protocol analyzer that we're retrieving 0x40.

image

 

Writing to address 0x01

In this exercise, we'll send a SPI command to write to address 0x01. In binary, we're sending 01000001.

1: write

000001: address 0x01.

Since this is a write operation, we have to send the value in the second 8 bit burst via the MOSI ( we tell slave TDC1000 to write it into the Config-1 register).

The MISO line doesn't play a role in this scenario because the slave doesn't send any data. It is flat on the sample below.

You can see on the GUI, signal display and protocol analyzer that we're writing 0x40.

image

 

That's it for today. With a few changes to the kit you have access to the communication between the main players on the board.

 

Related Posts
RoadTest: Unboxing the TI Ultrasonic Sensing evaluation module
TI Ultrasonic Sensor - A Very First Trial of the GUI
TI Ultrasonic Sensor - Prepping the Transponder
TI Ultrasonic Sensor - First Measurements
TI Ultrasonic Sensor - Set the Parameters for Level Measurement and Content Identification
TI Ultrasonic Sensor - Show 3 Signals on a 2 Channel Oscilloscope (RIGOL DS1052E)
TI Ultrasonic Sensor - Liquid Identification and Concentration
TI Ultrasonic Sensor - Create a KiCad Part for the Sensor IC with KiPart
TI Ultrasonic Sensor - SPI Traffic Snooping

TI Ultrasonic Sensor - RoadTest Review

  • Sign in to reply

Top Comments

  • DAB
    DAB over 9 years ago +1
    Nice bit of hacking. DAB
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to ozzcet

    Everything I have for this kit is documented in the blogs here. I don't have the kit or the software anymore.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ozzcet
    ozzcet over 3 years ago

    Hello my friend,

    Are there any code to upload MSP430, could you share some of it. Your works quite well but I am confused little.

     

    Best regards.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 9 years ago

    Nice bit of hacking.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 9 years ago

    I've added a video. Took a while to upload...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube