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

Thread: Can alc883(codec) be wired to teensy?

  1. #1
    Junior Member
    Join Date
    Apr 2022

    Can alc883(codec) be wired to teensy?

    If so, how?
    What is "Sync"?, is WS; FS - Frame Sync?
    Click image for larger version. 

Name:	t1.png 
Views:	3 
Size:	111.3 KB 
ID:	30618
    Click image for larger version. 

Name:	t2.png 
Views:	3 
Size:	182.3 KB 
ID:	30619


  2. #2
    Junior Member
    Join Date
    Apr 2022
    Is this good?
    pin 10(sync) > pin23(teensy 3.2)
    pin 6(bitclk)> pin9(teensy 3.2)
    pin8(sdata in) > PIN22(teensy 3.2)

    what about teensy pin 9 "Output, 11.3 MHz" and alc883 pin6 "24Mhz bit clock input"?

  3. #3
    Junior Member
    Join Date
    Apr 2022
    Used this code:
    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>
    // GUItool: begin automatically generated code
    AudioSynthWaveformSine   sine1;          //xy=204.1999969482422,187.1999969482422
    AudioInputUSB            usb1;           //xy=205.1999969482422,93.19999694824219
    AudioOutputTDM           tdm1;           //xy=577.1999969482422,134.1999969482422
    AudioConnection          patchCord1(sine1, 0, tdm1, 0);
    AudioConnection          patchCord2(sine1, 0, tdm1, 1);
    AudioConnection          patchCord3(sine1, 0, tdm1, 2);
    AudioConnection          patchCord4(sine1, 0, tdm1, 3);
    AudioConnection          patchCord5(sine1, 0, tdm1, 4);
    AudioConnection          patchCord6(sine1, 0, tdm1, 5);
    AudioConnection          patchCord7(sine1, 0, tdm1, 6);
    AudioConnection          patchCord8(sine1, 0, tdm1, 7);
    AudioConnection          patchCord9(sine1, 0, tdm1, 8);
    AudioConnection          patchCord10(sine1, 0, tdm1, 9);
    AudioConnection          patchCord11(sine1, 0, tdm1, 10);
    AudioConnection          patchCord12(sine1, 0, tdm1, 11);
    AudioConnection          patchCord13(sine1, 0, tdm1, 12);
    AudioConnection          patchCord14(sine1, 0, tdm1, 13);
    AudioConnection          patchCord15(sine1, 0, tdm1, 14);
    AudioConnection          patchCord16(sine1, 0, tdm1, 15);
    // GUItool: end automatically generated code
    void setup() {                
    void loop() {
    Click image for larger version. 

Name:	t4.jpg 
Views:	5 
Size:	116.6 KB 
ID:	30638
    (I used the alc622 schematic, it has same pinout as alc883)

    pins I connected to teensy 3.2:
    AVDD1 / AVDD2 to 5v
    AVSS1 / AVSS2 to agnd

    DVDD1 / DVDD2 to 3.3v
    DVSS1 / DVSS2 to gnd

    JDREF 20k R(not 1%) to gnd
    VREF with 10 uf cap to gnd

    SYNC to pin23(teensy)
    BITCLK to pin9(teensy)
    SDATAIN to PIN22(teensy)

    cheap headphones to pins(codec) 45,46(Left/Right channels)
    2nd cheap headphones to pins(codec) 39,41(Left/Right channels)
    line in from PC to pins(codec) 35,36(Left/Right channels)

    (the only cap I used was on VREF)

    Click image for larger version. 

Name:	t5.png 
Views:	1 
Size:	63.0 KB 
ID:	30639
    Connected individually 50k pot to pins(codec) 13,34(sense pins) and gnd, changed slowly the pot, I did not hear a single sound from headphones or line in on pc.(tried with prob 5% resistors, and it was the same)
    (probed the codec pins without the jacks attached, most of the pins sit at half the dvdd/avdd(~1.6v, ~2.5v)
    Last edited by FlameOnion; 03-19-2023 at 01:08 AM.

Posting Permissions

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