Other Parts Discussed in Thread: TMS320F2812
Hello,
I am using TMS320f2812 and using SCI-B. I have to get the values in an array via the SCI-B.I am typing my values through the HyperTerminal.
I have written this code but it is not working.
interrupt void scibRxFifoIsr(void)
{
if(ScibRegs.SCIRXST.bit.RXRDY == 1)
{
rdataB[i]=ScibRegs.SCIRXBUF.all;
if(rdataB[i]=='\n')
{
Access_Data();
}
i++;
}
}
My logic is that whenever i type a value via the Hyper Terminal it should set the RXRDY bit and hence rdataB array should get the typed value and the RXRDY bit is then cleared.And then again i type until i press enter. Thats when another function is to be executed.
I am not getting a single value in my array.
Could you please point out the mistake or any other logic that i can follow to write my code.