Need a working code for sine wave generation using pic 18f mcu

danadak

Joined Mar 10, 2018
4,057
You also want to use a timer or clock to trigger the dac update, to avoid jitter
in the output waveform. An ISR can do this if its high priority, but thats not a
guarantee there will be no jitter. Only a HW process can guarantee that. There
are processors out there that can do an end to end HW solution. Not sure if PIC
can do this. Would have to have DMA. separate busses, and access to the sine
sample table.

Sine table values all over the net for download.

Other techniques - https://dspguru.com/dsp/tricks/sine_tone_generator/ https://dspguru.com/dsp/tricks/sine_tone_generator/


Regards, Dana.l
 

Attachments

Last edited:
Top