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.

[参考译文] MSP430FR2111:msp430fr2111.h 和其他 msp430fr2xxx.h 文件中的误导性信息

Guru**** 2862450 points

Other Parts Discussed in Thread: MSP430FR2111

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1629263/msp430fr2111-misleading-information-in-msp430fr2111-h-and-other-msp430fr2xxx-h-files

器件型号: MSP430FR2111

根据 MSP430FR2111 的数据表、GPIO 端口 P1 只能在 P1.0 至 P1.3 上触发外部中断。 但是、.h 文件具有端口 1 上所有引脚的 P1IV__P1IFGx 定义。 MEA culpa—我应该首先阅读数据表,而我依赖于.h 文件。

当然、P2 也是如此、只是细微的细微差别。

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

    您是指数据表中的这一部分吗?  https://www.ti.com/lit/ds/symlink/msp430fr2111.pdf 9.11.3 通用输入/输出端口 (I/O)

    Edge-selectable interrupt, LPM4, LPM3.5 and LPM4.5 wake-up input capability is available for P1.0 to P1.3, P2.0, P2.1, P2.6, and P2.7.

    这意味着这 8 个引脚支持从这些低功耗模式唤醒。

    实际上、所有引脚 P1 和 P2 都支持中断:

    Any combination of input, output, and interrupt conditions is possible to P1 and P2.

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

    大家好、您能详细说明一下您答案的第二部分吗?

    P1 有 8 个引脚、根据数据表和您的答案第一部分、只有 P1.0 至 P1.3 能够进行边沿可选中断、在您的答案中、第二部分提到所有引脚 P1。

    您是否表示中断在 P1.4-P1.7 上可用、但它们不能从 LPM 唤醒?

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

    表 9-2(中断源,标志和矢量)仅列出了端口 1 和 2 上作为源中断的几个引脚。 这似乎是决定性的。

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

    谢谢大卫,我同意。 但是、为什么特定器件 msp430fr2111.h 的.h 文件对于 没有中断的 P1IV_P1IFG4 到 P1IV__P1IFG7 有#define 行?

    对于 P2IV_P2IFG2 至 P2IV__P2IFG5 (甚至没有物理引脚)也是如此? 这是模糊部分。

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

    剪切并粘贴。

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

    谢谢~ David Schultz