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

A key wake-up input is armed so that interrupts occur when new data arrives into

ID: 1715516 • Letter: A

Question

A key wake-up input is armed so that interrupts occur when new data arrives into the 9S12. Consider the situation in which a FIFO queue is used to buffer data between the key wake-up ISR and the main program. The ISR inputs and saves the data by calling Fifo_Put. When the main program wants input, it calls Fifo_Get. Experimental observations show this FIFO is usually empty, and has at most three elements. What does it mean? Choose from the following.

a) The system is CPU bound.

b) Bandwidth could be increased by increasing FIFO size.

c) The system is I/O bound.

d) The FIFO could be replaced by a global variable.

e) The latency is small and bounded.

f) Interrupts are not needed in this system.

Explanation / Answer

d) The FIFO could be replaced by a global variable.

b) Bandwidth could be increased by increasing FIFO size.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote