View Single Post
  #5   Spotlight this post!  
Unread 25-01-2003, 06:12
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Quote:
Originally posted by Jferrante
is there a way i can add a second serin that just checks the sensors and ignores the operator interface? Would it cause a problem if the program had two serins and only one serout?
No, that would not cause any problem, as such.

You can use SERIN and SEROUT at any time.

Heh. On a rather unrelated note, I finally actually figured out how you'd go about using the programming port to send information to and from a custom circuit board.

I was wondering how SERIN or SEROUT had access to the SIN and SOUT pins on the BS2sx in the RC, and finally found it.

While looking at the syntax and description of the SERIN command in the Basic Stamp Manual V2.0 (www.parallax.com), I came across this piece of goodness:

Quote:
Stolen from the Basic Stamp Manual V2.0
SERIN Rpin {\Fpin}, Baudmode, {Plabel,} {Timeout, Tlabel,} [ InputData ]
Function
Receive asynchronous serial data (e.g., RS-232 data).
Rpin is a variable/constant/expression (0 - 16) that specifies the I/O
pin through which the serial data will be received. This pin will be
set to input mode. On the BS2, BS2e, BS2sx and BS2p, if Rpin is set to
16, the BASIC Stamp uses the dedicated serial-input pin (SIN,
physical pin 2), which is normally used by the Stamp Editor during
the download process.
Likewise, the SEROUT command has the same kind of functionality, but for physical pin 0, which is the SOUT pin on the Stamp. You can use the SIN and SOUT pins on the BS2sx, itself, as the serial input and output pins.

I'm sorry for annoying anyone who already knew this. I just thought I'd post it...
:/
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos