Hi, I'm trying to understand how this i2s protocol works and what can be done with it for later play with DSP filters.
For now I 'm only trying to generate a simple tone with the Teensy 4.1 and convert to analog with the CS4344, then measure frequency with a scope.
I connected the Teensy pins as described in this tread:
I tried this code but I'm only getting noise. What I'm doing wrong?
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveformSine sine1; //xy=1920.0595201764784,4686.488091605049
AudioOutputI2S i2s1; //xy=2137.9166630336213,4702.91666303362
AudioConnection patchCord1(sine1, 0, i2s1, 0);
AudioConnection patchCord2(sine1, 1, i2s1, 1);
// GUItool: end automatically generated code
void setup(){
sine1.frequency(1000);
sine1.amplitude(1);
}
void loop(){
For now I 'm only trying to generate a simple tone with the Teensy 4.1 and convert to analog with the CS4344, then measure frequency with a scope.
I connected the Teensy pins as described in this tread:
I tried this code but I'm only getting noise. What I'm doing wrong?
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveformSine sine1; //xy=1920.0595201764784,4686.488091605049
AudioOutputI2S i2s1; //xy=2137.9166630336213,4702.91666303362
AudioConnection patchCord1(sine1, 0, i2s1, 0);
AudioConnection patchCord2(sine1, 1, i2s1, 1);
// GUItool: end automatically generated code
void setup(){
sine1.frequency(1000);
sine1.amplitude(1);
}
void loop(){