BS2 general questions
Archiver
Posts: 46,084
hi, i've never used a BS2 before...
i need it to process information from another microprocessor. how can i get
that information (sent over a serial link) into the RAM so it can be processed?
Can i even use the serial bits for that purpose? or would i have to use the I/O
pins (which I don't think I can because they're already used)?
i need it to process information from another microprocessor. how can i get
that information (sent over a serial link) into the RAM so it can be processed?
Can i even use the serial bits for that purpose? or would i have to use the I/O
pins (which I don't think I can because they're already used)?
Comments
wrote:
> hi, i've never used a BS2 before...
>
> i need it to process information from another microprocessor. how
can i get that information (sent over a serial link) into the RAM so
it can be processed? Can i even use the serial bits for that
purpose? or would i have to use the I/O pins (which I don't think I
can because they're already used)?
Well, the short answer is you can use the stamp's programming port
(Rx/Tx) to read information from a second microprocessor.
However, it depends on several issues: is the data from the micro
fixed length or variable length, how much data do you have per
message, is it unidirectional or bidirectional, what about speed?
The stamp's programming port can be used with asynchronous serial
comm only, but it may be preferable to do synchronous serial comm
in your case (using two IO pins, one for data, one for clock).
To find a solution you need to be more specific about your actual
hardware and software requirements.
regards
adrian
serial data ports. You don't have to use the programming port for the
serial I/O other than when programming the stamp. For an example, check out
my web site which shows using P2 as a serial input that accepts serial data
from a pc or pocket pc. The stamp then controls mechanical devices.
Jim
http://www.geocities.com/jimforkin2003/
Original Message
From: ckkim_1999 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=m8TvFOBzyryMe97mCTrIuq_tew1nmfAD0GIAy99QvFWiX4zD_UfnuWXu4SH82d2gb1IHEc_LPfydGODm4g]ckkim_1999@y...[/url
Sent: Wednesday, April 23, 2003 2:08 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] BS2 general questions
hi, i've never used a BS2 before...
i need it to process information from another microprocessor. how can i get
that information (sent over a serial link) into the RAM so it can be
processed? Can i even use the serial bits for that purpose? or would i
have to use the I/O pins (which I don't think I can because they're already
used)?
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/
(like max232) if you want to 'talk' out
a BS2 pin.
Note the BS2 will work as a 232 receiver
if you merely put a 20 Kohm
resistor between the pin and the 232 port.
Its internal protection diode will clip the
negative going part of the signal to
the BS2.
--- In basicstamps@yahoogroups.com, "Jim Forkin" <jjf@p...> wrote:
> Don't forget that you can use any of the pins as I/O and pick one
or more as
> serial data ports. You don't have to use the programming port for
the
> serial I/O other than when programming the stamp. For an example,
check out
> my web site which shows using P2 as a serial input that accepts
serial data
> from a pc or pocket pc. The stamp then controls mechanical devices.
>
> Jim
>
> http://www.geocities.com/jimforkin2003/
>
>
Original Message
> From: ckkim_1999 [noparse][[/noparse]mailto:ckkim_1999@y...]
> Sent: Wednesday, April 23, 2003 2:08 AM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] BS2 general questions
>
>
> hi, i've never used a BS2 before...
>
> i need it to process information from another microprocessor. how
can i get
> that information (sent over a serial link) into the RAM so it can be
> processed? Can i even use the serial bits for that purpose? or
would i
> have to use the I/O pins (which I don't think I can because they're
already
> used)?
>
>
> 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/