i solved the problem with another method as below
trisa=%00000
trisb=%11111111
option_reg=%10000000
intcon = %10001000
I var byte
on interrupt goto int
main:
back: if portb<>0 then intcon=%10001000 ; test bit 3
serout porta.0,2,[254,1]
pause 10
serout porta.0,2,["Hello"]
pause 100
goto main
disable interrupt
int:
for i=0 to 5
serout porta.0,2,[254,1]
pause 10
serout porta.0,2,[#i]
pause 1000
next i
INTCON=%10000000 ; cleared bit 3 bit
goto back ; back to test
resume
enable interrupt
end
i will read document, thank u for that, and waiting a reply from Mister_e
Bookmarks