cancel
Showing results for 
Search instead for 
Did you mean: 

Using CRC error flag with SPI RX

jpeacock2
Associate II
Posted on March 12, 2009 at 17:30

Using CRC error flag with SPI RX

1 REPLY 1
jpeacock2
Associate II
Posted on May 17, 2011 at 13:06

In the SPI_SR register is a CRCERR flag, used (I presume) to show a CRC error on SPI receiving a block of data. At what point does the CRC flag get set? How does the CRC unit know when the SPI port is finished transferring a block of data, or more specifically, when should this flag be tested?

I assume the flag is set when the last halfword in a receive (16 bit transfers) is not a valid CRC for the block.