Author Topic: Generic 16x2 LCD unit  (Read 901 times)

0 Members and 1 Guest are viewing this topic.

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 548
  • Country: gb
Generic 16x2 LCD unit
« on: December 18, 2021, 08:47:14 pm »
I wonder if there is a good "user manual" for the standard LCD panel (16x2)?

I bought one from Mouser but its datasheet just gives pinout and simple info. I want to know all about the codes that you send to it to render 4-bit mode and to control the various functions.

Any help please?
You can release yourself but the only way to go is down!
RJD
 

Offline retiredfeline

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: au
Re: Generic 16x2 LCD unit
« Reply #1 on: December 18, 2021, 08:54:04 pm »
Almost certainly they use the Hitachi HD44780 LCD controller or variant. You can easily find datasheets if you search on that.
 
The following users thanked this post: PerranOak

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5878
  • Country: de
Re: Generic 16x2 LCD unit
« Reply #2 on: December 18, 2021, 08:56:35 pm »
^This.

 
The following users thanked this post: PerranOak

Offline pqass

  • Frequent Contributor
  • **
  • Posts: 726
  • Country: ca
Re: Generic 16x2 LCD unit
« Reply #3 on: December 18, 2021, 09:12:13 pm »
Here: https://www.sparkfun.com/datasheets/LCD/HD44780.pdf

Also, if you prefer an explanation and demonstration watch:
 
The following users thanked this post: PerranOak

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5029
  • Country: ro
  • .
Re: Generic 16x2 LCD unit
« Reply #4 on: December 18, 2021, 09:46:17 pm »
Here's some more stuff that you may find useful ... see attachments below

A lot of these 2-4 line displays use clones of the hd44780 controller, which follow the same pinout, same commands, some have extra commands.

Attached you'll find the SPLC780D and the ST7077U which are basically using the same commands, same pinout etc ...

Also, New Haven Display (company that makes LCD displays) has a page that contains links to controller datasheets: https://www.newhavendisplay.com/datasheets.html

You may find the controller on your display listed there.
 
The following users thanked this post: PerranOak

Offline Jan Audio

  • Frequent Contributor
  • **
  • Posts: 820
  • Country: nl
Re: Generic 16x2 LCD unit
« Reply #5 on: December 19, 2021, 03:24:32 pm »
First implement the 8-bit code.
Later if you are confident the 4-bit code is easy.
You need to save the second nibble and process that as first.
You have to reset your LCD 3 times if i remember correct, so on restart it will be good.
Dont use read mode ever, and use long delays first until your code is working to be sure.
 
The following users thanked this post: PerranOak


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf