![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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.
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |