11 years, 6 months ago.

Why the frequency of output signal is much less than the frequency I set?

I use p18 to generate sin analog signal. I store the sin value in an array and use 'for' function to put the value of the array to analog output. But the frequency of output signal is much less than the frequency I set. e.g. if I set the f is 500Hz, the output is only 350Hz. What is the problem? /media/uploads/tigerluo/screen_shot_2012-11-16_at_11.24.58_am.png

Could you revise the question to include a whole program that demonstrates the problem (eg including delta calculation, or even better, just a published program that can be imported) to make it easier to reproduce or see the whole context of the problem?

posted by Simon Ford 17 Nov 2012
Be the first to answer this question.