ronkpatell
Member level 5
- Joined
- Feb 2, 2012
- Messages
- 85
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- ahemdabad
- Activity points
- 1,894
but that is not working.what i m wrote in hyperterminal that is not going to be display on LCD.
Where is the LCD data port configuration in the code? Jigar's file works but you have to change the #defines for RS, RW, EN, and Data pins of LCD.
but that hex file i did download same code in 89c51.but not working #include<at89c51xd2.h>check the LCD.h file. Everything is defined there... And it'll work without any kind of modification.
If you want to verify then simulate the proteus files first. Just load the .hex file in it & see the result... your circuit may differ with what I've configure in my code and in proteus circuit.
@ ronak patel, I don't know why you are still looking for any code... you have everything.
and how that code combine with another code .?
You don't have to combine any code for interfacing LCD with 8051...
It'll work as it is.
And by the word "combine" I mean that to display the characters on LCD which you write on Hyperterminal needs a program which can receive the data from UART at 9600 baudrate and then send the data of SBUF on LCD & to do that you can take reference from the two codes which I've posted. 1 is for LCD with 8051 and 2nd is to get echo from 8051 on hyperterminal... By taking the reference from these codes you can achieve your goal.
Regarding the code which you've post is the .h file which I've made it is not the main code... I've just include it as a header file which has some definitions and declarations.
The main code is LCD Header file.c
And regarding your confusion, I think you haven't checked the proteus files yet... have you checked?? Have you arranged your schematic as per the pin definition I've used in my code? (some time such mistakes consume our time).
What I suggest to you is to run the proteus files first which will clear your confusion... After that post your next problem I/any other will help you to solve it.
Please post you keil project files and Proteus file. I will check it. Zip the files before posting.
Please post you keil project files and Proteus file. I will check it. Zip the files before posting.
i got more confusion .i cant able to understand pls expln me.
and i m also followed your lcd.GIF file .
how i can use both file to make single .hex file .?
can it possible that l#define LCD_DATA_PORT P2l for lcd that can be add in my code?I saw you code. There is no #define LCD_DATA_PORT P2. That is there is no definition of LCD Data Port in the code. Post how your LCD is connected to MCU.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?