You are on page 1of 8

Embedded Systems

Introduction

Microprocessor building blocks 1. ALU (Arithmetic Logic Unit): The ALU is a sequential logic circuitry that is intended to perform arithmetic and logical operations, such as ADD, SUBTRACT, AND, OR, SHIFT. Example of a primitive ALU (Input, Output, address input or control input) n-bit ALU and n-bit P 2. Registers: A register is a temporary (internal) storage element

Microprocessor building blocks (contd.) 3. BUSES: The registers and ALU are not permanently connected together, but are joined by a DATA BUS. This bus allows data to be passed from a register to the ALU at one instant and from the ALU to a register at another instant. The bus is, in fact, a parallel set of wires (conductive silicon internal to a chip or tracks on a printed circuit board), which carries information, and which connect all elements together. data bus, address bus and control bus

Microcontrollers vs. Microprocessors


Micro controllers are microcomputers on a chip. optimized to control electronic devices.

Usually microcontrollers are used for controlling industrial equipment and machinery and have therefore special instructions as for example bit manipulation instructions.

What are the differences between a C and a P?


Nonvolatile Program and Data Memories A/D Internal Calibrated RC Oscillator External and Internal Interrupt Sources Internal SRAM Analog Comparator Timers/Counters Sleep Modes

Serial Peripheral Interface (SPI), USART, Twowire Serial Interface

Watchdog

Microcontrollers and Embedded Systems In control tasks the C is usually embedded in the system. Embedded systems have minimal requirements for memory and program size and need to communicate with simple inputs and outputs. Keyboards, screens, disks, printers are seldomly needed by an embedded system. Microcontrollers are usually dedicated to one task and run one specific program.

High Level Languages (contd.)


High Level 1 2 3 Low Level

One instruction = many machine One instruction = one machine code instructions. code instruction. Portable, task-oriented More English-like Machine specific, machine-oriented Less easy to write and debug.

Machines and appliances that use C


Television, Satellite Receiver, Monitor, Modem, Router, Printer, Microwave oven, Sound System, Digital Camera, Car (most all of them), Car stereo, Dishwasher, Dryer, Washing Machine, Ovens, Air Conditioner, Cell phone, Digital Multi-Meter, Calculator, Medical Equipment (e.g. Heart Monitors), Traffic Lights, Fax Machines, Copy Machine, Security Systems, Fire Alarms, And MUCH more. A typical mid range car has as many as 50 or more microcontrollers (e.g. in anti-lock brakes and in cruise control).

Course Contents:
Introduction - Microcontrollers and Embedded Systems Memories I_O Ports External Interrupts Timers Clock Options Sleep Modes Reset Sources Reset and Interrupt Vectors Watchdog Timer Communicating Dealing with Analog Signals + CodeVision AVR: C-language Compiler

You might also like