Kflop JP5 (new user).
Stretching several rusty skills at once, I have got an optical (limit) switch driving a CMOS inverter.
I have got the output (+5V) of the CMOS inverter attached to a pin on JP5 of Kflop. I am happy that this is working.
I have a loop reading the inputs and displaying them:
0 0 1 1 1 1 0 0
1 1 1 1 1 1 0 0
1 1 1 1 1 1 0 0
1 1 1 1 1 1 0 0
1 1 1 1 1 1 0 0
1 1 1 1 1 1 0 0
1 1 1 1 0 1 0 0
1 1 1 0 0 0 0 0
1 1 0 0 0 0 0 0
1 1 0 0 0 0 0 1.......
I have used SetBitDirection for the 8 pins.
I was hoping to see the switch voltage output on either pin1 or pin8 Readbit 36 or 43... but the output just cycles on all 8 regardless of switch output voltage.
What current does the input need? Why are digital inputs floating?
Could it be an earth issue?
N.B. this is the first thing I have done with the Kflop, it is only powered by USB and has no option cards plugged in.
Please presume that I am stupid and have missed something basic that I really should know about!
Thanks,
Jon
Sliding down the razor blade of life.