Hi...I wanna move PWM0,1 to PWM6,7.
I tried to change PWMCON0 (01010000) for enable all PWM.
It's still out at PWM0,1 ....... I have no idea how it work.
Code:
MOVLW 0x00
MOVWF PTCON0
MOVLW 0xC0
MOVWF PTCON1
MOVLW 0x20
MOVWF PWMCON0
MOVLW 0x01
MOVWF PWMCON1
MOVLW 0b00001110
MOVWF DTCON
CLRF PTMRL
CLRF PTMRH
MOVLW 0x00
MOVWF PTPERH
MOVLW 0xFF
MOVWF PTPERL
MOVLW 0xFF
MOVWF OVDCOND
MOVLW 0x00
MOVWF OVDCONS
Thanks a lot.....!!!
Ttelmah Guest
Posted: Sat Aug 08, 2009 7:30 am
You can't.....
Look at Fig17-1.
PWM 6/7, are the outputs for channel 3. You can't move the channel 0 outputs 'to' these.
You need to enable/use channel3, to get outputs on these pins.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum