Hello there,
I have a LPC546xx with the Flexcomm defined as SPI Interface. On the SPI interface I have a Master device which works with SPI Mode 2 (capture data at falling edge, default clock polarity High). This device can also work on SPI Mode 1.
On the same SPI Interface I have a Slave device with the CSn connected to the previous Master. This device works with SPI Mode 0.
From a sequence of 3-bytes on the SPI Bus, the Master reads the 1st-byte and enables the CSn for the Slave. Now with the CSn enabled from Master, the Slave device can be addressed. So the question is:
is possible to reconfigure the SPI Interface from SPI Mode 2(or perhaps 1) to SPI Mode 0 while keeping the SCK and CS from the SPI Interface enabled?