This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Change Polarity of Chip Select line for SPI devices

Hi,

I would like to know the correct way to change the polarity of the CS line for SPI devices. The SHARP memory display is opposite of most SPI slave devices so I need to use the CSNPOL register so the SPI subsystem can correctly handle the line.  I have the Sharp display and an RTC on the same bus, each one requiring different polarity for its operation.

Currently I am using SDK 15.2 with the SPI manager, and am following the SPI manager example from the SDK. I would prefer it to be a part of the SPI configuration structure so I can use multiple configurations.

Any insight would be appreciated.

Thank you and happy new year!

-Ben

Related