External Pin Interrupts

14.5.1

ELC Block Diagram Analysis

External Pin Interrupts

Click to view the full image

Events can be linked to the following module functions:

Table 2: Module Functions

External Pin Interrupts

Chapter 15

ICU – External Interrupts

References for this Chapter

“RA6M5 Group User’s Manual: Hardware”

Main Reference Chapter: 13. Interrupt Controller Unit (ICU)

15.1

External Pin Interrupts

In the previous chapter, we detailed the NVIC, ICU, ELC, and NMI, providing a comprehensive understanding of the interrupt management system in the RA series MCUs. This chapter focuses on how to control external interrupts, which is also an instance application of the NVIC within the core, representing a crucial external interrupt resource for the RA series MCUs.

15.1.1

ICU Block Diagram – Introduction to External Interrupts

External Pin Interrupts

Click to view the full image

According to the functional block diagram of the ICU, we first need to configure the IRQCR register (IRQ Control Register, where IRQ stands for Interrupt ReQuest). Next, we configure the IELSR register (ICU Event Link Setting Register). After that, we enable the IR register. Finally, we need to configure the NVIC; details about the NVIC can be found in the previous section.

15.1.2

Introduction to Relevant Registers

15.1.2.1

Introduction to IRQCR

The Interrupt Request Control Register (IRQCR) has 0-15 channels and three flag bits:

  • IRQMD[1:0] Detection Sensitivity Selection

  • FCLKSEL[1:0] Digital Filter Sampling Clock Selection

  • FLTEN Digital Filter Enable

IRQ Control Register:

External Pin Interrupts

Table 1: IRQCRi Register

External Pin InterruptsExternal Pin Interrupts

Table 2: IELSR Register

External Pin Interrupts

The Interrupt Control Unit Event Link Setting Register (IELSRn) has a total of 96 instances in the entire RA6M5.

External Pin InterruptsExternal Pin Interrupts

Need Technical Support?

If you have any questions while using Renesas MCU/MPU products, you can scan the QR code below or copy the URL into your browser to access the Renesas Technical Forum for answers or online technical support.

External Pin Interrupts

https://community-ja.renesas.com/zh/forums-groups/mcu-mpu/

To be continued

Recommended Reading

External Pin Interrupts

Simple Software Delay Function – Practical Guide to Developing with Renesas RA Series FSP Library (34)

External Pin Interrupts

Overview of Interrupt Applications in RA Series MCUs – Practical Guide to Developing with Renesas RA Series FSP Library (35)

External Pin Interrupts

NVIC Interrupt Configuration Firmware Library & RA6M5 – Practical Guide to Developing with Renesas RA Series FSP Library (36)

External Pin InterruptsExternal Pin Interrupts

Leave a Comment