here is my plan.
i would apreciate any input.
I will use one timer for the 3khz pwm. this will interupt at 300khz as 1% adjust will be enough resolution for me. then I will count the interupts and set the bits as necessary.
this means that I will have a interrupt every 3.33 us.
one question that I have is: at a clock freq of 20Mhz will this interupt every 3us bog down the rest of my program.
I will use the same strategy for the other pwm freqs.
another question: with two sources of interupts is it possible that if one interrupt comes while im processing another will it throw off my count.
or.... can(should) I use the 3.33us for all of my pwm channels?
thanks
-Garett
Bookmarks