This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
I am trying to generate a pwm signal of 25khz period. and 0 to 100% duty cycle variation. But i do not see 0-100% variation in pwm duty cycle. the duty cycle and pulse width count relation is 0% - 170 , 66% - for 400 and above.
Below is the code. I have used the code from the example.. I change the pulse width count manually for now.
void main(void)
Hi,
Worth to know - strictly 0% and 100% cannot be obtained, not with this micro, neither with other brands. Usually, at these strict levels, other brands implement no waveform output, but static level either low or high.
You must maintain a small margin, 1..3 bits from these levels.
Petrei