EmbeddedRelated.com
Forums

4bit LCD C code

Started by cbhargava March 5, 2011
The 4 bit code is a mess at this time :-( I had to make a lots of changes with partial luck.

Initially I tried connecting the popular Wintek LCD and later realized that it can't do 4 bit mode.

http://www.flickr.com/photos/cbhargava/5514163012/

I had a Seiko c50001 on hand and quickly replaced Wintek with it and partial success with it.

http://www.flickr.com/photos/cbhargava/5516336431/

It seems like the MSP430 voltage levels are not working with LCD voltage levels. Therefore I get partial strings displayed on the LCD.

In the code I'm trying to write 'hello' on the LCD. After comparing characters appearing on the screen vs the CHAR ROM of the controller it seems that the lower nibble doesn't get to the LCD completely. Upper nibble is fine.

At this point I would conclude that the voltage levels of MSP430 are not fully compatible with the 5V LCD (and vice versa).

Any other experiences?

Regards,
Chetan Bhargava
--- In m..., "cbhargava" wrote:
>
> I have a few 3M breadboards and a couple from Jameco.
> Jameco is 20 minus away from where I work :-)
>
> --- In m..., Dan Bloomquist wrote:
> >
> > cbhargava wrote:
> > > Launchpad with i2c port expander PCF8574
> > >
> > > http://www.flickr.com/photos/cbhargava/5512862128/
> > >
> >
> > If you want to experiment I highly recommend you get prototype boards
> > from Jemco, they are the best quality in my experience. And a handful of
> > telephone cable. That wire they sell for those boards is worthless. I
> > have some ~100 pair chunks of cable I pull wire from. It just makes life
> > fun.
> >
> >
> >
> > Best, Dan.
>

Beginning Microcontrollers with the MSP430