FullDuplex Issues
kkumar5
Posts: 2
hello,
I am trying to display text from my PC, via a propeller RPM board to an LCD screen
PC ---serial port
max3232
propeller rpm----LCD
I have even tried this since the board has level sensors on it, but these are on different boards so nothing is fried
PC --- serial port --- propeller -- LCD
I am using the code found here to interface with the board : http://obex.parallax.com/objects/54/
Right now nothing i type into realterm, or hyperterminal and nothing shows up on my screen....Please help
This is my code:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
NewLine = 13
ClearScreen = 0
rxpin = 30
txpin = 31
mode = 2
baudrate = 9600
OBJ
VideoDisplay: "TV_Terminal"
XB : "FullDuplexSerial"
'
PUB Start
'
DisplayTextOnMonitor
'
PRI DisplayTextOnMonitor | data
VideoDisplay.start(12) 'Initializes the VideoDisplay object
SetScreenWhiteOnDarkBlue 'Calls a procedure that sets the foreground
' color to white and the background color
XB.start(rxpin, txpin, mode, baudrate)
data := XB.rx
VideoDisplay.out(data)
PRI SetScreenWhiteOnDarkBlue 'Sets the foreground color to white and the
VideoDisplay.out(3) ' background color to dark blue on the monitor.
VideoDisplay.out(5)
I am trying to display text from my PC, via a propeller RPM board to an LCD screen
PC ---serial port
max3232
propeller rpm----LCD
I have even tried this since the board has level sensors on it, but these are on different boards so nothing is fried
PC --- serial port --- propeller -- LCD
I am using the code found here to interface with the board : http://obex.parallax.com/objects/54/
Right now nothing i type into realterm, or hyperterminal and nothing shows up on my screen....Please help
This is my code:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
NewLine = 13
ClearScreen = 0
rxpin = 30
txpin = 31
mode = 2
baudrate = 9600
OBJ
VideoDisplay: "TV_Terminal"
XB : "FullDuplexSerial"
'
PUB Start
'
DisplayTextOnMonitor
'
PRI DisplayTextOnMonitor | data
VideoDisplay.start(12) 'Initializes the VideoDisplay object
SetScreenWhiteOnDarkBlue 'Calls a procedure that sets the foreground
' color to white and the background color
XB.start(rxpin, txpin, mode, baudrate)
data := XB.rx
VideoDisplay.out(data)
PRI SetScreenWhiteOnDarkBlue 'Sets the foreground color to white and the
VideoDisplay.out(3) ' background color to dark blue on the monitor.
VideoDisplay.out(5)
Comments
Right tool for the job.
Post Edited (Mike G) : 4/3/2010 12:52:03 AM GMT
You might want to read the Propeller manual.
i had a floating ground issue which was not letting the propeller decode the data right....it took me 5 hours to find it so i paid for my mistake in full
thansk for the help guys
Is not it reduces the Baudrate of transmission?
Should be replaced by:
by:
Why? In four years of using FDS, I've never come across the need for anything but the default. Can you provide examples of common devices whose only communication is asynchronous serial that is uncommon?
ps: And you're always free to modify to suit. That's the nice thing about the Propeller hardware: it's all software. You get to choose.