3 Results
The waveform generator was able to create the triangular and sinusoidal waveforms shown in Figure 3-1 and Figure 3-2, respectively, with an adjustable frequency. With a clock speed of 64 MHz, an effective prescaler of 1:32 (1:8 prescaler and FOSC/4 source) and that there were 100 samples in the look-up tables, the maximum frequency of the waveform is 20 kHz. Depending on the needs of the application, this frequency could be increased, either at the expense of the signal quality by reducing the number of samples, or at the expense of other program execution by prioritizing the DMA over CPU execution to allow for a faster sample rate.