04-25-2011 07:24 AM
Iam a beginner using ms 11.0 and need help in writing a code that displays hello world in assembly or c, including the schematic appropriate for the given code. the schematic i tried to draw isnt displaying hello world but multism has not found any errors with the code.greatly need help from anybody out there. all possible solutions are welcome.
04-25-2011 08:33 AM
Hello,
Here are some resources that could be helpful:
Hope this helps.
04-25-2011 10:48 AM
Thanx for the tip, however i actually needed some more help with an actual schematic sample and corresponding code compatible with ms 11.0 which shows interface between 8051 and LCD.find attached my schematic and code that i got from one of the people you helped using ms 10.0, the code has no error but still the schematic isnt displaying any hello world, what could be wrong?need your great help.
04-26-2011 07:31 AM - edited 04-26-2011 07:36 AM
A few things to look at:
1) The pin definitions in your software do not match the connections on the schematic. They should be:
2) There is a problem with your WAIT_LCD subroutine. A real world LCD may work with that code but the simulated one does not. Comment out the sub for debugging.
WAIT_LCD: RET ;; Something wrong with this sub
3) In the WRITE_TEXT routine, RS is still cleared from initialization routine and is never set to select the display register.
WRITE_TEXT:
SETB RS ;set the register select line
4) At the end of your hello world write_text sequence, the code falls into the INIT_LCD sub. You would need to prevent that otherwise your freshly written screen will become re-initialized and the RET at the end could cause all kinds of problems. I put the following at the end of the write test sequence
WaitHere: JMP WaitHere
I think that's all I ended up doing to get it working.
Tom
04-26-2011 05:24 PM
HI TOM, i´ve made some modifications to my code as you advised.find attached my new code to confirm if its as you had in mind with the same original schematic. please send me an attachment of the sample schematic and code you managed to have working, iam really appreciating your help because learning alot so far.
04-26-2011 05:33 PM
still waiting for more great help with a schematic and code for interfacing 8051 MCU and LCD using ms11.0,please help.
04-27-2011 06:42 AM
Nothing changed on the schematic. Attached is the code.
04-27-2011 04:51 PM
owsome!!!!thanx, it works.
05-22-2011 07:42 AM
hi Tom,it works but was wondering if you have any sampkle codes written in C
05-23-2011 06:46 AM
Actually, I use PICs myself. Use Google to find code samples for the 8051. The processor has been around for a long time so there should be plenty of samples available.