darrel taylor's instant interrupt compiler error


Results 1 to 17 of 17

Threaded View

  1. #8
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default I am anable to compile it

    Very likely I am missing somthing because I am unable to compile the DT_Ints-14 with 16F84A & 16F873 while 16F876 will compile with some warnings.

    Here the simple code:
    Code:
    LED1 VAR PORTB.1
    INCLUDE "DT_INTS-14.bas" ; Base Interrupt System
    INCLUDE "ReEnterPBP.bas" ; Include if using PBP interrupts
    
    ASM
    INT_LIST macro ; IntSource, Label, Type, ResetFlag?
    INT_Handler INT_INT, _ToggleLED1, PBP, yes
    endm
    INT_CREATE ; Creates the interrupt processor
    ENDASM
    @ INT_ENABLE INT_INT ; enable external (INT) interrupts
    Main:
    PAUSE 1
    GOTO Main
    '---[INT - interrupt handler]---------------------------------------------------
    ToggleLED1:
    TOGGLE LED1
    @ INT_RETURN
    These are the errors with 16F84A with "@PIR1 = EECON1" or w/o it (Flash 1024)
    ERROR: Variable wsave3 position request 416 beyond RAM_END 79.
    ERROR: Variable wsave2 position request 288 beyond RAM_END 79.
    ERROR: Variable wsave1 position request 160 beyond RAM_END 79.

    These are the erros with 16F873 & 16F874 (Flash 4096)
    ERROR: Variable wsave3 position request 416 beyond RAM_END 255.
    ERROR: Variable wsave2 position request 288 beyond RAM_END 255.

    These are the warnings with 16F876 (Flash 8192)
    Warning[205]c:\..................................\led_int.asm 495:Found directive in column 1. (endm)
    Warning[206]c:\..................................\led_int.asm 496:Found call to macro in column 1. (INT_CREATE)
    Warning[206]c:\..................................\led_int.asm 494:Found call to macro in column 1. (INT_Handler)
    I did not check if the above compilation was working or not ( the harware I had prepared was for 16F84A)
    The only explanation I am giving is the ram space, but since others have used with success the 16F84A with the same program, that means that the problem is with my compiler (ver 2.47) or something wrong I am doing.

    Any help will be greatly appreciated.

    Al.
    Last edited by aratti; - 14th December 2008 at 13:09.
    All progress began with an idea

Similar Threads

  1. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 05:58
  2. Usart with Darrel Instant Interrupt
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th February 2008, 01:09
  3. using darrel taylor's instant interrupts
    By Michael Wakileh in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 31st July 2007, 05:07
  4. Ping Darrel Taylor - Timer0 Instant Interrupt
    By JEC in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th January 2007, 12:20
  5. Instant Interrupt Error
    By cool_justin in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th June 2006, 00:40

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