9
Revised: Aug 1, 2014 1 ECE263 Embedded System Design Lessons 27, 28 Serial Peripheral Interface

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

Embed Size (px)

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)

Citation preview

Page 1: 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

Page 2: Revised: Aug 1, 20141 ECE263 Embedded System Design Lessons 27, 28 Serial 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

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

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)

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

Revised: Aug 1, 2014 4

Serial Peripheral Interface

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

Revised: Aug 1, 2014 5

Serial Peripheral Interface

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

Revised: Aug 1, 2014 6

SPI Activities

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

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

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

Revised: Aug 1, 2014 8

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

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

Revised: Aug 1, 2014 9

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