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.

[参考译文] MSP430FR2433:如何查找中断引脚

Guru**** 663810 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1179090/msp430fr2433-how-to-find-the-interrupt-pin

器件型号:MSP430FR2433

尊敬的专家:

我在这里使用了中断示例我在同一端口中使用了两个引脚、但我找不到发生了哪个引脚中断 BIT3或 BIT4、请帮助查找引脚。

P1OUT |= BIT3+BIT7;//将 P1.3配置为上拉
P1REN |= BIT3+BIT7;// P1.3上拉寄存器使能
P1IES |= BIT3+BIT7;// P1.3高/低边沿
P1IE |= BIT3+BIT7;// P1.3中断被启用

//端口1中断服务例程
#if defined (__TI_Compiler_version__)|| Defined (__IAR_systems_ICC__)
#pragma vector=Port1_vector
_interrupt void Port_1 (void)
#Elif defined (_GNU_)
void __attribute__((interrupt (Port1_vector))) Port_1 (void)
其他
错误编译器不受支持!
#endif

P1IFG &=~BIT3|BIT7;//清除 P1.3 IFG
_BIC_SR_REGISTER_ON_EXIT (LPM4_BITS);//退出 LPM3

此致

Surya