Answer to Question #233130 in Assembler for alex

Question #233130

this are under engineering electrical subject but also write in assembly code


(a) The CPU will execute two tasks in parallel. The first task will be a normal program Execution loop which continuously tests an active-low switch connected to RB3. When the switch is pressed, an active-high LED connected to RB4 will turn on for 1 second (using software delay). Any switch presses while the LED is on will not be detected as the CPU is busy in the 1 second software delay. After the delay and the LED is turned off, CPU will return to testing the active-low switch. The second task will be to toggle an active-high LED connected to RA1 every 0.25 seconds. Timer0 will be configured to generate an interrupt every 0.25 seconds, and the code to toggle the LED will be placed in the ISR. Timing accuracy requirements is ±1% using 800 kHz RC oscillator.

 

(b) Modify the program of Q5(a) such that another active-low switch connected to RB0 will toggle an active-high LED connected to RB7 immediately when pressed, although the CPU is busy in the 1 second software delay at the moment.

[Hint: Use the external interrupt capability on RB0/INT pin to detect this switch press. The interrupt should be on falling edge of RB0/INT pin. ]

1
Expert's answer
2021-09-13T04:36:58-0400
Dear alex, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS