Using Nokia LCD


Closed Thread
Results 1 to 40 of 301

Thread: Using Nokia LCD

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post Nokia 3310 and 7110 LCD command libraries

    I don't know how many is still using old (monochrome) Nokia LCD displays, but I do.

    To make it easier to write code for both 3310 LCD (PDC8544) or variants (Nokia 8210...) and 7110 LCD (SED1565), I made a common command library for both LCD types. So you can use same commands in your program and only change display and link right library file (see attachement for more info). Of cource there are more pixels in 7110 and therefore you must do some fine tuning for character/picture positions, but anyway it will work with a minimum effort. At least I hope so.

    I use this by including it to main program
    Code:
    '----- LCD Setup -----
    include "LCD_3310.pbp"
    or
    Code:
    '----- LCD Setup -----
    include "LCD_7110.pbp"
    Most of the code is already posted here earlier (BIG thanks for that!), something is modified and something new.

    -Gusse-
    Attached Files Attached Files

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Just what I was looking for, thanks!

    Questions:

    (1) How do you recommend writing entire words "Hello World...". Do we really have to loop through every letter? Would be nice to issue a Lcd_Send_This("Hello World")

    (2) Do you use a large LOOKUP table or CASE for A-Z ??

    Right now I have a LOOKDOWN table for A-Z that gets the position and then uses that num*6 to LOOKUP the bits in my huge table (no eeprom here).

    (thoughts) Looking ahead I worry about not being able to use a VAR in LOOKUP. In the end, isn't that what I really want to display?

    Thanks again.

  3. #3
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    (1) How do you recommend writing entire words "Hello World...". Do we really have to loop through every letter? Would be nice to issue a Lcd_Send_This("Hello World")
    Check page 22 from Philips PCD8544 datasheet. It shows how characters are formed to LCD. If you are using 8x6 pixel fonts then you have to do 6 write operations (each of 6 column separately). This can be combined to one loop, so it writes one character or graphics at the same time. Yes, You have to loop through every letter.
    (2) Do you use a large LOOKUP table or CASE for A-Z ??

    Right now I have a LOOKDOWN table for A-Z that gets the position and then uses that num*6 to LOOKUP the bits in my huge table (no eeprom here).

    (thoughts) Looking ahead I worry about not being able to use a VAR in LOOKUP. In the end, isn't that what I really want to display?

    Thanks again.
    LOOKUP table or CASE are good options, even IF - THEN can be used. I have tried all of them, now using LOOKUP2. If you don't need all alphabets then some limited table or direct data to LCD can be an option. With direct data I mean that you make characters like a graphics, turning on/off DB7:0 data bits.
    In case you need A-Z and a-z then LOOKUP or CASE needs twice more space. Then external EEPROM becomes very handy.

    BR,
    -Gusse-
    Last edited by Gusse; - 17th March 2009 at 11:06.

  4. #4
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Hi to all !
    I use the hardware from here : http://www.picbasic.co.uk/forum/show...a+3310+display.
    I try to modify the code of N3310+PIC 12F675+DS18B20 for using PIC 16F628A, like in attachament. But...nothing on display ! Can someone tell me what I do wrong ? Thanks in advance !
    Attached Files Attached Files

  5. #5
    Join Date
    Nov 2005
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    Hi!
    If you followed my schematic exactly, try the attached code.
    It works fine for me.
    Notice : Cs (PortB.3) must be Low ; Rst(PortA.4) needs a pullup ; Mode is disabled (you need another pin)
    Regards
    Gianni
    Attached Files Attached Files

  6. #6
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    You are one Gentleman ! Thank You verry much ! It's work fine now !

  7. #7
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Hi again ! I try to build one simple thermometer, based on schematic from GioppY and code from Ivica N., but with this code (attached) I see only some points, all over the display, and '85.0'. Some sugesstion ? What I do wrong ? Thanks in advance !
    Attached Files Attached Files

Similar Threads

  1. Nokia COLOR LCD PicBasicPro 2.50a example code
    By skimask in forum Code Examples
    Replies: 49
    Last Post: - 28th September 2011, 01:43
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts