请教CORTEX M3/4的资源问题



CORTEX M3/4的中断有NMI中断,还有普通的IO中断吗?看了资料没发现。

  • 当然有普通的IO中断。这个是其基本功能啊:上升沿,下降沿,双边沿

    你可以查看datasheet中GPIOs章节的Interrupt Control:

    The interrupt capabilities of each GPIO port are controlled by a set of seven registers. These registers

    are used to select the source of the interrupt, its polarity, and the edge properties. When one or

    more GPIO inputs cause an interrupt, a single interrupt output is sent to the interrupt controller for

    the entire GPIO port. For edge-triggered interrupts, software must clear the interrupt to enable any

    further interrupts. For a level-sensitive interrupt, the external source must hold the level constant

    for the interrupt to be recognized by the controller.

  • 那是你没看仔细?

  • M3/M4是有普通IO中断的,通过GPIO的配置可以实现。当IO被配置为数字输入时,可以配置不同的输入状态触发中断(如上升下降沿等)。

    在器件手册中General-Purpose Input/Outputs (GPIOs)章节可以找到支持的触发模式,以及更加详细的配置方法。