5 posts / 0 new
Last post
david_33021
Offline
Last seen:11 months 6 days ago
加入:2015-07-28 15:10
3-wire SPI

Hello,

I'd like to use SPI to communicate between the DA1468x and a sensor that only supports 3-wire SPI. The sensor exposes 3 pins: a clock pin, a chip select pin, and a pin used for both data in and data out. How should I set up the DA1468x so I can communicate with this sensor? Can I configure both SPI_DI and SPI_DO on a single GPIO? Or perhaps I should change the configuration of the GPIO and the SPI bus between reads and writes?

Thanks!
David

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi david_33021,

Hi david_33021,

What you could do in order to implement that, keep the configuration on the 68x as is and place a resistor between the MOSI and the MISO lines on and connect the input/output with the SISO pad of your sensor with the MISO pad. The resistor's value depends on the pad strength and voltage level. The higher the resistor, the longer rise and fall times, 1K to 10K can be tried based on the speed.

Thanks MT_dialog

david_33021
Offline
Last seen:11 months 6 days ago
加入:2015-07-28 15:10
Thanks! David

Thanks!

David

adamschiel
Offline
Last seen:3 years 3 days ago
加入:2017-03-03 22:35
Does the resistor between

Does the resistor between MOSI and MISO work when other SPI devices are on the bus that are 4-wire (standard MOSI/MISO)?

Thanks

Adam

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi adamschiel,

Hi adamschiel,

Yes, the above connection should work as well if the bus is shared with a device that uses tha standard SPI protocol.

Thanks MT_dialog