Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

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 interfacing 8051 MCU and LCD.

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.

0 Kudos
Message 1 of 11
(5,487 Views)

Hello,

 

Here are some resources that could be helpful:

 

  • Getting Started with NI Circuit Design Suite. You can find this pdf file in All Programs>>National Instruments>>Circuit Design Suite>>11.0>>Documentation>>Getting Started. Refer to Chapter 4.
  • Microcontroller Unit Co-Simulation for SPICE-Based Circuits in NI Multisim
  • In Multisim go to Help>>Find Examples. This will open the NI Example Finder. Browse the MCU Module folder, you will find some examples there.

 

Hope this helps.

Fernando D.
National Instruments

0 Kudos
Message 2 of 11
(5,484 Views)

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.

0 Kudos
Message 3 of 11
(5,476 Views)

A few things to look at:

 

1) The pin definitions in your software do not match the connections on the schematic. They should be:

 

 

        EN  EQU P1.2
        RS  EQU P1.0
        RW  EQU P1.1
        dta EQU P2

 

 

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

0 Kudos
Message 4 of 11
(5,469 Views)

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.

0 Kudos
Message 5 of 11
(5,460 Views)

still waiting for more great help with a schematic and code for interfacing 8051 MCU and LCD using ms11.0,please help.

0 Kudos
Message 6 of 11
(5,459 Views)

hi Tom,it works but was wondering if you have any sampkle codes written in C

0 Kudos
Message 9 of 11
(5,414 Views)

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.  

0 Kudos
Message 10 of 11
(5,405 Views)