2015-02-13 02:33 AM
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?RegardsPaul2015-02-15 06:13 PM
I have decided to bit bang as the solution.