# Timer interrupts in freertos

**URL:** <https://forums.freertos.org/t/timer-interrupts-in-freertos/11438>\
**Category:** Kernel\
**Created:** [December 30, 2020, 3:31am UTC](https://forums.freertos.org/t/timer-interrupts-in-freertos/11438 "2020-12-30T03:31:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![murthy](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@murthy](https://forums.freertos.org/u/murthy)\
**Post date:** [December 30, 2020, 3:31am UTC](https://forums.freertos.org/t/timer-interrupts-in-freertos/11438/1 "2020-12-30T03:31:30Z")

</div>

Hi i am using tm4c123gh6pm micro controller, i want to create timer interrupt in freertos but i did not find any info , can you please suggest the API’s used for timer interrupts

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [December 30, 2020, 4:00am UTC](https://forums.freertos.org/t/timer-interrupts-in-freertos/11438/2 "2020-12-30T04:00:32Z")

</div>

Are you talking about peripheral timer interrupts? If so, then look at the libraries provided for the part by TI.

---

<div class="post-metadata">

**Author:** ![murthy](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@murthy](https://forums.freertos.org/u/murthy)\
**Post date:** [December 30, 2020, 4:07am UTC](https://forums.freertos.org/t/timer-interrupts-in-freertos/11438/3 "2020-12-30T04:07:10Z")

</div>

No, not peripheral timers rtel can we have any timer interrupt API’s supported by freertos that will run particular task in regular intervals.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [December 30, 2020, 4:25am UTC](https://forums.freertos.org/t/timer-interrupts-in-freertos/11438/4 "2020-12-30T04:25:23Z")

</div>

Do you mean software timers? [https://www.freertos.org/RTOS-software-timer.html](https://www.freertos.org/RTOS-software-timer.html)

---

<div class="post-metadata">

**Author:** ![murthy](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@murthy](https://forums.freertos.org/u/murthy)\
**Post date:** [December 30, 2020, 4:42am UTC](https://forums.freertos.org/t/timer-interrupts-in-freertos/11438/5 "2020-12-30T04:42:27Z")

</div>

yes rtel i saw this page but in this page “xTimerStartFromISR()” this api will help me to run task at regular intervals or any other api is there?

Thanks Rtel for your reply.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [December 30, 2020, 4:45am UTC](https://forums.freertos.org/t/timer-interrupts-in-freertos/11438/6 "2020-12-30T04:45:37Z")

</div>

That function will start a software timer from an interrupt. Use xTimerStart() is the function to use from outside of an interrupt. As described on the web site and in the [free to download book](https://www.freertos.org/Documentation/RTOS_book.html) - both functions start a software timer that will execute a callback function at a regular frequency.

---

<div class="post-metadata">

**Author:** ![murthy](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@murthy](https://forums.freertos.org/u/murthy)\
**Post date:** [December 30, 2020, 6:13am UTC](https://forums.freertos.org/t/timer-interrupts-in-freertos/11438/7 "2020-12-30T06:13:40Z")

</div>

Thank you Rtel for guiding me to complete my task. I will use that API.

Thanks Rtel.
