hi,
i found i only can use cs_0 and when i choose other chip select ,it is not actived(i have configured pinmux ) . if CSNR = 1 ,it means CS_1 will be actived?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Ron,
When SPI is used as master (Compatibility mide), you can decide which Chip Select will be activated.
Assuming you are using HalcoGen to generate your SPI driver, this is done as following:
dataconfig1_t.CSNR = 0xFE; // Select CS0 (11111110)
dataconfig1_t.CSNR = 0xFD; // Select CS1 (11111101)
and so on....
Usually slave SPI devices are expecting the CS to be active low.
This is the default configuration for our microcontroller but it can be changed. See the following extract from the TRM.
When the SPI is used in SPI slave (compatibility mode), it's expecting the CS0 as signal the start a transfer. Other CS cannot be used.
Please let me know if I've answered your question.