Page 1 of 1

How to hard wire the LCD...i have just finished my code...

Posted: Tue Nov 25, 2008 2:46 pm
by zenzehar
i have finished my code and tried to have a simulation on protues 7.4 sp3 ... i have a 16*2 LCD standard LCD ... how i can i connect it to the microcontroller ... i have connected the LCD to port B at ATMEGA8585 and i have connected it as follows:
PortB.0-->Data1
PortB.1-->Data2
PortB.2-->Data3
PortB.3-->Data4
PortB.4-->RS
PortB.5-->Enaple

MY LCD is: Hitachi ...
and i want to ask about where to connect the RW pin ... and if it's necessary to connect Data0 or not .... and if i can use any standard LCD or it must be a specific LCD of flowcode to use with ... thx and best regards

Re: How to hard wire the LCD...i have just finished my code...

Posted: Tue Nov 25, 2008 2:49 pm
by Benj
Hello

You probably have to wire up your LCD like this.

PortB.0-->Data4
PortB.1-->Data5
PortB.2-->Data6
PortB.3-->Data7
PortB.4-->RS
PortB.5-->Enable

RW pin tied to Ground.

Hope this helps.

Re: How to hard wire the LCD...i have just finished my code...

Posted: Tue Nov 25, 2008 4:24 pm
by zenzehar
thx master .. every thing works perfectly