Hi, I went through the Sampler_8bit code. As you mentioned, it’s really a good starting point to understand the API’s. In the code, the ‘playbackBuf’ is initialized with value 128. Is it just a value to write to DAC during the first ISR or 128 has any significance?
I think from the second ISR onwards, the ADC read value (signal) during the previous ISR and stored in ‘playbackBuf’, is fed to the DAC. Is my understanding correct?
Your understanding is correct. The value 128 is the middle value for an 8 bit value which has a range of 0-255. 128 represents the baseline of a waveform, or silence.
This reply was modified 3 years, 3 months ago by Michael.