Trouble using serial lcd, probably just due to my lack of experience.
P!-Ro
Posts: 1,189
I've been trying over and over again to get the Debug_Lcd object to work but I can't seem to get anywhere. Since I have no other source of output right now, I've been using leds to tell me where I'm having problems in the code. For some reason every time I try turning the display on, I don't have it come back again. Or, in other words, it just hits a dead end when I try turning·the lcd·on instead of it going back to the pub and turning on the second led. I've checked and re-checked on the variable inputs, but it just won't work. Any help would be appreciated as I wrap my head around the concept of doing everything manually instead of the quick n' easy serout command.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
Comments
P.S., congrats Mike on your recent achievement! past·and present
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
Post Edited (I LIKE PI) : 10/5/2008 7:24:18 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
Also note, I fried one of our LCDs by picking it up the other day. Must have been static discharge. They seem to be VERY easy to kill with ESD.
Perhaps I'll peel off a sneakpeek of that section and post it with some code.
Couple questions: Which Propeller setup are you using? PPDB, demoboard, PEkit, protoboard?
and I assume you are working with the newer 4 line unit?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with a Propeller Protoboard?
Check out: Introduction to the Proboard & Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
Let me know if it helps
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with a Propeller Protoboard?
Check out: Introduction to the Proboard & Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
=======================================
Con
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
Var
byte X
byte Y
byte Temp1
Obj
LCD : "Debug_Lcd"
Debug: "FullDuplexSerialPlus"
Mouse: "Mouse"
Pub Main | value
value := LCD.init(0, 9600, 4) ' Return value of init. -1 is "True"
waitcnt(5_000_000 + cnt) 'Wait for 1000 ms
LCD.cls
LCD.gotoxy(0,3)
LCD.Str(String ("LCD init: "))
If value
LCD.Str (String ("Successful"))
Else
LCD.Str (String ("Failed "))
LCD.dec(value)
LCD.backlight(True)
LCD.gotoxy(0,0)
LCD.Str(String ("X position: "))
LCD.gotoxy(0,1)
LCD.Str(String ("Y position: "))
to have a feedback of your program for debugging you could use the FullDuplexSerial-object
download the Propeller serial Terminal-Software "PST.EXE" here
www.parallax.com/Portals/0/Downloads/sw/propeller/PST.exe.zip
And here's is a little democode to show how FullDuplexSerial works on the serial connection
you are using to program the chip (PINs30,31)
This is not solving the LCD-issue but gives you supereasy feedback for debugging
@Parallax-Team:
This kind of debugging is SO EASY
as it needs NOTHING MORE than any kind of PropBoard
that some democode should be delivered inside the manual AND as SPIN-File
Library-demo-folder
best regards
Stefan
Post Edited (StefanL38) : 10/6/2008 1:38:53 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
One solution can be External Clock generator if Yours Crystal pin is bad.
Test with External frequency in XINPUT on XIN pin.
0 1 0 XINPUT XIN OSC OSCENA must be '1'.
Ps. It is mostly XOUT pin that fails.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
Post Edited (Sapieha) : 10/6/2008 4:32:28 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy