When use one of the Timer Compare Channels (CCn where n>0) to generate PWM, is it true that you cannot cover both 0% and 100% duty-cycle without special treatments?
For example, you may use:
CCR0 = N-1; // where N is the number of clocks for the period of the PWM
CCRn = M; // this sets (duty-cycle) = 100*M/N %
CCTLn = OUTMOD_7; // Set/Reset mode
But I heard that you must have M>0 and also must have M<N. Thus you cannot get 0% and 100% this way.
I think when M=0, you will get 0%, and when M>=N, you will get 100%. Am I wrong?