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

    This is causing your EEADRH problem.
    Code:
    Readcode Addr, Char
    Easiest way to go forward is comment or remove following parts of the code:
    Code:
    @ printstr macro function from Darrel and edited to work for this lcd
    'format should look like this: @ PrintStr x,y, "your text string goes here"
    Meaning StringOut and ASM-part above it.
    This is disabling string printing function, so you should figure out other ways to put stuff on LCD.

    Those who know better why READCODE doesn't work with 628A could answer to you.
    Even better if some workaround is available.

    BR,
    -Gusse-
    Last edited by Gusse; - 2nd June 2011 at 22:52. Reason: Just editing

  2. #2
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    Hi Gusse,

    thanks for your answer. That means that when i also get an error "cannot open inc file" the time i try to compile, it has to do with the 628a?

    Sorry for my silly question but cannot understant why is not compatible.

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


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    Is your inc-file in the same folder where you have your main pbp-file?
    Code:
    INCLUDE "LCD_3310v4.inc"
    If no, then you should include path to file before inc-file.
    If yes, then I don't know why you get this error message. Is syntax or file name OK?

    I think, it has nothing to do with 628A.

    BR,
    -Gusse-

  4. #4
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Using Nokia LCD

    it is in the same folder.

    I will try once more. the code and the syntax are also ok.

    thanks for your time.

    If i have any news i will let you know.

  5. #5
    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.

  6. #6
    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 !

  7. #7
    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.

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