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

Add support for 3-wire SPI #2

Open
avsa242 opened this issue Aug 12, 2021 · 1 comment
Open

Add support for 3-wire SPI #2

avsa242 opened this issue Aug 12, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@avsa242
Copy link
Owner

avsa242 commented Aug 12, 2021

The chip can operate over 3-wire SPI as a compromise between lesser I/O pins used I2C and faster 4-wire SPI.

@avsa242 avsa242 added the enhancement New feature or request label Aug 12, 2021
@avsa242 avsa242 self-assigned this Aug 12, 2021
@avsa242
Copy link
Owner Author

avsa242 commented Sep 29, 2021

Update: This can be done, but isn't as trivial as it was originally thought to be. The 4MHz SPI engine can't really support 3-wire SPI as-is. The input/output pinmasks are set at engine start, and not touched at the read/write transaction level, as in some other engines, so the same pin can't be for example an output and then an input. For this support, the SPI engine will need to be switched to the 1MHz engine.

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

No branches or pull requests

1 participant