Digital Assignment Microprocessor and Microcontroller EEE4001 Utkarsh Ghadge 15BEE0197
Digital Assignment Microprocessor and Microcontroller EEE4001 Utkarsh Ghadge 15BEE0197
Digital Assignment Microprocessor and Microcontroller EEE4001 Utkarsh Ghadge 15BEE0197
Q1 Assume that the INT0 pin is connected to a switch that is normally high. Whenever it goes low, it
should turn on an LED. The LED is connected to P2.3 and is normally off. When it is turned on it should stay
on for a fraction of second. As long as the switch is pressed low, the LED should stay on. Write an 8051
assembly program with the above specifications.
ORG 0000H
ORG 0003H
SETB P2.3
MOV R3,#255
CLR P2.3
RETI
ORG 30H
END
2. Write an ARM assembly program to solve the following
ANS
area,comparison,code,read only
ldr, r0=OX
ldr, r1=OX
cmp r0,r1
end