how to change the code vision lcd library?

Pour toutes vos questions sur CodeVision et la programmation en C en général

Modérateur : Modérateur

alecrp
NOUVEAU
NOUVEAU
Messages : 1
Inscription : 12 janv. 2008 14:18

how to change the code vision lcd library?

Message par alecrp »

Hi
i'm soory but i'm italian and so i don't speak franch. If there is someone who speak italian, i can ask in italian.

i must controller a 16*2 lcd with atmega8535 and codevision compiler.
In the codevision lcd library there is this port configuration

[LCD] [AVR Port]
RS (pin4) ------ bit 0
RD (pin 5) ------ bit 1
EN (pin 6) ------ bit 2
DB4 (pin 11) --- bit 4
DB5 (pin 12) --- bit 5
DB6 (pin 13) --- bit 6
DB7 (pin 14) --- bit 7


In my board i have this port configuration

[LCD] [AVR Port]
RS (pin4) ------ bit 6
RD (pin 5) ------ bit 5
EN (pin 6) ------ bit 4
DB4 (pin 11) --- bit 0
DB5 (pin 12) --- bit 1
DB6 (pin 13) --- bit 2
DB7 (pin 14) --- bit 3

How can I change the codevision lcd library to adapt it with my board lcd configuration?
Please help me.
thanks.

Eric.c
NOUVEAU
NOUVEAU
Messages : 1
Inscription : 13 janv. 2008 0:04

Message par Eric.c »

Hello, I'm french :wink:

You can find "LCD.H" in C:\cvavreval\inc (by default). You have just to change this file like you want and save it with a other name.


In the compiler you have to include :

Code : Tout sélectionner

#include "C:\my_documents......\LCD_2.H"

I don't know if it can help you,

Eric

Répondre