the embedded computing platform

23
© 2000 Morgan Kaufman Overheads for Computers as Components The Embedded computing platform CPU bus. Memory. I/O devices.

Upload: vernon

Post on 12-Feb-2016

47 views

Category:

Documents


2 download

DESCRIPTION

The Embedded computing platform. CPU bus. Memory. I/O devices. CPU bus. Connects CPU to: memory; devices. Protocol controls communication between entities. Bus protocol. Determines who gets to use the bus at any particular time. Governs length, style of communication. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

The Embedded computing platformCPU bus.Memory.I/O devices.

Page 2: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

CPU busConnects CPU to:

memory; devices.

Protocol controls communication between entities.

Page 3: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Bus protocolDetermines who gets to use the bus

at any particular time.Governs length, style of

communication.

Page 4: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Four-cycle handshakeBasis of many bus protocols.Uses two wires:

enq (enquiry); ack (acknowledgment).

dev1 dev2

enq

ack

data

Page 5: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Four-cycle example

time

enq

ack

data

1

2

3

4

Page 6: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Typical bus signalsClock.R/W’: true when bus is reading.Address: a-bit bundle.Data: n-bit bundle.Data ready’.

Page 7: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Timing diagrams

time

A

B

C

zero

one

rising falling

stable

changing

10 ns

Page 8: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Typical bus timing for readCPU:

set R/W’=1; asserts address, address enable.

Memory: asserts data; asserts data ready’.

CPU: deasserts address, address enable.

Page 9: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Bus read state diagram

Getdata Done

Adrs

Wait

See ack

Page 10: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Transaction typesWait state:

state in a bus transaction to wait for acknowledgment.

Disconnected transfer: bus is freed during wait state.

Burst: multiple transfers.

Page 11: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Timers and countersVery similar:

a timer is incremented by a periodic signal;

a counter is incremented by an asynchronous, occasional signal.

Rollover causes interrupt.

Page 12: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Watchdog timerWatchdog timer is periodically reset

by system timer.If watchdog is not reset, it generates

an interrupt to reset the host.

host CPU watchdogtimer

interrupt

reset

Page 13: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Switch debouncingA switch must be debounced to

multiple contacts caused by eliminate mechanical bouncing:

Page 14: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Encoded keyboardAn array of switches is read by an

encoder.N-key rollover remembers multiple

key depressions.row

Page 15: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

LEDMust use resistor to limit current:

Page 16: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

7-segment LCD displayMay use parallel or multiplexed

input.

Page 17: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Types of high-resolution displayCathode ray tube (CRT)Liquid crystal display (LCD)Plasma, etc.

Page 18: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

TouchscreenIncludes input and output device.Input device is a two-dimensional

voltmeter:

Page 19: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Touchscreen position sensing

ADC

voltage

Page 20: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Digital-to-analog conversionUse resistor tree:

R

2R

4R

8R

bn

bn-1

bn-2

bn-3

Vout

Page 21: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Flash A/D conversionN-bit result requires 2n comparators:

encoder

Vin

...

Page 22: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Dual-slope conversionUse counter to time required to

charge/discharge capacitor.Charging, then discharging

eliminates non-linearities.

Vintimer

Page 23: The Embedded computing platform

© 2000 Morgan Kaufman

Overheads for Computers as Components

Sample-and-holdRequired in any A/D:

converterVin