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.

串口中断标志的问题



在ccs中一开始DEBUG时registers中UCA0IFG为什么值为0X02?

  • 你好!

    如果你是将USCIA配置为SPI用,UCA0IFG初始化就是0x02.

    因为UCA0IFG的bit1是UCTXIFG,当发送缓冲区为空是,该位置1.

    详见

    MSP430x5xx/MSP430x6xx Family User's Guide

    chapter 36 36 Enhanced Universal Serial Communication Interface (eUSCI) – SPI Mode

    希望能够帮到你!

  • 再请教一个问题,这边的registers中UCA0IFG的值在DEBUG以后会不会随着接受中断的产生不断的改变呢?或者说能不能具体的讲讲CCS的各模块如何调试