Nokia 3310 LCD Driver Library

 

Nokida 3310 LCD Driver using a PIC

 

This library includes functions for controlling the Nokia 3310 LCD (PCD8544 controller) and also a 5x7 font.
Currently the table used only works on 16F, but should not take much to modify it to work with 18F PICs.
It only uses 5 IO pins, so a smaller PIC could be used. The font however takes up a lot of ROM (the example program's code size is 1305). If the text print functions (and the font) is not used it is of course much smaller, but also much less useful ;-).


I'll add more resources to this page later (such as a circuit diagram on how to connect the controller to the PIC).

 

Downloads

 

  • example_lcd.jal - An example program, the output of which you can see in the photo below
  • nokia_lcd_p.jal - Include this first, and modify it with the pins you are using to connect
  • nokia_lcd.jal - The main jal library
  • font_5x7.jal - The 5x7 font, include after nokia_lcd.jal since it uses functions in there. UPDATE 15/02/2008: This file has been missing for several years. Thanks to Dave Lag from the jallist for recovering it from his archives.

 

Some pictures

 

Sorry for the quality of these photos. I'm blaming my digital camera, but it is most likely due to a bad photographer.

Click on the picture for a larger version.

Showing the LCD connected to an 16F877 PIC. On the right is my DIY Wisp628. The interface board between the LCD and the PIC consists of two caps (required for the LCD controller), a few 1K resistors in series with the datalines, and a LM317 to regulate the 5V down to 3V which the LCD requires.

 

A closeup of the font used. Both normal and 'inverted' printing functions are available. The clips and tape holds all the pieces of the LCD together. In my haste to see how the connections are made I broke all the plastic holding pins.

 

Links to other Nokia LCD sites

 

 

 

JAL WebRing