Complete the following to implement or update the simple function generator output:
- Build and load a 256-point table of 8-bit DAC
values for the desired waveform output.
- Configure the DMA in SysConfig to transfer a block of data to a fixed address of the
DAC8. Subscribe the DMA transfer trigger to an event so the exact timing can be
controlled by a timer.
- Configure a timer in SysConfig to publish a
periodic event and trigger the DMA transfers.
- Enable the COMP in SysConfig to power the
DAC8.
- Use SysConfig to configure and OPAx in buffer
mode with the DAC8 as the input source and enable the output.