Com 3 port issues

Started by Philippe DAROUX July 27, 2004
Anybody ever managed to open two Com3 ports on a BX-24
?

When I program it, it compiles and everything but the
program seems to lock as soon as I open the second
Com3 port if I do not close the first one first.

Can the chip handle two Com3 ports at the same time ?

Philippe
Vous manquez despace pour stocker vos mails ? Le nouveau Yahoo! Messenger est arriv! Douvrez toutes les nouveaut pour dialoguer instantanent avec vos amis. A tharger gratuitement sur http://fr.messenger.yahoo.com




--- In , Philippe DAROUX <pdaroux@y...> wrote:
> Anybody ever managed to open two Com3 ports on a BX-24?

Com3 is a software UART (as opposed Com1 which is a hardware UART)
and the BX-24 is only capable of supporting one such channel. The
compiler doesn't know anything about this limitation and therefore
doesn't warn you that it won't work to open two at once. (Similarly,
it doesn't warn you when your code uses the same variable for two
different purposes.)

There are some messages in the archives about people using multiple
Com3 ports by opening one, using it, closing it and then opening
another, etc.

Another option is to add an external hardware UART. The MAX3110E is
a dual SPI UART which some have used. There are some articles here
and there describing how to use it with the BasicStamp. Using it
with the BX-24 would be similar or you might be able to use the BX-
24's SPI interface to connect it.

Here is a link to a Stamp article by Al Williams:
http://www.wd5gnr.com/suart.htm



Don,

thank you for your answer.

Philippe

--- Don Kinzer <> a rit:
---------------------------------
--- In , Philippe DAROUX
<pdaroux@y...> wrote:
> Anybody ever managed to open two Com3 ports on a
BX-24?

Com3 is a software UART (as opposed Com1 which is a
hardware UART)
and the BX-24 is only capable of supporting one such
channel. The
compiler doesn't know anything about this limitation
and therefore
doesn't warn you that it won't work to open two at
once. (Similarly,
it doesn't warn you when your code uses the same
variable for two
different purposes.)

There are some messages in the archives about people
using multiple
Com3 ports by opening one, using it, closing it and
then opening
another, etc.

Another option is to add an external hardware UART.
The MAX3110E is
a dual SPI UART which some have used. There are some
articles here
and there describing how to use it with the
BasicStamp. Using it
with the BX-24 would be similar or you might be able
to use the BX-
24's SPI interface to connect it.

Here is a link to a Stamp article by Al Williams:
http://www.wd5gnr.com/suart.htm
---------------------------------
Yahoo! Groups Links

To

Vous manquez despace pour stocker vos mails ? Le nouveau Yahoo! Messenger est arriv! Douvrez toutes les nouveaut pour dialoguer instantanent avec vos amis. A tharger gratuitement sur http://fr.messenger.yahoo.com



I have a project that I use the DEBUG.PRINT command to allow me to use two ser. ports. I use COM1 and COM3 at the same time.

Here is some sample code... Public LCDIN(1 to 2) As Byte
Public LCDOUT(1 to 29) As Byte

Public Com1In(1 to 2) as Byte
Public Com1Out(1 to 29) as Byte

In my Sub Main ... 'Setup Com 3 for LCD @ 9600 Baud
OpenQueue LCDIN, 1
OpenQueue LCDOUT, 29
DefineCom3 0, LCDPIN, bx1000_1000
OpenCom 3, 9600, LCDIN, LCDOUT

'Setup Com 1 for BOB-3 @ 153600 Baud
OpenQueue Com1In, 1
OpenQueue Com1Out, 29
OpenCom 1, 153600, Com1In, Com1OUT
>
> From: "Don Kinzer" <>
> Date: 2004/07/27 Tue AM 10:52:34 EDT
> To:
> Subject: [BasicX] Re: Com 3 port issues
>
> --- In , Philippe DAROUX <pdaroux@y...> wrote:
> > Anybody ever managed to open two Com3 ports on a BX-24?
>
> Com3 is a software UART (as opposed Com1 which is a hardware UART)
> and the BX-24 is only capable of supporting one such channel. The
> compiler doesn't know anything about this limitation and therefore
> doesn't warn you that it won't work to open two at once. (Similarly,
> it doesn't warn you when your code uses the same variable for two
> different purposes.)
>
> There are some messages in the archives about people using multiple
> Com3 ports by opening one, using it, closing it and then opening
> another, etc.
>
> Another option is to add an external hardware UART. The MAX3110E is
> a dual SPI UART which some have used. There are some articles here
> and there describing how to use it with the BasicStamp. Using it
> with the BX-24 would be similar or you might be able to use the BX-
> 24's SPI interface to connect it.
>
> Here is a link to a Stamp article by Al Williams:
> http://www.wd5gnr.com/suart.htm >
> Yahoo! Groups Links >