# How to implement interrupt function based on Ti c2000 block?

**URL:** <https://forum.plexim.com/t/how-to-implement-interrupt-function-based-on-ti-c2000-block/805>\
**Category:** TI C2000\
**Tags:** rt-box, c2000\
**Created:** [July 19, 2020, 3:34am UTC](https://forum.plexim.com/t/how-to-implement-interrupt-function-based-on-ti-c2000-block/805 "2020-07-19T03:34:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shichenseu](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@shichenseu](https://forum.plexim.com/u/shichenseu)\
**Post date:** [July 19, 2020, 3:34am UTC](https://forum.plexim.com/t/how-to-implement-interrupt-function-based-on-ti-c2000-block/805/1 "2020-07-19T03:34:56Z")

</div>

Maybe I am not familiar with the concept of interrupt function ,and there isn’t any interrupt function block in the library browser, so how to implement interrupt function based on Ti c2000 block? By utilizing ADC block to implement an ADC trigger?

---

<div class="post-metadata">

**Author:** ![shichenseu](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@shichenseu](https://forum.plexim.com/u/shichenseu)\
**Post date:** [July 19, 2020, 5:00am UTC](https://forum.plexim.com/t/how-to-implement-interrupt-function-based-on-ti-c2000-block/805/2 "2020-07-19T05:00:49Z")

</div>

Did I get the correct answer from the screenshot of User manual below?

 ![191](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/1b9029d013165148991f0b472494bb7ab1cfe9c0.jpeg)

---

<div class="post-metadata">

**Author:** ![Beat\_Arnet](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/beat_arnet/32/9_2.png) [@Beat\_Arnet](https://forum.plexim.com/u/Beat_Arnet)\
**Post date:** [July 21, 2020, 8:46am UTC](https://forum.plexim.com/t/how-to-implement-interrupt-function-based-on-ti-c2000-block/805/3 "2020-07-21T08:46:37Z")

</div>

Yes, it is correct that the Control Task Trigger block is used to explicitly define which interrupt is used for triggering the (rate monotonic) task scheduler. Note that the generated C2000 code always uses one, and only one, interrupt. If no Control Task Trigger is present in the model, the Coder will automatically setup an appropriate interrupt trigger. The execution of all tasks is synchronous to this interrupt.

---

<div class="post-metadata">

**Author:** ![shichenseu](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@shichenseu](https://forum.plexim.com/u/shichenseu)\
**Post date:** [July 21, 2020, 8:53am UTC](https://forum.plexim.com/t/how-to-implement-interrupt-function-based-on-ti-c2000-block/805/4 "2020-07-21T08:53:12Z")

</div>

Thank U so much ,my dear!!! But I am surprised to learn that only one interrupt will be existed in the generated C2000 code , even if there are several triggers in different schematics ?I often use different interrupts to realize different functions
