2021-10-21 06:40 PM
stm32f730 , Quad SPI ,i used to communicate to a device ,need 3bits data width.
but how to configure the data shift out on the rising edge of clk and sample the falling edge . like the Stand SPI , we can set CPOL to '0' or '1'?
if not to do , pls provide a mcu to me which have such functions
thanks!
2021-10-21 08:17 PM
Quad SPI is not just SPI with 4 data lines. It's really a specialized interface for external memories. Sampling is always on the rising edge. Your choices are mode 0 (CPOL=CPHA=0) or mode 3 (CPOL=CPHA=1).
You can chain together 3 SPIs together to get what you want, using one as master and the other two as slaves driven by the master's clock.
2021-10-21 09:14 PM
I know the FPGA can do it ,but i don't famliar with it , so i want to apply on the Mcu . how to Chain 3 SPIs together on one MCU which band as one Master SPI with 3bits data width? or have other such peripheral can do it ,thanks.
2021-10-21 09:26 PM
2021-10-21 09:59 PM
oh , mabye like this
SPI_1:
MOSI --- data0
SPI_2 :
MISO ---->data1
SPI_3 :
MISO ---->data2
2021-10-22 06:57 AM
2021-12-24 01:25 AM
In IOC setting, there is CPOL {low, high}, CPHA {1, 2 edges}.
Can I confirm that (CPOL: 0, CPHA: 0) = (CPOL: low, CPHA: 1 edge)
and (CPOL: 1, CPHA: 1) = (CPOL: high, CPHA: 2 edge)
2021-12-24 07:46 AM
Yes.
https://en.wikipedia.org/wiki/Serial_Peripheral_Interface