Problem using Instant Interrupts


Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966

    Default Problem using Instant Interrupts

    Hello

    I have downloaded the Instant interrupts example files and trying to compile them with no luck. Perhaps Darrell / Tim can enlighten me as to how to get it going?

    This is the file I am trying to get to work.
    Code:
    INCLUDE "DT_INTS-14.bas"
    INCLUDE "ReEnterPBP.bas"
    INCLUDE "Elapsed_INT.bas"  ; Elapsed Timer Routines
    
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler   TMR1_INT,  _ClockCount,   PBP,  yes
        endm
        INT_CREATE            ; Creates the interrupt processor
    
        INT_ENABLE  TMR1_INT  ; Enable Timer 1 Interrupts  
    ENDASM
    
    GOSUB ResetTime           ' Reset Time to  0d-00:00:00.00
    GOSUB StartTimer          ' Start the Elapsed Timer
    
    Main:
      IF SecondsChanged = 1 THEN  
         SecondsChanged = 0
         LCDOUT $FE,2, DEC Days,"d-",DEC2 Hours,":",DEC2 Minutes,":",DEC2 Seconds
      ENDIF
    GOTO Main
    This is the error I see (from the .lst file)
    Code:
       617					INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
       618					        INT_Handler   TMR1_INT,  _ClockCount,   PBP,  yes
       619					    endm
       620					    INT_CREATE            ; Creates the interrupt processor
         +	019F- 29B8			    goto  @@0000
         +	01A0- 0804			    movf      FSR,W         ; 7 move FSR reg to be saved into W reg
         +	01A1- 00B6			    movwf     fsave         ; 8 save FSR reg to a bank 0 register
         +	01A2- 12DE			    bcf      _Seviced
    E[224]					LOCAL Directive Only for Use in Macros
    E[225]					Undefined Symbol 'IflagReg'
    E[226]					Numeric Constant or Symbol Name Expected
    E[201]					')' Expected
    E[225]					Undefined Symbol 'IflagReg'
    E[226]					Numeric Constant or Symbol Name Expected
    E[201]					')' Expected
    Setup I use is PBP2.46 to generate the ASM and Pasm4.07 to assemble it to Hex. The command lines I use are
    PBPW -p16f917 test.bas
    PM -l test

    I just cant figure out why the Local is troubling the assembler

    Jerson
    Last edited by Jerson; - 3rd May 2006 at 15:16.

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  2. 16F946 Instant Interrupts problem
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th April 2009, 22:20
  3. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  4. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  5. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48

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