Thanks Henrik - I didn't catch the part about PortB on chip 16F1829.
I've got the code converted to work with a 16F1825 but I had to add the following to the p16F1825.inc file in MPASM:
Can anyone tell me why? All I'm trying to do is use HPWM on CCP3 with the following config/code:Code:CCPTMRS EQU H'029E' CCPTMRS0 EQU H'029E'
Until I added the line above in the p16F1825.inc MPASM file, I got this compile error:Code:ANSELA = %00000000 ANSELC = %00000000 TRISA = %00000011 ' Make PortA pins 0-1 input for rotary encoder TRISC = %00000000 ' Make all pins on PortC output HPWM 3, 97, 20000
Code:Error[113] c:\pbp\pbppi14e.lib 2089 : Symbol not previously defined (CCPTMRS0)




Bookmarks