#if UART_INT==0
#if SCI
while(ScibRegs.SCIFFRX.bit.RXFFST == 0); { } // wait for RRDY/RXFFST =1 for 1 data available in FIFO
dataB = ScibRegs.SCIRXBUF.all;
ScibRegs.SCITXBUF=dataB;
f=dataB;
while(ScibRegs.SCIFFTX.bit.TXFFST != 0);
interrupt void scibTxFifoIsr(void)
{
ScibRegs.SCIFFTX.bit.TXFFINTCLR=1; // Clear Interrupt flag
PieCtrlRegs.PIEACK.all|=0x100; // Issue PIE ACK
}
interrupt void scibRxFifoIsr(void)
{
dataB=ScibRegs.SCIRXBUF.all; // Read data
ScibRegs.SCITXBUF=dataB; // Send data
ScibRegs.SCIFFRX.bit.RXFFOVRCLR=1; // Clear Overflow flag
ScibRegs.SCIFFRX.bit.RXFFINTCLR=1; // Clear Interrupt flag
PieCtrlRegs.PIEACK.all|=0x100; // Issue PIE ack