1 / 23

The Embedded computing platform

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.

vernon
Download Presentation

The Embedded computing platform

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Embedded computing platform • CPU bus. • Memory. • I/O devices. Overheads for Computers as Components

  2. CPU bus • Connects CPU to: • memory; • devices. • Protocol controls communication between entities. Overheads for Computers as Components

  3. Bus protocol • Determines who gets to use the bus at any particular time. • Governs length, style of communication. Overheads for Computers as Components

  4. Four-cycle handshake • Basis of many bus protocols. • Uses two wires: • enq (enquiry); • ack (acknowledgment). enq dev1 dev2 data ack Overheads for Computers as Components

  5. 1 3 2 4 Four-cycle example enq data ack time Overheads for Computers as Components

  6. Typical bus signals • Clock. • R/W’: true when bus is reading. • Address: a-bit bundle. • Data: n-bit bundle. • Data ready’. Overheads for Computers as Components

  7. one rising falling zero 10 ns stable changing Timing diagrams A B C time Overheads for Computers as Components

  8. Typical bus timing for read • CPU: • set R/W’=1; • asserts address, address enable. • Memory: • asserts data; • asserts data ready’. • CPU: • deasserts address, address enable. Overheads for Computers as Components

  9. Bus read state diagram Get data Done See ack Adrs Wait Overheads for Computers as Components

  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. Overheads for Computers as Components

  11. 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. Overheads for Computers as Components

  12. 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 Overheads for Computers as Components

  13. Switch debouncing • A switch must be debounced to multiple contacts caused by eliminate mechanical bouncing: Overheads for Computers as Components

  14. Encoded keyboard • An array of switches is read by an encoder. • N-key rollover remembers multiple key depressions. row Overheads for Computers as Components

  15. LED • Must use resistor to limit current: Overheads for Computers as Components

  16. 7-segment LCD display • May use parallel or multiplexed input. Overheads for Computers as Components

  17. Types of high-resolution display • Cathode ray tube (CRT) • Liquid crystal display (LCD) • Plasma, etc. Overheads for Computers as Components

  18. Touchscreen • Includes input and output device. • Input device is a two-dimensional voltmeter: Overheads for Computers as Components

  19. voltage Touchscreen position sensing ADC Overheads for Computers as Components

  20. Digital-to-analog conversion • Use resistor tree: R Vout bn 2R bn-1 4R bn-2 8R bn-3 Overheads for Computers as Components

  21. Flash A/D conversion • N-bit result requires 2n comparators: encoder Vin ... Overheads for Computers as Components

  22. Dual-slope conversion • Use counter to time required to charge/discharge capacitor. • Charging, then discharging eliminates non-linearities. Vin timer Overheads for Computers as Components

  23. Sample-and-hold • Required in any A/D: converter Vin Overheads for Computers as Components

More Related