Interrupt Router (IR)中断管理模块

Interrupt Router (IR) Feature List

  • 支持多达1024个服务请求

  • 每个中断控制单元ICU支持多达255个中断优先级

  • 支持多达8个中断控制单元

  • 每个CPU或者DMA(Direct Memory Access)都有专用的中断控制单元ICU

  • 仲裁时间短,3-4个时钟周期就会将中断结果发送给中断服务者

  • 每个外围中断请求源都有一个特定的中断节点Service Request Node (SRN)

  • 每个SRN在寄存器中都有8bit的优先级field

  • 每个中断节点的优先级都可以映射到一个ICU

  • 中断服务完成之后会进行硬件自动清除

  • 8 General Purpose Service Requests (GPSR) per CPU that can be used as Software Interrupts (not assigned to peripherals or external interrupts) 每个CPU都有8个通用中断请求,用于软件中断

  • 支持CPU唤醒Interrupt Router (IR)中断管理模块

  • External Interrupts with filter modes and trigger modes (to e.g. falling edge, rising edge, high or low level). Modes can be configured during runtime)

Overview

中断三要素

  1. 中断节点 Service Request Node (SRN) 存在中断请求到中断节点的映射
  2. 中断优先级 Interrupt Priority 0-255
  3. 中断服务者 Service Provider
  • CPUx 和 MDA
  • 每一个中断服务者都有一个对应的中断控制单元ICU
  • 每一个ICU都对应有2个控制寄存器

Service Request Nodes (SRN)

中断请求控制寄存器Service Request Control Register (SRC)

Service Request Control Register i SRCi (i=0-1023)
Interrupt Router (IR)中断管理模块

Interrupt Control Unit (ICU)

The Interrupt Router module includes one ICU per service provider (CPUs and DMA modules) where each ICU is related to one service provider. SRNs can be mapped to one of the ICUs via the SRNs SRCx.TOS register bit field

The Interrupt Control Units (ICU):
• Manages the arbitration among competing service requests from SRNs that are mapped to the ICU
• Provides the winner of the arbitration round to the service provider
• Receives the information from the service provider which service request was accepted
• Checks the accepted service request information (ECC check)
• Signals integrity errors to the Safety Management Unit (SMU)
• Manages the clearing of acknowledged service requests in the related SRNs

ICU Control Registers x表示中断控制单元

Latest Winning Service Request Register (LWSR) **LWSRx (x=0-7)**提供上次中断仲裁结果
Last Acknowledged Service Request Register x, related to ICUx **LASRx (x=0-7)**提供中断服务者完成中断服务的节点信息
Error Capture Register (ECR) ECRx (x=0-7)

Arbitration Process

Interrupt Router (IR)中断管理模块后续更新:
可查阅芯片手册和《英飞凌多核单片机应用技术》