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.

F28M35x的哪些管脚可以作为输入中断管脚

Other Parts Discussed in Thread: CONTROLSUITE

请教朋友们F28M35x的哪些管脚可以作为输入中断管脚?谢谢!

  • hongyue,

    你指的是外部中断对吧?

    C28的外部中断是所有的GPIO0-GPIO63都可以作为输入源,查看芯片的技术手册1.5.4 Control Subsystem PIE。

    至于M3子系统有一个PB7可以配置为NMI中断源,需要对GPIO进行配置。

    External GPIO Input Signal is Requesting an NMI。The NMI signal is the alternate function for GPIO port pin, PB7.

    Eric

  • 谢谢Eric,那对于C28核来讲GPIO68~GPIO71、pin109~112、140~143这些管脚是否也可以作为中断输入呢?但对于M3核来讲有个NVIC外设,是否是用来管理外部中断的呢?

  • hongyue,

    那对于C28核来讲GPIO68~GPIO71、pin109~112、140~143这些管脚是否也可以作为中断输入呢?

    不可以,以技术手册为依据。

    但对于M3核来讲有个NVIC外设,是否是用来管理外部中断的呢?

    关于M3的外部中断,我只看到那个NMI可以跟GPIO关联。

    Eric

  • hongyue,

    关于M3的中断,我看了相关的API函数,发现可以设置GPIO作为M3的中断源。

    // Register the port-level interrupt handler. This handler is the

    // first level interrupt handler for all the pin interrupts.

    GPIOPortIntRegister(GPIO_PORTA_BASE, PortAIntHandler);

    // Enable the pin interrupts.

    GPIOPinIntEnable(GPIO_PORTA_BASE, GPIO_PIN_2 | GPIO_PIN_4 | GPIO_PIN_5);

    //使用这个GPIOIntTypeSet来配置中断电平

    void GPIOIntTypeSet (unsigned long ulPort, unsigned char ucPins, unsigned long ulIntType)

    //使用IntEnable使能GPIO port中断

    void IntEnable (INT_GPIOA);

    //最后使能M3中断

    IntMasterEnable (void);

    所以通过例程可以看到有Int_GPIOA、B、C、D、F、G、H这几个中断可以配置外部电平产生GPIO中断。

  • 谢谢Eric,那GPIOE/GPIOJ端口不能作为外部中断吗?还有就是您说的API函数在哪可以查看?

  • 不好意思,漏写了,E,J端口也都可以。API函数在C:\ti\controlSUITE\device_support\f28m35x\v200\doc\F28M35x-DRL-UG.pdf

    Eric

  • 非常感谢Eric!