I'd be interested to know how you could do that.
And since Malcolm was attempting to use MY software PWM routines based on interrupts, I guess you could say I'm familiar with them.
Let's see, 4 channels @ 3.9khz with 8-bit resolution.
That'll take (3900 *256) = 998,400 interrupts per second.
With a PIC running at 4mhz, it'll execute 1,000,000 intructions per second.
That leaves, 1.0016... instructions per interrupt.
You wouldn't have a code example for that would you?
<br>
Bookmarks