This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Parallel SPIS peripherals without a TX data stream.

I am trying to use 2 SPIS peripherals to collect ADC data and have a couple of questions:

1.)  I do not need a MISO function in my SPIS implementation and would like to know how to configure that.   Can the peripheral be configured to act as an RX only device?  If so, can I use the SDK?

2.) Can the two peripherals share the same SCK pin?  (I assume the answer is NO but thought I might get lucky).

Parents
  • Why do you want 2 SPIS peripherals?

    When you say "collect ADC data", that suggests that the ADC(s) is/are external - in which case it/they would usually be the slave(s) ?

    Perhaps a diagram would help ... ?

    No, 2 peripherals can't share the same pins.

  • I am using 2 external ADC's that have to run at a specific frequency which is related to the SCK input (and thereby locks the entire data collection process to that clock).  The '840 cannot generate this frequency so I am using an external clock source and enable logic to control the data collection process.  In this application, both the ADC's and the '840 SPIS are acting as slaves since neither generates the clock or enable with each ADC having a separate instance of SPIS.  There is no data return to the ADC therefore I would like to eliminate the TX buffer if possible (it is relatively large) and re-purpose the MISO pins.  I think the MISO pin can be eliminated using the "NOT USED" definition or simply changing the pin configuration after setting up  the SPIS peripheral but its not clear to me if the peripheral will operate without a TX buffer.

  • OK - now I see.

    But not something I've tried.

Reply Children
No Data
Related