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.

TMS570LS3137: MIBSPI external loopback

Part Number: TMS570LS3137

Hi,

I am trying to send the data through external loopback using MIBSPI.

I am able to receive and transmit the data but according to the TRM, the parity bits will be at the end of a data word. How can we access the parity bit of the data sent?

Can you please provide the code(if any) to get the parity bit accessed.

Thanks,

Tirumala.

  • Hello,

    When parity generator is enabled an odd or even parity bit is added at the end of a data word. Receiver must have parity enabled as well ( in you case the same SPI port is used, so it is enabled ). Receiver receives data + parity bit. Parity generator calculates the parity of received data and compares it with received parity bit. If a received parity bit does not match with the locally calculated parity bit, the parity error flag (PARITYERR) is set and an interrupt is asserted (if enabled).

  • Hi Miro,

    Can you please mention the location of parity bits in the data word to be seen through CCS?

    Thanks,

    Tirumala.

  • Hi Tirumala,

    If the parity is enabled, the parity will be calculated and transmitted. If a received parity bit does not match with the locally calculated parity bit, the parity error flag (PARITYERR) is set and an interrupt is asserted. The parity bit is discarded after checking this bit at receiver side. 

    The only way to check the parity bit is through the scope: