AGCB
Member
In Nigel's tutorial 8 (PWM) there is a bit of code i don;t understand, in the 2nd paragraph of the initialize routine.
MOVF CCP1CON,w ;set CCP1 as PWM
ANDLW oxof
IORLW ox0c
MOVWF CCP1CON
Would someone explane this to me line by line with resulting values. I guess I would have done a MOVLW, MOVWF type of instruction
I'm expecting to learn a new trick!!!
Aaron
MOVF CCP1CON,w ;set CCP1 as PWM
ANDLW oxof
IORLW ox0c
MOVWF CCP1CON
Would someone explane this to me line by line with resulting values. I guess I would have done a MOVLW, MOVWF type of instruction
I'm expecting to learn a new trick!!!
Aaron