cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 Half Duplex

paul23
Associate II
Posted on February 13, 2015 at 11:33

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

1 REPLY 1
paul23
Associate II
Posted on February 16, 2015 at 03:13

I have decided to bit bang as the solution.