Instant Interupts with a 12f675
Hi all, I've been trying to get Darrel Taylor's Instant interrupts to work with a 12f675 with no luck. Will they work with a 12f675?
I just get the following error message when I try to compile it:
ERROR: Variable wsave3 position request 416 beyond RAM_END 95.
ERROR: Variable wsave2 position request 288 beyond RAM_END 95.
ERROR: Variable wsave1 position request 160 beyond RAM_END 95.
ERROR: Unable to fit variable RS2_Save
Here is the code I am using:
LED1 VAR GPIO.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
INT_ENABLE INT_INT ; enable external (INT) interrupts
ENDASM
Main:
PAUSE 1
GOTO Main
'---[INT - interrupt handler]---------------------------------------------------
ToggleLED1:
TOGGLE LED1
@ INT_RETURN
Thanks for any help.
Bill
Bigger Chip for the Instant Interrupts
Thanks Ace, for the quick reply.
Darrel...LOL... To see movies of the harvester running visit www.asparagusharvester.com or search on you-tube for wlundonly. That sucker has something like 40 pic chips in it! Mostly 12F675's and a 18F4550 I think. Worked great....and I was out in the field programming them with my laptop. Was great fun.
So now I've got this new project that I am trying to figure out...I'm in the early stages. I need to make a programmable alarm clock...that is actually a controller for a pump. So it sounds to me like I need a bigger chip...much bigger.
I think I'll look for one that has enough I/O pins to drive an LCD display since I'll need one of those.
Thanks for the help...don't worry...I'll be needing more. I managed to struggle through the harvester pic programming and a few other projects, but now that I have overcome my fear of posting maybe I'll be looking for help more often.
Bill
Choosing a PIC for a timer-controller
So Darrel,
I'm trying to decide what chip to use and thought maybe you could suggest a chip....there are so many....
Every time I use a new PIC chip I fall in love all over again....
I'm looking for a low-cost, easy to obtain in quantity, chip to use in my timer/controller.
I want the controller to send out a signal containing two 8-bit bytes to an RF transmitter.
The controller could be programed to send the signal out at pre-programed times, say a maximum of 12 times in 24 hours.
The chip would need to comunicate to the user via an LCD.
The chip would also be hooked to an RF receiver and receive a couple of bites from the controlled device, which it would then display on the LCD.
I want it to be easy to program, so I was thinking if I should have a few pins dedicated to the clock and alarm/setting functions.
I haven't really looked into displays yet so I'm not sure how many pins one needs for that. I'm thinking if I used a 14 pin chip I should have plenty of input/output pins.
It is going to be battery powered.
Any suggestions?
Thanks,
Bill
16LF628A - I can't find it!
Darrel,
I can't find that part...are you sure about the part number?
Thanks,
Bill