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 - write into the LCD 16x2 with ldmicro

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

write into the LCD 16x2 with ldmicro (by Gilmar)
Please someone HAS tutorial How To Write Inside LCD 16x2 with ldmicro
Sat Jul 7 2012, 14:05:52
(no subject) (by David R)
what type of LCD ?
Regards
David
Sat Jul 7 2012, 17:37:38
LCD (by Gilmar)
Sun Jul 8 2012, 07:16:37
(no subject) (by David R)
have a look at this
http://www.cq.cx/ladder-forum.pl?action=viewthread&parent=963

through I would recommended a serial lcd from Crystalfontz
http://www.crystalfontz.com/product/CFA632YFHKS

That is vary easy to use by just connecting to uart out.
David.
Mon Jul 9 2012, 03:31:01
thanks (by Gilmar)
Thanks David R
Mon Jul 9 2012, 23:10:52
lcd and uart (by ale)
can you "or someone" post an easy example thanks
Mon Jul 23 2012, 08:05:48
(no subject) (by Boris)
Check this
LDmicro Forum - 16x2 Serial LCD Line & Positions
Mon Jul 23 2012, 16:38:49
lcd serial (by microcircuito)
hello!
i am portuguese and i have one lcd serial with pcf8574, and I can not start the lcd and send a message to him.
I've seen some examples and none works.
can someone help me?
thank you all.
Sun Jun 15 2014, 19:15:41
(no subject) (by MGP)
LDmicro does not support I2C only RS232.
Mon Jun 16 2014, 02:56:05
problem display lcd i2C second ROW (by Hamid)
Hello,
I have a problem with LCD display i2c, I can't display a message on the second ROW.
How to configurate ldmicro to have the good resualt ?
Can you help me please !
Wed Jul 31 2019, 12:36:38
(no subject) (by José)
Sorry MGP, but ldmicro supports I2C in C mode !


LCD displays with PCF8574 now perfectly work with ldmicro 5.3.1.0 under PICs, AVRs and ARMs ; install this version, with LIBRARIES_FOR your target, download the required compiler and read HowTo txt file + Lcd16x2 txt file in this folder to write ladder and generate hex file with flashMCU...


To write at a given position on LCD16x2 via I2C, you must use a special command byte 0xab where a= 2*(line-1)+8 and b= column-1
coded in hexa ; for example 0xAC moves cursor to line 2, col 13
of the display because 2*(2-1)+8= 10= A in hexa and 13-1= 12= C


José
Thu Aug 1 2019, 04:40:27
(no subject) (by Duy Phuong)
Hi José
Any different about library for LCD 20x4 for PIC? And how i get library for them? Thanks!
Sun Nov 17 2019, 22:39:46
(no subject) (by José)
Hi

This is an on thread that you woke up !

You can use a 20x4 lcd instead of a 16x2 with ldmicro libraries,
it should work as well.

Libraries for PICs are in the subfolder LIBRARIES_FOR\PIC16 of build5310.zip file:

https://github.com/LDmicro/LDmicro/releases

Read LcdI2c txt file in the same directory to use it.

Best regards
JG
Mon Nov 18 2019, 01:43:05
(no subject) (by Duy Phuong)
Thanks José
I will work on it to test
Mon Nov 18 2019, 09:11:44
(no subject) (by Duy Phuong)
Hi José, Alex,
I tested in 16x2 LCD, it worked ok but when change to 20x4 LCD, i have problem with command cursor,i changed bit as below but cursor only show at line 1 and 2:
10000101=84
10100101=A4
11000101=C4
11100101=E4
What am I wrong?
Can you give me advise for ex as: show some text (lookup table) at line 1-show some text at line 2....line 4? thank you so much!!!
Tue Nov 26 2019, 10:12:38, download attachment i2c_lcd.ld
(no subject) (by José)

Hi Duy Phong


I have found the cause of this pb, in LcdI2cLib.h and c :
The code of MoveCursor function is like that:

void LCD_I2C_MoveCursor(int y, int x)
{
int adresse;

if((y < 1) || (y > 2) || (x < 1) || (x > 16)) {
return;
}

// Ligne 1
if(y == 1) {adresse = LCD_LIGNE_1 + (x - 1);}
// Ligne 2
else {adresse = LCD_LIGNE_2 + (x - 1);}

LCD_I2C_SendCommand(LCD_CMD_SET_DDRAM | adresse);
}

It limits lines to 2x16 !!!

It must be modified as in attached files ; replace old files by these in LIBRARIES_FOR\PIC16 folder and in the HTC\lib subfolder of your ld project.

Recompile, test and lest us know if it works ?
It should but I don't have a 20x4 display to achive tests.

Best regards
José

PS:
I'll modify files in next release of ldmicro
Tue Nov 26 2019, 13:25:20, download attachment LcdI2cLib.zip
(no subject) (by Nicolau)
Isso foi de grande proveito!!! uma maravilha...
Thu Apr 9 2020, 12:23:39
Driving two 20 chars LCD HD44780 compatible with 16F877 (by HGR)
This is bassed in the original work of Jonathan "LDmicroLCD16X2.ld".
Timers T2 and T5 are for delaying the data sending to LCDs.
Depending on program lenght may be deleted.
The used memory is 35% program and 16% ram, so there is enough
room for the rest of the program.
Tested on ISIS and hardware.
Sat Apr 11 2020, 21:23:06, download attachment LCD-44780.RAR
(no subject) (by Alex)
it is possible to use parallel lcd with ldmicro then
Sat Apr 11 2020, 23:03:40
(no subject) (by Amarildo)
tenho um IHM Nextion 7" alguem sabe dizer se tem como usar com arduino e LdMicro?
Sun Apr 12 2020, 19:42:10
LDmicroLCD16X2.ld by Jonathan (by Mahesh)
Where can i download a copy of LDmicroLCD16X2.ld made by Jonathan
I plan to try to use it for 16F877A with a generic 16x2 LCD

Mahesh
[email protected]
Mon Mar 25 2024, 12:45:28
(no subject) (by MGP)
It's not a .LD program but a hex file for an 16F628a

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

Look also in the Wiki pages: https://github.com/LDmicro/LDmicro/wiki
Tue Mar 26 2024, 03:03:49
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):