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.

[参考译文] MSP430FR5992:MSP430FR5994 GPIO 引脚电平不生效

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1232180/msp430fr5992-msp430fr5994-gpio-pin-level-does-not-take-effect

器件型号:MSP430FR5992
主题中讨论的其他器件:MSP430FR5994

大家好、团队成员

MSP430FR5994的 P3.4和 P3.5端口无法同时使用?

我将两个端口都设置为高电平、其中 P3.5将被设置为高电平、P3.4将首先变为高电平、然后再变为低电平。 为什么会这样呢?

在代码中、P3.4不可设为低电平。 这两个引脚是互斥的? 不能同时将其配置为 GPIO 端口?

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

    尊敬的 XI.YN.Kiana:

    您写入 P3OUT 的代码中是否有其他任何地方?

    我看到、您在共享的初始配置代码中对寄存器使用了严格分配、这在那里很好、但如果您稍后以这种方式写入 P3OUT、您可能会在某个时候覆盖您的 P3OUT BIT4值。

    如果您想更改 P3.5而不更改 P3.4、请确保您的操作类似:

    P3OUT &= ~BIT5;

    而不是:

    P3OUT = ~BIT5;

    此致、
    Brandon Fisher