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.

TMS320F28379D: SPI bit counting during transmission

Part Number: TMS320F28379D


Hi everybody

Let us suppose to use SPI with 8-bits character. Then suppose that, for any reason (maybe noise in the transmission line), after four clock periods, the slave misses the last 4 bits (it do not "see" the clock because of noise). When the next character will be transmitted, 4 bits of the previous character are already buffered, hence you get an "overlap" of the first character with the second one, and you misses the last 4 bits of the second character. It would be possible in this case, after the first trasmission, to count how may bits have been transmitted? Or is it possible to reset "clock counting", in order to begin again from zero at the second transmission?

  • Santoni,

    There is no inherent hardware feature available in SPI to identify such scenario. You can probably send calculated checksum of each of data you are sending and make sure if your received data and checksum match. If there is a mismatch you can have your receiver request data resend. But, all this have to be done using customer software.

    Regards,

    Manoj