0
\$\begingroup\$

What is the proper way of repeating I2C/SPI blocks?

Since we know in the case of SPI blocks, MISO, MOSI & SCK must all be tied together in a single bus for communication to happen.

I have read the similar question on this forum regarding this issue but didn't found the answer satisfactory. The person who asked the question only had to place the block 3 times, so putting them directly on schematic made sense.

But in my project, I need 6-7 similar blocks for I2C and SPI. I don't know exactly at this point so using Repeat will be very beneficial for me in the long run.

Here is my top sheet:

enter image description here

I have successfully made Chip Enable into bus since they are all unique. But I need to tie the MISO/MOSI/SCK together for all repetitions.

Also I am getting these errors currently: enter image description here enter image description here

A generic answer on how to connect multiple SPI/I2C blocks together would be really appreciated. Or a definitive one that this is not possible.

Thank you for your help.

\$\endgroup\$
  • \$\begingroup\$ I started to make an answer, but then I ran into the Unique Identifiers Errors, and then ran out of ambition and gave up. However, to get around the multiple Output Sheet Entries Error, redefine MISO ports and the Sheet entries to not be the Output type, as by default, one should not tie multiple output lines together (as defined in the default connectivity matrix in Project Options). Use 'Unspecified' for the Sheet Entry Type instead, as it more closely mimics the Open-Drain nature of unaddressed SPI chips. The Sheet entry type can be modified in the object's properties. Good luck! \$\endgroup\$ – Chris Knudsen Jun 6 at 19:10
  • \$\begingroup\$ Hi! Thanks for your interest in solving this problem. Yes the 'Unspecified' for sheet entry solved the "MISO contains multiple output" problem. But the real problem of repeating these safely is still at large :( \$\endgroup\$ – Mohsin Anees Jun 7 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.