Answered step by step
Verified Expert Solution
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;
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
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