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.

[参考译文] MSP430FR5869:不工作且具有中断使能功能的 GPIO P1.3的阻抗是多少?

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/755242/msp430fr5869-how-many-impedance-of-the-gpio-p1-3-w-o-and-w-interrupt-enable

器件型号:MSP430FR5869

您好、先生、

当 P1REN |= BIT3时、我们将看到 P1.3引脚的阻抗有多少?

如果设置具有中断使能功能的输入类型(下拉)、我们将看到 P1.3引脚的阻抗有多少?  是否处于高阻态?

下面是 P1.3寄存器设置:

P1DIR &=~BIT3;     //设置 GPIO P1.3输入
P1REN |=  BIT3;     //为 P1.3设置上拉模式
P1IES &=~BIT3;     //上升沿中断
P1IFG &=~BIT3;     //清除 P1.3中断标志
P1IE   |=  BIT3;     //启用中断

P1SEL0 = P1SEL1 = 0;

谢谢。

此致、

Sam

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

    尊敬的 Sam:

    GPIO 上的内部上拉/下拉电阻器的典型值为35k。

    当下拉电阻器被启用时、输入阻抗应该大约为35k。 启用或禁用中断不会改变输入阻抗。  

    快速注释-您在代码中的注释为"为 P1.3设置上拉模式"。 您实际上在该线路中所做的是启用上拉或下拉电阻器选项。 为了实际启用上拉或下拉、您需要使用 PxOUT 寄存器。 请参阅下面的内容。

    谢谢、

    Mitch

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

    非常感谢您的回复。

    Sam