Serial Comms Problems FullDuplexSerial
JoaoLeitao
Posts: 2
Hello everyone,
my company bought a demo board last week to try the Parallax platform into future projects,
and i have been working some examples in it.
I have been a problem with serial objects wether its Simple_serial or FullDuplexSerial.
First to give the general idea:
Hardware: Propeller Proto board with onboard soldered FTDI MM232R that we use for programming and Serial comms, the FTDI only has TX,RX and RTS connected (rts used for Reset, configured in propeller software.)
Problem: everything with serial output i make works in PropTerminal but doesnt in Hyperterminal, or Realterm. Also it seems propeller resets after reopening PropTerminal after trying other terminal software.(might be RTS doing it???)
Anyone had something similar or knows the cause?
Thank you in advance.
By the way:
Basic example source:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
term : "FullDuplexSerial"
VAR
long i
PUB Main
term.start(31,30,0,9600)
repeat
term.tx(i)
i++
waitcnt(clkfreq/4 + cnt)
my company bought a demo board last week to try the Parallax platform into future projects,
and i have been working some examples in it.
I have been a problem with serial objects wether its Simple_serial or FullDuplexSerial.
First to give the general idea:
Hardware: Propeller Proto board with onboard soldered FTDI MM232R that we use for programming and Serial comms, the FTDI only has TX,RX and RTS connected (rts used for Reset, configured in propeller software.)
Problem: everything with serial output i make works in PropTerminal but doesnt in Hyperterminal, or Realterm. Also it seems propeller resets after reopening PropTerminal after trying other terminal software.(might be RTS doing it???)
Anyone had something similar or knows the cause?
Thank you in advance.
By the way:
Basic example source:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
term : "FullDuplexSerial"
VAR
long i
PUB Main
term.start(31,30,0,9600)
repeat
term.tx(i)
i++
waitcnt(clkfreq/4 + cnt)
Comments
It was the RTS line, i added a jumper to disconnect RTS line during normal procedure, it works flawlessly now.
Also it didnt matter wether it was loaded into RAM or EEPROM, just didnt work with RTS on reset, didnt came alive after, dont know it the line kept chip into permanent reset...
Anyway, done now.
Thanks for your views guys, hope to use this in future!
I tried a few tests with the Prop Terminal, and it appears that it resets the Prop when you first start it up, unless the Prop Tool was connected to it previously. After that you can enable/disable the Prop terminal and it won't disable the Prop. I can also exit the Prop terminal and restart it and it doesn't reset the Prop.
When I switch to the HyperTerminal after using the Prop Terminal, it doesn't reset the Prop. As I mentioned before, when I disconnect from the HyperTerminal it will reset the Prop. Also, when I connect with the Prop Terminal immediately after using the HyperTerminal it will reset the Prop again.