You are here

Change SPI CPHA/CPOL in runtime | Cypress Semiconductor

Change SPI CPHA/CPOL in runtime

Summary: 1 Reply, Latest post by pvkv on 24 Sep 2015 11:38 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
KrisD's picture
7 posts


I use an SPI bus with different hardware components attached (sharing the same MISO/MOSI/SCLK hardware connections). Some of the components use CPHA=0, CPOL=0 others however use CPHA=1, CPOL=0. Is there a way to switch between both modes through a software API? Any other suggestions?

Best regards,


pvkv's picture
Cypress Employee
82 posts

Hi Kris,

SPI component by default does not provide this feature. It also means it is not something we can do it in code using APIs. To achieve this, we need to modify verilog code of the SPI component, add a control register through which control the SPI component's state machine to switch through different modes dynamically.

Since, we need an engineer to work on it and provide you back in timely manner, I suggest you to create a technical case for this. At later point, we can share the project here in forum so that other users can use it. 

You can create a case here:  -> Create a MyCase. 


Log in to post new comments.