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.

SPI Master: D0, D1 connection to slave

According to AM335x technical reference manual, section 24.2, figure 24-1, the proper connection is D0 to slave MISO and D1 to slave MOSI.

However, the arrow directions seem to be reversed! The signal connecting to MISO (Master Input Slave Output) is drawn as going from Sitara to the slave. The signal connecting to MOSI (Master Output Slave Input) is drawn as going from the slave to Sitara.

So what is the proper connection? D0 to MISO or MOSI? and D1?

 

Thanks.

 

  • Hi Itamar,
     
    Both D0 and D1 can be configured as MISO or MOSI, as desired. However if you want to boot from SPI0, Table 26-30 from the TRM applies, where D0 is MISO and D1 is MOSI.
  • Hi,

    In the latest AM335x TRM Rev.I that I am looking the connections on Figure 24-1 are correct - D0 is MISO with arrow going in to the AM335x and D1 MOSI with arrow going out of the AM335x.

    Did you have this latest version of TRM (Rev. I). You can download it from the TI website.

    In general D0 and D1 can be configured as either MOSI or MISO as soon as valid combination is chosen (one is MISO other MOSI for full duplex).

    See Table 24-4. McSPI Pin List.

    Best regards,

    Vidin