Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 7th October 2007, 04:49 PM   (permalink)
Default Pic interfacing with Nokia 3310 lcd

Greetings all!

Just new to the forums and they look like a good collection of friendly people.

I have, perhaps a simple question but it's one i can't find answers to and i'm not that far into my electronics course yet.

Ok, i have an old nokia 3310 lcd that i wish to use with a pic to show, well, text etc. However, all the guides for interfacing with lcds are more for parallel interfacing.

The 3310 has 8 pins and takes serial data. the pins are:

1.vdd
2.SCK - serial clock
3.SDI - serial data input
4.D/C - data command input
5.SCE - chip select
6.GND - ground
7.VOUT - VLCD
8.RES - reset

My question is a simple wiring one. I'm not sure which pins from the pic (pic16F627 by the way) connect to the lcd. I'm very new to the lcd thing but i'm guessing, power and ground are obviously connected and maybe the serial data input and serial clock for write only?

Has anyone done this or can help me out?

Cheers.
__________________
Hardcore Dance Music
Myrmidon is offline   Reply With Quote
Old 7th October 2007, 05:43 PM   (permalink)
Default

There are a few things that you should be aware of:

1. The 3310 is 3.3V rated so it will be simplest to operate the PIC at 3.3V too. Otherwise, you have to use resistors to construct voltage dividers for the interface signals.

2. The LCD uses the serial SPI protocol for data transfer and hardware SPI is not available on 16F62x PICs. The one that has SPI is 16F88 but a regular one only operates down to 4.0V. Therefore you will need to use the 16LF88 in this case. You need to understand how SPI operates in order to control the LCD. You might even be able to "bit-bang" SPI using one of the 16F627 port pins.

3. You will be responsible for controlling the ON/OFF of every single pixel(84x84 for 3310) of the LCD. So if you want to display a character such as "A" on the LCD, then you have to look up a character map table of how the character is formed in pixels and output the pixel pattern to the LCD. Usually, the font is in a 5x7 matrix so one needs to send 5 bytes to the LCD to display a single character. So each character or symbol would take up at least 5 bytes and a complete ASCII character map will take up a lot of Flash memory.

4. Go to this webpage to obtain more information about the 3310 LCD including datasheet on the LCD controller chip. Nokia 3310 LCD
__________________
L.Chung
eblc1388 is offline   Reply With Quote
Old 27th October 2007, 08:48 AM   (permalink)
Default

There are a couple of sites with good info for this sort of thing. I have some code ( .ASM ) and PCB's that I made up because I use the things so often. Take a look at my web page for an idea.
Gordz is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
pic and graphic lcd IZACH Micro Controllers 15 28th October 2007 11:16 AM
PIC to LCD wiring problem ? pasanlaksiri Micro Controllers 28 4th October 2007 10:29 AM
Four PIC with One LCD.. meera83 Micro Controllers 13 20th September 2007 06:40 AM
Nokia 7110 LCD + questions regarding code and behaviour of LCD. MrNobody Micro Controllers 2 19th September 2007 07:50 AM
Interfacing with Touchscreen LCD baberjaved Micro Controllers 7 12th September 2007 07:09 PM



All times are GMT. The time now is 02:48 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.