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

Probably doesn't work right on Arduino MEGA #14

Open
WestfW opened this issue Feb 13, 2019 · 0 comments
Open

Probably doesn't work right on Arduino MEGA #14

WestfW opened this issue Feb 13, 2019 · 0 comments

Comments

@WestfW
Copy link
Owner

WestfW commented Feb 13, 2019

There's that bit in the SPI peripheral documentation:

If SS is configured as an input, it must be held high to ensure Master SPI operation. If the SS pin is driven low by peripheral circuitry when the SPI is configured as a Master with the SS pin defined as an input, the SPI system interprets this as another master selecting the SPI as a slave and starting to send data to it.

On 328p-based boards, SS is pin10, and we use it as the RESET signal output. But on the Mega, SS is pin53, which will default to being an input, and it's FLOATING, so that could easily result in ... incorrect behavior.

Maybe we need a "pinMode(53, OUTPUT);" to the SPI Setup code, or something more generic...

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

No branches or pull requests

1 participant