Actions

EmSys

Difference between revisions of "TM4C123 GPTM Interrupt Programming"

From EdWiki

(Created page with "== Timer Interrupt Programming ==")
 
m
Line 1: Line 1:
 
== Timer Interrupt Programming ==
 
== Timer Interrupt Programming ==
 +
In the previous article, we showed how to program the timers. In those programming examples, we used polling to see if a timeout event occurred. In this section, we give interrupt-based version of those programs. Examine the earlier programs, we could run those programs only one at a time since we have to monitor the timer flag continuously. By using interrupt, we can run several of timer programs all at the same. To do that, we need to enable the timer interrupts using the '''GPTMIMR''' (GPTM Interrupt Mask) register.
 +
 +
[[image:tm4c_gptm_imr.png|center]]

Revision as of 05:13, 27 February 2018

Timer Interrupt Programming

In the previous article, we showed how to program the timers. In those programming examples, we used polling to see if a timeout event occurred. In this section, we give interrupt-based version of those programs. Examine the earlier programs, we could run those programs only one at a time since we have to monitor the timer flag continuously. By using interrupt, we can run several of timer programs all at the same. To do that, we need to enable the timer interrupts using the GPTMIMR (GPTM Interrupt Mask) register.

Tm4c gptm imr.png