Electronics4you
Member
Hi All
Just a few minor PIC problems.
1. I have this code:
test1
btfss PORTA,0
goto test2
goto next1
test2
btfss PORTA,1
goto test3
goto next2
test3
btfss PORTA,2
goto test4
goto next3
test4
btfss PORTA,3
goto test1
goto next4
It's used as a scanningcode for 4 micro-switches. How can I store the values in variables so I can use them later on?
2. Can it be done in another way, so the scanning proces is faster?
__________________________________
Who can live without electronics - not me!
Just a few minor PIC problems.
1. I have this code:
test1
btfss PORTA,0
goto test2
goto next1
test2
btfss PORTA,1
goto test3
goto next2
test3
btfss PORTA,2
goto test4
goto next3
test4
btfss PORTA,3
goto test1
goto next4
It's used as a scanningcode for 4 micro-switches. How can I store the values in variables so I can use them later on?
2. Can it be done in another way, so the scanning proces is faster?
__________________________________
Who can live without electronics - not me!