microprocessor laboratory 2: logical instructions
TRANSCRIPT
Entering Test Data (1)
• ; Write Test Data in the Code• MOV R0, #95H• MOV R1, #0EEH• MOV R2, #12H• MOV R3, #75H• MOV R4, #52H• MOV R5, #0F3H• ; Start your process• MOV A, R2• ANL A, R5
Lab 2.4 Circuit Simulation 13. Use Circuit simulation software to simulate the MCS51 system circuit following
condition,a) Microcontroller MCS51 as a main processor
b) Port 1 and Port 3 as the input port, by each port connect to 8-bits Dip Switchc) Run the program for AND port 1 and Port 3
ORG 00HLoop:
MOV A,P1ANL A, P3
MOV P2,A ; Display to Port2JMP Loop
END
d) Display by Active High LED on port 2