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

What are the benefits of using interrupts rather than polling? Use the touch pan

ID: 3905440 • Letter: W

Question

What are the benefits of using interrupts rather than polling?
Use the touch panel display as an example.

The architecture of the STM32F4xx microcontroller is given in Figure 1. It is based around an ARM Cortex-M4 with a Floating Point Unit (FPU). The microcontroller is self contained, with memory to store the program and variables and a wide range of peripheral devices. The following questions relate to Figure 1. External memory controller (FSMC) SRAM, PSRAM, NOR Flash, data RAM 64 UTAG & SW ETM MPU NMC ARM Cortex-M4 168 MH FPU Flash RNG 1 MB Ethemet MAC 10/100 SRAM 112 KB USB OTG HS SRAM 16 KB USB OTG FS DMA2 as so DMAT VDD Power GPIO PORTA GPIO PORTB GPIO PORT C GPIO PORT D GPIO PORTE GPIO PORTF GPIO PORT G GPIO PORT H GPIO PORT I PORPDR PVD WDG EXT IT, WKUP SDIOMMC TIM1PWM TIMB/PWM ETRA TIM13 USART2 USART3 UART4 TIM9 ? TIM 10 WWDG UART5 SP2/12S2 SP3M2S3 2C1/SMBUS USART1 USARTE TIMT Tamporalure sansor 12C3SMBUS ITF ADC2 DAC2 OACI OUT Figure 1: STM32F4xx Microcontroller Architecture

Explanation / Answer

When some event needs attention of the system then a signal is generated and being sent to the processor for the required information the signal that is being generated is known as interrupt. The process then saves the instance of current working task and handles for whatever interrupt is being generated.
When the computer or other controlling devices waiting for an external device for checking it's completeness then the process is being termed as polling. For example computer waits for another character to be entered by user and then display on screen.
The main advantage of interrupts over polling is system can perform another task while handling particular event. Interrupts are very helpful in various systems if we have to perform multiple tasks at the same time like (I/O, scheduling etc.) Here we can also get to know what the processor is doing as all activities are being divided on the basis of timer interrupts which is part of interrupt. Hence we can say that for any particular system interrupt is more beneficial than polling.
In touch panel display if process continously waiting for the user input then how other process will get processor and time for execution that's why keep an interrupt that only respond when needed hence in this manner we can say that interrupts are better choice.


*If you have any problem with the answer or want me to edit the answer just let me know in the comments and i will try to get on it as soon as possible. Do give a plus if this answer helps.

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