New answers tagged

2

My two Cents: On USI-Receive Interrupt copy byte in RAM-buffer. Make a simple ring buffer which will overwrite if capacity is exceeded. With every byte receive you reset a counter delay. If counter times out no more bytes are received - rather the buffer is flushed out within a simple while () loop. After this go back to read mode. In conclusion: Implement a ...


1

No official standard for pinout OR protocol other than they are often made to fall into one of several loosely similar groups to ease interchangeability (but not to make it mindless). Interchangeable must be determined on a case-by-case basis. You also talk about flash as if there was no such thing as parallel vs serial flash. USB sticks definitely do do not ...


9

TL; DR : SPI is a generic physical interface that can do four different bit transmission protocols to be compatible with various chip interface specifications, while I2C is a specification that defines the bit transmission protocol and physical interface. They are different interfaces built from different starting point. Having selectable clock polarity and ...


4

The concept of changing data with respect to a clock was used in many places by many people long before it was called 'SPI'. As a result, there are as many ways of doing it as there are possible ways of doing it. Good SPI hardware accommodates this by being programmable over every possible mode. I2C was designed as a particular protocol, so there is just one ...


Top 50 recent answers are included