Assignment Document

Microprocessor Interfacing & Programming

Pages:

Preview:


  • "Microprocessor Interfacing & ProgrammingQ. Write program code in 8051assembly language for the following conditionsa. Read data from Port 0 if bit 3 of Port 0 is ‘1’ then write same data to Port 1 otherwiseexitORG 00H MOV A,P0 JB A.3, LABEL1 SJM..

Preview Container:


  • "Microprocessor Interfacing & ProgrammingQ. Write program code in 8051assembly language for the following conditionsa. Read data from Port 0 if bit 3 of Port 0 is ‘1’ then write same data to Port 1 otherwiseexitORG 00H MOV A,P0 JB A.3, LABEL1 SJMPEXITLABEL:MOV P1,AEXIT:ENDb. Read data from Port 0 if bit 3 of Port 0 is ‘1’ then write same data to Port 1 and exitelse write same data to Port 2 and exitORG 00H MOV A,P0 JB A.3, LABEL MOV P2,A SJMP EXITLABEL:MOV P1,AEXIT:ENDc. Read data from Port 0 if bit 3 of Port 0 is’1’ then write same data to Port 1 and Port 2otherwise exit. MOV A,P0 JB A.3, LABEL SJMP EXITLABEL:MOV P1,A MOV P2,AEXIT:ENDd. Read data from Port 0 if bit 3 of Port 0 is’1’ then write same data to Port 1 and Port 2and exit else write same data to Port 3 and exit.MOV A,P0 JB A.3, LABEL MOV P3,A SJMP EXITLABEL:MOV P1,A MOV P2,A EXIT:ENDe. Read data from Port 0 if bit 3 and bit 6 of Port 0 are both ‘1’ then write same data toPort 1 otherwise exit. MOV A,P0 JB A.3, LABEL SJMP EXITLABEL:JB A.6,LABEL1 SJMP EXITLABEL1:MOV P1,AEXIT:ENDf. Read data from Port 0 if bit 3 and bit 6 of Port 0 are both ‘1’ then write same data toPort 1 and exitMOV A,P0 JB A.3, LABEL SJMP EXITLABEL:JB A.6,LABEL1 MOV P2,A SJMP EXITLABEL1:MOV P1,AEXIT:ENDg. Read data from Port 0 if bit 3 or bit 6 of Port 0 is ‘1’ then write same data to Port 1otherwise exit. MOV A,P0 JB A.3, LABEL JB A.6, LABEL SJMP EXITLABEL:MOV P1,AEXIT:ENDh. Read data from Port 0 if bit 3 or bit 6 of Port 0 is ‘1’ then write same data to Port 1and exit else write same data to Port 2 and exit. MOV A,P0 JB A.3, LABEL JB A.6, LABEL MOV P2,A SJMP EXITLABEL:MOV P1,AEXIT:END "

Why US?

Because we aim to spread high-quality education or digital products, thus our services are used worldwide.
Few Reasons to Build Trust with Students.

128+

Countries

24x7

Hours of Working

89.2 %

Customer Retention

9521+

Experts Team

7+

Years of Business

9,67,789 +

Solved Problems

Search Solved Classroom Assignments & Textbook Solutions

A huge collection of quality study resources. More than 18,98,789 solved problems, classroom assignments, textbooks solutions.

Scroll to Top