Heuuu
No GIE = No Sleep ( RTFDatasheet ... $ 14.8.1 - Greyed Note ), so we set GIE Bit
Then ... Executes the 1St NOP
Then ... Branches to location 0004 ...
But there is a supposed Interrupt stubb here instead of falling into the "program" ...
a single " DEFINE INTHAND INIT " without any interrupt stubb ( LOL ! ) would push the libs away from the 4 first program locations ... and allow restarting the PIC as a first power up ...
We could also Branch to the "Pause 100" ... to have some visual effect before re-entering sleep ... ( wich is better ...I think)
Sooo ...
we add :
DEFINE INTHAND _BLINK ' near top of program
and
BLINK:
Before
Pause 100 ' Needed for system Wake-Up
HIGH LED : PAUSE 200 : LOW LED
GOTO CYCLE
I am right, Mel ???
Alain
PS: We are aboard PBC list ... what about interrupts in PBC ???
Last edited by Acetronics2; - 12th May 2007 at 15:14.
Reason: PBC or PBP used ???
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks