AnsweredAssumed Answered

STM32F407 Half Duplex

Question asked by lee.paul.003 on Feb 13, 2015
Latest reply on Feb 16, 2015 by lee.paul.003
Hi,

I am trying to figure what I need to set the SPI peripheral to communicate to a device which can be configured to be master or slave and has a single data bus.

The slave device has the following pins - SCK, DATA, MCLK, CS.

When writing, CS is pulled low, DATA and SCK is generated by the micro.
When reading, CS is pulled high, DATA and SCK is generated by the device.

In section 28.3.4 from the reference manual, it seems like BIDIMODE=0 is the most suitable for this operation as the bus is unidirectional. In receive only mode is the SCK generated by the micro or the device? Is this the correct SPI setting to talk to the device?

Regards
Paul


Outcomes