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.

[参考译文] MSP430FR2633:MSP430FR2633

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/596317/msp430fr2633-msp430fr2633

器件型号:MSP430FR2633

我正在尝试从其中一个引脚读取一个简单的输入。 如果引脚为高电平、我希望它打开 LED。 我可以控制 LED、但微控制器不会读取引脚、甚至不会将引脚设置为高电平。 我测量了引脚上的电压、它为我提供了0V 电压。是否有人可以提供帮助?

P2DIR &= 0b00000000;
P2REN = 0xFF;
P2OUT = 0xFF;

while (1)



if (P2IN & BIT5 > 0){
LED1_ON;

其他
P1OUT |= BIT6;