| Author |
Message |
jcf
Joined: 09 Sep 2002 Posts: 5 Location: Buenos Aires, Argentina
|
16 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

|
16 Dec 2003 16:25 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
C-Man
Joined: 19 Jul 2001 Posts: 1235 Helped: 73
|
16 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
|
16 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 |
|
 |