View previous topic :: View next topic |
Author |
Message |
debutpic
Joined: 31 May 2004 Posts: 1
|
Use a LCD for the first time |
Posted: Mon May 31, 2004 6:18 am |
|
|
Hello all
I am beginner with CCS and I want use a LCD HD44780-compatible for to write "HELLO WORLD"
For that I has used a driver describe here:
http://www.vermontficks.org/lcdc2.htm
but a error occur on next line:
Message:undefined identifier cSkip
Can you hepl me? |
|
|
Ttelmah Guest
|
Re: Use a LCD for the first time |
Posted: Mon May 31, 2004 7:34 am |
|
|
debutpic wrote: | Hello all
I am beginner with CCS and I want use a LCD HD44780-compatible for to write "HELLO WORLD"
For that I has used a driver describe here:
http://www.vermontficks.org/lcdc2.htm
but a error occur on next line:
Message:undefined identifier cSkip
Can you hepl me? |
The code is only a 'snippet'... Basically, there should be a variable defined calld 'cSkip', which is presumably set true, when characters are not to be displayed (skipped). Try adding:
int1 cSkip=false;
Near the definitions at the front of the code. Also be aware that you are going to have to include the processor file etc., before the port definitions will work.
You really need to ask to ask the author about what else is needed. You could instead just use the lcd.h include file that comes with the compiler, and change a couple of definitions to suit your port, and for this you will find a lot more people with knowledge/experience here.
Best Wishes |
|
|
Guest
|
|
Posted: Mon May 31, 2004 9:29 am |
|
|
thank's for your reply Ttelmah
I have a experimented board with the next connection
LCD PIC 16F877
DB7 RB7
DB6 RB6
DB5 RB5
DB4 RB4
E RB2
RS RB3
RW GROUND
How to change the driver "lcd.c" |
|
|
Guest
|
|
Posted: Mon May 31, 2004 9:30 am |
|
|
Anonymous wrote: | thank's for your reply Ttelmah
I have a experimented board with the next connection
LCD /// PIC 16F877
DB7 /// RB7
DB6 /// RB6
DB5 /// RB5
DB4 /// RB4
E /// RB2
RS /// RB3
RW /// GROUND
How to change the driver "lcd.c" |
|
|
|
|