Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 1 of 1

Thread: Feasibility/ Implementing SENT protocol

Threaded View

  1. #1
    Junior Member
    Join Date
    Jun 2021
    Posts
    5

    Implementing SENT protocol - I put a wager on teensy

    I am trying to determine if I can use my Teensy 3.2 to implement the single wire communication protocol SENT (Single edge nibble transmission). A picture is shown below.
    It is essentially a string of Pulses that stores information in the duration from negative edge to negative edge of each pulse. It counts the number of "ticks" in each pulse, which are little sub units of time like seconds on a clock. The number of ticks in a pulse is the data. For data pulses it is 12-27 ticks with 12 representing 0 and 27 representing 15. Each pulse has a predetermined low time at the start of my pulse usually 5 ticks. So for each pulse Low ticks + high ticks = total ticks

    Click image for larger version. 

Name:	Capture.jpg 
Views:	20 
Size:	87.6 KB 
ID:	24985
    https://en.wikipedia.org/wiki/SENT_(protocol)


    I have a high speed sensor that operates on a .5 us tick time. So I am replicating that sensor, I need to send 4 consecutive pulses, and I am trying to find the best way to do it. I tried simply using delays and digitalWriteFast but I couldn't get sub microsecond delays. I began looking into hardware timers, the PDB has a back to back chain I thought I could use but that is going to require some digging.

    But I am just getting started implementing things like this with microcontrollers. So to all your infinite wisdom I ask, what are some of the routes I should take? Maybe there is something I am not even familiar exists that will simplify this task.

    We have an engineer here at our company that was adamant this was impossible with the Teensy, I really think he is wrong and I really want to prove him wrong. We have a big bet going that involves public embarrassment if I get it working
    Last edited by con_103; 06-04-2021 at 06:45 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •