我用CCS3.1对DSP2812进行软件仿真,现在对SCI接口进行仿真,先写了如下的初始化程序 void InitSci(void) { // Initialize SCI-A: *UART_MODE = 0x44; EALLOW; GpioMuxRegs.GPFMUX.all = 0x0030; EDIS; /* loopback 8 bit data */ SciaRegs.SCICCR.all = 0x17; SciaRegs.SCICTL1.all = 0x03; SciaRegs.SCICTL2.all = 0x03; SciaRegs.SCIHBAUD = 0x00; SciaRegs.SCILBAUD = 0xF3; SciaRegs.SCICTL1.all = 0x23; PieCtrl.PIEIER9.bit.INTx1 = 1; PieCtrl.PIEIER9.bit.INTx2 = 1; } 想进行收发测试,然后往SCITXBUF中写数据,写完数据后检测SCICTL2寄存器的TXRDY,如果检测到该位变为1, 说明数据发送完成,但就是检测不到该位变化,为什么啊,谢谢! |