Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Character lcd dosnt work with PROTEUS

Status
Not open for further replies.

gameelgamal

Member level 5
Joined
Dec 14, 2006
Messages
85
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Egypt
Activity points
1,888
how to work with lcd with proteus

Hi………..

I tried to simulate a simple LCD program in proteus but it doesn’t work….

I choosed ATMEGA16 AVR controller, and my connection is as follow:
PB.0  RS
PB.1  RW
PB.2  E
PB.3  not connected
PB.4  D4
PB.5  D5
PB.6  D6
PB.7  D7

Im working on CODEVISION compiler, and my program is very simple:
Lcd_gotoxy(0,0);
Lcd_putsf("high world);

Note: I tried the this program in a real application and it works
 

Hi!
Have u configured the fuzes and the oscillator frequency in the setting tab when u load the hex file.

Regards.
 
No, I didnt....
which fuzes exactly should I program????
 

Hi!
See the picture that i have attached. In your proteus file right click ATmega16 and then left click on the processor. On the screen you will see what i have posted as jpg.
Now the first thing that you should set is the "Clock Frequency". Set it to the clock frequency for which you have written your code e.g 8MHz,16MHz.
Also you will have to load the program file which i am sure that you would have already done, but if you have missed out this step then in the "Program File" space browse to the hex file that you have generated for your code. Now run the simulation, it should work.

If you still face problems then kindly post ur code and i will check it for you.
Regards.
 
First, thank you for your replying.

I have set the program and frequency, but still doesnt work

I have attached the codevision program and the proteus file

Thank you again :D
 

Try this modification.

71_1181609411.jpg
 
i just copy your code and make my project in CodeVision, i also implement your design in my Proteus project, but it didn't work.
my HEX file was 1.66KB while yours was 2.15KB.
what is the difference between yours and mine?
i think you do some configuration in CodeVision or Proteus.

Thanks

P.S : that's really weird. i just download lcd-Modified.rar, open CodeVision project file, compile the code without ANY change and hex file size changed from 2.15KB to 1.66KB!!!
are you using any linkage command or something!!?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top