I am asking this question with reference to my previous posting regarding a switch mode power supply..
I am now writing code for my Atmega128L running at 8MHz(My development board)
As i was doing my calculations for the Fast Pwm mode, i realised that the max base frequency that i can obtain without loss in resolution is 31250Hz using 8bit pwm and 7812Hz using 10bit pwm. Please correct me if i'm wrong.
I was intially thinking of using 10bit pwm but i feel i will have to go for the 8bit pwm. Is there anyway of obtaining a high frequency pwm (say 40Khz)?
Even if i use the atmega128 at 16Mhz its 10bit pwm is still slow. What are the disadvantages of running a SMPS at 7.8Khz?