Part Number: TMS320F28027F
Tool/software: Code Composer Studio
I am using c2000 piccolo launchpad for sci communication with bq76pl455 BMS ic. But i am unable run the code becoz it is giving errors . Could you please tell me whether the following logic is correct or not.And also suggest me if any errors in syntax.
void sciSend(uint32 length, uint8 * data)
{
while((length--)>0U)
{
while(SciaRegs.SCICTL2.bit.TXRDY==0)
{}
SciaRegs.SCITXBUF=*data;
*data++;
}
}
void sciReceive(uint32 length, uint8 *data)
{
while(length!=0)
{
while(SciaRegs.SCIRXST.bit.RXRDY!=1)
{}
*data=(uint8)(SciaRegs.SCIRXBUF.all);
*data++;
}