Pin 3.3 Chip Select is not getting toggled.

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

cross mob
Not applicable
Hi.
I have configured P3.3 as Chip Select (SPI) for USIC1 channel1(XMC 4500).But this CS pin is not getting toggle with respect to the frame(SPI Frame).I have selected Alternative Function 2 for the same Pin.
So what might be the causes for this issue??
0 Likes
2 Replies
chismo
Employee
Employee
First like received
Hello,

Can you check that the following settings are correct?
- PCR.MSLSEN = 1 to enable CS generation
- PCR.SELCTR = 1 to use direct select mode though it is also possible to use the other coded select mode
- PCR.SELO = 2 to select SELO1 which is required for P3.3.

Additionally the polarity also needs to be configured with PCR.SELINV but this should not cause CS not to be generated.

Regards,
Min Wei
0 Likes
Not applicable
Thanks, Min Wei for the help, I am still having doubt for ChipSelect. What values we supposed to insert in chip select table if I want to use SELO 0?
0 Likes