Beruflich Dokumente
Kultur Dokumente
Microcontroller Systems
Spring 2011
Prof. Dan Ernst
http://www.cs.uwec.edu/~ernstdj/courses/ce478
CS 478: Microcontroller Systems
University of Wisconsin-Eau Claire
Dan Ernst
Welcome
Class overview
Policies etc.
What are embedded systems?
Why are they interesting?
Why are they needed?
Dan Ernst
Dan Ernst
Grading*
Item
======
Labs/Homeworks
Exams (2)
Project
Quizzes
Weight
=========
30%
30% (15% midterm; 15% final)
30%
10%
Dan Ernst
Final Project
Final Project will involve constructing a polished digital system
Implement the hardware and software involved in your design
Ideas and examples of projects are/will be posted on the class website
Dan Ernst
Dan Ernst
Administrivia
P122 access:
Youre welcome to work in P122 on 478-related projects anytime,
except Weds. 2 4 pm and Tues. 3:30 5:30 pm ( CS 278 lab)
If you can avoid it, dont leave the boards out there will be plenty of
cabinet space, and other classes (CS 278) need to use the space. You
will receive a key to the cabinets on the first lab day.
Please dont distribute the access code, or let in extra people!
http://www.cs.uwec.edu/comdistro
CS 478: Microcontroller Systems
University of Wisconsin-Eau Claire
Dan Ernst
Dan Ernst
Dan Ernst
CPU
Control Bus
PCI
Bus
Bridge
ROM
RAM
Clock,
Reset
circuitry
PCI Bus
Disk
Controller
Video
Memory
Parallel
Interface
Serial
Interface
Real-time
Clock
Keyboard/
Mouse
Controller
...
Disk
Interface
Video
Display
Controller
Dan Ernst
Disadvantages
Must be a super system, capable of running any program
High price
Relatively large, short battery life
CS 478: Microcontroller Systems
University of Wisconsin-Eau Claire
Dan Ernst
Embedded Systems
Embedded Systems are small, special-purpose computer systems
Dan Ernst
Programmable thermostat
Blood Glucose Meter
iPod Touch
Automobile System Controller
Single-purpose
Small
Inexpensive
Reduced computation needs (most of the time)
Special interfaces
Lightweight (often hand held)
CS 478: Microcontroller Systems
University of Wisconsin-Eau Claire
Dan Ernst
So
You don't need a traditional user interface to decide which programs should be
running
You don't need to waste time waiting for the O/S to load
if one is needed, then it doesn't have baggage that make it slow to load
You don't need to load programs or data from a slow disk drive - most
information needed will be in fast ROM
Dan Ernst
This is going to take around 5+ chips, use > 100 W, and cost > $400.
CS 478: Microcontroller Systems
University of Wisconsin-Eau Claire
Dan Ernst
Dan Ernst
Advantages:
Programmable
Much cheaper than ASICs
(at least in small quantities)
Disadvantages:
Not as intuitive as software
Still not super-cheap
Take up a lot of space/power relative to the capability they bring
Dan Ernst
Dan Ernst
Dan Ernst
A Generic Microcontroller
Flash
EEROM
2KB 256KB
Timer
16-32 Bit
RAM
256B 64KB
RS232/
USB
I2C/SPI
CS 478: Microcontroller Systems
University of Wisconsin-Eau Claire
ADC
8-14 Bits
GPIO
Memory Bus
16-24 Bits
Dan Ernst
Embedded Systems
Definition:
Dedicated to controlling a specific real-time device or function
Self-starting, not requiring human intervention to begin. The user
cannot tell if the system is controlled by a microprocessor or by
dedicated hardware (or magic!)
Self-contained, with the operating program in some kind of non-volatile
memory
Dan Ernst
Switches
Switches can be used to switch things on or off e.g. lights can be on or off
They can also be used to switch between values e.g a heater can be set
to a number of values
Sensors
Sensors can tell if something is on or off
Sensors can tell you the value of something e.g. temperature
Timers
Timers can control the duration of other activities, such as how long a light
is on, or the time between ADC samples
Analog controllers
Things such as voltage can be set for analog devices such as motors
Dan Ernst
Dan Ernst