Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Procedure: 1 . Write the following program to display ABC on LCD display in EDSIM 5 1 simulator software.MOV 3 0 H , #'A'MOV 3

Procedure:1.Write the following program to display ABC on LCD display in EDSIM51 simulator software.MOV 30H, #'A'MOV 31H, #'B'MOV 32H, #'C'MOV 33H, #0CLR P1.3CLR P1.7CLR P1.6SETB P1.5CLR P1.4SETB P1.2CLR P1.2CALL delaySETB P1.2CLR P1.2SETB P1.7SETB P1.2CLR P1.2CALL delayCLR P1.7CLR P1.6CLR P1.5CLR P1.4SETB P1.2CLR P1.2SETB P1.6SETB P1.5SETB P1.2CLR P1.2CALL delayCLR P1.7CLR P1.6CLR P1.5CLR P1.4SETB P1.2CLR P1.2SETB P1.7SETB P1.6SETB P1.5SETB P1.4SETB P1.2CLR P1.2CALL delaySETB P1.3MOV R1, #30Hloop:MOV A, @R1 JZ finishCALL sendCharacterINC R1JMP loopfinish:JMP $sendCharacter:MOV C, ACC.7MOV P1.7, CMOV C, ACC.6MOV P1.6, CMOV C, ACC.5MOV P1.5, CMOV C, ACC.4MOV P1.4, CSETB P1.2CLR P1.2MOV C, ACC.3MOV P1.7, CMOV C, ACC.2MOV P1.6, CMOV C, ACC.1MOV P1.5, CMOV C, ACC.0MOV P1.4, CSETB P1.2CLR P1.2CALL delaydelay:MOV R0, #50DJNZ R0, $RET2.Click on run to simulate the instructions.3.When running this program, best viewed with Update Freq. set to 100.4.Screenshot the results.Result:-Screenshot of the resultsDiscussion:1.Explain line by line the function of each instruction.2.Discuss the observations obtained.3.Modify the instruction to display your name and student ID in the LCD display.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions