Question 11.5: Assume that the INT1 pin is connected to a switch that is no...
Assume that the INT1 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 P1.3 and is normally off. When it is turned on it should stay on for a fraction of a second. As long as the switch is pressed low, the LED should stay on.
Learn more on how we answer questions.
ORG 0000H ;vector table ;- – ISR for INT1 to turn on LED ORG 0013H ;INT1 ISR BACK: DJNZ R3,BACK ;keep LED on for a while CLR P1.3 ;turn off the LED ;- – MAIN program for initialization ORG 30H MAIN: MOV IE,#10000100B ;enable external INT 1 END |
