hello
I am beginer and practicing small codes so here is a code and i need help about it
--------------------------------
define osc 4
Trisb =%01111111
do
high portb.7
pause 300
low portb.7
pause 300
loop until portb.2 = 0
---------------------------
when i run this code led on start blinking but when i press button and make portb.2 low then operation of led should stop but it doesent stop ,it keep blinking whether there is 1 or 0 at portb.0
what is wrong this code and how to correct it please guide me thanks
Bookmarks