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.

[参考译文] MSP432P401R:端口映射器不能在WFP 4.3 上放置UCBOCLK

Guru**** 2540720 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/572657/msp432p401r-port-mapper-doesn-t-put-ucboclk-on-p4-3

部件号:MSP432P401R

我会附加一个似乎不起作用的代码。 在第二个功能之后,WFP 4.3 始终变为MCLK。

port_mapping数组看起来就像这样。 我知道PM_UCB0CLK只能在第四位。

//端口映射器配置寄存
器连接uint8_t port_mapping []=
{
//端口P4:
PM_UCB0CLK,PM_UCB0CLK,PM_UCB0CLK,PM_UCB0CLK,PM_UCB0CLK, PM_UCB0CLK,PM_UCB0CLK,
PM_UCB0CLK
};

int main(void){

PMAP_configurePorts((const uint8_t *) port_mapping,PMAP_P4MAP,1,
PMAP_禁用_重新配置);

GPIO _setAsPeripheralModuleFunctionOutputPin (GPIO_PORT_P4,
GPIO _PIN3,GPIO主要模块功能);
}

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

    根据数据表的表6-70,MCLK是您获得的WFP 4.3 的主要模块功能。

    第6.9 节。2.1 说:

    MSP432P401x MCU上的端口映射控制器允许在端口P2,P3和P7上对数字功能进行重新配置的映射。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我知道MCLK在WFP 4.3 上,我看了6.9。2.1 ,似乎我总是忽略了这一点。 感谢你的帮助。
    返回阅读手册。