你(们)好
我正在尝试为 UART 配置配置 UCA3TXD,UCA3RXD,我正在为 UART 配置使用 P4.1和 P4.2引脚,但它不起作用,如果我使用 P2.0和 P2.1,它工作正常
为设置用于 UART 配置的 P4.1和 P4.2,我尝试通过所有可能的组合 P4SEL0 = 0x06;P4SEL1 = 0x06;P4SELC = 0x06进行配置;
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.
你(们)好
我正在尝试为 UART 配置配置 UCA3TXD,UCA3RXD,我正在为 UART 配置使用 P4.1和 P4.2引脚,但它不起作用,如果我使用 P2.0和 P2.1,它工作正常
为设置用于 UART 配置的 P4.1和 P4.2,我尝试通过所有可能的组合 P4SEL0 = 0x06;P4SEL1 = 0x06;P4SELC = 0x06进行配置;
你好,艾伦,
该表在哪里可用,我找不到它的数据表,如何配置为多路复用功能?
P2SEL1 = 0x03; /* GPIO PIN 配置*/
UCA3CTLW0 = 0x0081;
UCA3BRW = 0x0068;
UCA3MCTLW = 0xD621;
UCA3CTLW0 = 0x0080;
对于此引脚配置,它工作正常
P4SELC = 0x06; /* GPIO PIN 配置*/
UCA3CTLW0 = 0x0081;
UCA3BRW = 0x0068;
UCA3MCTLW = 0xD621;
UCA3CTLW0 = 0x0080;
对于此引脚配置,它不起作用