PIC16F1828, "Symbol not previously defined (CCPTMRS0)", need help!


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: PIC16F1828, "Symbol not previously defined (CCPTMRS0)", need help!

    Hi,
    I'm not sure this is the case but I think it might be an MPASM include file issue.
    It looks like CCPTMRS and CCPTMRS0 registers are one and the same (they are defined that way (at 0x029E) in my version (5.47) of the MPASM .inc file) so it's possible that your version of the .inc file is missing the CCPTMRS0 regsiter definition.

    So, try using CCPTMRS instead of CCPTMRS0 or you can try adding...
    Code:
    ASM
    CCPTMRS0         EQU  H'029E'
    ENDASM
    ...at the very beginning of your code.

    /Henrik.

  2. #2
    Join Date
    Nov 2009
    Location
    DFW area of Texas
    Posts
    24


    Did you find this post helpful? Yes | No

    Default Re: PIC16F1828, "Symbol not previously defined (CCPTMRS0)", need help!

    DT is correct, after trying several variants of ASM code that didn't work; I was buying and downloading the PBP3.0.
    The PBP3.0 is nicely packaged! Download the 128Mb flavor with all the new MPASM/Microcode Studio stuff...and you may need to get the latest Beta programmer software for newer PICs.
    The multiple hardware PWMs on the PIC work from the multiple Timer2's now that I used PBP3.0
    $$ well spent, and for a good cause to keep the PB biz going!

    I still have a problem with keeping the hardware PWM going, it stops when I use HSER or ADC on other pins, eventhough the hardware PWM is coming out of a default ccp pin(that is not eusart by default)
    ..I haven't figured it out yet..

    thanks all !!
    -ray
    "Imagination is more important than knowledge", Albert.E.

  3. #3
    Join Date
    Nov 2009
    Location
    DFW area of Texas
    Posts
    24


    Did you find this post helpful? Yes | No

    Default Re: PIC16F1828, "Symbol not previously defined (CCPTMRS0)", need help!

    Ok, the hardest problems are the one's when you are the problem yourself.
    I had an error in a supporting device's code, fixed it, and now all works good.
    BUT,
    It would not be possible without using the PBP3.0
    thanks DT !
    -ray
    "Imagination is more important than knowledge", Albert.E.

  4. #4
    Join Date
    Nov 2009
    Location
    DFW area of Texas
    Posts
    24


    Did you find this post helpful? Yes | No

    Default Re: PIC16F1828, "Symbol not previously defined (CCPTMRS0)", need help!

    Thank you Olsson!!, that work-around is on the right track and I tried a few attempts as such, but no success.
    The PBP3.0 works good and worth the $$ IMO.

    all the best!
    -ray
    "Imagination is more important than knowledge", Albert.E.

Similar Threads

  1. Replies: 0
    Last Post: - 14th November 2013, 04:32
  2. Replies: 3
    Last Post: - 15th October 2012, 09:06
  3. "symbol not previously defined" on 16F1933 - fuse issue i think
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd January 2011, 04:24
  4. Symbol not previously defined
    By Archangel in forum Code Examples
    Replies: 2
    Last Post: - 27th December 2008, 10:52
  5. Replies: 1
    Last Post: - 16th February 2005, 21:05

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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