Having trouble with pins changing state...
Archiver
Posts: 46,084
I am using a BS2-IC and am trying to get more than one pin to go
high, but the instruction to go high coming from the serial port.
Example: The user clicks a number and that pin goes high. Then the
user clicks another number and that pin needs to go high, but the
first one has to stay high also. The problem I am having is that
when I send the command via the serial port, the first pin will go
high, but when I send the command to send the next pin high, that
pin does indeed go high, but the first pin now goes low.
Any ideas?
Here's the command I use each time.
Serin 16,16780[noparse][[/noparse]WAIT(255),PinNumber,PinState]
Thanks....
Jim
high, but the instruction to go high coming from the serial port.
Example: The user clicks a number and that pin goes high. Then the
user clicks another number and that pin needs to go high, but the
first one has to stay high also. The problem I am having is that
when I send the command via the serial port, the first pin will go
high, but when I send the command to send the next pin high, that
pin does indeed go high, but the first pin now goes low.
Any ideas?
Here's the command I use each time.
Serin 16,16780[noparse][[/noparse]WAIT(255),PinNumber,PinState]
Thanks....
Jim
Comments
Is your variable PinState a byte? Are you setting the pins high one bit at
a time or by writing a byte? Have you defined the pins as outputs? Just a
few thoughts.
Mike
At 08:49 PM 10/30/2001 +0000, you wrote:
>I am using a BS2-IC and am trying to get more than one pin to go
>high, but the instruction to go high coming from the serial port.
>Example: The user clicks a number and that pin goes high. Then the
>user clicks another number and that pin needs to go high, but the
>first one has to stay high also. The problem I am having is that
>when I send the command via the serial port, the first pin will go
>high, but when I send the command to send the next pin high, that
>pin does indeed go high, but the first pin now goes low.
>
>Any ideas?
>
>Here's the command I use each time.
>
> Serin 16,16780[noparse][[/noparse]WAIT(255),PinNumber,PinState]
>
>
>Thanks....
>
>Jim
>
>
>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.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
_________________________________
Mike Walsh
walsh@i...
[noparse][[/noparse]Non-text portions of this message have been removed]