Peter Nabil
New Member
Hi every single one
I AM GOING CRAZY AGAIN
I wrote this program to check the pin p2.2 , and then output the corresponding action on pin p2.4,
But the problem is the micro controller is working in the real time, by another meaning, when I change the input status the output changes !!
And I am wondering is there no end for this program !!!
I think the microcontroller check the input then make an action, then END.
But in reality it continues looping
Org 0H
Jnb p2.2,Finish
Sjmp Finish
Clr p2.4
Finish:END
I AM GOING CRAZY AGAIN
I wrote this program to check the pin p2.2 , and then output the corresponding action on pin p2.4,
But the problem is the micro controller is working in the real time, by another meaning, when I change the input status the output changes !!
And I am wondering is there no end for this program !!!
I think the microcontroller check the input then make an action, then END.
But in reality it continues looping
Org 0H
Jnb p2.2,Finish
Sjmp Finish
Clr p2.4
Finish:END