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: Code for MIBSPI to check parity

Part Number: TMS570LS3137

Hi,

Please find the attachment of the main file to use mibspi for sending the data '3' continuously using external loopback. Here, the odd parity is considered.

How is the parity sent along with the data? Can it be seen in the waveform?

Please provide the waveform of the data being transmitted and received.

If the parity is enabled in while sending the data and is disabled while receiving the data, how is the data transfer done?

What is the case in the vice-versa condition?

Thanks in advance,

Susvitha.6557.main.c

  • Hello Susvitha,

    If the parity is enabled, the parity bit is transmitted at the end of the data word. If the parity is disabled at receiver, the parity bit is ignored.

  • Hi Wang,

    Can you please provide the waveform of the data being transmitted indicating the parity when the it is enabled?

    What if parity is disabled while sending the data and the parity generator checks it in the receiver?

    Thanks,

    Tirumala.

  • Hello Tirumala.,

    Just captured a waveform to show you the parity bit.

    1. Use SPI1 as master, SPI3 as slave. Even Parity is enabled. The charlen is 16 bits

    2. SPI1 transmits 2 16-bit words: 0x5FAB, and 0x5FBB. The parity for 0x5FAB is 1, and the parity for 0x5FBB is 0

    3. The waveform shows that 16-bit data is followed by 1-bit parity bit. 

    Both master and slave should have the same settings: data length, and parity set (enabled/disabled, odd/even).