Jump to content
RobG

Nokia 5110 display

Recommended Posts

Unfortunately, I am still using MSGEQ chip. My first attempt at doing this in software on G series has failed, but once I get my newest booster ready, I will revisit (booster will have F51x1 on it.)

Share this post


Link to post
Share on other sites

I read the datasheet of 5110:

Immediately following power-on, the contents of all internal

registers and of the RAM are undefined. A RES pulse

must be applied. Attention should be paid to the

possibility that the device may be damaged if not properly

reset.

 

at power-on,you set RES a low leve not a low pusle .I want to know is it safe?

Share this post


Link to post
Share on other sites

This works great for my 5110

 

void LcdInit(void)
{
 P2OUT |= PIN_VCC;         //power to LCD
 P2OUT |= PIN_RESET;       //set RESET high
 P2OUT &= ~PIN_RESET;      //set RESET low
 delay(35);
 P2OUT |= PIN_RESET;       //set RESET high
 P2OUT |= PIN_SCE;         //SCE pin high
 LcdWrite(cmd , 0x21);     // LCD Extended instruction set
 LcdWrite(cmd , 0xBF);     // Set LCD Vop (Contrast). //0xE0 - BF  may have to play with
 LcdWrite(cmd , 0x07);     // Set Temp coefficent. //0x04 =t0 //0x05=t1 // 0x06=t2 // 0x07=t3
 LcdWrite(cmd , 0x13);     // LCD bias mode 1:100 0x10 //1:48 0x13
 LcdWrite(cmd , 0x20);     // LCD basic instruction set
 LcdWrite(cmd , 0x08);     // lcd blank
 LcdWrite(cmd , 0x0C);     // LCD  0x0C for black on white //0x0d for inverse
}

 

hope this helps

Tim

Share this post


Link to post
Share on other sites

Hi there! Rob I was wondering whats the copyrights in regards to this? I want to use your code in my project for school and I wanted some copyright information.

 

Cheers

hth

Share this post


Link to post
Share on other sites

There is no copyright.

You can use, change, and distribute my code the way you like.

Enjoy!

 

If you do need to have something for legal purposes, just use this:

 

   /*
   Copyright (c) 2011 - RobG @ 43oh.com

   Permission is hereby granted, free of charge, to any person obtaining a copy
   of this software and associated documentation files (the "Software"), to deal
   in the Software without restriction, including without limitation the rights
   to use, copy, modify, merge, publish, distribute, sub-license, and/or sell
   copies of the Software, and to permit persons to whom the Software is
   furnished to do so, subject to the following conditions:

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   THE SOFTWARE.
   */

Share this post


Link to post
Share on other sites

I know this is a double post but I don't know how to edit, how stable is the 1MHz clock that your chose in this program?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×