Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/20/08 18:41
Read: times


 
#153747 - SPI Modes
Responding to: ???'s previous message
SPI Modes relate to the relationship between the clock and the data on the interface during a transfer. In standard practice there are four modes that include the combinations of whether the clock is rising edge or falling edge active and whether the data is clocked on the leading edge or trailing edge of the clock pulse.

Sometimes it takes a bit of experimentation at coding time with a scope and the data sheets in hand to work out the correct combination of the control bits at the master side.

I have found on occasion that some peripheral devices that claim to be fully compatible with one or more of the "standard" SPI modes are in fact not compliant and then extra futzing around is required to get it to work. For example I had a recent experience working with an MCU connected to a tilt sensor where it turned out there was no way to get the SPI peripheral to work with one sensor and so had to resort to bit-banging the interface so I could strobe the data in at a time that worked. (Unfortunately that also slows things down a bit running the MCU at 80MHz does help that problem).

Michael Karas


List of 9 messages in thread
TopicAuthorDate
at89s8253 and at45db041d            01/01/70 00:00      
   get inspired            01/01/70 00:00      
      Hi Jan            01/01/70 00:00      
   maybe use SD-Card Slot instead of AT45DB041D?            01/01/70 00:00      
      Hi Frieder            01/01/70 00:00      
   SPI Modes            01/01/70 00:00      
      Hi Michael            01/01/70 00:00      
         when to use what mode            01/01/70 00:00      
         What Mode.....            01/01/70 00:00      

Back to Subject List