LCD display
haim
Posts: 25
Hi all,
I am new to the propeller. What connector or pin should I connect a serial LCD display to the demon board? Thanks for the help.
haim
·
I am new to the propeller. What connector or pin should I connect a serial LCD display to the demon board? Thanks for the help.
haim
·
Comments
It's hard to say. Demon Boards are very particular about witch pin you use. [noparse]:)[/noparse]
But seriously, pick two that are not 28,29,30 and 31, as well as not among the pins connected to the keyboard, mouse, and monitor. (I think that's all the demo board uses...)
fred
Graham
haim
Hai
Do the DIP switch settings on the LCD match the baudrate you are using in the prop object?
I am using the same LCD myself and got crazy symbols when they didn't match [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Alec
My our page
CON
_clkmode = xtal1 + pll16x 'Set clock to 80MHz
_xinfreq = 5_000_000 'Crystal is 5MHz.
BaudClock = 80_000_000/9600 'Baud rate is 9600.
Pin = 7 'TxOUT is pint A30.
CR = 13 'Carriage return character.
PUB start
dira[noparse][[/noparse]Pin] := 1 'Set TxOUT to output.
outa[noparse][[/noparse]Pin] := 1 'Default level is Mark (high).
strg(string("Testing... ", cr))
waitcnt(cnt + clkfreq)
PUB strg(str_addr)
repeat strsize(str_addr) 'Repeat for each character in the string:
tx(byte[noparse][[/noparse]str_addr++]) ' Send the character.
PUB tx(txbyte) | time
txbyte := (txbyte | $300) << 2 'Preconfigure start and stop bits into txbyte.
time := cnt 'Initialize time from counter.
repeat 20 'Sending 11 bits:
waitcnt(time += BaudClock) ' Wait for next bit time.
outa[noparse][[/noparse]Pin] := (txbyte >>= 1) & 1 ' Shift and write the bit.
I just used the Debug_LCD object [noparse]:)[/noparse]
EDIT: I take all of the back sorry [noparse]:)[/noparse] Baud = bit/s
Sorry about that!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Alec
My our page
Post Edited (Basil) : 9/27/2007 2:33:57 AM GMT
Thanks, Basil. I will try.
heim
Hai