XMC4800 SPI Automatic Slave Select Update

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

cross mob
User16529
Level 4
Level 4
First solution authored
Hi!
I want to communicate with several ISOFACE, so i need to switch among the chip select. Now i'm doing via software, using a variable. I read in the XMC4800 reference manual that it's possible the automatic slave select update. Is it right to implement it in the following way?

channel->TCSR = (uint32_t)(USIC_CH_TCSR_HPCMD_Msk |
(0x01UL << USIC_CH_TCSR_TDEN_Pos) |
USIC_CH_TCSR_TDSSM_Msk | USIC_CH_TCSR_SELMD_Msk);

this is the code line in the XMC_SPI_CH_Init of the XMCLib "xmc_spi.c", i've added the SELMD_msk.

Any help will be welcome.
Janet
0 Likes
0 Replies