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.

AM2634: AM2634 SPI Half Duplex Configuration.

Part Number: AM2634
Other Parts Discussed in Thread: SYSCONFIG

Hello TE Teams,

Can you please tell me how to configure SPI in Half Duplex?

  • Hi Aman,

    It is single-data-pin interface mode. Only data line is used for either transmitting or receiving.

  • I working on SPI Master-Slave Half Duplex mode and I want to send some cmd to slave and recieve the response from Slave.
    How to Cofigure data pin (MISO or MOSI).From my understanding D0 - Data Out Pin and D1 - Data In Pin.
    1.In Half Duplex Mode Which pin (D0 or D1) have to use?
    2.How to configure Half Duplex Mode in SysConfig Tools?
    3.Do you have any example code related to Half Duplex?

  • Hi Aman,

    The MCSPI does not support the transmit-and-receive mode with half-duplex. In half-duplex mode, it is either transmit-only mode or receive-only mode.

    For master to receive data, it must write data to TX buffer to generate SPI clock for slave to send data. You can try the following method to TX and RX data in 3-pin mode:

    1. To TX data: configure McSPI as 3-pin TX mode, D0 is for TX . You can TX data and command which tells the slave to prepare data for transmit

    2. To RX data: configure McSPI as 3-pin RX mode or 4-pin mode, D1 is for RX, but disable output for both D0 and D1. You can write data to TX buffer to generate SPI clock (I haven't tested).