DT_Ints with PIC18F45K80 problem


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2021
    Location
    Illinois, USA
    Posts
    10

    Cool DT_Ints with PIC18F45K80 problem

    Hello,
    still a very, very newbie here. I made the changes to the original DT_Ints-18 program to match the K80 register names and when I try to compile the code I get the following error message:

    Symbol not previously defined (IntFlagReg).

    I also get

    Symbol not previously defined (IntFlagBit).

    I can see they are referenced in the DT_Ints-18 program but they are not defined in there or anywhere else I can find. Does anyone have a clue where they should be defined or is this because the name of the register changed in the K80?

    Thanks,

  2. #2
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: DT_Ints with PIC18F45K80 problem

    Each Special Function Register (SFR) Interrupt used by DT_INT is denoted with an IntFlagReg (PIRx), while the switch controlled by each bit within the SFR is denoted as a IntFlagBit (bit within PIRx). Somewhere there is a disconnect, but without being able to see your code, it's impossible to tell where. Post your DT-Ints-18 version so we can take a look. It may very well be you missed a comma somewhere.

  3. #3
    Join Date
    Dec 2021
    Location
    Illinois, USA
    Posts
    10


    Did you find this post helpful? Yes | No

    Wink Re: DT_Ints with PIC18F45K80 problem - Fixed

    Quote Originally Posted by mpgmike View Post
    Each Special Function Register (SFR) Interrupt used by DT_INT is denoted with an IntFlagReg (PIRx), while the switch controlled by each bit within the SFR is denoted as a IntFlagBit (bit within PIRx). Somewhere there is a disconnect, but without being able to see your code, it's impossible to tell where. Post your DT-Ints-18 version so we can take a look. It may very well be you missed a comma somewhere.
    Thanks mpgmike! you nailed it exactly. After walking around in circles, well actually around my block, I looked at the code and realized I missed a comma in the interrupt definition! One comma, 82 errors in the .err file! Talk about getting your money's worth!

    Thanks again!

Similar Threads

  1. PIC18F45K80 runs way to fast.
    By bmoe79 in forum PBP3
    Replies: 3
    Last Post: - 19th December 2014, 14:24
  2. Mini problem with DT_INTS-14
    By towlerg in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th December 2013, 16:39
  3. Problem with DT_INTS-14.bas and PIC16F628A
    By CesarP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th August 2010, 06:31
  4. DT_INTS-18 - problem with INT0
    By AndrewC in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 5th January 2010, 21:42
  5. Problem with DT_Ints-14
    By BobSpencerr in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 1st March 2007, 06:27

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