Jump to content
43oh

Nokia 5110 display


Recommended Posts

  • Replies 59
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Here's the code I am using to control 5110. It uses USCIB (2553) but USI (2231) can also be use without any problem or major updates. There is still a lot of work to be done, but basic text and some g

I wrote some code for the nokia lcd using spi a couple of months ago and after seeing Robs post I thought I'd post mine as well. sorry about the video quality I lost my good camera in a drift boat ac

Updated original post with new code. Added simple graphic stuff, 8 x 8 pixel graphics can be displayed, rotated, and flipped. Rotating is not very efficient, maybe there is another way of doing it.

Posted Images

  • 2 weeks later...
  • 2 weeks later...

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?

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

Link to post
Share on other sites
  • 3 months later...

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.
   */

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...