The Embedded computing platform - PowerPoint PPT Presentation

1 / 36
About This Presentation
Title:

The Embedded computing platform

Description:

Determines who gets to use the bus at any particular time ... Input device is a two-dimensional voltmeter. Touchscreen position sensing. ADC. voltage ... – PowerPoint PPT presentation

Number of Views:435
Avg rating:3.0/5.0
Slides: 37
Provided by: camarsK
Category:

less

Transcript and Presenter's Notes

Title: The Embedded computing platform


1
The Embedded computing platform
  • CPU bus
  • Memory
  • I/O devices

2
CPU bus
  • Connects CPU to
  • memory
  • devices
  • Protocol controls communication between entities

3
Bus protocol
  • Determines who gets to use the bus at any
    particular time
  • Governs length, style of communication

4
Four-cycle handshake
  • Basis of many bus protocols
  • Uses two wires
  • enq (enquiry)
  • ack (acknowledgment)

enq
dev1
dev2
data
ack
5
Four-cycle example
enq
data
ack
time
6
Typical bus signals
  • Clock
  • R/W true when bus is reading
  • Address a-bit bundle
  • Data n-bit bundle
  • Data ready

7
Timing diagrams
A
B
C
time
8
Typical bus timing for read
  • CPU
  • set R/W1
  • asserts address, address enable
  • Memory
  • asserts data
  • asserts data ready
  • CPU
  • deasserts address, address enable

9
Bus read state diagram
Get data
Done
See ack
Adrs
Wait
10
Transaction types
  • Wait state
  • state in a bus transaction to wait for
    acknowledgment
  • Disconnected transfer
  • bus is freed during wait state
  • Burst
  • multiple transfers

11
MPC850 example
  • Basic bus protocol

12
Bus signals
13
Bus Arbitration
14
Arbitration Phase
15
Bus Arbitration Timing
16
(No Transcript)
17
Single-beat Read flow
18
Single-beat Read flow, contd
19
(No Transcript)
20
Single-beat Write flow
21
(No Transcript)
22
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
Timers and counters
  • Very similar
  • a timer is incremented by a periodic signal
  • a counter is incremented by an asynchronous,
    occasional signal
  • Rollover causes interrupt

27
Watchdog timer
  • Watchdog timer is periodically reset by system
    timer
  • If watchdog is not reset, it generates an
    interrupt to reset the host

host CPU
interrupt
watchdog timer
reset
28
Switch debouncing
  • A switch must be debounced to multiple contacts
    caused by eliminate mechanical bouncing

29
Encoded keyboard
  • An array of switches is read by an encoder
  • N-key rollover remembers multiple key depressions

row
scan
columns
30
LED
  • Must use resistor to limit current

31
7-segment LCD display
  • May use parallel or multiplexed input

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

33
Touchscreen
  • Includes input and output device
  • Input device is a two-dimensional voltmeter

34
Touchscreen position sensing
ADC
Vx
X position
35
Digital-to-analog conversion
  • Use resistor tree

R
Vout
bn
2R
bn-1
4R
bn-2
8R
bn-3
36
Flash A/D conversion
  • N-bit result requires 2n comparators

encoder
Vin
...
Write a Comment
User Comments (0)
About PowerShow.com