0
\$\begingroup\$

I need connect 3 modules via SPI with ATMEGA1284P-PU. I looked on datasheet, but I found only one SPI.

On which pins are other SPI?

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

You can use several modules using the same exact pins. The trick is to not let these several devices work at the same time. It is easily done by keeping only one Slave Select (SS) line low. What I mean by that you can have multiple Slave Select lines and control them from your application.

I would also advise using pull-up resistors on these Slave Select lines to avoid interference when writing your program to flash because programmer also uses SPI interface. I've had a problem like that myself some time ago

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.