I have question concerning PWM. I want to make PWM output of about 100kHz frequency. Problem is I don`t think I will get high accuracy of controlling it when using such high frequency. Let`s assume I will use the highest clock frequency 16Mps. Dividing this frequency by desired frequency (100kHz)I receive 160. 160 is not many counts to get high accuracy of PWM. 50% would be 80 counts then 100% is 160 counts and one count is only 0.625% of accuracy.
Can I solve somehow this thing?
Maybe use specially designed PWM controller or timer?