I want to use the SamvV71 DAC to generate a waveform at a specific frequency. I am using the ASF4 drivers but I can’t find a good example for the DAC. I am setting up TC0 channel 1 to generate the frequency that will drive the DAC.
I am using the DAC_async_write() to point to send my waveform data to the DAC
It looks like I can set the DAC to trigger from TC0. But what exactly does this mean? The outputs of TC0 are TIOA and TIOB. Does this mean I have to use TIOA or TIOB to trigger the DAC. Or do I have to trigger the DAC on TCO channel 1 overflow?
When I set DAC trigger to TC0, what exactly is the trigger from TC0?
Also, How do I know when the last byte of my 1K buffer has been written to the DAC?