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.
大家好、
我对 MSP430G2553 DS 有两个问题。
(1)
在数据表中、P.42 (端口 P1引脚电路原理图:P1.0至 P1.2、采用施密特触发器的输入/输出)、
当 PxSEL.y = PXSEL2.y = 1时、输出为"0"。
我认为"来自 USCI"是正确的。
我的理解是否正确?
(2)
在数据表中、P.47 (表18. 端口 P1 (P1.4)引脚功能)、
当 P1SEL.x = P1SEL2.x = 1时、P1DIR 为"来自 USCI"。
但是、查看数据表 P.46 (端口 P1引脚电路原理图:P1.4、采用施密特触发器的输入/输出)、
无论 P1SEL 和 P1SEL2如何、方向均由 P1DIR 确定。
我认为"来自 USCI"是正确的。
我的理解是否正确?
此致、
Kuramoto M
你好,Masataka!
当 P1SEL 和 P1SEL2被置位时、一个输出方向引脚的方向和电压电平由 USCI 模块控制。 当然、该模块可以通过不同的方式进行配置。 如果您有 SPI 从器件、CLK 当然是一个输入。 在这里、方向仍由 USCI 模块控制、但电压电平必须在外部设置。
Dennis