Dedicated serial connection
Archiver
Posts: 46,084
To any one who can answer,
I am working on a project that utilizes a RTC module. I would like
to have the RTC automatically updated by the BS2pe. To do this the
stamp will have to get the time and date from a source outside the
module. I would like to use the dedicated serial connection to
accomplish this. Has anyone ever attempted this or any other serial
communication between the Basic stamp and the PC, other than for
uploading a program? I realize that there will need to be some sort
of mechanism on the PC side to obtain the time and date and to
provide it to the Basic stamp serial port. Any help on this is
appreciated. If you have any questions for clarification, please
contact me. Thank you.
I am working on a project that utilizes a RTC module. I would like
to have the RTC automatically updated by the BS2pe. To do this the
stamp will have to get the time and date from a source outside the
module. I would like to use the dedicated serial connection to
accomplish this. Has anyone ever attempted this or any other serial
communication between the Basic stamp and the PC, other than for
uploading a program? I realize that there will need to be some sort
of mechanism on the PC side to obtain the time and date and to
provide it to the Basic stamp serial port. Any help on this is
appreciated. If you have any questions for clarification, please
contact me. Thank you.
Comments
(normally wired to the DB-9 connector on the BOE)
as a serial port in your own programs. Use:
SEROUT 16, <baud>, [noparse][[/noparse]"<message>",13]
SERIN 16, <baud>, [noparse][[/noparse]<MyVariable>]
Note the 'baud' rates above MUST be 'inverted',
since the pin1 and 2 have a pseudo Max232 driver
in them. Note the '16' above is not REALLY
a 'pin 16', instead it indicates to the SER...
commands to use the built-in serial port.
Note also the PC provides the +-12 volts for
this pseudo Max232 -- so it must be connected,
and anything it sends will be echo'ed back
to the PC.
Note also using the PC, the DTR signal should
be left 'inactive'. The BS2 uses DTR on pin
3 as a 'Reset' when the DTR is 'active'.
On the BOE this is not a problem, as this
board has a couple of capacitors to decouple
the DC component.
--- In basicstamps@yahoogroups.com, "wschini03" <wschini03@y...>
wrote:
> To any one who can answer,
> I am working on a project that utilizes a RTC module. I would like
> to have the RTC automatically updated by the BS2pe. To do this the
> stamp will have to get the time and date from a source outside the
> module. I would like to use the dedicated serial connection to
> accomplish this. Has anyone ever attempted this or any other serial
> communication between the Basic stamp and the PC, other than for
> uploading a program? I realize that there will need to be some sort
> of mechanism on the PC side to obtain the time and date and to
> provide it to the Basic stamp serial port. Any help on this is
> appreciated. If you have any questions for clarification, please
> contact me. Thank you.