This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432的中断源



求教,看了眼手册,似乎MSP432的PORT7~PORT10引脚不支持中断输入?

  • //*****************************************************************************
    //
    //! \brief This function enables the port interrupt on the selected pin
    //!
    //! This function enables the port interrupt on the selected pin. Note that
    //! only Port 1,2, A have this capability.
    //!
    //! \param selectedPort is the selected port.
    //!        Valid values are:
    //!        - \b GPIO_PORT_P1
    //!        - \b GPIO_PORT_P2
    //!        - \b GPIO_PORT_PA
    //! \param selectedPins is the specified pin in the selected port.
    //!        Mask value is the logical OR of any of the following:
    //!        - \b GPIO_PIN0
    //!        - \b GPIO_PIN1
    //!        - \b GPIO_PIN2
    //!        - \b GPIO_PIN3
    //!        - \b GPIO_PIN4
    //!        - \b GPIO_PIN5
    //!        - \b GPIO_PIN6
    //!        - \b GPIO_PIN7
    //!        - \b GPIO_PIN8
    //!        - \b GPIO_PIN9
    //!        - \b GPIO_PIN10
    //!        - \b GPIO_PIN11
    //!        - \b GPIO_PIN12
    //!        - \b GPIO_PIN13
    //!        - \b GPIO_PIN14
    //!        - \b GPIO_PIN15
    //!
    //! Modified bits of \b PxIE register.
    //!
    //! \return None
    //
    //*****************************************************************************
    extern void GPIO_enableInterrupt(uint_fast8_t selectedPort,
            uint_fast16_t selectedPins);
    

    根据库函数的注释是不支持那些的。

  • 兄台,不知道是否是我理解不到位,我觉得你贴的这段注释可能有问题,432支持的port中断输入的引脚应该是PORT1~PORT6,见手册关于中断源部分的描述

  • 文档中确实是如你所说,但是提供的库函数不知道为何,却没有说其他的端口,也可能是省略, 如果可以通过PORTA代替Port1和Port2,那么顺应的看,应该还有PORTB PORTC

  • 你疑问的7到10,手册上是谓保留位,就是不存在IO中断。。