LCD Nokia 3310 is widely known to be monochrome graphic LCD targeted for embedded devices. It is a 84×48 pixels LCD that can be interfaced trough SPI protocol. This is the detail of the LCD’s pins configuration.
Taken from : http://www.myplace.nu/mp3/images/nokia_lcd_small.jpg
The driver is targeted for avr-gcc or WinAVR.
In case you need to recompile to suit your need, please download the following tools :
This design is targeted to be clocked at 4 Mhz, you may change it by modifying makefile or change the configuration of clock in AVR Studio. You can use avrprog or Pony Prog to program your fuse bits (CKSEL) or you may recompile the code to suit your clock speed.
New version :
0.2.6 rev 1 (new)
A silly mistake I made in header file. Please update your version 0.2.6 to 0.2.6 rev 1.
* + Header file (pcd8544.h) PIN definition fixed
0.2.6 (dont use this)
* + Optimization using Memset and Memcpy
* + Bug fix and sample program reviewed
* + Commented <stdio.h>
Many thanks for Jakub Lasinski for code review and suggestions.
Changelog from version 0.2.4
* Version 0.2.5 ( December 25, 2008 ) x-mas version
* + Boundary check is added ( reported by starlino on Dec 20, 2008 )
* + Return value is added, it will definitely useful for error checking
0.2.4 rev 1
Changelog from version 0.2.4 :
* Version 0.2.4 revision 1 ( December 25, 2008 )
* + Some of boundary checking added (reported by starlino) and this is actually as a part of version
* 0.2.5 but I think i need to add it to this version also.
Note : If you find out my code working in your design please let me know about it.
Generating hex from BMP using BMP2HEX by Jakub Lasinski :
You will need .NET framework 2.0 to use this application.
As a request from AGA33, I have posted the picture of the project, schematic as well as the project source code of my thesis (yes, my thesis using old version driver).
The project was clocked using internal oscillator at 4 Mhz, see AVR datasheet regarding to internal clock setting.
The corresponded source code of my thesis.
[Updated May 3, 2009]
Many thanks to : http://www.myplace.nu/mp3/images/nokia_lcd_small.jpg for awesome PCD8544 picture. Thanks for visitor who told me about this picture credit. Actually I don’t remember actually where I picked the picture since it has been more than a year ago and I used Google image search engine. Actually I don’t remember removing the label myplace.nu from the image but it is fine for me. If you have any problem with my post or project please kindly tell me, I can’t do anything right without your feedback. Thanks.
Links which came to my post:
Other links on 3310 LCD (PCD 8544) driver