Other Parts Discussed in Thread: MSP430FR2111
器件型号: MSP430FR2111
根据 MSP430FR2111 的数据表、GPIO 端口 P1 只能在 P1.0 至 P1.3 上触发外部中断。 但是、.h 文件具有端口 1 上所有引脚的 P1IV__P1IFGx 定义。 MEA culpa—我应该首先阅读数据表,而我依赖于.h 文件。
当然、P2 也是如此、只是细微的细微差别。
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.
Other Parts Discussed in Thread: MSP430FR2111
器件型号: 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.
谢谢~ David Schultz