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.
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.
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.
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.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 have also checked the nokia lcd with a circuit that work and didnt see a problem.
Maybe must to do this in your "LCD_3310.pbp" file :
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 !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
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.
with thisCode:Lcd_DC var PortB.0 Lcd_SDA var PortA.3 Lcd_RST var PortA.4 Lcd_CLK var PortA.2
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.
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 !
Last edited by fratello; - 14th June 2011 at 15:52.
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.
i get the following error
Last edited by astanapane; - 14th June 2011 at 17:29.
Bookmarks