Skip to content
Discussion options

You must be logged in to vote

In my experience, both our Rust ch32-hal and the official C HAL only support two NSS modes: 1.Software NSS 2.Hardware NSS. In software mode, the MCU just let-go with NSS pin, you must implement the chip-select logic in your own SPI driver. In hardware mode, the peripheral drives a single NSS pin with standard SPI protocol way. Therefore, if you need to control multiple slave devices, the only option is to implement chip-select in software, because hardware NSS is only available for one device.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aq1018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants