Skip to content
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

spi.py:fix spi model_0 for read. data shift at negedge, sample at posedge. #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gcyBruce
Copy link

@gcyBruce gcyBruce commented Apr 7, 2021

We noticed with CPOL=0 and CPHA=0 this did not work. With CPHA=0 we should be sampling on the positive edge, not the negative. Perhaps CPHA needs to be factored in here, too. In the meantime reversing the polarity of this check works.
1920px-SPI_timing_diagram2 svg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant