Skip to main content

2018 | OriginalPaper | Buchkapitel

10. Interrupts

verfasst von : Dhananjay V. Gadre, Sarthak Gupta

Erschienen in: Getting Started with Tiva ARM Cortex M4 Microcontrollers

Verlag: Springer India

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

This chapter deals with generation of interrupts on ARM Cortex M4 Tiva C Series microcontrollers. Whenever a switch is pressed, there are two ways to read its input, one is through polling and other is through interrupt. The algorithm mentioned in Chap. 9 in Sect. 2 is polling method. In that, processor is always checking the state of the pin, which is actually wasting the clock cycles of the processor to keep on checking the input, these clock cycles could be used to perform some other task which can improve the efficiency of the processor. As when switch is pressed, state is changing from logic high to logic low, and this state change on the GPIO pin itself requests the processor to perform certain task. This will lead to development of efficient system and these requests to the processors are known as interrupts.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Fußnoten
1
Tail-Chaining mechanism speeds up the servicing of exceptions. As the new exception can occur during the servicing of exception. So on completion of exception, if there is a pending exception the stack pop which is required to resume back the processor state will be skipped and the control will transfer to the new exception hander.
 
2
Context switching is storing and restoring back the current state of the process so that it can be resumed from that point at a later time. This allows multiple processes to have access to processor and will lead to multitasking.
 
3
Falling edge occurs when the state changes from logic high to logic low and rising edge occurs when the state changes from logic low to logic high. The switch connected is configured to be pulled up so the default state of switch is logic high. Since, the other end of switch is connected to ground, so when the switch is pressed it changes the state from logic high to logic low which is the falling edge, and when the switch is released the state changes from logic low to logic high which is rising edge.
 
Metadaten
Titel
Interrupts
verfasst von
Dhananjay V. Gadre
Sarthak Gupta
Copyright-Jahr
2018
Verlag
Springer India
DOI
https://doi.org/10.1007/978-81-322-3766-2_10

Neuer Inhalt