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:
- First time - 0x345678
- Second time - 0x12345678
And will be correct from then on out... any ideas?
Dave, I am counting on you here!