PROBLEM SOLVED
Woohoo, i can now control the display via 28x2, or via direct interface with visual basic applications which i create
Here is a link to the display i have: Serial Display with backpack
What i am trying to do is print: 1234567890 abcdefg
across the display, but i am running into a few problems, or maybe just one…
I know the display uses a baud rate of 115200bps
but i cannot seem to send information correctly even with the display connected directly to the serial port, it just sprays out gobbledegook symbals and numbers,
Here is what i get: [Display is connected directly to my terminal thru serial port]
////////////////////////////////////////////////////////////////////////////////////////////////////WHILE USING LOGICATOR/PROGRAMING EDITOR
hsersetup B9600_8, %111
main:
hserout 0,(0x7C,0x07,0x22) //Set the display to baud rate 9600?
pause 2000
hserout 0,(0x7C,"1234567890 abcdefg") // Print text/numbers on the screen
pause 2000
goto main
Same thing happens....
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
As you can see this is just a simple, change baud rate and print some textr on the screen, but it'll just spray out random symbols and numbers.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
The displays setup variables regarding baud rates.
Change Baud Rate:
Sending “<control>g (0x07)” followed by an ASCII
character from “1” to “6” changes the baud rate. The
default baud rate is 115,200bps,
but the backpack can be set to a variety of communication speeds:
“1” = 4800bps
“2” = 9600bps
“3” = 19,200bps
“4” = 38,400bps
“5” = 57,600bps
“6” = 115,200bps
As an example, to set the baud rate to 19,200bps,
send 0x7C 0x07 0x33, or from a keyboard send “|”,
<control>g and “3”. The baud rate setting is retained
during power cycling, so if it powers down at
19,200bps, it will next power up with that setting.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I have tryed using a terminal directly attached to the display using baud rate 115200bps and i type hello world and still gibberish comes out on the screen.
The display is brand new btw.
Please help asmuch as you can but please do not direct me to the manual above, i have allready studied it, tho you can have a look thru it and note down what i have missed.
Thanks TN.