Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago