I am writing the SCI code that loop back the character to DSP itself and i wrote like this :
char message[]={"1"};
while(1)
{
ScibRegs.SCITXBUF=message[index++]; // send single character
while (ScibRegs.SCIRXST.bit.RXRDY == 1) ; //wait for Rx ready
x[i]=ScibRegs.SCIRXBUF.all;
}
Initialization part
void SCIB_init()
{
ScibRegs.SCICCR.all =0x0027; // 1 stop bit, No loopback
// ODD parity,8 char bits,
// async mode, idle-line protocol
ScibRegs.SCICTL1.all =0x0003; // enable TX, RX, internal SCICLK,
// Disable RX ERR, SLEEP, TXWAKE
// SYSCLOCKOUT = 150MHz; LSPCLK = 1/4 = 37.5 MHz
// BRR = (LSPCLK / (9600 x 8)) -1
// BRR = 487 gives 9605 Baud
ScibRegs.SCIHBAUD = 487 >> 8; // Highbyte
ScibRegs.SCILBAUD = 487 & 0x00FF; // Lowbyte
ScibRegs.SCICTL1.all = 0x0023; // Relinquish SCI from Reset
}
Now I am not able to see the register SCI RXBUF Register changing anything Please anyone help me in finding this