Part Number: TMS320F28377D
Tool/software: Code Composer Studio
Hi
SCI Cannot work at power up but it can work after push down reset button, ie. after reset it works.
And it works during debug phase using J-tag.
It occurred when I using LaunchPad and my own control board.
below is my code:
#define SCIRegs SciaRegs SCIRegs.SCICCR.all =0x0007; // 1 stop bit, No loopback// No parity,8 char bits,// async mode, idle-line protocol SCIRegs.SCICTL1.all =0x0003; // enable TX, RX, internal SCICLK,// Disable RX ERR, SLEEP, TXWAKE SCIRegs.SCICTL2.all =0x0003; SCIRegs.SCICTL2.bit.TXINTENA = 0; SCIRegs.SCICTL2.bit.RXBKINTENA = 0; // C7h = 31250 baud @ LSPCLK = 200/4 MHz SCIHBAUD 0x2 SCILBAUD 0x8B 9600 // BRR = LSPCLK / (SCI Asynchronous Baud * 8) - 1 SCIRegs.SCIHBAUD.all = 0x0000; //0x2; SCIRegs.SCILBAUD.all = 0x00C7; //0x8B; SCIRegs.SCIFFTX.all= 0x8040; // DISable FIFO enhancement SCIRegs.SCIFFRX.all= 0x204f; SCIRegs.SCIFFCT.all=0x0; SCIRegs.SCICTL1.all =0x0023; // Relinquish SCI from Reset
Look forward to your kind feedback.
Best Regards,
Alvin