To output to the ADC there are two consecutive writes:
Code: Select all
ch_headset_out <: output_to_dac;
ch_headset_out <: output_to_dac;
If my application starts with the loop which output these, the time used for these two outputs is getting much shorter (by microseconds) if I have a pause in writing to the ADC and then write to it again.
But this seemed like some code that gave this faster behaviour from init. If I instead do a single
Code: Select all
ch_headset_out <: output_to_dac;
while(1) {
// .. the code
}
Q2. Why? I tried a delay after initialising the i2s_handler, but it was not there. Some synching?
Three scope pictures will show the details, cluttered with some other stuff, but it may be of help.