Other Parts Discussed in Thread: C2000WARE
器件型号: F28377D-SEP
主题: C2000WARE 中讨论的其他器件
尊敬的专家:
我使用 McBSP 作为 SPI。
但是、CPU 不会接收来自 McBSP 的中断
当 McbspaRegs.SPCR2.bit.XRDY 从 0 更改为 1 时。
您能告诉我如何获得样例程序吗?
此致、
Hidehiko
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: C2000WARE
器件型号: F28377D-SEP
主题: C2000WARE 中讨论的其他器件
尊敬的专家:
我使用 McBSP 作为 SPI。
但是、CPU 不会接收来自 McBSP 的中断
当 McbspaRegs.SPCR2.bit.XRDY 从 0 更改为 1 时。
您能告诉我如何获得样例程序吗?
此致、
Hidehiko
Hidehiko,
C2000Ware 中有一个 McBSP 的中断示例、此处为 C:\ti\c2000\C2000Ware_6_00_00\driverlib\f2837xd\examples\cpu1\McBSP\McBSP_ex3_loopback_interrupts
此操作不在 SPI 模式下、但您可以以相同的方式使用 ISR 设置。 对于您的情况、SPCR2 寄存器中的 XINTM 位应保留在“0",“,以便、以便在 FIFO 准备好接收新数据时触发。
此致、
Matthew