Symbol not prev defined FSR - Elapsed Timer


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,717


    Did you find this post helpful? Yes | No

    Default Re: Symbol not prev defined FSR - Elapsed Timer

    how big would Ticks have to be to make this true ?


    IF Ticks > 100 THEN
    Warning I'm not a teacher

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Symbol not prev defined FSR - Elapsed Timer

    Quote Originally Posted by richard View Post
    how big would Ticks have to be to make this true ?

    IF Ticks > 100 THEN
    I have a feeling I'll be waiting a while for that to happen. I've brought that down to Ticks > 1.

    I've started again with the original includes, and:
    - added 32MHz
    - changed PIE1 to PIE4
    - changed PIR1 to PIR4
    - changed FSR to FSR0


    ...I'm adding T1CON and T1CLK now...


    I'm still puzzled by T1CON,TMR1ON. The datasheet doesn't have TMR1ON, it's just ON.


    EDIT: Confirmed, it works once I added T1CON and T1CLK. I was blindly following the instructions on the Book of Interrupts and forgetting that this PIC is different.

    a) I'm still puzzled why TMR1ON works though; seems contradictory to me.

    b) so 1 Tick is 66.4ms on a 16F18877.


    Blissful ignorance is a wonderful thing...
    Last edited by Demon; - 6th October 2024 at 04:55.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,717


    Did you find this post helpful? Yes | No

    Default Re: Symbol not prev defined FSR - Elapsed Timer

    all bit definitions are in the mpasmx folder *.inc files. the datasheet refers to any timer1 type timer for that chip, ie tmr1 tmr3 tmr5

    eg
    Name:  Untitled.jpg
Views: 941
Size:  81.4 KB
    Last edited by richard; - 6th October 2024 at 05:35.
    Warning I'm not a teacher

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Symbol not prev defined FSR - Elapsed Timer

    I want to post my code in Code Examples.

    What would be a good label for new PICs like the 16F18877 that need modified includes?
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Symbol not prev defined FSR - Elapsed Timer

    Quote Originally Posted by richard View Post
    all bit definitions are in the mpasmx folder *.inc files.
    Should we edit those includes to match the names In the datasheet?

    Or is that opening another can of worms?
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,717


    Did you find this post helpful? Yes | No

    Default Re: Symbol not prev defined FSR - Elapsed Timer

    Should we edit those includes to match the names In the datasheet?
    absolutely not, there is no problem to solve

    if you want to use mpasm bit names in your code then use the bit names that microchip have created for them
    there is zero point in inventing names that mpasmx will not recognize.
    the proper and correct names are in the mpasmx picxxxxx.inc files
    Warning I'm not a teacher

Similar Threads

  1. Replies: 11
    Last Post: - 23rd August 2024, 03:13
  2. Replies: 7
    Last Post: - 2nd January 2018, 05:17
  3. Symbol not previously defined - lib file
    By Scampy in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 2nd November 2015, 01:33
  4. symbol not prev. def. _INTRC_OSC 16F88
    By MarkR in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2011, 23:33
  5. Symbol not previously defined
    By Archangel in forum Code Examples
    Replies: 2
    Last Post: - 27th December 2008, 10:52

Members who have read this thread : 5

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