Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Serial lcd Problem

(you are viewing a thread; or go back to list of threads)

Serial lcd Problem (by Alex)
Hello, i have made a program where i print a LDR value with ADC instruction and UART i have used serial with this as always:

https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller

the thing is that i have always used this order like Ihorīs example:

1)delete default message from lcd
2)turn on backlight
3)set position

BUT... i always had to make like a "fix trick" in program to delete repeated values or somaestrange character printed the first time pic is powered up, it can be solved adding space bar to delete those repeated values in most of th cases, here is a video example wha i am talking about;

https://www.youtube.com/watch?v=XvTTU-5JsT8

why is it, will it be ever necessary to add a fix trick, maybe delete twice o add space bar, can it worked just only with MATRIX commands? or is it dute to serial pic is 4MHZ internal?
Sun Apr 5 2020, 22:49:12
(no subject) (by MGP)
How does it work when using a cycletime of 10mS?
Mon Apr 6 2020, 03:03:39
(no subject) (by Alex)
it happens the same
Mon Apr 6 2020, 11:37:56, download attachment serial_lcd_10ms.png
(no subject) (by MGP)
I tried this and it seems that \xFE\x58 is only "CLS" and you have to add a "home" \xFE\x48, then it works.
Mon Apr 6 2020, 12:05:14
por Alex) (by Paulino)
Hi Alex, I'm attaching codes from the screen + LDMicro with the Bit, ETC, I only have it in Spanish, and wor 2003


Hola Alex te adjunto códigos de la pantalla + LDMicro con los Bit, ETC, solo lo tengo en castellano, y wor 2003
Tue Apr 7 2020, 10:38:02, download attachment Binarioparalcd.rar
(no subject) (by Alex)
thanks for your reply MGP, i have tested it, it works ok when i print column 01 row 01, then i tested column 0A row 01 and column 0A row 02 and a letter "H" appears, but this is better than having some strange values i gues, do i have to use x58 again to clear that or do i have to add x48 with position command? any way it happens the same adding with position command which is called in the print loop
Tue Apr 7 2020, 20:37:18, download attachment command_x48.jpg
(no subject) (by Alex)
thanks Paulino, descargue tu archivo hace tiempo atras
Tue Apr 7 2020, 20:37:57
(no subject) (by MGP)
I think that LDmicro is sending the char. too fast.
Some controls take some time.

I can't try it now but try this.

{xFE\x58}----OSF----{\xFE\x42}----OSF----{\xFE\x48} --OSF
Wed Apr 8 2020, 03:34:11
(no subject) (by MGP)
Duh...You have made a mistake!


The "backlight ON" instruction is \ xFE \ x42 \ x00 with hex00 behind it!

You can send \ xFE \ x58 \ xFE \ x42 \ x00

It works perfectly without the "Home" instruction.
Wed Apr 8 2020, 11:24:46
(no subject) (by Alex)
you are right MGP, it works ok :), i didnīt need to make a fix or add a clear command again, i tested it in some different rows and columns and it just works very well, thanks for your help :)
Wed Apr 8 2020, 15:19:10, download attachment lcd ok ldmicro.jpg
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):