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.

[参考译文] MSP-EXP430FR2355:P3.3未执行't 工作(CAN't 设置为高电平)

Guru**** 2580505 points
Other Parts Discussed in Thread: MSP-EXP430FR2355

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1002868/msp-exp430fr2355-p3-3-don-t-works-can-t-set-to-high-level

器件型号:MSP-EXP430FR2355

你好。

我正在使用 LaunchPad MSP-EXP430FR2355,但遇到了问题。 当将端口3的所有引脚设置为输出并处于高电平位置(寄存器 P3OUT = 0xFF)时、 除了引脚 P3.3外、我在端口3的所有引脚上看到3.3V 电压。  下面是代码、使用"driverlib.h"并在没有此库的情况下尝试了2个选项。 在这两种情况下、端口3上的所有引脚都工作、P3.3除外。 更换开发的套件未带来结果。

我的两个代码示例(全部不起作用)

Example 1
---------------------------------------------------------------
#include <msp430.h> 
#include "driverlib.h"

int main(void)
{
	WDTCTL = WDTPW | WDTHOLD;	// stop watchdog timer

	//PA.x output
    	GPIO_setAsOutputPin(GPIO_PORT_P3,
        	GPIO_PIN0 + GPIO_PIN1 + GPIO_PIN2 + GPIO_PIN3 +
        	GPIO_PIN4 + GPIO_PIN5 + GPIO_PIN6 + GPIO_PIN7
        	);

    	//Set all PA pins HI
    	GPIO_setOutputHighOnPin(GPIO_PORT_P3,
        	GPIO_PIN0 + GPIO_PIN1 + GPIO_PIN2 + GPIO_PIN3 +
        	GPIO_PIN4 + GPIO_PIN5 + GPIO_PIN6 + GPIO_PIN7
        	);

	PMM_unlockLPM5();
	
	while(1);
}

---------------------------------------------------------------

Example 2
---------------------------------------------------------------

#include <msp430.h> 

int main(void)
{
	WDTCTL = WDTPW | WDTHOLD;	// stop watchdog timer

	PM5CTL0 &= ~LOCKLPM5;	//Disable the GPIO power-on
 				//default high-impedance mode
				//to activate previously
				//configured port settings

	//All port 3 must work in GPIO mode
	P3SEL0 = 0x00; 
	P3SEL1 = 0x00; 

	P3DIR = 0xFF; 	//setting all pins of port 3 to output
	P3OUT=0xFF;	//On all pins of port 3 = Output is HIGH	

	while(1);
}

---------------------------------------------------------------

我无法理解为什么 P3.3引脚上没有3.3V 电压。

谢谢!

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

    不要忘记从 J9上移除跳线(P3.3跳线、电路板的底部)、否则 P3.3连接到光传感器。 您可能还需要移除 J7/J8跳线。

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

    谢谢、就是这样、有必要移除 J9跳线。  问题已解决。

    很抱歉、 我没有想法