[quote:518e90fc33="Robert_Pre"]how can i make a sinus osc with the PWM with a frequency about 10khz?[/quote:518e90fc33]
Use less support points. Assumed the ideal condition that after each 8bit PWM cycle a new sine point is loaded, one complete sine takes 20000000 / 256 pwm / 256 sine points = 305Hz
If you use a R2R resistor network, you can speed it up by the PWM factor.
[quote:518e90fc33]my prog here is good but only 1000hz![/quote:518e90fc33]
You only reach a higher frequency as said 305Hz, as sine support points are omitted then, because they are loaded faster than one PWM cycle takes.
↧