SPI, master vs. slave #10442
chrisalbertson
started this conversation in
General
Replies: 1 comment 1 reply
-
Slave mode is not supported yet by MicroPython. @dpgeorge has added on his almost infinite To-Do list the task of specifying the API. So sadly, it will take some time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writiing a simple test on a Pico. The pico has twp SPI blocks and two cores so my setup is this
Core0: uses SPI0 to write blocks of data
Core1: use SPI1 to read blocks of data
My logic analyzer shows data coming from SPO0 as expected. My problem is that I can't seem to read any data from SPI1.
Questions:
I do not see where I can specify if the SPI block should act as a master or a slave. It seems to act as a master because I see output in MOSI.
I suspect you can not interconnect the two SCLK pins because both are trying to write. But how to send SPI without doing so
Assuming that slave mode is not yet implemented in Micropython what do I have to do to read data from a master on the other SPI block?
My use case is to implement a slave mode SPI device that can be accessed from a Linux-based Pi4.
Beta Was this translation helpful? Give feedback.
All reactions