F5529 P6.0 -P 6.7是否可以触发外部中断?
由于我设计上面未考虑周全,使用了F5529 P6.0 -P 6.7, 是否只能是P1 和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.
F5529 P6.0 -P 6.7是否可以触发外部中断?
由于我设计上面未考虑周全,使用了F5529 P6.0 -P 6.7, 是否只能是P1 和P2才能触发?
li dong,
是的,针对MSP430F5529而言,只有port1和Port2可以用作interrupt.具体说明可以参考:MSP430F5529 "Figure 1-1. Functional Block Diagram", Section 6.9.1下列说明,以及Register说明和6.10 Input/Output Schematics。 均表明只有P1和P2支持沿触发中断和唤醒。
"Edge-selectable interrupt and LPM4.5 wakeup input capability is available for all bits of ports P1 and P2 "
li dong ,
P1 和 P2,对于有TA0 TA1,这个是什么东东? 和定时器A B D有什么关联吗?
在管脚说明部分有具体说明,MSP430很多管脚都是功能复用的。
例如:
P1.2/TA0.1,默认状态下,是普通IO, 且为输入,通过配置来将其设置成输出或者中断输入。同时,你也可以通过寄存器配置将其用作Timer0, CCR1对应的Compare状态下的PWM波输出,也可以用作Capture功能的输入。
另外,如果触发BSL功能的话,它还是进行程序升级控制的UART输出口。
General-purpose digital I/O with port interrupt
TA0 CCR1 capture: CCI1A input, compare: Out1 output
BSL transmit output