Problem with DT_INTS-14.bas and PIC16F628A


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2010
    Posts
    2

    Default Problem with DT_INTS-14.bas and PIC16F628A

    Hello!
    I'm new here, and I was testing the Instant Interrupts, first of all, I've tried to compile the 'Hello World' code on a PIC16F628A, but I get this error message:

    ERROR: Variable wsave3 position request 416 beyond RAM_END 335.

    Is it a limitation for the Instant Interrupts? or please tell me where I'm wrong... Yes, I'm using MPASM.

    Compiling this code for a PIC16F877A gives no problem...



    Thanks!


    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   TMR1_INT,  _ToggleLED1,   PBP,  yes
        endm
        INT_CREATE               ; Creates the interrupt processor
    ENDASM
    
    T1CON = $31                ; Prescaler = 8, TMR1ON
    @ INT_ENABLE  TMR1_INT     ; enable Timer 1 interrupts
    
    Main:
      PAUSE 1
    GOTO Main
    
    '---[TMR1 - interrupt handler]--------------------------------------------------
    ToggleLED1:
         TOGGLE LED1
    @ INT_RETURN

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Open The Dt ints and comment out the offending code, some chips do not have those places in memory, follow Darrel's instructions in the code.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Aug 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    Thanks for helping me!

Members who have read this thread : 1

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