(no subject) - toggling all outputs to test a Stamp
Archiver
Posts: 46,084
--- In basicstamps@yahoogroups.com, Newzed@a... wrote:
> I think this is right just want to check. I want to toggle all 16
I/O ports
> to check a BS2. Will this do it
>
> outs = 1
>
> do
> toggle outs
> pause 200
> loop
>
> Sid
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
maintenance post to put a searchable subject line on the post.
Dave
> I think this is right just want to check. I want to toggle all 16
I/O ports
> to check a BS2. Will this do it
>
> outs = 1
>
> do
> toggle outs
> pause 200
> loop
>
> Sid
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
maintenance post to put a searchable subject line on the post.
Dave
Comments
Start with
dirs=$ffff ' to set all pins outputs
outs=0 ' that's what it will be anyway
DO
TOGGLE outs
PAUSE 200
LOOP
I use a test board that has RC circuits tied to each pin. The RCTIME
command tests both the output and the input capabilities and also
tests for short circuits between pins.
-- Tracy
>--- In basicstamps@yahoogroups.com, Newzed@a... wrote:
>> I think this is right just want to check. I want to toggle all 16
>I/O ports
>> to check a BS2. Will this do it
>>
>> outs = 1
>>
>> do
>> toggle outs
>> pause 200
>> loop
>>
>> Sid
>>
>>
>> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>maintenance post to put a searchable subject line on the post.
>
>Dave
It seems a good idea to me to check outputs AND inputs using a RCTIME setup.
But how do you check the results?
A debug statement, I would assume. Then you also check if the serial IO is
working properly.
Regards,
Klaus
Original Message
From: "Tracy Allen" <tracy@e...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, July 21, 2004 1:00 AM
Subject: [noparse][[/noparse]basicstamps] Re: (no subject) - toggling all outputs to test a
Stamp
> Sid,
>
> Start with
>
> dirs=$ffff ' to set all pins outputs
> outs=0 ' that's what it will be anyway
> DO
> TOGGLE outs
> PAUSE 200
> LOOP
>
> I use a test board that has RC circuits tied to each pin. The RCTIME
> command tests both the output and the input capabilities and also
> tests for short circuits between pins.
>
> -- Tracy
>
>
>
> >--- In basicstamps@yahoogroups.com, Newzed@a... wrote:
> >> I think this is right just want to check. I want to toggle all 16
> >I/O ports
> >> to check a BS2. Will this do it
> >>
> >> outs = 1
> >>
> >> do
> >> toggle outs
> >> pause 200
> >> loop
> >>
> >> Sid
> >>
> >>
> >> [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> >maintenance post to put a searchable subject line on the post.
> >
> >Dave
>
>
> 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
>
>
>
>
>
>
>
differences in the pin behavior. Here is the exercise program. IT
is more that that because in my systems I also need to test auxio
functionality.
' {$STAMP BS2PE}
' {$PBASIC 2.5}
' testpins.bpe
' http://www.emesystems.com
' tests BASIC Stamp 2pe pins for functionality
' of input and output high and low
' and detects shorted pins
' RC circuit on each pin, 0.01uf & 100kohm
' parallel to Vss
' readings should be pin#, value =~650, value =1
wx VAR Word
wy VAR Word
ix VAR Nib
Allpins:
DEBUG CLS
MAINIO
DO
FOR ix=0 TO 15 ' test MAINIO pins
LOW ix
HIGH ix
RCTIME ix,1,wx ' wx=~650 means HIGH okay, input okay
HIGH ix
LOW ix
RCTIME ix,1,wy ' wx=1 means LOW okay
DEBUG "p",DEC ix,TAB,DEC wx ,REP 32\4,TAB,wy, REP 32\4, CR
NEXT
DEBUG HOME
LOOP
>Hi Tracy,
>
>It seems a good idea to me to check outputs AND inputs using a RCTIME setup.
>But how do you check the results?
>
>A debug statement, I would assume. Then you also check if the serial IO is
>working properly.
>
>Regards,
>
>Klaus
>
>
>
Original Message
>From: "Tracy Allen" <tracy@e...>
>To: <basicstamps@yahoogroups.com>
>Sent: Wednesday, July 21, 2004 1:00 AM
>Subject: [noparse][[/noparse]basicstamps] Re: (no subject) - toggling all outputs to test a
>Stamp
>
>
>> Sid,
>>
>> Start with
>>
>> dirs=$ffff ' to set all pins outputs
>> outs=0 ' that's what it will be anyway
>> DO
>> TOGGLE outs
>> PAUSE 200
>> LOOP
>>
>> I use a test board that has RC circuits tied to each pin. The RCTIME
>> command tests both the output and the input capabilities and also
>> tests for short circuits between pins.
>>
>> -- Tracy
>>
>>
>>
>> >--- In basicstamps@yahoogroups.com, Newzed@a... wrote:
>> >> I think this is right just want to check. I want to toggle all 16
>> >I/O ports
>> >> to check a BS2. Will this do it
>> >>
>> >> outs = 1
>> >>
>> >> do
>> >> toggle outs
>> >> pause 200
>> >> loop
>> >>
>> >> Sid
>> >>
>> >>
>> >> [noparse][[/noparse]Non-text portions of this message have been removed]
>> >
>> >maintenance post to put a searchable subject line on the post.
>> >
>> >Dave
>>
>>
>> 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 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
>
>
>
>