You are here

Support two SPI slave devices with different CPOL | Cypress Semiconductor

Support two SPI slave devices with different CPOL

Summary: 3 Replies, Latest post by Bob Marlowe on 10 Oct 2016 07:20 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
zhangyi_1924991's picture
User
2 posts

Hello

I 'm trying to connect two SPI slave chips on my board.  I need to dynamically change the cpol setting, as the CPOL of the two chips are with different. How can I change the CPOL setting runtimely?

Thanks a lot!

 

user_1377889's picture
User
9621 posts

Welcome in the forum!

You may use an "Unconfigured SCB" and configure it as SPI (See datasheet). When stopped, you may change the configuration data and re-configure the interface with different parameters.

 

Bob

zhangyi_1924991's picture
User
2 posts

I got. thank your help very much!

user_1377889's picture
User
9621 posts

You are always welcome!

 

Bob

Log in to post new comments.