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.

[参考译文] LP-MSP430FR2476:如何从 uC 中引导 MCLK

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1132404/lp-msp430fr2476-how-to-root-the-mclk-out-of-my-uc

器件型号:LP-MSP430FR2476
主题中讨论的其他器件:MSP430FR2476

大家好、

我正在尝试检查 MSP430FR2476上的 MCLK 信号、但我不知道如何在 UC 上选择此函数。

通常、寄存器 PxSEL1和 PxSEL0可用于选择函数(我已经为 MSCLK 执行了此操作、它运行得很好) 、但它似乎不适用于此功能。

这是我的代码:  

#include <msp430.h> 

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

    // P1.3 with function 3 to use MCLK
    //measure : ?
    P1DIR  |=  BIT3;  // P1.3  output
    P1SEL0 &= ~BIT3;  //function 3 of P1.3 -> MCLK
    P1SEL1 |= BIT3;   //function 3 of P1.3 -> MCLK

    // P1.7 with function 2 to use SMCLK
    // measure : 1MHz
    P1DIR |=  BIT7;  // P1.7 output
    P1SEL1 |= BIT7;  //function 2 of P1.7 -> SMCLK

    while(1)
    {
        ;
    }

}

 在 MSP430FR247x 数据表的表9-23 (第65页) 中、我找到了一个提到"JTAG"信号的表、但我在微控制器上找不到它、JTAG 是一个接口、而不是简单的 GPIO……

请帮帮我。

此致、

Aurelien

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

    您好!

    您需要在配置 GPIO 引脚后添加此功能。  

    PM5CTL0 &=~LOCKLPM5;  

    此致、

    现金 Hao