Hi All
I have been trying to use input pin C.4 ( pin3 on the chip ) as an discrete input.
The test code is just to switch the output states of pins B0 to B7 to see what happens.
However , on the simulator and the real world device, Its like the 18M2 Crashes until the input goes low again? So Im not sure what Im doing wrong?
Any ideas would be welcome, thanks
this is the test code Im using
start:
input c.4
let dirsB=%11111111
goto main
main:
let outpinsB = %11111111
if pinc.4=1 then four
goto main
four:
let outpinsB=%10101010
if pinc.4=1 then four
if pinc.4=0 then main
I have been trying to use input pin C.4 ( pin3 on the chip ) as an discrete input.
The test code is just to switch the output states of pins B0 to B7 to see what happens.
However , on the simulator and the real world device, Its like the 18M2 Crashes until the input goes low again? So Im not sure what Im doing wrong?
Any ideas would be welcome, thanks
this is the test code Im using
start:
input c.4
let dirsB=%11111111
goto main
main:
let outpinsB = %11111111
if pinc.4=1 then four
goto main
four:
let outpinsB=%10101010
if pinc.4=1 then four
if pinc.4=0 then main