It uses a large array to contain several different waveforms:
Code: Select all
const WaveSamples: array[1..6] of array[2048] of word =
//sine wave
((0,0,0,0,1,1,1,2,2 ... etc.
I submitted the two versions of the project on the support page.
The project is an expanded menu driven (LCD) version of the signal_generator project provided with the dsp routines in an earlier compiler version, and it was adapted for dsPIC30F4013 and added response to up/down buttons (through RD8/9 interrupts) to set frequency etc.