Question: How long between sys tick interrupts given the following sys tick interrupt initialization? Assume the system clock is 48MHz. void syst_tick_init(void) { SYST: RVR=0x50000; SYST_CVR=0;

 How long between sys tick interrupts given the following sys tickinterrupt initialization? Assume the system clock is 48MHz. void syst_tick_init(void) { SYST:RVR=0x50000; SYST_CVR=0; SYST_CSR=0x7; } 3.81 ms 1 ms 7.9 ms 380,928 ms

How long between sys tick interrupts given the following sys tick interrupt initialization? Assume the system clock is 48MHz. void syst_tick_init(void) { SYST: RVR=0x50000; SYST_CVR=0; SYST_CSR=0x7; } 3.81 ms 1 ms 7.9 ms 380,928 ms QUESTION 2 What is wrong with the sequence of events when an interrupt occurs? . Set interrupt flag bits Finish current operation Load all the CPU registers on the stack, including the current program pointer Go to the assigned interrupt vector (see table) and find a new program pointer That pointer should point to the location in memory of the interrupt handler Do the handler Proceed as normal . it forgot to clear the SYS_RVR register it forgot to push the CPU registers onto the stack if forgot to clear interrupt flags and reload the CPU registers it forgot the gpio initialization? QUESTION 3 You want to build an application that uses a port interrupt attached to pB2. The code will blink led 1 at 5Hz is PB1 is pushed and led1 at 10Hz if pB2 is pushed. As usual you first create a flowchart, as shown below. Right off the bat you know something is wrong because: Main inits led1 on/off 5HZ PB1? PB2? led1 on/off 10Hz there is a logical connection between the main loop and the action from pB2 which is supposed to be an interrupt. there is no debounce added to either PB it needs a while loop to make sure its edge sensitive for pB2. pB2 is queried by an if statement when it should be an else if statement

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!