SPI Slave Register Reset
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-16 9:37 AM
I have an issue with the SPI slave interface in the ST32ML151. Occasionally, the SPI slave get an extra clock from outside, either because noise or a reset at the master side. I know when this happens. Is there a way to reset the SPI slave shift register other than reconfiguration the whole spi slave interface?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-16 11:00 AM
Probably no.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-16 2:37 PM
Assuming you are using software slave management rather than hardware slave select, try this:
- Set SPI_CR1_SSI
- Read the DR register to clear the input buffer
- Read the SR register to clear error flags
- Set up for the next data exchange
- Clear SPI_CR1_SSI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-30 3:08 PM
Did that work for you? Indicating success or failure may help others that stumble across the same issue.
