Read INA
Archiver
Posts: 46,084
Hello all
I have made a little program to test a sensory print
Start
DEBUG BIN3 INA,CR
PAUSE 500
GOTO Start
nou when i run this prog. the Debug terminal shows
0000
1111
0000
1111
1111
0000
enz.
where das die 1111 come from ???
I have made a little program to test a sensory print
Start
DEBUG BIN3 INA,CR
PAUSE 500
GOTO Start
nou when i run this prog. the Debug terminal shows
0000
1111
0000
1111
1111
0000
enz.
where das die 1111 come from ???
Comments
count on the results -- they're usually quite random (that you get an
alternating pattern is interesting). A value of %1111 on INA says that
all pins were high at that moment.
While not normally required (unless there is more to your program that
you're not sharing) you may want to specify the INA pins as inputs:
Setup:
DIRA = %0000
Main:
DEBUG BIN4 INA, CR
PAUSE 500
GOTO Main
If this program gives you the same results as the last then your inputs
are indeed changing.
-- Jon Williams
-- Parallax
Original Message
From: henkdenbroeder [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=SYwL83SsNSGqTtQw6rd4FDRsWK-Weivz8J6CXmXXek4BQm4yctlfOFfTCN4DYSeVtWkPqnf3BW-sjsdN_36DZE-Ne_Y]henkdenbroeder@h...[/url
Sent: Sunday, January 11, 2004 6:06 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Read INA
Hello all
I have made a little program to test a sensory print
Start
DEBUG BIN3 INA,CR
PAUSE 500
GOTO Start
nou when i run this prog. the Debug terminal shows
0000
1111
0000
1111
1111
0000
enz.
where das die 1111 come from ???
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
The typical place 'open inputs' (pins set as
an input, but with no actual data on them)
(and no termination to ground or +5)
get 'data' is from the 60 hz noise always
present from our 120 V AC.
--- In basicstamps@yahoogroups.com, "henkdenbroeder"
<henkdenbroeder@h...> wrote:
>
> Hello all
> I have made a little program to test a sensory print
> Start
> DEBUG BIN3 INA,CR
> PAUSE 500
> GOTO Start
>
> nou when i run this prog. the Debug terminal shows
>
> 0000
> 1111
> 0000
> 1111
> 1111
> 0000
> enz.
>
> where das die 1111 come from ???