Embedded Computing: Unit 1
Embedded Computing: Unit 1
Embedded Computing: Unit 1
EMBEDDED COMPUTING
Microprocessor
Microcontroller
INTRODUCTION
Embedded Computing:
What is microprocessor?
Used for control, user interfaces, signal processing and many other
tasks
Engine that turns into motion when you turn your computer on
Performs arithmetic and logic operations using registers
Microprocessor in automobiles:
High-end automobile: 100 microprocessors
Inexpensive Car: 40 microprocessors
Embedded systems
2. User Interface:
Microprocessors are used for managing complex user interfaces
Eg: GPS(Global Positioning System)
3. Real time:
Many embedded systems have to perform in real time so data should
be ready within deadline
Failure to meet deadline may endanger lives or create unhappy
customers
5. Manufacturing cost:
It is determined by:
1.2.1 Requirements
Two phases:
1. Gather informal description from customers(Requirements)
2. Refine requirements into specification
1.2.1 Requirements
Mock-up: simulating functionality in restricted environment and it
may be executed on a PC or workstation
Physical, nonfunctional models of devices
Big systems complex and time consuming
1.2.1 Requirements
Name:
Simple but helpful
Crystallize the purpose of the machine
Purpose:
One or two line description about what system should do
1.2.1 Requirements
Types of I/O devices:
1. Buttons?
2. Analog/digital converters?
3. Video displays?
Functions:
What the system does?
When system receives input? What does it do? etc
Performance:
Time spend on controlling physical devices or processing data coming from the physical
world
Manufacturing Cost:
Cost of hardware component
Idea of eventual cost range
Cost has a substantial influence on architecture
1.2.1 Requirements
Power:
Rough idea of how much power the system can consume
Battery powered or plugged into the wall?
User interface:
Screen should have atleast 400*600 pixel resolution
Not more than three buttons
Menu system should pop up when buttons are pressed
Performance:
Map should scroll smoothly
Display should appear in less than a second
Display current map within 15 secs
Cost:
Should not be more than $100
Power consumption:
At least 8 hours on four AA batteries
1.2.2 Specifications
Link: describes
relationships between
objects.
Association: describes
relationship between
classes.
Call event :
Procedure call in programming language
A time-out event :
Causes machine to leave a state after certain amount of time
tm(time value) amount of time after which transition occurs
1.4.1 Requirements
The console shall be able to control up to eight trains on a single track.
The speed of each train shall be controllable by a throttle to at least 63
different levels in each direction (forward and reverse).
There shall be an inertia control that shall allow the user to adjust the
responsiveness of the train to commanded changes in speed.
There shall be an emergency stop button.
An error detection scheme will be used to transmit messages.
1.4.1 Requirements
PSA(sD)+E
P: preamble = 1111111111 (10 1 bits)
S: packet start bit = 0
A: address data byte (8 bits long)
00000000, 11111110, 11111111 are reserved
Detector = detecting analog signals on the track and convert into digital
Receiver = analog Digital
Controller = interprets commands
Motor Interface = generate analog signals
Pulser = turns digital to analog to control motor speed
Train Set(multiple trains)
Formatter(send_command):
Formatter(panel_active() ):
Controller(issue_command ):