Skip to content

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

Open
gcyBruce wants to merge 1 commit into
eblot:masterfrom
gcyBruce:master
Open

spi.py:fix spi model_0 for read. data shift at negedge, sample at posedge.#244
gcyBruce wants to merge 1 commit into
eblot:masterfrom
gcyBruce:master

Conversation

@gcyBruce

@gcyBruce gcyBruce commented Apr 7, 2021

Copy link
Copy Markdown

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