Darrel Taylor - Instant Interrupts-Problem 16F877A


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    251

    Exclamation Darrel Taylor - Instant Interrupts-Problem 16F877A

    Using Darrel Taylor Intsrrupts

    Hi, I am using 16F877A and I tried to compile first by just adding statements:
    INCLUDE "DT_INTS-14.bas" ; Base Interrupt System
    INCLUDE "ReEnterPBP.bas" ; Include if using PBP interrupts

    I am getting following error messeges:
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -oq -z -p16F877A "GSM.bas"
    PICBASIC PRO(TM) Compiler 2.50b, (c) 1998, 2008 microEngineering Labs, Inc.
    All Rights Reserved.
    Error[113] C:\PBP\PBPPIC14.LIB 1160 : Symbol not previously defined (INT_ENTRY)
    Error[113] C:\PBP\PBPPIC14.LIB 1162 : Symbol not previously defined (INT_ENTRY)
    Error[101] D:\BACKUP\DESKTOP\GSM GPS PROJECT\GSM.ASM 934 : ERROR: (Temp variables exceeding T4)
    Loaded D:\Backup\Desktop\GSM GPS Project\GSM.COD.
    BUILD SUCCEEDED: Sat Dec 19 23:43:28 2009
    Can someone help me to resolve this please. Thanks

    P.S: Do these interrupts work on 12F635?

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


    Did you find this post helpful? Yes | No

    Default

    By themselves, the include files will not compile.

    There must be an INT_LIST and INT_CREATE in your program.
    Code:
    INCLUDE "DT_INTS-14.bas"
    INCLUDE "ReEnterPBP-14.bas"
    
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler   TMR1_INT,  _ToggleLED1,   PBP,  yes
        endm
        INT_CREATE            ; Creates the interrupt processor
    ENDASM
    
    @   INT_ENABLE  TMR1_INT  ; Enable Timer 1 Interrupts
    P.S: Do these interrupts work on 12F635?
    Yes they do.
    But I anticipate you will have more problems, because you already have more than 4-T? vars used.
    So the program probably has a lot of math or logical conditions and there's going to be very little (if any) RAM left.

    The 12F635 only has 64-bytes.
    <br>
    DT

  3. #3
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Question New Set Of Problems...

    Hi, I added rest of the statements and now I am having following errors:
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -oq -z -p16F877A "GSM.bas"
    PICBASIC PRO(TM) Compiler 2.50b, (c) 1998, 2008 microEngineering Labs, Inc.
    All Rights Reserved.

    C:\PBP\DT_INTS-14.BAS ERROR Line 14: Redefinition of VAR.
    C:\PBP\DT_INTS-14.BAS ERROR Line 21: Redefinition of VAR.
    C:\PBP\DT_INTS-14.BAS ERROR Line 22: Redefinition of VAR.
    C:\PBP\DT_INTS-14.BAS ERROR Line 23: Redefinition of VAR.
    C:\PBP\DT_INTS-14.BAS ERROR Line 26: Redefinition of VAR.
    C:\PBP\DT_INTS-14.BAS ERROR Line 27: Redefinition of VAR.
    C:\PBP\DT_INTS-14.BAS ERROR Line 28: Redefinition of VAR.
    C:\PBP\DT_INTS-14.BAS ERROR Line 29: Redefinition of VAR.
    C:\PBP\DT_INTS-14.BAS ERROR Line 30: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 14: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 20: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 21: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 22: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 23: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 24: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 25: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 26: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 27: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 28: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 29: Redefinition of VAR.
    C:\PBP\REENTERPBP.BAS ERROR Line 30: Redefinition of VAR.
    FATAL ERROR: Too many errors. (21)
    Halting build on first failure as requested.
    BUILD FAILED: Sun Dec 20 11:02:38 2009
    Also is there any way out to get rid of 4-T error? and how it will affect my running code?

    Thanks for the help in advance

  4. #4
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Question Anyone there?

    Someone - Anyone there?
    I am looking forward to use RB0 interrupt in my program........help me get rid of these errors please......Thanks

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


    Did you find this post helpful? Yes | No

    Default

    It looks like you've put the includes in there twice.
    DT

  6. #6
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Question

    Yes that's true. I just figured that out few minutes ago only. My code is streched so long that it's getting difficult to spot small errors and also I can be excused because it's the first time I am trying to use your interrupts. Anyways, thanks for the reply.

    Can you please also brief me about T4 error? Though the Build succeed is appearing fine, but so is the error of T4. Should I try to reduce the code or the variables? Should I don't worry about it as far Build Succeed is there?Thanks

Similar Threads

  1. Problem displaying data from GPS module & using 16f877a
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 15th April 2010, 10:27
  2. 16F946 Instant Interrupts problem
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th April 2009, 22:20
  3. Darrel Taylor Interrupts I2C Problem
    By dcorraliza in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 26th March 2008, 02:13
  4. 16F877A problem: "coupled" digital values
    By Lupo83 in forum General
    Replies: 16
    Last Post: - 4th December 2007, 12:46
  5. using darrel taylor's instant interrupts
    By Michael Wakileh in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 31st July 2007, 04:07

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