Slide show

Embedded Processors

Contents

Without embedded systems..

From Ball Embedded Microprocessor Systems

You get into your car and turn the key on. You take a 3.5" floppy disk from the glove compartment, insert it into a slot on the dashboard, and drum your fingers on the steering wheel until the operating system prompt appears on the dashboard LCD. Using the cursor keys on the centre console you select the program for electronic ignition, then turn the key to start the engine. On the way to work you want to listen to some music, so you insert the program CD into the player, wait for the green light to flash indicating that the digital signal processor in the player is ready, then put in your music CD.

You get to work and go to the cafeteria for a pastry. Someone has borrowed the mouse from the microwave but has not unplugged the microwave itself, so the operating system is still up. You can heat your breakfast before starting work.


With embedded systems...


Embedded systems

From Ball again: an embedded system has the following characteristics


Embedded Systems

An embedded microprocessor system will generally have


Micro-controllers/processors

Micro-controller
Micro-controller

Micro-processor
Micro-processor

How are things controlled?

Switches
Switches can be used to switch things on or off e.g. lights can be on or off
Switches
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
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
Analogue controllers
Things such as voltage can be set for analogue devices such as motors

What can be controlled?

These are some of the things in a house that can be controlled by embedded systems


Advantages of communicating devices


Realtime


Software


C programming


Limits of C


C/Assembler interface


C Stack Frame

The function

int f(int a1, int a2, int a3) {
    int local1, local2,local3;
    ....
}
has a call stack frame of
On call, the arguments are pushed onto the stack and space is resevered for local variables. The argument values, return address and local variabels can all be accessed from the frame pointer. On return, the stack frame is discarded by restoring the stack pointer from the frame pointer value.


Higher level languages: C++


Higher level languages: Java


Higher level languages: C#


Conclusion



Jan Newmarch <jan@newmarch.name>
Last modified: Thu Feb 26 14:55:34 EST 2004
Copyright © Jan Newmarch, Monash University, 2007
Creative Commons License This work is licensed under a Creative Commons License
The moral right of Jan Newmarch to be identified as the author of this page has been asserted.