THERE ALWAYS MULTIPLE WAYS OF DOING ANYTHING. There is nothing wrong with brewing an alternative, I will study your code and learn something from it, therefore I am grateful for your post. Thank You, JSOriginally Posted by websmith
THERE ALWAYS MULTIPLE WAYS OF DOING ANYTHING. There is nothing wrong with brewing an alternative, I will study your code and learn something from it, therefore I am grateful for your post. Thank You, JSOriginally Posted by websmith
hey joe! almost started singing that hendrix song. lol. Did you ever finish polishing off the bells and whistles? i'm a newbie and already tired of all the display wires, which keep getting pulled out of the breadboard! weeeeeeee
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Nice to find some code already made for serial LCD, I just burned the backpack on my cool Serial LCD
no prob, I had 4 LCDs waiting for me to drive them with a16F628
I just tried the code with INstant interupt, which took me an hour to setup the whole thing to compile(not bad actually), but now I see only stranges characters appearing on the LCD.
like I send "b" char, and the dipslay will do '
do I need to create a map of matching characters, or is there a tweak to get the correct display?
in attached picture, I've sent AAAAAAAAAAAAaaaaaaaaaa using the serial communicator from Mecanique,
it displayed ___________________000000000000000 on the LCD?
it's driven by a 16F628a, running at 20mhz
Display is 4x20 from Orient Display, saying it's requiring a S6A0069 and is compatible with HD44780 4/8bit.
http://character-lcd-lcds.shopeio.co...haracter%20Lcd
I've blanked all define to run from default except for
DEFINE LCD_LINES 4
because I ain't know how to tweaks all the parameters.
Started to play with other defines but not luck yet.
maybe the answer is in there?
You have to send the data true, if you send it inverted for some reason then invert it again with a transistor to get true. If you change the defines for the LCD this code will work with the PC boards sold by wulfden too.
here is a snippet to give you an idea of how to format your code
serout PortB.4,T9600,[254,128,"9600 baud line 1 T~"] '128 so as not to add space
serout PortB.4,T9600,[254,192,"9600 baud line 2~"]
pause 100
Last edited by Archangel; - 13th October 2008 at 09:17.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
well, for some esoteric reasons the thing started to work by itself after a few restart... this I hate
I noticed one time i've got one capacitor disconnected on the Xtal... and it seems the PIC woulndt bother?? replugged it live and it kept working.
since I was sending data from a PC, I assume it was regular RS232.
Tried to get data from my PIC heartbeat system(which is using N9600) and as you said this format is not ok as is, text was garbaged. I'll need a max232 one day to invert signal.
In the little time I had to play with the thing, I wondered how I could send data to drive other functions, else than display text?
Can I do custom characters?
clear screen? etc
Another weird thing is that the LCD believe it's second line is the 3rd, when I send a long text. It start filling 1st, then 3rd, then 2nd, and finally 4th one?
anyways I was just sooooo happy to see some text scrolling
BUT, this morning it doesn't wan't to behave again, showing garbage text with the same steup! arg :/
I suspect power problem from my regulator, although it's rated for 1amp.
it's running way too hot when I plug the backlight of this 4lines monster. I guess this may cause some power problems.
Actually, this is what fried my other LCD! PLugged in too many things, the regulator busted and started shooting 10V or so...smoke show B]
for now I just keep doing short tests.
thanks for the infos!
hummm
some more testing led me to find that disconnecting the usual ground/Power capacitor can help the whole thing to work?!
Also switched to a new regulator but this haven't changed anything.
I couln't get back to have correct display yet. only garbage and ghosts...
I ran a quick test with regular LCDOUT prg and this do work ok. Even the Lines were accesibles in correct order.
I suspect USART sync problems, which I couldn't resolve in other projects :/
How come it is supposed to be the performant solution and 10times more buggy than the software Serin??
And now this thing wants to play PacMan with me!!
All the ghost appeared by themself!
![]()
Ok this thing is written to display with the same commands as used with LCDOUT, so line 1 is 2, line 2 is $C0 or 192, line 3 is $94 or 148, line 4 is $D4 or 212. The LCD we all use having 4 lines are really 2 lines cut in half and displayed as 4 with line 3 being the second half of line 1 and line 4 being the second half of line 2. Put a .01 µF cap on the lcd power terminals. PC COM Port outputs serial data iinverted and must be flipped for use by MAX232 or even a lousey old transistor. Have you tried sending data from another PIC? Just to be sure which post in this thread are you using the code from ? should be post 16.
Oh it likes to boot up with the serial in pin in the HI state and herserin likes to Idle High as well. I have hooked this up to my computer with a max232 and sent large text files and not overrun the buffer, I say this because it did not go to buffer overrun and always ended with the ending text in the file, it went by WAY too fast to read. I think the little Ghosts are 60 hz due to open input on the PIC.
Last edited by Archangel; - 14th October 2008 at 08:32.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks