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.

McSPI0 and pad configuration

I am trying to configure SPI 0 in master mode.

I know the mux pads need to be set to 0 for SPI function, my question is do I need to also program ..say the clk pin pad as OUTPUT (master mode) and the MOSI as OUTPUT and MISO as INPUT...  or is this automatically set based on function mode 0 being set ... and the directions set based on the SPI functional module register settings i.e. master or slave?

Also, are the Pull up/Pull down settings effective when in mux mode 0?

 

David Vescovi

  • Assuming you are referencing the OMAP35xx family of devices, please see my below responses.

    DV said:

    I am trying to configure SPI 0 in master mode.

    I know the mux pads need to be set to 0 for SPI function, my question is do I need to also program ..say the clk pin pad as OUTPUT (master mode) and the MOSI as OUTPUT and MISO as INPUT...  or is this automatically set based on function mode 0 being set ... and the directions set based on the SPI functional module register settings i.e. master or slave?

    You will need to configure the PADCONFIG registers for each signal/pin pair accordingly.  This is not automatically done based on the mux mode.

     

    DV said:

    Also, are the Pull up/Pull down settings effective when in mux mode 0?

    Similarly, this will need to be configured by your setup software as well.  The mux mode does not imply any particular setting of pull up/pull down options.

  • Just what I needed to here. Thank you for the prompt reply.

     

    DV