Xiao Samd21 D2A programming guide?

Hi all,

I want to generate a continuous 800 Hz (i.e. analog) sine wave from the D2A pin on the SamD21 Xiao. Is there a suitable library, function or some guidance on how to do this? I’m OK with the Arduino programming language, Micro Python and Circuit Python, and on a good day TinyGo.

Thanks

Hi BlindOwl,
I believe the SAMD21 can output a true 10-bit DAC with analogWrite(A0, value) from the A0 pin. Please try it.

1 Like