Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the following portions of a code to set three interrupts: The sections that need to be completed are the ones preceded by highlighted comments;

image text in transcribed

image text in transcribed

Complete the following portions of a code to set three interrupts: The sections that need to be completed are the ones preceded by highlighted comments; you need to replace "?2" with one or more phrases/values/lines to complete the code. You do not need to complete the parts followed by ".. The homework does not include the procedure of setting the interrupts within the peripherals, it only reviews the settings required at the PIE level and the CPU level.) Prototype statements for functions found within this interrupt void epu timeroisr (void) interrupt void external int2 isr (void) interrupt void epm1 int isE (void) void mainO Clear all interrupts and initialize PIE vector table: (globally) 2? 7 Initialize the PIE control registers to their default state // The default state is all PIE interrupts disabled and flags // are cleared / This functionis found in the 2837xD Piectrl.c file InitPieCtrl // Disable CPU interrupts and clear all CPU interzupt flags: IER-0x0000; FR 0x0000 Initialize the PIE vector table with pointers to the shell Interrupt Service Routines (ISR This will populate the entire table, even if the interrupt /7 is not usedin this exampleThis is useful for debug purposes // The shell ISR Outines are found in F2837xD Defaultisr.c / This functionis found in 92837xD PieVect. InitPieVectTable) Complete the following portions of a code to set three interrupts: The sections that need to be completed are the ones preceded by highlighted comments; you need to replace "?2" with one or more phrases/values/lines to complete the code. You do not need to complete the parts followed by ".. The homework does not include the procedure of setting the interrupts within the peripherals, it only reviews the settings required at the PIE level and the CPU level.) Prototype statements for functions found within this interrupt void epu timeroisr (void) interrupt void external int2 isr (void) interrupt void epm1 int isE (void) void mainO Clear all interrupts and initialize PIE vector table: (globally) 2? 7 Initialize the PIE control registers to their default state // The default state is all PIE interrupts disabled and flags // are cleared / This functionis found in the 2837xD Piectrl.c file InitPieCtrl // Disable CPU interrupts and clear all CPU interzupt flags: IER-0x0000; FR 0x0000 Initialize the PIE vector table with pointers to the shell Interrupt Service Routines (ISR This will populate the entire table, even if the interrupt /7 is not usedin this exampleThis is useful for debug purposes // The shell ISR Outines are found in F2837xD Defaultisr.c / This functionis found in 92837xD PieVect. InitPieVectTable)

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

Video Basics

Authors: Herbert Zettl

8th Edition

1305950860, 978-1305950863

Students also viewed these Databases questions

Question

5. Who should facilitate the focus group?

Answered: 1 week ago