# Using interrupts

### Using interrupts

To set up an interrupt, you must add it in the **Platform** RTD driver. In the Interrupt Controller tab, add a new entry to the table. In the **Interrupt Name** column you must select the hardware interrupt you want to use. In the **Handler** column you need to put the isr name the driver expects.

<figure><img src="/files/aZks1hQX9BnSHHPFMEce" alt=""><figcaption></figcaption></figure>

To find the isr name the driver expects, you must search for it in the RTD driver source code.&#x20;

<figure><img src="/files/tuuX0sSxlLymJT0nZG9b" alt=""><figcaption><p>Path to the RTD drivers</p></figcaption></figure>

For example, if you want an interrupt on a PWM channel that is using a FTM hardware instance, you must look in **Ftm\_Pwm\_Ip\_Irq.h**

<figure><img src="/files/zmIOGh97M97aTwd3N7BA" alt=""><figcaption><p>Path to the file Ftm_Pwm_Irq.h</p></figcaption></figure>

Inside the file, search for ***ISR(*** with any app you want using **Ctrl + f**. In this example you can see the search in Notepad++.

<figure><img src="/files/62VO8QvIGGJJgRcHcy62" alt=""><figcaption><p>Search results are displayed on the bottom</p></figcaption></figure>

Search for the name of the isr that you need and copy it. For example, to setup an interrupt on a rising/falling edge of a PWM signal using FTM instance 1 channel 1, copy the name **FTM\_1\_CH\_0\_CH\_1\_ISR.** Go back to the Platform driver and paste the name in the **Handler** column.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nxp.gitbook.io/nxp-cup/2024-fall-2025-nxp-cup-bare-metal-drivers/s32-design-studio-usage-tips/using-interrupts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
