Thank you very much Ttelmah.
I'll try to see if power PWM is good enough.
Do you have any suggestions for a chip with the programmable frequency generator?
Thank you both.
You don't tell us your clock frequency.
I calculated use the code in this post but change to an 8mhz clock and you have better resolution than you need.
I Haven't worked with NCO be ...
I'm trying to write a program to generate frequencies from 20KHz to 50KHz using CCP. The problem is resolution. I need 0.1KHz steps but the best I get with a prescale of 1 and around 50 KHz is 0.7KHz. ...