??? 01/17/10 21:35 Read: times |
#172525 - PWM code Responding to: ???'s previous message |
First of all you could use a variant with a compare-capture unit, which can do PWM for you in hardware. Secondly, if you are running out of time to service the routine, I suspect it could be written a lot faster in assembler. I'm pretty sure I wrote an example of something faster in the forum in the fairly recent past.
Steve |