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.

CCS/TMS320F28027F: SCI function

Part Number: TMS320F28027F
Other Parts Discussed in Thread: TMS320F28027

Tool/software: Code Composer Studio

Hi I have written function for sci send & receive for TMS320F28027 launchpad , I want to use interrupt ISR  in these function to work same that is they should send and receive with same parameter .

What modification do i need to have same functionality .

void sciSend(Uint32 length, uint8 * data)
{
while((length--)>0U)
{
while (SciaRegs.SCIFFTX.bit.TXFFST != 0) {}
SciaRegs.SCITXBUF=*data;
*data++;

}
}
void sciReceive(Uint32 length, uint8 *data)
{
while((length--)>0U)
{
while(SciaRegs.SCIFFRX.bit.RXFFST !=1) { }
*data = (uint8)(SciaRegs.SCIRXBUF.all);
*data++;
}
}

 when i call these function they should use interrupt ISR .