PDA

View Full Version : Hardware Question



manwolf
- 14th August 2008, 23:09
I have 16x4 LCD I am playing with here.
First two lines are fine, however the next two begin half way across the screen. I think I know the answer, but what the heck.

Does this mean I have my starting addresses wrong for lines 3 and 4?
These are el cheapo LCD and I am still running down the datasheet.

Darrel Taylor
- 14th August 2008, 23:28
Is it Half-way across the screen, or 4 spaces over?

For a 4x16 the adresses are ...
Line1 $80
Line2 $C0
Line3 $90
Line4 $D0

For a 4x20 they would be ...
Line1 $80
Line2 $C0
Line3 $94
Line4 $D4
<br>

manwolf
- 15th August 2008, 00:08
Located the datasheet it appears my 4X16 are really 4X20.
They have a HD44780 controller and the addresses are indeed
$80
$C0
$94
$D4

Thanks Darrel for confirming.
I was using the EasyPic5 to test them because they have the same pinout as their LCD.
I used MikroB to compile so I used their LCD commands and got the strange output. I wasn't sure if it was me or them. Can't plug a 4X20 into something that expects 4X16!

Hmm what a deal ordered 4X16 and got 4X20 instead for the same price, saved $6 :)