2003-12-17 02:31 AM
2011-05-17 02:57 AM
Hello,
I'm using both PWM0 and PWM1 at the same time. PWM0 is working correctly and smooth, however PWM1 that has the same configuration as the first PWM is not stable in the period time, i.e. the gap between the pulses. most of the time, every 4th cycle the pulse raise 1ms earlier, other times it can be in the next cycle, or 10th cycle. What should I do? I understand that PSCL0H and PSCL0L configure the prescaler0, that corespond to PWM0, but it also controls PWM1. how is that? and what is the second prescaler used? for PWM4? PWMCON is set as 0xAF. Ron.2011-05-17 02:57 AM
To Modurator,
Thanks but I already figured it out, the PWM1 was anded with down_counter signal, to enlarge the period time, but it made problems. also I undrstood that the prescaler0 controls PWM0-PWM3. Thanks.