View previous topic :: View next topic |
Author |
Message |
umka
Joined: 28 Aug 2007 Posts: 99 Location: New Zealand
|
LCD 4x16 driver |
Posted: Mon Jul 28, 2008 5:09 am |
|
|
is there a Flex lcd 4x 16 driver? i have tryed modifying the 4x20 but it doesnt seem to work when modified |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jul 28, 2008 12:23 pm |
|
|
1. Post the manufacturer and part number of your LCD.
2. Post a detailed list of your connections to the LCD pins. |
|
|
umka
Joined: 28 Aug 2007 Posts: 99 Location: New Zealand
|
|
Posted: Mon Jul 28, 2008 2:04 pm |
|
|
The LCD is made by falcon and is model number 4DMC-164-2. On the LCD datasheet it says it has the Controller LSI Ks0070B or Equivelant.
I am wanting to run it in 4bit mode on a PIC18F4550, pins defined as below
#define LCD_DB4 PIN_B4
#define LCD_DB5 PIN_B5
#define LCD_DB6 PIN_B6
#define LCD_DB7 PIN_B7
#define LCD_RS PIN_B1
#define LCD_RW PIN_B2
#define LCD_E PIN_B3 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jul 28, 2008 2:21 pm |
|
|
Post a link to the manufacturer's web page and to the data sheet for
that LCD. |
|
|
umka
Joined: 28 Aug 2007 Posts: 99 Location: New Zealand
|
|
Posted: Wed Jul 30, 2008 1:31 pm |
|
|
I have the data sheet but unfortunately cant find it on the internet and the place i bought it from has closed down so have no idea how to get it to you. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Jul 30, 2008 3:24 pm |
|
|
In a situation like this, you can search for a similar product and read the
documentation for it. Search Google for this:
Then find this LCD module:
http://www.msc-ge.com/download/displays/dabla_allg/msc-c164dyly-2n.pdf
Here's another one:
http://www.soselectronic.hu/a_info/resource/d/dem/dem16481syh-ly.pdf
Both of those data sheets show the same row addresses in their
address map diagrams, which are 00h, 40h, 10h, 50h. You need
to comment out the line addresses given in the 20x4 Flex driver and
substitute these statements:
Code: |
#define LCD_LINE_1_ADDRESS 0x00
#define LCD_LINE_2_ADDRESS 0x40
#define LCD_LINE_3_ADDRESS 0x10
#define LCD_LINE_4_ADDRESS 0x50
|
I didn't look at the init code yet because I assume this is probably the
main reason that it doesn't work. |
|
|
|