SPI001Chip Select Pin

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User6383
Level 1
Level 1
Hello

I am working on a project using the SPI001[1.0.12] app with Dave 3.1.6 on the Hexagon Kit.
How can i invert the Chip Select Output Pin? I don't find any thing in the app, source or header file.

regards
Max
0 Likes
1 Reply
Mike1
Employee
Employee
5 sign-ins First question asked 10 replies posted
Hi Max_Rock,

You can invert the Chip Select Output by manually adjusting the PCR.SELINV bit like this:
SPI001_Handle0.USICRegs->PCR_SSCMode |= USIC_CH_PCR_SSCMode_SELINV_Pos;

SPI001_Handle0.USICRegs->PCR_SSCMode &= ~(USIC_CH_PCR_SSCMode_SELINV_Pos);
0 Likes