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.

[参考译文] MSP430F67791:端口映射

Guru**** 2430860 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/709505/msp430f67791-port-mapping

器件型号:MSP430F67791

您好!

  我不熟悉这个端口映射主题。现在我已经为 BSL-Tx 和 BSL_Rx 定义了一些端口映射细节。请检查并告知我校正、因为代码不起作用。

#define P2DIR_INIT (0)
#define P2SEL0_init (BIT0+BIT1)
#define P2SEL1_INIT (BIT0+BIT1)
#define P2OUT_INIT (0)

空端口映射(空)

PMAPKEYID = 0x2D52;
PMAPCTL = PMAPRECFG;
P2MAP0 = PM_TA0_0;
P2MAP1 = PM_TA0_1;

现在我要配置计时器 A0。但是如何配置 BSL_Tx 和 BSL_Rx 引脚。请帮我获取指南。