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

Thread: ADAT Multichannel In / Out?

  1. #1

    ADAT Multichannel In / Out?

    Is anyone already working on ADAT Multichannel In and Out? I wondered if it would be a quick way to give
    me 2x8 In, 2x8 Out (2x TX, 2x RX) via my ADAT-Interface.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,000
    ADAT output was recently contributed and merged into the audio lib.

    https://forum.pjrc.com/threads/28639...l=1#post159530

    It's included in 1.41-beta2.

    ADAT (or SPDIF) input is unlikely to ever happen on Teensy 3.x. The hardware support just isn't there. But future Teensy boards (2019, maybe mid-to-late 2018) are likely to have the needed hardware.

  3. #3
    Junior Member
    Join Date
    Dec 2018
    Posts
    9
    Quote Originally Posted by PaulStoffregen View Post
    ADAT (or SPDIF) input is unlikely to ever happen on Teensy 3.x. The hardware support just isn't there. But future Teensy boards (2019, maybe mid-to-late 2018) are likely to have the needed hardware.
    It doesn’t look like this has been done yet, but I’m guessing it is feasible on Teensy 4.0?

  4. #4
    Junior Member
    Join Date
    Mar 2015
    Location
    Toulouse, France
    Posts
    4
    It's working on T3.6, but AFAIK not on the T4.0. It will be a great feature on the powerfull T4.0

  5. #5
    Junior Member
    Join Date
    Dec 2018
    Posts
    9
    Quote Originally Posted by Snikpout View Post
    It's working on T3.6, but AFAIK not on the T4.0. It will be a great feature on the powerfull T4.0
    Are you sure ADAT input is working on 3.6? Do you have a link?

    Why shouldn't ADAT work on 4.0 if it works on 3.6?

  6. #6
    Junior Member
    Join Date
    Mar 2015
    Location
    Toulouse, France
    Posts
    4
    Sorry, not for input, but for output only, it's OK for my needs (modular synth CV generation).

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,000
    Quote Originally Posted by rasmus_b View Post
    Why shouldn't ADAT work on 4.0 if it works on 3.6?
    Clock generation on Teensy 4.0 is very different from Teensy 3.x. Pin muxes also have small but important differences. Audio I/O code written for Teensy 3.6 can't just automatically work on Teensy 4.0. It needs to be ported, to deal with these hardware differences.

    For ADAT support to happen, these 3 things need to come together in the same person.

    1: Programming experience with the hardware
    2: Access to ADAT hardware
    3: Willing to invest time into supporting ADAT

    Most of the low-level audio I/O code is written by me and Frank B. I know I don't have any ADAT gear. I'm pretty sure Frank doesn't either. Even if I had ADAT hardware here, right now so many other things (like USB audio, OctoWS2811, Quad I2S with BCLK/LRCLK=64, etc) are much higher priority for me than ADAT.

  8. #8
    ADAT is not working for me! I have Teensy 3.6, with or without Sgtl5000 Board it doesnt work. I try SPIF, its working. Do i need to change something in hardware or software? I try to choose clock source optic or try to clock from my Soundcard with all possible sampling rate, it only produce a digital noise on the first adat channel.

  9. #9
    I found something; Teensy 3.6 without audioboard(i think there is no way to use together) when i change CPU setting from 180 to 168 MHz it works. There are some audio glitches with my sound interface clock (RME Fireface UC) but if i choose clock from adat(teensy)it works fine with 8 channel. So damm good!

  10. #10
    Deleted User
    Guest
    Now that radias is not with me anymore, I'll do my best to finish his work. Still I have to make my way through his docs.
    The "newADAT" will have a 8x8 switchboard, mixdown and resampler to match standard data rates and selectable output format like ADAT, S/PDIF, AES
    The next step will be input other than S/PDIF. But this will take some time. Still I have other to take care of.

  11. #11
    Deleted User
    Guest
    Quote Originally Posted by serhatsoyyigit View Post
    ADAT is not working for me! I have Teensy 3.6...
    This is because the original ADAT on T3.6transmits at an unstable rate about 44135 samples/sec, which is not a standard in the ADAT world.
    This may work with some device, but most times will not. Most ADAT works with 48k and this is the real minimum standard.

  12. #12
    Junior Member
    Join Date
    May 2020
    Posts
    17
    you can also offload adat generation with theses chips:

    encoder: https://cabintechglobal.com/v1401
    decoder: https://cabintechglobal.com/v1402

    used them once and worked great

  13. #13
    Senior Member
    Join Date
    Aug 2016
    Location
    Australia
    Posts
    216
    The CoolAudio chips are definitely the way to go.

    I believe the ADAT timing issues have been resolved on the T4 - which has an exact 44100 clock frequency. So ADAT output will probably sync nicely.

    ADAT input is really complex with the NRZ being difficult to decode, even with an interrupt driven shift register. The V1402 takes most of the pain away.

    Keen to hear how you go, as I have some ADAT gear which has been sitting idle and could be brought back into use.

  14. #14
    Senior Member
    Join Date
    Jun 2018
    Location
    USA
    Posts
    270
    This project uses the CoolAudio chips. I came across this the other day and I think it might be helpful for this discussion. Might be easy to interface the FreeDSP expansion header (I2S) with the Teensy. Although I don't know how clocks are handled.

    https://github.com/freeDSP/freeDSPx-ADAT-IO-x4

    Click image for larger version. 

Name:	ADAT-IO-x4.jpg 
Views:	53 
Size:	128.2 KB 
ID:	27848

Posting Permissions

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