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.

[参考译文] MSP430FR2110:P1.6无中断触发器

Guru**** 2516370 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/846201/msp430fr2110-no-interrupt-trigger-for-p1-6

器件型号:MSP430FR2110
我正在使用 MSP430FR2110并尝试在 P1.6上设置引脚中断。 下面提供了该代码。 

当引脚 P1.6上的电压电平从高电平转换为低电平时、不会产生引脚中断。

我碰巧有一个具有 MSP430FR2311的开发套件。 使用相同的代码、引脚中断有效。 我找不到任何这样的说法
MSP430FR2110 P1.6不能用作数据表中的引脚中断。 

有人可以帮帮我吗?





//#include 

// int main (void)
//{
// WDTCTL = WDTPW | WDTHOLD; //停止看门狗计时器


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

// //禁用 GPIO 上电默认高阻抗模式
// //激活先前配置的端口设置
// PM5CTL0 &=~LOCKLPM5;

// P1IFG &=~BIT6; // P1.6 IFG 清零

// while (1)
// {
// _bis_SR_register (GIE);//输入 LPM3 w 中断
// __no_operation(); //用于调试
//}
//}

////端口1中断服务例程
//#if defined (__TI_Compiler_version__)|| defined (__IAR_systems_ICC__)
//#pragma vector=Port1_vector
//__interrupt void Port_1 (void)
//#Elif defined (__GNU__)
//#pragma vector=Port1_vector (void)

//(void)//端口1 (void)//(void)//不支持 port1)!//端口1 (void (void)!//端口1 (void)
//#endif
//{
// P1IFG &=~BIT6; //清除 P1.6 IFG
//}

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

    根据数据表(SLASE78C)第6.11.3节、P1.6在 FR2110上不能中断。  

    它的措辞是肯定的:"..is available for P1.0 to P1.3"。

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

    这就是它的原因。 谢谢你。