cancel
Showing results for 
Search instead for 
Did you mean: 

PWM

elsiun
Associate II
Posted on November 11, 2003 at 00:29

PWM

2 REPLIES 2
bbbodekar
Associate II
Posted on May 17, 2011 at 11:56

Hi,

I guess you know that the polarity ( output high or low ) is controlled by the PWML bit in the PWMCON register, for PWM 0 and PWM 1. You also need to chek the CFG0 and CFG1 bits in the PWMCON register, as they too decide the output level.

Hope this solves your problem.

Regards,

Bhushan
elsiun
Associate II
Posted on May 17, 2011 at 11:56

Hi

I am trying to use two PWM ports at the same time.

I initialized the PWM 0 and 1 and gave than the same duty cycle (255)

In one port I received 5v and in the other 0v.I need that both outputs will be 0v.

Thanks Kobi