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

Wireless MCU to control slave device through SPI

Hello Everyone,

I'm looking for an MCU that could be used as a master for SPI communication to supply the necessary signals (CS+, SCLK+, MOSI+) to a slave device (amplifier chip). I also have power and size weight/limitations so want it to be as small as possible. The minimum SCLK period is 41.6 ns so would need to run SCLK+ at 24 MHz, and CS at ~1.05 Mhz. Since the chip carries out 16 bit ADC, and reads 16 bit commands SCLK is pulsed 16 times when CS is pulled low. MISO+ from the slave chip is sent elsewhere to be processed so the MCU wouldn't have to process it. The MOSI+ should be programmed to send commands to set the registers of the chip at power-up, send a 16 bit command to calibrate the chip and send the convert command to start carrying out the ADC (continue cycling through the channels of the chip as long as it is powered). The wireless capabilities of the MCU would only really be used to turn on/off the slave chip.

I have been thinking about using the nRF52832, which runs at 64 Mhz, but am uncertain if it is capable of running SPI at the speeds listed above.

  1. So my first question is, can the SPI be set to run at 24 MHz for SCLK?

  2. If yes, where could I find information about how to program the MCU for SPI communication, and how to set the frequencies for CS+ and SCLK+, along with the 16 bit command words for MOSI+ it should be sending.

  3. If no, what other MCU could be used to carry out SPI communication (keeping it as small and low energy as possible)?

  4. Can the MCU be debugged, programmed wirelessly, or does it initially have to be done through a wired connection?

Thank you in advance,

Parents Reply Children
Related