| Posted: 09:31pm 31 Dec 2021 |
|
|
|
Hi, Happy New Year to you all. I am struggling to understand some strange PIN output on my PicoMite (ver 5.0701). I have cleared the Pico and loaded everything from scratch several times. I'm running the following code via MMEdit v5 and have pin GP6 connected to pin GP7. The connections are sound and not intermittent. I can make/break the pin GP6 to GP7 connection. I expect the print statement to show GP6 as '0' when it is broken and '1' when it is made.
It intermittently: - fails to change from 0 to 1 and vice versa - works properly - starts with the wrong value even when started from a powerdown/up or re-load of the code.
Is it me or something else?
Cheers, Andrew
'PinTest.BAS SETPIN GP6, DIN SETPIN GP7, DOUT : PIN(GP7)=1 Do PRINT "GP6= ";PIN(GP6), " GP7= "; PIN(GP7) PAUSE 1000 LOOP
|