Hi all,
I'm lately playing with the simple waveform generation example in Arduino Due as shown in the following link
I found that the processing time for the following code, which is basically two analogWrite operation, is 10us, i.e., 840 clock cycles.
void loop() {
analogWrite(DAC0, waveformsTable[wave0]); // write the selected waveform on DAC0
_ analogWrite(DAC1, waveformsTable[wave1]); // write the selected waveform on DAC1_
* i++;*
* if(i == maxSamplesNum) // Reset the counter to repeat the wave*
* i = 0;*
}
Is there any other programming approach to make it faster? Thanks.