Newbie inputs question:
Veramacor
Posts: 6
Hello,
Just purchased the BS2 OEM version. Real simple program test of PIN0. I connected a 9 Volt battery + to Vin - to Vss.
' {$STAMP BS2}
I VAR Word
INPUT 0
FOR i = 1 TO 10
DEBUG ? IN0
NEXT
The debug window shows:
0
1
1
1
0
1
1
0
0
0
Almost random reading of the input pin - nothing is connected to PIN0 why the random reading?
Thanks!
Jeff
Just purchased the BS2 OEM version. Real simple program test of PIN0. I connected a 9 Volt battery + to Vin - to Vss.
' {$STAMP BS2}
I VAR Word
INPUT 0
FOR i = 1 TO 10
DEBUG ? IN0
NEXT
The debug window shows:
0
1
1
1
0
1
1
0
0
0
Almost random reading of the input pin - nothing is connected to PIN0 why the random reading?
Thanks!
Jeff
Comments