I am trying to use the PWM module directly and have 10 bit resolution, but the output is LOW with this:
If I use the PBP commandCode:DEFINE CCP1_REG PORTB DEFINE CCP1_BIT 3 ccptmrs=0 pr2=249 ccp1con=$0C trisb.3=0 ... main_loop: ... ccpr1l=duty.lowbyte ... goto main_loop
then output follows the duty value.Code:HPWM 1,duty,2000
Any ideas?
Ioannis
Bookmarks