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

Thread: TDM Output

Threaded View

  1. #1

    TDM Output


    I am trying the read TDM output from my Teensy 4.1. But it doesnt look like its working as it suppose.
    i have taken a picture from my oscilloscope. I know the signal is a "bit" noisy
    I was expecting to see something in the middle between the periods, because i did connect my "playsdWav" too 8 and 9, as it can be seen on my code.
    My oscilloscope is on Pin 7 and Pin 20.

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>
    // GUItool: begin automatically generated code
    AudioPlaySdWav           playSdWav1;     //xy=301,501
    AudioOutputTDM           tdm1;           //xy=511,580
    AudioConnection          patchCord1(playSdWav1, 0, tdm1, 8);
    AudioConnection          patchCord2(playSdWav1, 1, tdm1, 9);
    // GUItool: end automatically generated code/
    int ledPin= 13;
    void setup() {
      pinMode(LED_BUILTIN, OUTPUT); //Quality of life to see when setup begins and ends
      digitalWrite(LED_BUILTIN, HIGH);
      Serial.print("Programmet er nu startet");
      Serial.begin(9600);//Sætter intern baudrate mellem SD kort og SPI
      digitalWrite(LED_BUILTIN, LOW);
    void loop()
      if (playSdWav1.isPlaying() == false) {
        Serial.println("Playing track.");
        delay(10); // wait for library to parse WAV info
          digitalWrite(ledPin, HIGH);
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Osc.jpg 
Views:	42 
Size:	74.0 KB 
ID:	21666  

Posting Permissions

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