lcd 16x2, help with second line

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Hello everyone, I have a small question, and I want to know how I can write on the second line of the lcd in C, and without using the libraries for the lcd

Last Edited: Thu. Nov 2, 2017 - 02:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

math81 wrote:
without using the libraries for the lcd

Why?

 

If you really want to do it from scratch, then this is the procedure: http://www.8052.com/forum/read/1...

 

These LCDs have been around for 30 years now - are you really saying that you can find no description or example of doing this ?!

 

surprise

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

An LCD has an address for each character position on the screen and an address pointer that is incremented each time you write a character, so it points to the next character position. Normally there are two functions for LCD's, one to write the character to the screen and one to send commands (like cursor position), clear screen, etc. 

The command function will write to the address pointer to set it to the address of the first character position on the 2nd line of the display.

 

Why not use the library?  If you just want to do it yourself, begin by studying how the library does it and compare that to LCD datasheet!

Then knock your self out and write your own functions

Jim