thanx Darrel Taylor...did u mean this:
define osc 8
TRISC = 0 'PORTC all outputs
main:
PR2 = 15 'Load Period Register
CCPR1L = 8 'Set 50% duty cycle
CCP1CON = %1100 'PWM mode
T2CON.2 = 1 'Start TIMER2
PAUSE 1
end
thanx Darrel Taylor...did u mean this:
define osc 8
TRISC = 0 'PORTC all outputs
main:
PR2 = 15 'Load Period Register
CCPR1L = 8 'Set 50% duty cycle
CCP1CON = %1100 'PWM mode
T2CON.2 = 1 'Start TIMER2
PAUSE 1
end
Bookmarks