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.

[参考译文] MSP430FR2355:VLO

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1531372/msp430fr2355-vlo

器件型号:MSP430FR2355

工具/软件:

您好:  

我对 MSP430fr2355 有疑问。 我想使用内部振荡器 VLO 为处理器供电。  同时、我想将 VLO 带到引脚 P3.4 上的 SMCLK 信号。

 有人可以 发布代码示例吗?  

谢谢、Jan

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

    您可以尝试下面的代码

    WDTCTL = WDTPW | WDTHOLD;//停止看门狗计时器   
    CSCTL4 = SELMS__VLOCLK| SELA__VLOCLK;//设置 ACLK = XT1CLK = 32768Hz

    P1DIR |= BIT0 | BIT1 | BIT2;//将 ACLK SMCLK 和 LED 引脚设置为输出
    P1SEL1 || BIT0 | BIT1;//将 ACLK 和 SMCLK 引脚设置为第二功能

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