Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

the same time, the P1_ISR will take 8 ms to execute). The processor is in a low-

ID: 3552487 • Letter: T

Question

the same time, the P1_ISR will take 8 ms to execute). The processor is in a low-power mode when not executing

the P1_ISR. The following table describes a sequence of events in time. Fill in the table by answering what

happens with the MSP430 on each relevant event if we know the following: ED3 raises an interrupt request at

35 ms, ED2 at 37 ms, and ED1 at 48 ms, and ED0 at 55 ms.

Time                            Event                                                  MSP430 status

0 ms                              SW initialization                                 Active (run initialization software)

10 ms                           Go to a low-power mode                    Sleep

35 ms                            Request from ED3 is received           P1_ISR (ED3 portion executed

Explanation / Answer

Time                            Event                                                  MSP430 status

0 ms                              SW initialization                                 Active (run initialization software)

10 ms                           Go to a low-power mode                    Sleep

35 ms Request from ED3 is received           P1_ISR (ED3 portion executed upto 39ms)

37ms Request from ED2 is received P1_ISR ( ED2 portion is executed along with ED3 upto 43ms(4ms of ED2 and remaining 2ms of ED3)

48ms Request from ED1 is received P1_ISR ( ED1 portion is executed upto 52ms)

55ms Request from ED0 is received P1_ISR ( ED0 portion is executed upto 59ms)