Not necessarily true.
If compiled with PM.exe which is NOT case sensitive. It'll do just fine at 8mhz.
texas5,
Much closer, but there's still one issue.
That will work good for the first burst. But since timer2 is still running, the next time you try to send a burst, timer2 may have already past the PR2 value when you start the PWM. Then it will have to wait for it to roll over at 256 counts before it starts up the PWM again.
That would cause the loss of up to 17 of the anticipated 125 cycles you would get during the 1ms period.
After stopping the PWM you should also STOP and RESET Timer2 to 0 ...
<br>
Bookmarks