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.
工具/软件:Code Composer Studio
我想使用 (PU.0和 PU.1)作为 GPIO 来点亮 LED、如何配置它?
您好、Kary、
我建议您查看 《MSP430x5xx 和 MSP430x6xx 系列用户指南》中的第43.2.7节"端口 U 控制"。
本节介绍了需要设置哪些位才能将 GPIO 配置为输出。
如果仍有问题、请告知我。
此致、
Britta
http://e2e.ti.com/support/microcontrollers/msp430/f/166/p/255705/894712
您也可以为此使用端口 J。
PUCTL |= PUOPE; IF (某些条件){ PUCTL |= PUOUT1 PUOUT0;} IF (某些条件){ PUCTL |= PUOUT0; }
够了吗?
您好、Kary、
是的、您将端口 U 设置为输出、并根据您将 Pin0/ Pin1驱动为高电平的条件而定。
[引用用户="Kary"] PUOUT0;[/quot]
但不确定你在这里要做什么。
此致、
Britta