Saturday, February 11, 2012

Standards

The SPI bus is a de facto standard. However, the abridgement of a academic accepted is reflected in a advanced array of agreement options. Different chat sizes are common. Every accessory defines its own protocol, including whether or not it supports commands at all. Some accessories are transmit-only; others are receive-only. Dent selects are sometimes active-high rather than active-low. Some protocols forward the atomic cogent bit first.

Some accessories even accept accessory variances from the CPOL/CPHA modes declared above. Sending abstracts from bondservant to adept may use the adverse alarm bend as adept to slave. Accessories generally crave added alarm abandoned time afore the aboriginal alarm or afterwards the endure one, or amid a command and its response. Some accessories accept two clocks, one to "capture" or "display" data, and addition to alarm it into the device. Many of these "capture clocks" run from the dent baddest line.

Some accessories crave an added breeze ascendancy arresting from bondservant to master, advertence if abstracts are ready. This leads to a "five wire" agreement instead of the accepted four. Such a "ready" or "enable" arresting is generally active-low, and needs to be enabled at key credibility such as afterwards commands or amid words. Without such a signal, abstracts alteration ante may charge to be slowed down significantly, or protocols may charge to accept "dummy bytes" inserted, to board the affliction case for the bondservant acknowledgment time. Examples cover initiating an ADC conversion, acclamation the appropriate page of beam memory, and processing abundant of a command that accessory firmware can amount the aboriginal chat of the response. (Many SPI masters don't abutment that arresting directly, and instead await on anchored delays.)

Many SPI chips alone abutment letters that are multiples of 8 bits. Such chips can not interoperate with the JTAG or SGPIO protocols, or any added agreement that requires letters that are not multiples of 8 bits.

There are even hardware-level differences. Some chips amalgamate MOSI and MISO into a individual abstracts band (SI/SO); this is sometimes alleged "3-Wire" signaling (in adverse to accustomed "4-wire" SPI). Addition SPI acidity removes the dent baddest line, managing agreement accompaniment apparatus entry/exit application added methods; this isn't usually alleged 3-Wire though. Anyone defective an alien adapter for SPI defines their own -- UEXT, JTAG connector, Secure Digital agenda socket, etc. . Arresting levels depend absolutely on the chips involved.

No comments:

Post a Comment