bendedavis
Member
I am trying to get a CS42448 on an adaptor board wired to a Teensy 4.0. I found multiple other threads mentioning the connections from the 4.0 to the CS42448. I guess I'm missing something with the power connections or I2C. What is the I2C supposed to be? I see that the AD1 pin should be connected to ground. Is the CAT811T chip required for proper setting up of the I2C bus? I currently have RESET connected to 3.3v. Can AD0 just be connected to ground or 3.3v or should it be connected through a pullup/pulldown? For power connections I have the following pins connected to ground : 7,23,62,42,56. The following are connected to 3.3v : 3, 4, 6, 24, 8, 44, 53. Here is my sketch to test:
This gives an offset around 2V. I'm not currently using a filter on the output but coming off of a non inverting output for initial testing.
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveformSine sine1; //xy=330,209
AudioOutputTDM tdm1; //xy=751.0000076293945,218
AudioConnection patchCord1(sine1, 0, tdm1, 0);
AudioConnection patchCord2(sine1, 0, tdm1, 2);
AudioConnection patchCord3(sine1, 0, tdm1, 4);
AudioConnection patchCord4(sine1, 0, tdm1, 6);
AudioConnection patchCord5(sine1, 0, tdm1, 8);
AudioConnection patchCord6(sine1, 0, tdm1, 10);
AudioConnection patchCord7(sine1, 0, tdm1, 12);
AudioConnection patchCord8(sine1, 0, tdm1, 14);
AudioControlCS42448 cs42448_1; //xy=776.0000076293945,405.0000057220459
// GUItool: end automatically generated code
void setup() {
sine1.frequency(200);
sine1.amplitude(1.0);
cs42448_1.enable();
cs42448_1.volume(1.0);
AudioMemory(10);
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This gives an offset around 2V. I'm not currently using a filter on the output but coming off of a non inverting output for initial testing.