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.

Extra bit at SCIRXBUF

Hi,

For some reason I always get '1' at the 8th bit.

Example: A is supposed to be 01000001 but I get 11000001

 B is supposed to be 01000010 but I get 11000010

This is my interrupt code:

interrupt void sciaRxFifoIsr(void)
{

rdataA=SciaRegs.SCIRXBUF.all; // Read data

if(rdataA=='\n')
{

GpioDataRegs.GPBDAT.all = 0x0000;
Delay_1ms(1000);

}

SciaRegs.SCIFFRX.bit.RXFFOVRCLR=1; // Clear Overflow flag
SciaRegs.SCIFFRX.bit.RXFFINTCLR=1; // Clear Interrupt flag
PieCtrlRegs.PIEACK.all |= 0x100; // Issue PIE ack
}

Any insight will be greatly appreciated

Thank you