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

Thread: [?] CS4270 and Teensy 3.6... Maybe it is too much as first experiment

  1. #1
    Junior Member
    Join Date
    Oct 2018
    Posts
    18

    [?] CS4270 and Teensy 3.6... Maybe it is too much as first experiment

    Hi,

    I am trying to integrate the audio codec CS4270 in my project, but I am very newbie with this stuff.

    I've followed the suggested wiring (with decoupler and pull-up resistors) and I have tried to use the library I2C_t3 to make some basic experiments, just try to check if at least one I2C address of my AC is answering, but no luck, I always get I2C_ADDR_NAK.
    So I am not sure if something is wrong with my wiring, soldering or code.

    Maybe I should start with something more easier, one simple DAC with only one channel and make some experiments to get into I2C/I2S.

    Could you suggest me some DAC easy (and maybe well documented) to play with? I am looking to something capable of at least 48KHz@16bit, it would be a plus if it can output a signal at 5V.

    Thank you.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,529
    Quote Originally Posted by killkrt View Post
    Could you suggest me some DAC easy (and maybe well documented) to play with?
    The 2 DACs built into Teensy 3.6 are the easiest. You can use them with analogWrite() or the audio library. They're only 12 bits, but very easy because you get an analog signal right at the pin without any extra hardware.

  3. #3
    Junior Member
    Join Date
    Oct 2018
    Posts
    18
    Thanks for the quick answer, anyway I would like to use an external DAC with at least 16bit resolution and make some practice with I2C/I2S (or SPI).

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,529
    The audio library has code for controlling and using a CS4272. Maybe that part is similar enough to "just work", or maybe work with only minor edits?

    https://www.pjrc.com/teensy/gui/?inf...oControlCS4272

Posting Permissions

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