-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add option to skip n SPI data bits #100
base: master
Are you sure you want to change the base?
Conversation
bcbcfc5
to
7d44e53
Compare
7d44e53
to
ade96e5
Compare
Hi Daniel, do you have a signal capture to give this some more context? |
Hi @kamocat , you can understand the context from here: https://blog.danman.eu/updating-rns315-maps-for-fun-and-profit/ |
So you're using the SPI decoder to read SD card data, instead of extending the SD card decoder to output data? |
I know it's a shame but it's true. This was just a few lines, instead of implementing SD data decoding which would be 🤯 |
It looks pretty simple to add this same functionality to the SD decoder. From the simplified SD standard,
So all you have to do is look for a falling edge on DAT0, and stop when all the data lines are high for 512 bits in a row. |
And handle 1-bit, 2-bit, 4-bit, 8-bit mode, CRC, and, and, and... |
This is useful when you have no CS signal and want to offset the decoding by a few bits