I am developing a board that interfaces the Teensy 3.2 with the WM8782A dual-channel ADC via I2S interface. I was able to find plenty of example code online, but when I try to implement it myself, I am not even able to read or write to any of the I2S registers! Here is some simplified code I tried to run:
************************
void setup() {
delay(5000); //gives me time to open Serial Monitor
Serial.begin(9600);
Serial.println("Begin");
I2S0_TCSR = 0;
Serial.println("1");
}
void loop() {}
*****************************
The Arduino serial monitor will print "Begin" but not "1."
If I can't perform simple read/write operations to SFR's, I'm stuck!
************************
void setup() {
delay(5000); //gives me time to open Serial Monitor
Serial.begin(9600);
Serial.println("Begin");
I2S0_TCSR = 0;
Serial.println("1");
}
void loop() {}
*****************************
The Arduino serial monitor will print "Begin" but not "1."
If I can't perform simple read/write operations to SFR's, I'm stuck!