electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Serial Peripheral Interface (SPI) question


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Serial Peripheral Interface (SPI) question
Author Message
jcf



Joined: 09 Sep 2002
Posts: 5
Location: Buenos Aires, Argentina


Post16 Dec 2003 16:25   

Serial Peripheral Interface (SPI) question


For Serial Peripheral Interface (SPI), there are four combinations of SCK phase and polarity with respect to serial data, which determine four SPI data modes (0..3).
Why is it necessary to have these four modes, or when it is better to use one or another?

Thanks in advance.
jcf
Back to top
Google
AdSense
Google Adsense




Post16 Dec 2003 16:25   

Ads




Back to top
C-Man



Joined: 19 Jul 2001
Posts: 1235
Helped: 73


Post16 Dec 2003 17:15   

Re: Serial Peripheral Interface (SPI) question


The SPI mode depends on the type of the peripheral that you connect to the SPI bus.

Most peripherals I have worked with operate either in mode1 or in mode3 but you have to consult the datasheet of the peripheral that you want to connect.

best regards
Back to top
tlp71@hotmail.com



Joined: 14 May 2002
Posts: 476
Helped: 4


Post16 Dec 2003 21:19   

Re: Serial Peripheral Interface (SPI) question


you can also connect various devices whit different mode, you need only to use a chip select for ever device.
Bye.
G.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Serial Peripheral Interface (SPI) question
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
what is 'three wire serial interface(SPI)' ? (5)
Peripheral Interface Adapter(PIA) (1)
A quite stupid question on C, 3 wire serial interface (10)
SPI serial flash vendors (1)
4 Mbit serial SPI eeprom (4)
SPI interface (4)
SPI interface (8)
SPI interface (3)
SPI interface (2)
SPI interface (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS