I am using STM32F429 controller for one of my custom application. I need to perform SPI write in one of the four modes, specifically I have set CPOL = 0, CPHA =0. But during SPI read I need to changed the CPHA =1. My question is will that be possible to do on the fly? If yes, how? Any suggestions would help me a lot.