PDA

View Full Version : 16f1824 - error when HPWM command used



HankMcSpank
- 21st March 2011, 13:34
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?

Darrel Taylor
- 21st March 2011, 14:47
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

HankMcSpank
- 21st March 2011, 15:41
Thanks Darrel ...that nailed it.