Cannot make FullDuplexSerial work with USB connection
cleo
Posts: 3
Hello,
I am a newbie and as a first step, I want to make propeller
communicate with my PC. I used FullDuplexSerial and created
really simple communication program below. (also attached)
It (should) starts FullDuplexSerial object with pin 30(TX), 31(RX),
outputs "Hello, world", and outputs every input charactor.
But in reality, it just outputs "Hello, world", and does not take any input.
I am using hyperterminal for input/output interface and prop and pc
is connected via USB cable.
I thought about the possibility of crooked RX pin, and replaced
the propeller, but the same situation.
Am i missing something?
con
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
TXPIN = 30
RXPIN = 31
CR = 13
LF = 10
obj
serialio: "FullDuplexSerial"
pub main | receivedbyte
serialio.start(RXPIN,TXPIN,%0000, 9600)
serialio.str(string("Hello, World"))
repeat
waitcnt(clkfreq + cnt)
receivedbyte := serialio.rxcheck
if(receivedbyte <> -1)
serialio.tx(receivedbyte)
serialio.tx(CR)
serialio.tx(LF)
I am a newbie and as a first step, I want to make propeller
communicate with my PC. I used FullDuplexSerial and created
really simple communication program below. (also attached)
It (should) starts FullDuplexSerial object with pin 30(TX), 31(RX),
outputs "Hello, world", and outputs every input charactor.
But in reality, it just outputs "Hello, world", and does not take any input.
I am using hyperterminal for input/output interface and prop and pc
is connected via USB cable.
I thought about the possibility of crooked RX pin, and replaced
the propeller, but the same situation.
Am i missing something?
con
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
TXPIN = 30
RXPIN = 31
CR = 13
LF = 10
obj
serialio: "FullDuplexSerial"
pub main | receivedbyte
serialio.start(RXPIN,TXPIN,%0000, 9600)
serialio.str(string("Hello, World"))
repeat
waitcnt(clkfreq + cnt)
receivedbyte := serialio.rxcheck
if(receivedbyte <> -1)
serialio.tx(receivedbyte)
serialio.tx(CR)
serialio.tx(LF)
Comments
Sorry to confuse you. I should have eliminated that part.
Okay, so, the program itself is fine...
I will check with my friend's computer tomorrow and see how it works...
In fact I use PropTerm as I use PC_Interface for all of my debugging and most user interfaces.
Never thought of using Hypertermina for months...
The download is near the end.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Not sure what you mean by "setting things up and physically manage the com port"
> Paul
thank you, it was indeed the settings. I specified no flow control in hyperterminal modem
configuration, and it worked just as I wanted. I did doubt my code itself, but forgot to
doubt my configuration.
> deSilva
thank you for information of Prop Terminal. we can do much more thing on this terminal.
I am very happy that I could get rid of my concern from last week [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.