SPI: Difference between revisions

From ArmadeusWiki
(New page: This page will summarize the informations to use the SPI bus on our boards. == Overview == [http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus SPI] ('''S'''erial '''P'''eripher...)
 
No edit summary
Line 18: Line 18:
== Tested SPI chips ==
== Tested SPI chips ==


* ADC : [Max1027]
* ADC : [[Max1027]]
* EEPROM : [93LCXX]
* EEPROM : [[93LCXX]]


== Links ==
== Links ==


* SPI description on wikipedia.
* SPI description on wikipedia.

Revision as of 18:44, 16 November 2009

This page will summarize the informations to use the SPI bus on our boards.

Overview

SPI (Serial Peripheral Interface) is a 3-wire full-duplex serial bus. Wires used in SPI are :

  • MOSI, Master Output Slave Input : send data to slave.
  • MISO, Master Input Slave Output : receive data from slave.
  • SCLK, : Serial Clock signal used to synchronise the transmission. (In imx27 (apf27) maximum frequency of SCLK is 22.167MHz in master mode and 16.625 in slave mode.
  • SSx, Slave Select : used to select the slave for communication with master.

On APF27, the imx27 contains 3 SPI devices that can be configured in master or slave. APF9328 (imxL) contains 2 SPI.

Linux configuration

Linux user space C code

Tested SPI chips

Links

  • SPI description on wikipedia.