[solved]-Write Program Hws5asm Reads Unsigned Integer Input Switches Connected Port2 Flash Leds Con Q39085915

Write a program HWS5.ASM that reads an unsigned integer input from the switches connected to port2, then flash the LEDs connected to port five times, where the value displayed on LEDs is the packed BCD format of the input value read from the switches. The flash period should be 2 seconds on, then 2 seconds off using timer 1. Assume that XTAL frequency=12MHz and the input value is from 0 to 99. For example, if the input value is (0000 1011)2 = (11)10 then its packed BCD value displayed on the LCD is (0001 0001)2 and flash five times (both on and off) Show transcribed image text Write a program HWS5.ASM that reads an unsigned integer input from the switches connected to port2, then flash the LEDs connected to port five times, where the value displayed on LEDs is the packed BCD format of the input value read from the switches. The flash period should be 2 seconds on, then 2 seconds off using timer 1. Assume that XTAL frequency=12MHz and the input value is from 0 to 99. For example, if the input value is (0000 1011)2 = (11)10 then its packed BCD value displayed on the LCD is (0001 0001)2 and flash five times (both on and off)
Expert Answer
Answer to Write a program HWS5.ASM that reads an unsigned integer input from the switches connected to port2, then flash the LEDs … . . .
OR

