Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 addressStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started