Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Slide 16 Slide 17 Slide 18 Slide 19 Slide 20 Slide 21 Slide 22 Slide 23 Slide 24 Slide 25 Slide 26 Slide 27 Slide 28 Slide 29 Product List
Image of CUI Slide12

Serial Peripheral Interface (SPI) is a full duplex two-way master-slave communications protocol which allows for multiple devices to share the same bus. In this protocol, all devices share a clock signal, a Master-Out-Slave-In (MOSI) signal, and a Master-In-Slave-Out (MISO) signal. Each device gets a unique Chip Select signal controlled by the bus host. Devices on this bus wait until their specific chip select line is asserted by the master. The master sends out data on the MOSI line, while toggling the serial clock line (SCLK) at the point where the data should be captured by the slave. This is what makes the communication synchronous, which allows for greater design flexibility as the host is not constrained by any specific frequency. In SPI, the data is transferred most commonly in full bytes. The illustration above shows a two byte transmission. Full duplex means that the slave device responds at the same time as the host is sending data. For the AMT22 absolute encoder series, this means incredibly fast position responses. Observing the illustration above users can see that “TCLK” is the maximum time from when the Chip Select line is asserted to when position data is ready to be received from the encoder. To obtain the position of the encoder the host sends blank commands because the encoder is always ready to respond with position, but if extended commands need to be issued to the encoder, the encoder is always listening and is ready to execute those commands after sending the position up front.

PTM Published on: 2010-06-29
PTM Updated on: 2022-01-19