Here is what I have.....
Duty var Word
DEFINE CCP1_REG GPIO
DEFINE CCP1_BIT 2
TRISIO = %00000000
T2CON = %00010101
PR2 = 249
Duty = 200
HPWM 1,duty,1000
End
On the [113] ERROR it references the following registers...
T2CON, PR2, CCPR1L, CCP1CON
Then there are two registers I don't see in the data sheet...
T2CKPS0 and T2CKPS1
I feel like I'm shooting in the dark here...
Bookmarks