16f1824 - error when HPWM command used
Code:
CCP1CON = %00001100 'Select PWM Mode
Main
hpwm 1,127,2000
goto Main
I get the following error...
Error[113] c:\pbp\pbppi14e.lib :Symbol not previously defined (CCPTMRS0)
if I comment out the hpwm 1,127,2000 entry, the error disappears.
I've patched to V2.60C ....no different.
Any ideas?
Re: 16f1824 - error when HPWM command used
Microchip is still refining the way they name the registers in the new F1 devices.
The datasheet shows CCPTMRS, CCPTMRS0 and CCPTMRS1, but there is only a CCPTMRS.
It's my understanding that they will be fixing it later.
Add this line to the bottom of your 16F1824.inc file for now ...
CCPTMRS0 = CCPTMRS
Re: 16f1824 - error when HPWM command used
Thanks Darrel ...that nailed it.