16f1824 - error when HPWM command used


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    653

    Default 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?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default 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
    DT

  3. #3
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: 16f1824 - error when HPWM command used

    Thanks Darrel ...that nailed it.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts