设计中使用了MSP430F5529的USCI功能,其中
USCI_A1 ----------- UART
USCI_B1 ----------- IIC
调试的时候发现这个两个不能同时使用,因此查看手册有以下说明:
这是不是说明该芯片的USCI_A1和USCI_B1不能同时中断使用!!如果可以,应如何设置,谢谢!!
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.
设计中使用了MSP430F5529的USCI功能,其中
USCI_A1 ----------- UART
USCI_B1 ----------- IIC
调试的时候发现这个两个不能同时使用,因此查看手册有以下说明:
这是不是说明该芯片的USCI_A1和USCI_B1不能同时中断使用!!如果可以,应如何设置,谢谢!!
MSP430x5xx and MSP430x6xx Family User's Guide
Literature Number: SLAU208N June 2008–Revised May 2014 (ditto)
34.3.15 USCI Interrupts
The USCI has only one interrupt vector that is shared for transmission and for reception. USCI_Ax and USC_Bx do not share the same interrupt vector.
35.3.8 SPI Interrupts
(Ditto)
36.3.7 USCI Interrupts in I2C Mode
(Ditto)
I think “USC_Bx” is a typo and the repeating paragraph meant:
“Each USCI_Ax and each USCI_Bx has only one interrupt vector that is shared for transmission and for reception.”
你理解错了。这段话要分开看,有两层意思:
1. 每个USCI只有一个中断向量,发送和接收共用一个中断向量。
2. 5529有两个USCI:USCI_Ax和USC_Bx,它们分别使用不同的中断向量
其实你去看5529的中断向量表就知道了,USCI_A1和USC_B1分别有中断向量USCI_B1和USCI_A1与之对应!
所以USCI_A1和USCI_B1中断当然可以同时使用了!