Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | AVRclub | [AVR club] LCD


Advertise Here

Atmel AVR Microcontroller discussion group.

[AVR club] LCD - Omid Station - Nov 14 8:49:12 2007

Dear All
=20=20=20
I have a problem about characteristic LCD.
=20=20=20
When I use and simulate my circuit in Proteus program, only odd (=
or even) characters shown correctly and other characters shown wrong. Also =
first character in each word always doesn=E2=80=99t show.
For example if I want to show =E2=80=9Cdocument=E2=80=9D LCD shows =E2=80=
=9C ofufeft=E2=80=9D in Proteus simulation.
My LCD is 20x4 and My AVR IC is Atmega 32 , version of my Code Vision is=
1.23.8c Standard and version of my Proteus is 6.9 (full).
=20=20=20
I use these functions:
=20=20=20
#include
=20=20=20
#asm
.equ __lcd_port=3D0x18
#endasm
=20=20=20
#include
=20=20=20
void main(void)
{
=20=20=20
lcd_init(20);
lcd_clear();
while (1)
{=20=20
lcd_gotoxy(0,0);
lcd_putsf("document");
=20=20=20=20=20=20=20=20
};
}
=20=20=20
I changed LCD port in AVR IC but problem still exists.
How I can correct my program? Is it required other adjustment? Is it poss=
ible that Proteus is responsible my problem?
=20=20=20
Regards
=20=20=20

=20

=20


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )


Re: [AVR club] LCD - Zack Widup - Nov 14 10:16:44 2007


Hi Omid,

What LCD controller chip does your LCD use? The lcd.h files I've seen are=20
for the HD44780. It REALLY helps to have the documentation for the LCD=20
controller chip you have, though, as I've found that some of the other=20
devices are "nearly compatible" with the HD44780 but not quite.

I have the data sheet for the HD44780 controller on my website:

http://www.qsl.net/w9sz/files/PDFs/HD44780.pdf

Zack
On Wed, 14 Nov 2007, Omid Station wrote:

> Dear All
>
> I have a problem about characteristic LCD.
>
> When I use and simulate my circuit in Proteus program, only odd =
(or even) characters shown correctly and other characters shown wrong. Also=
first character in each word always doesn=E2=80=99t show.
> For example if I want to show =E2=80=9Cdocument=E2=80=9D LCD shows =E2=
=80=9C ofufeft=E2=80=9D in Proteus simulation.
> My LCD is 20x4 and My AVR IC is Atmega 32 , version of my Code Vision i=
s 1.23.8c Standard and version of my Proteus is 6.9 (full).
>
> I use these functions:
>
> #include #asm
> .equ __lcd_port=3D0x18
> #endasm
>
> #include void main(void)
> {
>
> lcd_init(20);
> lcd_clear();
> while (1)
> {
> lcd_gotoxy(0,0);
> lcd_putsf("document");
>
> };
> }
>
> I changed LCD port in AVR IC but problem still exists.
> How I can correct my program? Is it required other adjustment? Is it pos=
sible that Proteus is responsible my problem?
>
> Regards

[Non-text portions of this message have been removed]

=20

=20
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: LCD - bert_hoogenboom - Nov 15 0:57:58 2007

it looks like you have a parity problem
i do not know the promeus software or the code-vision compiler
--- In a...@yahoogroups.com, Omid Station wrote:
>
> Dear All
>=20
> I have a problem about characteristic LCD.
>=20
> When I use and simulate my circuit in Proteus program,=20
only odd (or even) characters shown correctly and other characters=20
shown wrong. Also first character in each word always doesn=E2=80=99t show.
> For example if I want to show =E2=80=9Cdocument=E2=80=9D LCD shows =E2=
=80=9C=20
ofufeft=E2=80=9D in Proteus simulation.
> My LCD is 20x4 and My AVR IC is Atmega 32 , version of my Code=20
Vision is 1.23.8c Standard and version of my Proteus is 6.9 (full).
>=20
> I use these functions:
>=20
> #include
>=20
> #asm
> .equ __lcd_port=3D0x18
> #endasm
>=20
> #include
>=20
> void main(void)
> {
>=20
> lcd_init(20);
> lcd_clear();
> while (1)
> {
> lcd_gotoxy(0,0);
> lcd_putsf("document");
>=20
> };
> }
>=20
> I changed LCD port in AVR IC but problem still exists.
> How I can correct my program? Is it required other adjustment? Is=20
it possible that Proteus is responsible my problem?
>=20
> Regards
>

=20

=20


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )