LCD program

Started by elham_raha November 27, 2005
Dear friends,
I'm a new member & hope to be a good member.
I need a sample program for LCD using atmega32.anybody can help me?
thank u



On Sun, 27 Nov 2005, elham_raha wrote:

> Dear friends,
> I'm a new member & hope to be a good member.
> I need a sample program for LCD using atmega32.anybody can help me?
> thank u
>

What kind of LCD? With or without a driver chip such as the HD44780? The
data sheet for the HD44780 can be found in many places and they are fairly
easy to program.

Zack


If you are working with GCC, then get Peter Fleury's lcd lib. It comes with a test program to get you started.

http://homepage.sunrise.ch/mysunrise/peterfleury/avr-software.html

On Sun, 27 Nov 2005 21:46:33 -0000
"elham_raha" <elham_raha@elha...> wrote:

> Dear friends,
> I'm a new member & hope to be a good member.
> I need a sample program for LCD using atmega32.anybody can help me?
> thank u >
>
> Yahoo! Groups Links >




----- Original Message -----
From: Zack Widup
To: avrclub@avrc...
Sent: Sunday, November 27, 2005 11:39 PM
Subject: Re: [AVR club] LCD program On Sun, 27 Nov 2005, elham_raha wrote:

> Dear friends,
> I'm a new member & hope to be a good member.
> I need a sample program for LCD using atmega32.anybody can help me?
> thank u
>

What kind of LCD? With or without a driver chip such as the HD44780? The
data sheet for the HD44780 can be found in many places and they are fairly
easy to program.

Zack

hi example for my LCD (ATmega8535) in bascom software $regfile = "m8535.dat"

Declare Function Getkey() As Byte

Config Lcd = 16 * 1a
Config Lcdpin = Pin , Db4 = Porta.3 , Db5 = Porta.2 , Db6 = Porta.1 , Db7 = Porta.0 , E = Portc.7 , Rs = Portc.6
Config Lcdbus = 4

Config Porta.7 = Input
Config Porta.6 = Input
Config Porta.5 = Input regards Andrzej