CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

LCD 4x16 driver

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
umka



Joined: 28 Aug 2007
Posts: 99
Location: New Zealand

View user's profile Send private message

LCD 4x16 driver
PostPosted: Mon Jul 28, 2008 5:09 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jul 28, 2008 12:23 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jul 28, 2008 2:04 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jul 28, 2008 2:21 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Jul 30, 2008 1:31 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Jul 30, 2008 3:24 pm     Reply with quote

In a situation like this, you can search for a similar product and read the
documentation for it. Search Google for this:
Quote:
16x4 LCD KS0070B

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group