Author Topic: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd  (Read 3687 times)

0 Members and 1 Guest are viewing this topic.

Offline BANETopic starter

  • Supreme Robot
  • *****
  • Posts: 639
  • Helpful? 4
  • E=roboticsC^2
Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« on: July 05, 2008, 06:27:40 AM »
Hello, I just bought a 20x4 serial LCD from SparkFun and i can't find the display data ram addresses for it.  Does anyone know were to find something like this?

Bane

Offline BANETopic starter

  • Supreme Robot
  • *****
  • Posts: 639
  • Helpful? 4
  • E=roboticsC^2
Re: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« Reply #1 on: July 05, 2008, 06:31:37 AM »
something like this only for a 20 x 4
Code: [Select]
;
;DISPLAY DATA RAM ADDRESSES
;CHARACTER 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16
;       + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
;LINE 1 | 80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F
;LINE 2 | C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF
;

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
Re: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« Reply #2 on: July 05, 2008, 06:56:51 AM »
00, 80, 40, C0 for the standard ones.
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline BANETopic starter

  • Supreme Robot
  • *****
  • Posts: 639
  • Helpful? 4
  • E=roboticsC^2
Re: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« Reply #3 on: July 05, 2008, 07:18:48 AM »
Code: [Select]
;
;DISPLAY DATA RAM ADDRESSES
;CHARACTER 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
;       + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
;LINE 1 | 80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F 8G 8H 8I 8J
;LINE 2 | C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF CG CH CI CJ
;LINE 3 | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0G 0H 0I 0J
;LINE 4 | 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 4G 4H 4I 4J
;
Like is?  Or is the line order different?

Bane

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
Re: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« Reply #4 on: July 05, 2008, 07:22:26 AM »
i tend to write numerals with natural sorting. so, if a string of ten things come one after the other, i can refer to the second one with numeral two.
so, as I said above, 00, 80, 40, C0. 00 is the first line, 80 the second line, and so on :P
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline BANETopic starter

  • Supreme Robot
  • *****
  • Posts: 639
  • Helpful? 4
  • E=roboticsC^2
Re: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« Reply #5 on: July 05, 2008, 10:50:59 AM »
does is really matter how you write it?  does it depend on your LCD type?  Mine is a serial.

Bane

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
Re: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« Reply #6 on: July 05, 2008, 12:16:39 PM »
Well then, check its manual, because it might have moved around the addresses.
My above post:
line 1 = 00
line 2 = 80
line 3 = 40
line 4 = C0

yes, it matters how you write them.
00, 80, 40, C0 means exactly what I told you above. if i would have written them in a different order, the lines would be messed up. i thought you'd figure out that the numbers map to individual line addresses.
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline BANETopic starter

  • Supreme Robot
  • *****
  • Posts: 639
  • Helpful? 4
  • E=roboticsC^2
Re: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« Reply #7 on: July 05, 2008, 01:45:04 PM »
I don't see where it says the order, but i have been mentally absent lately :P
http://www.sparkfun.com/commerce/product_info.php?products_id=462

Bane

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
Re: Need DISPLAY DATA RAM ADDRESSES for 20x4 serial lcd
« Reply #8 on: July 05, 2008, 05:28:58 PM »
Since it uses another level of abstraction, you have to understand that first.
Look, I'm a nice guy, but you're a lazy person :P sparkfun has a lot of documention. go RTFM.
Check out my homepage for in depth tutorials on microcontrollers and electronics.

 


Get Your Ad Here