Using Nokia LCD


Closed Thread
Results 1 to 40 of 301

Thread: Using Nokia LCD

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    hi all again,

    i see that a lot of you having problem to write on the nokia lcd using the pic16f628a.

    i'm also stragling to do it and i havent been able to fix my problems.

    i'm trying to use the following files from the page http://www.picbasic.co.uk/forum/cont...Nokia-3310-LCD but no luck.

    a very simple code i'm trying to display is the following.

    Code:
    DEFINE OSC 4
    
    @ DEVICE pic16F628A, INTRC_OSC, WDT_OFF, PWRT_OFF, BOD_OFF, MCLR_ON, LVP_OFF, CPD_OFF, PROTECT_OFF 
    
    include "modedefs.bas"
    include "LCD_3310.pbp"
    
    
            TRISB = %00011100        			'portB configuration  0=out 1=in
            TRISA = %10100000        			'portA configuration
            PortA = %11100000        
            CMCON = 7                		
            VRCON = 0                		
            INTCON = 0              
    
    OPTION_REG=%00000111   					'weak pullups on, TMRO prescale = 256
                                                    
    Lcd_DC      var PortB.0 
    Lcd_SDA     var PortA.3
    Lcd_RST     var PortA.4
    Lcd_CLK     var PortA.2
    
    start:
    
    @ PrintStr  0,0, "I love being"
    @ PrintStr  0,1, "able to print "
    @ PrintStr  0,2, "so easily!"
    
    goto start
    i will post later on the full code using the pic16f628a. It is seems that is been compiled but i dont see anything on the screen. I have checked connection and everything is ok.

    I have also checked the nokia lcd with a circuit that work and didnt see a problem.

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


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    Maybe must to do this in your "LCD_3310.pbp" file :
    Code:
    'Port Mapping                   'Change to match your application
    Lcd_CLK         VAR Portc.3     'LCD Clock
    Lcd_DC          VAR Portf.6     'LCD Data/Command
    Lcd_SCE          VAR Portf.7     'LCD Chip Enable
    Lcd_RES         VAR Portd.3     'LCD Reset
    'Lcd_VCC         VAR Porte.2     'LCD Power (always powered for this hardware)
    Lcd_SDO         VAR Portc.5     'LCD Data
    I use a lot of 16F628A (and 648A) in my projects (see http://www.picbasic.co.uk/forum/show...204#post103204 and topic) and works verry fine !

  3. #3
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    fratello,

    thank you very much for your info and nice to meet you.

    I've read all the articles here from you.

    I only want to use the Nokia LCD for one of my RFID projects.

    Nokia LCDs are fearly cheap and hopefully i manage to get them work.

    Once i go home i will try to change as you suggested.

    thanks again.
    Code:
    Lcd_DC      var PortB.0 
    Lcd_SDA     var PortA.3
    Lcd_RST     var PortA.4
    Lcd_CLK     var PortA.2
    with this

    Code:
    'Port Mapping                   'Change to match your application
    Lcd_CLK         VAR Porta.2    'LCD Clock
    Lcd_DC          VAR Portb.0     'LCD Data/Command
    Lcd_SCE          VAR Port     'LCD Chip Enable ??? here i also need to assign a port for enable??? or this goes to ground?
    Lcd_RES         VAR Porta.4     'LCD Reset
    'Lcd_VCC         VAR Port?     'LCD Power (always powered for this hardware) any port assigned to give power????
    Lcd_SDO         VAR Porta.3    'LCD Data
    Last edited by astanapane; - 14th June 2011 at 14:58.

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


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    I ALWAYS use this LCD with SCE to ground . Try to find Nokia 5110 display ; it's more easy to "interfacing".
    LE : I don't use LCD_VCC from PIC's. Just be careful to power with maxim 3.3 volts !!! Now I use this (second) schematic, with good results !
    Attached Images Attached Images   
    Last edited by fratello; - 14th June 2011 at 15:52.

  5. #5
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    i will follow your schematics,

    i will post what error i get now after compiling the following program

    Code:
    DEFINE OSC 4
    @ device  P16F628A
    @ __INTRC_OSC, WDT_OFF, PWRT_OFF, BOD_OFF, MCLR_ON, LVP_OFF, CPD_OFF, PROTECT_OFF 
    
    include "modedefs.bas"
    include "3310.inc"
    
            TRISB = %00011100        			'portB configuration  0=out 1=in
            TRISA = %10100000        			'portA configuration
            PortA = %11100000        
            CMCON = 7                		
            VRCON = 0                		
            INTCON = 0                  		              
    
    OPTION_REG=%00000111   					'weak pullups on, TMRO prescale = 256
    
    
    start:
    
    @ PrintStr  0,0, "I love being"
    @ PrintStr  0,1, "able to print "
    @ PrintStr  0,2, "so easily!"
    
    goto start
    Last edited by astanapane; - 14th June 2011 at 17:19.

  6. #6
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    i get the following error
    Attached Images Attached Images  
    Last edited by astanapane; - 14th June 2011 at 17:29.

  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

    1. Must use MPASM to compile
    2. You need to change the way you set the config fuses, check the FAQ.
    3. I've never used this program, so I can't tell if this will grandpa 16F628's codespace, may need to use a 'bigger' one.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    @ DEVICE pic16F628A, intOSC_osc_noclkout, WDT_OFF, PWRT_OFF, BOD_OFF, MCLR_ON

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 : 1

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