LCD Nokia 5110 display: Libraries to use?

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
JoseD
Posts: 166
Joined: 03 Apr 2012 09:49

LCD Nokia 5110 display: Libraries to use?

#1 Post by JoseD » 16 Jan 2014 14:58

I want to use Nokia LCD 5110 which is (I think) a graphic and text display, having resolution of 84x48 dots. Serial (SPI) protocol. My intention is just to write texts (i.e, YY/MM/DD and so on) in it, basically, 16 characters per row. After revising in this forum I couldn't fix my doubts:

1. What MikroC functions do I have to use?
- Normal "SPI Library" doesn't have function like LCD_OUT("sometext") used similarly for normal character LCD displays, but only commands to send and receive bytes.
- "SPI_Graphic_LCD_Library" seems be devoted to 128x64 dots.
- "SPI_LCD_Library" seems be dedicated to just LCD characters LCDs (I use them in other boards with normal characters LCD).
I'd like just to use simple programming, i.e, command similar to SPI_WRITE("thistext") ...

2. Google photos show 14 characters per line. Could somebody tell me how to change font for writting 16 characters/lien? Some programming examples, please?

pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Re: LCD Nokia 5110 display: Libraries to use?

#2 Post by pwdixon » 16 Jan 2014 15:18

There's some example code for this display at https://www.sparkfun.com/products/10168 but you will need to port it to MikroC

tpetar
Posts: 593
Joined: 27 Apr 2012 18:44
Location: Pancevo, Serbia

Re: LCD Nokia 5110 display: Libraries to use?

#3 Post by tpetar » 16 Jan 2014 15:25

Hello,

Check this thread:
http://www.mikroe.com/forum/viewtopic.p ... nokia+5110

Best regards,
Peter

JoseD
Posts: 166
Joined: 03 Apr 2012 09:49

Re: LCD Nokia 5110 display: Libraries to use?

#4 Post by JoseD » 16 Jan 2014 16:37

I already revised viewtopic.php?f=88&t=51527&hilit=nokia+5110 and others links... but they didn't say what libraries to use :-(

And I'm afraid to have to send each character indidually to LCD to get a full text written there !

tpetar
Posts: 593
Joined: 27 Apr 2012 18:44
Location: Pancevo, Serbia

Re: LCD Nokia 5110 display: Libraries to use?

#5 Post by tpetar » 16 Jan 2014 16:44

JoseD wrote:I already revised viewtopic.php?f=88&t=51527&hilit=nokia+5110 and others links... but they didn't say what libraries to use :-(

And I'm afraid to have to send each character indidually to LCD to get a full text written there !

Hello,

It is SPI Library.

SPI Library (Hardware)
http://www.mikroe.com/download/eng/docu ... ibrary.htm

Software SPI Library
http://www.mikroe.com/download/eng/docu ... ibrary.htm



Best regards,
Peter

JoseD
Posts: 166
Joined: 03 Apr 2012 09:49

Re: LCD Nokia 5110 display: Libraries to use?

#6 Post by JoseD » 16 Jan 2014 18:04

thanks tptar
But, How can I then to write a string in a row and column?, i.e, SPI_WRITE(row, column, "string")

tpetar
Posts: 593
Joined: 27 Apr 2012 18:44
Location: Pancevo, Serbia

Re: LCD Nokia 5110 display: Libraries to use?

#7 Post by tpetar » 16 Jan 2014 19:22

JoseD wrote:thanks tptar
But, How can I then to write a string in a row and column?, i.e, SPI_WRITE(row, column, "string")
Hi,

If you want that or similar syntax for routine, it is best to write a new library for this purpose which will support Nokia 5110 LCD. Currently, what I know there is no MikroC libraries for Nokia displays.

I recommend standard 128x64 GLCD (price 15-16eur) or EasyTFT.

EasyTFT Board
http://www.mikroe.com/add-on-boards/display/easytft/


Best regards,
Peter

paulfjujo
Posts: 1544
Joined: 24 Jun 2007 19:27
Location: 01800 St Maurice de Gourdans France
Contact:

Re: LCD Nokia 5110 display: Libraries to use?

#8 Post by paulfjujo » 18 Jan 2014 15:52

Hello,
JoseD wrote:I already revised viewtopic.php?f=88&t=51527&hilit=nokia+5110 and others links... but they didn't say what libraries to use :-(

And I'm afraid to have to send each character indidually to LCD to get a full text written there !
maybe this can help you.. but for nokia 3310

i ordered a nokia5110 , delivery for next week..
so il will also do some test on it.. :D

16F877_Nokia_3310_RS.zip

JoseD
Posts: 166
Joined: 03 Apr 2012 09:49

Re: LCD Nokia 5110 display: Libraries to use?

#9 Post by JoseD » 18 Jan 2014 17:32

Thanks to all.
The documents and links you told me are helping me a lot.
In summary I'll have to translate to PIC the routines that others have coded..., but at least they're clear.
The nasty problem is I have to code a full table of characters (96 bytes :-( ) because each character must be painted dot by dot, one dot each time, so I'm running out of memory...
I'll tell my results.

vikasdev
Posts: 1
Joined: 06 Aug 2017 12:12

Re: LCD Nokia 5110 display: Libraries to use?

#10 Post by vikasdev » 06 Aug 2017 12:21

The Nokia 5110 is a basic graphic LCD screen for lots of applications. It was originally intended to be used as a cell phone screen. This one is mounted on an easy to solder PCB.
It uses the PCD8544 controller, which is the same used in the Nokia 3310 LCD. The PCD8544 is a low power CMOS LCD controller/driver, designed to drive a graphic display of 48 rows and 84 columns. All necessary functions for the display are provided in a single chip, including on-chip generation of LCD supply and bias voltages, resulting in a minimum of external components and low power consumption. The PCD8544 interfaces to microcontrollers through a serial bus interface.

Nokia 8 Dubai

Post Reply

Return to “mikroC PRO for PIC General”