We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am using 8051F226. how can i display? wat i assembly code?
1) read "the bible" to learn the '51 2) read the datasheet for your LCD 3) think about it 4) write the code 5) debug the code 6) live happily ever after
Erik
PS with a 3V3 uC you will need to level convert the output to the 5V LCD, a 74HCT chip powered by 5V does that admirably. The 'ready' which is an input to the uC you can connect direcly.
Now, someone is going to tell you about 5V tolerant outputs and, sure, you can do it with 5V and pullups; however most LCDs are not happy woth the very slow risetimes resulting from such a setup.
The 8051F226 is a 3.3V part.
What type of display are you using?
I know what Eric is trying to say, but you must be aware that some displays don't have a ready output and if they do, in some circumstances (depending upon your application requirements) you might not need to check it.
Try doing a search for some sample code for the specific display type - There is plenty around.
But, please check your details carefully.
You might also want to check out the Application Notes on this very site - there's stuff about LCDs for the 8051.
See also: www.8052.com/tutlcd.phtml www.8052.com/tutlcd2.phtml
And check the SiLabs site - surely they must have examples?
actually i follow the tutorial given but it still cannot work.. what should i do to set the port...i am using a 14 pin LCD display..
Exactly what "what should i do to set the port" mean? You really have to be more specific.
do i need to modified something??? if i follow the tutorial given...
Maybe this C implementation helps:
http://www.keil.com/appnotes/docs/apnt_161.asp
he just posted parallel www.8052.com/.../read.phtml
I gvuess he wants a fried pigeon to fly in through the window
Erik: I got through steps 1..5 just fine, but I'm having trouble with step 6. Can you provide more details?
I got through steps 1..5 just fine, but I'm having trouble with step 6. Can you provide more details?
This, you should discuss with your wife, not me :)
i tot potienmeter is to tune the contrast...i did follow the tutorial given...but it still show black screen...
Can i help him? =P I managed to get mine working from you guys though.
kevin: refer to this thread...
http://www.keil.com/forum/docs/thread10028.asp
206 and 226 isn't that much different...
thanks....i also new to LCD programming... i also got the program from 8052.com....so u juz edit the delay for ur program and it's working?
Yea... Thats works for me though. I'm not sure whether it will works for you. But you can't copy wholesale from the example program. I have modified some parts of the program in order to get it working. Also did you connect your LCD to the development kit correct? Btw, what school do you come from?
i am from NYP... sorry do u think i can take a look at ur final program?
Kool.. Im from NYP too... But I'm sorry... If i give you my program, you will be learning nothing. You need to learn from the tutorial and the "bible" that is in my thread. All i can say is that you need to read the datasheet for the LCD as erik have told me in my thread. You may want to tell me what you don't understand or you could put your code here to show me.