Monday, September 17, 2012

Nokia LCD PIC driver revamp

It's been quite some time since I've published my last post on interfacing a Nokia 84x48 monochromatic LCD to a PIC microcontroller but I recently got the itch to port the driver code from its original assembler to the language I use most now, C. Once again I opted to write the SPI interface in software since it gives greater flexibility although at the cost of speed. I've upgraded from my paltry pic16f84a to the pic16f887 which offers several improvements including more memory, gpio, and an internal oscillator as well as many useful peripherals.

I've also picked up many useful programming tricks up my sleeve since then. This time I've made the driver faster as well as added direct support for drawing full 84x48 black and white images that can be drawn in Microsoft paint. If anyone wants I can write up a tutorial on drawing an image in paint and exporting it to another program to generate the hex array that my PIC uses to draw. But for now enjoy the pretty pictures.

This software will make it much easier to develop user interfaces and graphics for future devices. I realize that the display I am using is a bit outdated, but the practice is useful towards someday interfacing to much higher resolution color displays. Anyway, I think I've rambled on for long enough. Here are the source and image files. Feel free to ask for any help should you wish to integrate this display into your own project. Stay tuned because I have many cool projects and videos planned.

Files up on MediaFire

1 comment:

  1. why the hell the file in mediafire? mediafire just beats around the bush but does not allow the file to be downloaded. Are you part of them ?