PDA

View Full Version : Problem with DT_INTS-14.bas and PIC16F628A



CesarP
- 9th August 2010, 04:25
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!



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

Archangel
- 9th August 2010, 04:31
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.

CesarP
- 9th August 2010, 05:31
Thanks for helping me!