LCDInfo.com
http://forum.lcdinfo.com/

My Nokia 160x128 and 320x240 LCD screen library
http://forum.lcdinfo.com/viewtopic.php?f=6&t=11162
Page 1 of 1

Author:  dabyd64 [ Wed Dec 12, 2012 3:50 ]
Post subject:  My Nokia 160x128 and 320x240 LCD screen library

Hi, for those who doesn't know, 90% of the last years colour nokia phones use the same command set.
For both 320x240 and 160x128 LCDs, althought they are not the same controller, they are command compatible in most times.
I am talking about 262k or 16.7M colour phones, forget those 4096 colours old phones!

I have testesd myself on nokia N82, N81, 2630, 3110 LCDs and all worked!
After lots work and testing, I left it and forgot for more than a year.
Now I saw it again, and decided to share with everybody.
Here are some links. I uploaded to my dropbox. If it it breaks you can download from the others.
Datasheet of both controllers included!
http://dl.dropbox.com/u/23958662/PIC32_ ... PA8201.zip
http://www.4shared.com/zip/z3IqbEKX/PIC ... A8201.html
http://www.multiupload.nl/F99OOY9MUY

It has the following:
- 9 different size fonts;
- line, square, circle drawing;
- Initialization;
- string and char print functions, supports transparent background font colour!(reads LCD ram first, need some ram);

Remember that most Nokia LCDs need 1.8V for VDDio, 2,7V for Vdd.
That means that you must interface the lcd with 1.8V signal level!
You can use a level converter, like the 74LVCH245A, as I used on my board.
A pic of my dirty setup: (This was the first board, a lot of soldering and test have been done on that poor thing :P ).
Actually its dumping two SPI flash and showing its contents on the display (I used this to flash and repair a corrupt computer BIOS).
Image

To guide yourself and make it working for any nokia phone (320x240 or 160x128), do the following:
First check your phone, download its schematics.
A nice place, free and lots of info, is http://www.shrak-mobile.com/eng/
On the schematic, search the LCD connector.
If it has D0,D1,D2,D3,D4,D5,D6,D7,WR,RD,CS,RES signals, then it has very high chance to be compatible.
Also if it has CS,SDA,SCL,RES, it will be the same, but in a 9-bit SPI interface (1st bit is data/command,left 8bits are data).
For example:
Image

Check the MC2PA8201 controller datasheet, its for 320x240 screens:
http://spritesmods.com/mcportal/MC2PA8201.pdf

Or the SPFD54124B controller for 160x128 screens:
http://www.mdfly.com/newmdfly/products/ ... 54124B.pdf

Regards!

Page 1 of 1 All times are UTC + 2 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/