One step further ...
Hi Charles
Try this :
'Test Blink
DEFINE INTHAND _Period
I var Word
Periode var Word
Led var Portb.7
Led = 0
Periode = 64
loop:
INTCON = %10010000
For I = 1 to 1000
Pauseus Periode
Next I
Toggle led
Goto loop
Period:
INTCON = $80
Periode = ( Periode /2 )
IF NOT Periode THEN
Periode = 64
ENDIF
GOTO loop
END
!!! IMPORTANT NOTE !!! : DO NOT FORGET the underscore before Period , in the inthand DEFINE !!!
No mod to add to the Hex, this time !!!
No Retfie or Return to care with ... just give the jump label you want to go aft the interrupt stubb.
ENJOY
Alain
PS : Doesn't hurt MCS nor ....
Last edited by Acetronics2; - 19th December 2005 at 17:53.
************************************************** ***********************
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