- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has anyone had problems or issues of the /SS lines glitching when being switch from one /SS to another? I have four slave devices and when I select a /SS line the previous /SS that was active glitches which is erasing the data within that SPI slave device.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was just looking into the SPI device. Do you have a capture of this? (I would like to see this). I'll run a test to see if I can cause this as well. Try pipelining that signal and if that doesn't work try debouncing using a few registers with their outputs going through an 'AND' (+ve chip select) or 'NOR' (-ve chip select) gate followed by another register (this is overkill so reduce the logic if you don't need this much debouncing).
Also are you using the function call 'alt_avalon_spi_command()' or your own implementation (for your problem it doesn't matter, I just want to know how to recreate this)? Email me so that I can get back to you sooner. Cheers- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<update>
I have finally got around to looking at this and it doesn't appear to be a bouncing signal, but the previous slave is being selected. If you have a SPI core in your SOPC system then you may want to determine if this is going to cause your logic some problems. If anyone needs a fix for this let me know and I'll provide it.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This previous glitch is causing a problem. I would like to see Altera fix this with in the SPI peripheral itself and not have to come up with an external fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I agree and this issue has been raised.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page