Experimenting with LCD modules and PIC microcontrollers

0.00 avg. rating (0% score) - 0 votes

I recently got a PIC16LF84A (free sample from Microchip) and a few LCD modules at a cheap price from eBay. With some interests and time at hand, I have successfully made these LCD modules work and display some test patterns, just for fun :)

16×2 Character LCD

This LCD is using the standard HD44780 controller so sample source code can be found everywhere on the Internet. I got it to work within 15 minutes:

20×4 Character LCD

This LCD is also using the standard HD44780 controller, but there is more display area, 20 columns and 4 lines. I also got it to work:

Download the source code to test the 16×2 and 20×4 character LCD here.

122×32 Monochrome Graphics LCD

This LCD is using the JHD12232D controller. I purchased it from sure-electronics, an eBay reseller:

Despite being a graphical LCD, its uses are pretty limited due to the small vertical resolution. The 32-pixel vertical resolution is divided into 2 blocks of 16 pixels each, having a space in between. This make it almost impractical to display any bitmaps or graphics on this LCD. The only graphical use for this LCD would be to display Chinese text, as demonstrated in the above picture.

Using the datasheet and sample source code available from the seller website, I am able to make this LCD display some test patterns:

Download the datasheet and source code here

0.00 avg. rating (0% score) - 0 votes


A tough developer who likes to work on just about anything, from software development to electronics, and share his knowledge with the rest of the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>