Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: BANE 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
-
something like this only for a 20 x 4
;
;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
;
-
00, 80, 40, C0 for the standard ones.
-
;
;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
-
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
-
does is really matter how you write it? does it depend on your LCD type? Mine is a serial.
Bane
-
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.
-
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 (http://www.sparkfun.com/commerce/product_info.php?products_id=462)
Bane
-
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.