I have questions please about the CPOL and CPHA that need to be set at the master and slave devices.
1.
For CPHA = 0, data is read on clock's rising edge, but when is the data sent? half-cycle before the clock's rising edge?
2.
Must the master and slave devices must be configured to have the same CPOL and CPHA values?
If so, what happens if you have one Master (Uc) and 2 Slaves, where one Slave is configured to have CPHA=1, and one slave is configured to have CPHA=0?
(and the slave doesnt give you the option to set their CPHA to a desired value).
3.
Must the data on the MOSI and MISO lines stay stable for half a cycle before the "reading transition", and also for half a cycle after the "reading transition".
(For CPHA=0, the "reading transition" is the rising transition).
Thank you very much.
1.
For CPHA = 0, data is read on clock's rising edge, but when is the data sent? half-cycle before the clock's rising edge?
2.
Must the master and slave devices must be configured to have the same CPOL and CPHA values?
If so, what happens if you have one Master (Uc) and 2 Slaves, where one Slave is configured to have CPHA=1, and one slave is configured to have CPHA=0?
(and the slave doesnt give you the option to set their CPHA to a desired value).
3.
Must the data on the MOSI and MISO lines stay stable for half a cycle before the "reading transition", and also for half a cycle after the "reading transition".
(For CPHA=0, the "reading transition" is the rising transition).
Thank you very much.
Last edited: