Question: Part a only. Problem-2. The interrupt driven program below uses Timer facility in output compare mode, ISR is called after every 5 msec and toggles

 Part a only. Problem-2. The interrupt driven program below uses Timer Part a only.

Problem-2. The interrupt driven program below uses Timer facility in output compare mode, ISR is called after every 5 msec and toggles speaker at PTS. Assume clock frequency of 24MHz. (20 points) a) Fill in the blanks (Assembly Code) in Main for which comments are provided. (10 points) b) Write assembly code as well as comments for TC7_ISR which toggles PTT5(10 points) LABEL COMMENT OPCODE INCLUDE INCLUDE INCLUDE INCLUDE OPERAND base.inc bits.inc timer.inc porta.inc include files TC7 IRO STKPTR PROG EQU EQU EQU SFFEO SD000 $C000 define interrupt vector address define stack pointer define program start point clear port set up PTTS for output enable timer set up prescaler value of 8 clear CIF flag choose OC7 for timer ch.7 enable TC7 interrupt enable global interrupts loop forever Forever BRA Forever TC7 ISR start of ISR clear C7F flag Load CPU register D with TC7 Add value to D Store D in TC7 Toggle PTTS ?? ?? ORG TC7_IRQ Set up interrupt vector Place ISR address

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!