Revised: Aug 1, 20141 ECE263 Embedded System Design Lessons 27, 28 Serial Peripheral Interface.

Post on 06-Jan-2018

213 views 0 download

description

Revised: Aug 1, Serial Peripheral Interface SPI acts as 16-bit distributed shift register Shares common clock (SCK) provided by Master configured device Signals –SCK –MOSI –MISO –Slave Select (SS)

Transcript of Revised: Aug 1, 20141 ECE263 Embedded System Design Lessons 27, 28 Serial Peripheral Interface.

Revised: Aug 1, 2014 1

ECE263 Embedded System Design

Lessons 27, 28Serial Peripheral Interface

Revised: Aug 1, 2014 2

Serial Peripheral Interface

• Synchronous serial communication system• Transmitter and receiver share common clock• Clock signal provided by Master configured

device and fed to Slave configured devices• SPI data link is considerably faster than the SCI at

the expense of an additional line• SPI operates as a geographically distributed shift

register

Revised: Aug 1, 2014 3

Serial Peripheral Interface

• SPI acts as 16-bitdistributed shift register• Shares common clock(SCK) provided byMaster configured device• Signals

– SCK– MOSI– MISO– Slave Select (SS)

Revised: Aug 1, 2014 4

Serial Peripheral Interface

Revised: Aug 1, 2014 5

Serial Peripheral Interface

Revised: Aug 1, 2014 6

SPI Activities

Revised: Aug 1, 2014 7

SPI Applications

• Extend features of 68HC12– additional memory components– Additional ports– Real-time clock– Phase-locked loop– FM transmitter/receiver– high-resolution analog-to-digital– LCD display– multi-channel digital-to-analog converter

Revised: Aug 1, 2014 8

SPI Applications- multi-channel digital-to-analog converter -

Revised: Aug 1, 2014 9

SPI Applications- multi-channel digital-to-analog converter -