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

    Default Re: Using Nokia LCD

    Vop is a register in extended instruction set (see page 14, Set Vop)
    http://www.nxp.com/acrobat_download2.../PCD8544_1.pdf

    "8.9 Set VOP value" (on page 16) describes how to calculate setting value.

    Contrast is set in "Lcd_Init" section in LCD_3310 -file.
    Code:
    Lcd_Data= $c8: GOSUB Lcd_SendByte       ' SET LCD Vop (CONTRAST)
    Here it seems to be $c8, with some older I have to use $d1 and other newer might need $bf. Try to change the value and check which is best with your display.

    BR,
    -Gusse-

  2. #2
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    i have fixed the circuit from that page and work fine.

    http://www.radiolocman.com/shem/sche....html?di=44132

    he is using the following

    LcdReg = %00100001 'LCD Extended Commands.
    call PrintCtrlLcd
    LcdReg = %10101001 'Set LCD Vop (Contrast).
    call PrintCtrlLcd
    LcdReg = %00000110 'Set Temp coefficent.
    call PrintCtrlLcd
    LcdReg = %00010011 'LCD bias mode 1:48.
    call PrintCtrlLcd
    LcdReg = %00100000 'LCD Standard Commands, Horizontal addressing mode.
    call PrintCtrlLcd

    that means that the HEX of the Vop is $A9.

    He is also says:

    If by any chance the contrast isn't to your liking, it can be changed during the programming of Pic12F629, in the program location D2h. the current value A9h is the one I use with my LCD and don't know it will be for other LCDs. The value can be set to anything between 80 h and FFh, 80 h being minimum contrast and FFh maximum.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    OK, I've finished the new Include/driver/wrapper thing here. I'll post it in the next days. Still have some improvement to do. No big changes, but probably easier to use, a tad more flexible too.

    You guys should love it

    Stay tunned!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    hi mister_e

    i'm looking forward to see it. Thanks.

  5. #5


    Did you find this post helpful? Yes | No

    Smile Re: Using Nokia LCD

    Hi all,

    i've been looking at this topic for some time now.
    I managed to get an original 3310 display and made some tests.

    First i tried the INC solution but i got the "Truncated to code size" errors ( using 16F88 or 16F628A ).

    Tried some examples posted here ( always changing ports to my configuration ) with a blank screen.

    Tried the test file with big numbers and it worked.

    Then moved to a 18F2550 micro-controller and once again the INC solution did not worked ( just had some ! simbols all over the place ).

    The only solution i got was to use the INC file together with Gusse's sugestion on using "Gosub Lcd_SendChar" instead of "@ PrintStr" format.

    This way works like a charm!

    Do you guys know of an 18 pin chip that would work ( since it doesnt work with the 16Fs ) ?

    Or Steve ( Mister-e ) will have a fresh new solution that will work on more chips ?

    Regards

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    My solution should work with anything, at compile time it decide which macro to build/compile/use.

    It should even work with many 12F... with some limitations.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    Out of curiosity, which PIC didn't worked for you?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    Hi Steve

    I was using the 16F88

    Regards

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