How can i control pic input pins order?
For example ,
Loop :
IF PORTA=254 then go1
IF PORTA=253 then go2
Goto Loop
go1:
WHILE PORTA=254
Pause 500
High portb.0
Pause 500
Low portb.0
Wend
Goto Loop
go2:
WHILE PORTA=253
Pause 500
High portb.1
Pause 500
Low portb.1
Wend
Goto Loop
All PORTA inputs goes like that .
My problem is that ;
if 1 of "if" is active there is no problem ; it does what should.
if 2 of "if" is active at the same time ; it doesn't do something , just wait . if i release one of 2 input pins ; it works well.
Questions;
is there a way to record input status to use order job. Mean , if one "if" is active it will do its job ; if second if is active (input low) , it will record this request , it will do its job after release first if .
Note: I just give a part of my code as example ; to be able to understandable . (All A ports will be used.)
If someone has an idea or some part of code to be used before , i will be happy.