Thread: SPDIF Protocol

  1. #1
    Registered User
    Join Date
    Feb 2022
    Posts
    3

    SPDIF Protocol

    I am after some help as I do not have much experience of C.
    I am starting a project where I need to produce a SPDIF signal along with a receiver.
    Hopefully I will use a teensy4.1 processor which can be programmed in C.
    SPDIF is transmitted using biphase data with a built in clock.
    Can anyone tell me how I synchronise the receiver with the clock.
    Any other tips would be appreciated.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,662
    Where to begin....

    > I am after some help as I do not have much experience of C.
    Most people cut their teeth by learning C in a more forgiving environment.
    One where you have an actual debugger and an operating system, and you can learn how code you write actually behaves for real.

    If your only debug "tool" is a flashing LED, it's going to be a tough job.

    > I am starting a project where I need to produce a SPDIF signal along with a receiver.
    Using google to find documents like this would be a good start.
    https://www.st.com/content/ccc/resou...DM00431633.pdf

    If you want to succeed at this, you need a lot more google-fu.

    Are you building both the transmitter and the receiver?

    Are you also building the glue electronics that interface between the MCU and the line?
    S/PDIF - Wikipedia
    Your controller logic runs at either 3.3v or 5v, but the line is 0.5–0.6 V peak to peak.

    > Hopefully I will use a teensy4.1 processor which can be programmed in C.
    If you haven't done so already, join PJRC (Teensy) Forum for your platform specific questions.


    > Can anyone tell me how I synchronise the receiver with the clock.
    Well you listen to the line and time how long each 0/1 transition takes.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Feb 2022
    Posts
    3
    Sorry pressed wrong button and it went.
    I don't have a problem generating an analogue signal as I just use a signal generator.
    I will certainly join the forum for the teensy processor.
    Thanks for your help

  4. #4
    Registered User
    Join Date
    Feb 2022
    Posts
    3
    My original post reply seems to have disappeared.
    I only need to build a transmitter so I can eventually check my digital filter.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. protocol
    By nadji in forum C Programming
    Replies: 1
    Last Post: 07-20-2012, 09:23 AM
  2. Anyone with SIP protocol and CPP?
    By Yosuf in forum Networking/Device Communication
    Replies: 6
    Last Post: 05-28-2009, 09:51 AM
  3. FTP protocol
    By IfYouSaySo in forum Tech Board
    Replies: 5
    Last Post: 08-07-2006, 08:54 PM
  4. irc protocol
    By chrismiceli in forum C Programming
    Replies: 4
    Last Post: 09-16-2003, 12:56 AM
  5. Protocol
    By newbie_grg in forum Networking/Device Communication
    Replies: 1
    Last Post: 08-17-2003, 05:15 PM

Tags for this Thread