Using Diplay LCD 40x4

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using Diplay LCD 40x4

5,295 Views
MC9S08GT
Contributor I
Hi,
 
As I make to send messages for Display LCD 40x4, some example will be had could send me.
 
I am using microcontroller MC9S08GB60CFU.
 
Thanks for the help...
Labels (1)
0 Kudos
6 Replies

862 Views
MC9S08GT
Contributor I
Hi,
 
Help...
 
I´m using MC9S08GB60 demo board to connect to display.
I was wondering if I found some routines in C language to use in Codewarrior to test.
 
 
Thanks for the help...
0 Kudos

862 Views
glork
Contributor I
Hello MC9S08GT.
I have some experience interfacing microcomputers to LCD displays, but before I can offer any help or examples I need to know more detail about how the display is connected to your micro. For example:
1. 4bit or 8bit data path?
2. Connected to which port?
3. Which control lines are used & which port they are connected to?
4. etc.

If it is just a 4-line character-type display it shouldn't be too difficult to get it going.
ron
0 Kudos

862 Views
MC9S08GT
Contributor I

Hello Glork,

Thanks for your response.

1. 8bit data path.

2 and 3. Connected to Which port "portaswn7.jpg" 
and Electric project of the linking "esquemaeltricodisplayjj4.jpg"

 

Thanks for the help.

(Alban removed links generating advertisement & attached pix)

Message Edited by Alban on 2006-08-10 01:11 PM

0 Kudos

862 Views
glork
Contributor I
Hello MC9S08GT.
Looks like you're trying to run the display from a PC printer port. This is fine but I've found that the Windows environment makes it very difficult to maintain control of the printer port.

Basically you have 3 control lines: RS, R/W & E. This is how you use them:
WRITE
1. Set RS to the desired state (selects between commands or data)
2. Set R/W to the desired state to allow writes to the LCD
3. Write your data byte to the printer port, then configure the printer port to drive the lines.
4. Make E active, then delay, then make E inactive
5. Configure the printer port data lines as inputs

READ
The steps are the same but make sure the printer port data pins are configured as inputs before you start the read. In fact the default (rest) state of the printer port data pins should be as inputs.

These sequences are the same regardless of whether you are reading/writing control registers or display memory.
ron
0 Kudos

862 Views
MC9S08GT
Contributor I
Hi Glork, thanks for your response!
 
In fact I I will not use the display in printer port of PC. I´m using MC9S08GB60 demo board to connect to display.
I was wondering if I found some routines in C language to use in Codewarrior to test.
 
best regards
Ulisses
0 Kudos

862 Views
glork
Contributor I
Hello MC9S08.
The general sequence I gave will apply also to your GB60 board.
As for C routines...I'll leave that for others; I only do assembly.
ron
0 Kudos