Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | How to use a 4x20 lcd.

There are 8 messages in this thread.

You are currently looking at messages 0 to 8.

How to use a 4x20 lcd. - sani_figs - 08:14 29-07-08

Hi,

I need to use an lcd display for my project and what we have here is a
4x20 lcd. However, I can't find any starters's guide for using such device.
Btw, I'm using a zilog mcu and I have enough I/O pins for all the pins of
the lcd. It's better if your reference or sample code is in zilog syntax.
Thanks!



Re: How to use a 4x20 lcd. - Meindert Sprang - 08:32 29-07-08

"sani_figs" <a...@yahoo.com> wrote in message
news:3...@giganews.com...
> Hi,
>
> I need to use an lcd display for my project and what we have here is a
> 4x20 lcd. However, I can't find any starters's guide for using such
device.

Try looking for a datasheet of the HD44780 LCD controller chip. This one or
one of the gazillion clones is used in almost every character LCD and they
all follow the same command syntax.

> Btw, I'm using a zilog mcu and I have enough I/O pins for all the pins of
> the lcd.

Make sure you create a cycle time of 1 us or slower on the pins. The HD44780
is a slow chip....

Meindert



Re: How to use a 4x20 lcd. - Rich Webb - 09:12 29-07-08

On Tue, 29 Jul 2008 07:14:41 -0500, "sani_figs" <a...@yahoo.com>
wrote:

>Hi,
>
>I need to use an lcd display for my project and what we have here is a
>4x20 lcd. However, I can't find any starters's guide for using such device.
>Btw, I'm using a zilog mcu and I have enough I/O pins for all the pins of
>the lcd. It's better if your reference or sample code is in zilog syntax.

The Optrex manual is a pretty good guide to the character LCD displays.
http://www.optrex.com/pdfs/Dmcman_full.pdf

The initialization routines are where many first-time users have
problems. The manual above has step-by-step directions for
initialization in 4-bit and 8-bit modes. Be sure to follow them,
including the required delays between steps.

Once it's initialized, you'll have the choice of using either the busy
flag or waiting a pre-set maximum period between characters. Note that
some clones may require different max delays and some instructions,
e.g., clear and home, may require more than a single character delay.

-- 
Rich Webb     Norfolk, VA

Re: How to use a 4x20 lcd. - sani_figs - 11:09 29-07-08

Hi,

Thanks! I think these info will suffice for now. :)

Re: How to use a 4x20 lcd. - Clint Sharp - 14:07 30-07-08

In message <3...@giganews.com>, sani_figs 
<a...@yahoo.com> writes
>Hi,
>
>I need to use an lcd display for my project and what we have here is a
>4x20 lcd. However, I can't find any starters's guide for using such 
>device.
>Btw, I'm using a zilog mcu and I have enough I/O pins for all the pins 
>of
>the lcd. It's better if your reference or sample code is in zilog 
>syntax.
>Thanks!
The daddy...

http://www.epemag.wimborne.co.uk/resources.htm

How to use Intelligent LCDs

Excellent starter guide.
-- 
Clint Sharp

Re: How to use a 4x20 lcd. - sani_figs - 06:29 04-08-08

Hi, the display is not consistent with every restart of my lcd display.
when trying to display a simple "Hello World!", the output on the lcd is
sometimes: "Hel o W rld!", "Hello W rlt!", or "H  lo Wo ld!".
Any insights on this matter? 

Thanks! 


Re: How to use a 4x20 lcd. - Rich Webb - 08:15 04-08-08

On Mon, 04 Aug 2008 05:29:35 -0500, "sani_figs" <a...@yahoo.com>
wrote:

>Hi, the display is not consistent with every restart of my lcd display.
>when trying to display a simple "Hello World!", the output on the lcd is
>sometimes: "Hel o W rld!", "Hello W rlt!", or "H  lo Wo ld!".
>Any insights on this matter? 

There are a few different ways to implement the interface to a character
LCD display correctly. However, the number of ways to do it incorrectly
is very large.

With no other information as to how you've implemented the interface
(BUSY flag or wait-per-character? busy-wait loops or timer interrupt?)
not to mention the rest of it (FIFO queue or a "direct from printf()"?)
I'll go with: timing.

-- 
Rich Webb     Norfolk, VA

Re: How to use a 4x20 lcd. - CBFalconer - 16:31 04-08-08

sani_figs wrote:
> 
> Hi, the display is not consistent with every restart of my lcd
> display. when trying to display a simple "Hello World!", the
> output on the lcd is sometimes: "Hel o W rld!", "Hello W rlt!",
> or "H  lo Wo ld!".  Any insights on this matter?

My guess is that you are not checking some device (the display?) is
free before sending to it.

-- 
 [mail]: Chuck F (cbfalconer at maineline dot net) 
 [page]: <http://cbfalconer.home.att.net>;
            Try the download section.