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.

C2000 SCI TXBUF issue



Hello there,

I am trying to write a 32-bit value through the SCI port on a 28035 controllerCard board but I have an issue. I am using this code:

SciaRegs.SCITXBUF=(*TxWrite>>24) & 0xFF;

SciaRegs.SCITXBUF=(*TxWrite>>16) & 0xFF;

SciaRegs.SCITXBUF=(*TxWrite>>8) & 0xFF;

SciaRegs.SCITXBUF=(*TxWrite) & 0xFF;

This works as expected except the FIRST time.  The first byte of the very first 32-bit word is ignored but all of the words after the first are correct.

Am I configuring something wrong? Bug?

EXAMPLE:

If TxWrite points to 0x12345678 and it is written twice, the output will see this:

  1. First time - 0x345678
  2. Second time -  0x12345678

And will be correct from then on out... any ideas?

Dave, I am counting on you here!