Top Banner
SUBMITTED BY: NITEESH KUMAR [EI 3 rd YEAR] ROLL No.- 0903532017 06/10/22 1 niteesh kumar(BBDIT)
82

Introduction to embedded system

May 24, 2015

Download

Technology

It is a simplest ppt based on embedded system
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to embedded system

SUBMITTED BY:NITEESH KUMAR[EI 3rd YEAR]ROLL No.-0903532017

04/12/23 1niteesh kumar(BBDIT)

Page 2: Introduction to embedded system

WHAT IS AN EMBEDDED SYSTEM?

A special purpose computer that can perform a single or few functionalities .

Functionalities is done by dedicated HW & SW with limited resources.

On average, a person is interacts with 100s of embedded system on daily basis.

Embedded system are of high diversity.

04/12/23 2niteesh kumar(BBDIT)

Page 3: Introduction to embedded system

BLOCK DIAGRAM

CPU

MEMORY

A/D

SENSOR HUMAN INTERFACE

D/A ACTUATORS

LCD

04/12/23 3niteesh kumar(BBDIT)

Page 4: Introduction to embedded system

EMBEDDED SYSTEM CONSIST OF:

An EMBEDDED SYSTEM consist of:

Hardware Software

04/12/23 4niteesh kumar(BBDIT)

Page 5: Introduction to embedded system

HARDWARE

The physical components of a system.

Ex.- CPU MEMORY SENSOR

04/12/23 5niteesh kumar(BBDIT)

Page 6: Introduction to embedded system

A TO D CONVERTORD TO A CONVERTORACTUATORSLCD

CONTINUE…

04/12/23 6niteesh kumar(BBDIT)

Page 7: Introduction to embedded system

CPU The central processing unit (CPU) is the

portion of a computer system that carries out the instructions of a computer program, to perform the basic arithmetical, logical, and input/output operations of the system.

It is similar to the BRAIN. Performs arithmetic , control and I/O

operations04/12/23 7niteesh kumar(BBDIT)

Page 8: Introduction to embedded system

CPU STRUCTURE

Registers Internal bus

Address Bus

Data Bus

Control Bus

CU : Control Unit ALU: Arithmetic Logic

Control

CU

REGISTERS

INTERNALBUS

ALU

04/12/23 8niteesh kumar(BBDIT)

Page 9: Introduction to embedded system

REGISTERS

Temporal storage inside the CPU Flip-flop and latches

A register can be:A general purpose register

Carry out program or data processing

A control registerControl the program or CPU

A status/flag registerShow the current status of CPU

04/12/23 9niteesh kumar(BBDIT)

Page 10: Introduction to embedded system

ALU

Carries on:Arithmatic operations

+,-,/…..

Logic operationAND,OR ,SHIFT,etc

Operates and store results in general registers

Store operation status status/flag registers carry occurrence,overflow occurance, etc.

04/12/23 10niteesh kumar(BBDIT)

Page 11: Introduction to embedded system

CONTROL UNIT

Control the internal flow to fetch,decode and execute instructions

INSTRUCTIONS

INSTRUCTION REGISTER

INSTRUCTION REGISTER

INSTRUCTION DECODER

INSTRUCTION DECODER

CONTROL SIGNAL

GENERATOR

PROGRAM COUNTERPROGRAM COUNTER

MEMORYDEVICE

04/12/23 11niteesh kumar(BBDIT)

Page 12: Introduction to embedded system

MEMORY

• They are used store data and instructions

• They can divided into :Volatile memory

When power is off, content are lost

Non volatile memoryWhen power is off, content are preserved

04/12/23 12niteesh kumar(BBDIT)

Page 13: Introduction to embedded system

CLASSIFICATION

MEMORIESMEMORIES

NON-VOLATILENON-VOLATILE

VOLATILEVOLATILE

SRAMSRAM

DRAMDRAM

E2PROME2PROM

NAND FLASHNAND FLASH

NOR FLASHNOR FLASH

04/12/23 13niteesh kumar(BBDIT)

Page 14: Introduction to embedded system

PROCESSOR IN EMBEDDED

In EMBEDDED SYSTEMS we use microprocessor or microcontroller IC

MICROCONTROLLER is widely used because it :

Consume less power

Reduce complexity

Internal memory

Internal timer/counter

04/12/23 14niteesh kumar(BBDIT)

Page 15: Introduction to embedded system

MICROPROCESSOR

A microprocessor incorporates the functions of a computer's central processing unit (CPU) on a single integrated circuit

Ex- intel 8085,8086,Z80 etc.

04/12/23 15niteesh kumar(BBDIT)

Page 16: Introduction to embedded system

The features of INTEL 8085 are :

It is an 8 bit processor.

It is a single chip N-MOS device with 40 pins.

THE 8085 µP

04/12/23 16niteesh kumar(BBDIT)

Page 17: Introduction to embedded system

CONTINUE….

It has multiplexed address and data bus.(AD0-AD7).

It works on 5 Volt dc power supply. The maximum clock frequency is 3 MHz

while minimum frequency is 500kHz. It provides 74 instructions with 5 different

addressing modes.

04/12/23 17niteesh kumar(BBDIT)

Page 18: Introduction to embedded system

CPUGeneral-Purpose Micro-

processor

RAM ROM I/O Port

TimerSerial COM Port

Data Bus

Address Bus

General-Purpose Microprocessor System

CPU for Computers No RAM, ROM, I/O on CPU chip itself Example--Intel’s x86: 8086,8088,80386,80486, Pentium

Many chips on mother board

GENERAL PURPOSE µP

04/12/23 18niteesh kumar(BBDIT)

Page 19: Introduction to embedded system

8085 IC

04/12/23 19niteesh kumar(BBDIT)

Page 20: Introduction to embedded system

PIN DIAGRAM

04/12/23 20niteesh kumar(BBDIT)

Page 21: Introduction to embedded system

AD0-AD7: Multiplexed Address and data lines.

A8-A15: Tri-stated higher order address lines.

ALE: Address latch enable is an output signal. It goes high when operation is started by processor .

S0,S1: These are the status signals used to indicate type of operation.

RD¯: Read is active low input signal used to read data from I/O device or memory.

WR¯: Write is an active low output signal used write data on memory or an I/O device.

PIN DESCRIPTION

04/12/23 21niteesh kumar(BBDIT)

Page 22: Introduction to embedded system

READY: This an output signal used to check the status of output device. If it is low, µP will WAIT until it is high.

TRAP: It is an Edge triggered highest priority , non mask able interrupt. After TRAP, restart occurs and execution starts from address 0024H.

RST 5.5,6.5,7.5: These are maskable interrupts and have low priority than TRAP.

INTR¯&INTA: INTR is a interrupt request signal after which µP generates INTA or interrupt acknowledge signal.

IO/M¯: This is output pin or signal used to indicate whether 8085 is working in I/O mode(IO/M¯=1) or Memory mode(IO/M¯=0 ).

CONTINUE….

04/12/23 22niteesh kumar(BBDIT)

Page 23: Introduction to embedded system

HOLD&HLDA: HOLD is an input signal .When µP receives HOLD signal it completes current machine cycle and stops executing next instruction. In response to HOLD µP generates HLDA that is HOLD Acknowledge signal.

RESET IN¯: This is input signal. When RESET IN¯ is low µp restarts and starts executing from location 0000H.

SID: Serial input data is input pin used to accept serial 1 bit data .

X1 & X2 : These are clock input signals and are connected to external LC,or RC circuit. These are divide by two so if 6 MHz is connected to X1X2, the operating frequency becomes 3 MHz

VCC & VSS: Power supply VCC=+ -5Volt& VSS=-GND reference.

CONTINUE….

04/12/23 23niteesh kumar(BBDIT)

Page 24: Introduction to embedded system

ARCHITECHTURE

04/12/23 24niteesh kumar(BBDIT)

Page 25: Introduction to embedded system

MICROCONTROLLER

A microcontroller (sometimes abbreviated µC, uC or MCU) is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals

Ex- intel 8051,ATMEL,MOTOROLA,etc.

04/12/23 25niteesh kumar(BBDIT)

Page 26: Introduction to embedded system

Microcontroller

RAM ROM

I/O Port

TimerSerial COM Port

CPU

A smaller computer. On-chip RAM, ROM, I/O ports... Example:- Motorola’s 6811, Intel’s 8051

and PIC 16X

A single chip

MICROCONTROLLER

04/12/23 26niteesh kumar(BBDIT)

Page 27: Introduction to embedded system

The 8051 is the first microcontroller of the MCS-51 family introduced by Intel Corporation at the end of the 1970’s.

8051 IC

04/12/23 27niteesh kumar(BBDIT)

Page 28: Introduction to embedded system

8051 IC

The 8051 family characteristics: 4K Bytes ROM 128 Bytes RAM two timer/counters (16 bit)A serial port 32 input/output port Interrupt controller

04/12/23 28niteesh kumar(BBDIT)

Page 29: Introduction to embedded system

INTERNAL ARCHITECHTURE

04/12/23 29niteesh kumar(BBDIT)

Page 30: Introduction to embedded system

Ground

Voltage Supply

(+5V)

PIN DIAGRAM

04/12/23 30niteesh kumar(BBDIT)

Page 31: Introduction to embedded system

Port 0 from Pin-39 to Pin-32

An 8-bit open drain bidirectional port.

DUAL FUNCTION

Used to access both data and address

CONTINUE….

04/12/23 31niteesh kumar(BBDIT)

Page 32: Introduction to embedded system

Port 1 fromPin-1 to pin-8

8-bit bidirectional I/O port with internal pull-ups

CONTINUE….

04/12/23 32niteesh kumar(BBDIT)

Page 33: Introduction to embedded system

Port 2 fromPin-21 to pin-28

Used to access address and I/O

CONTINUE….

04/12/23 33niteesh kumar(BBDIT)

Page 34: Introduction to embedded system

Port 3 from Pin-10 to Pin-17

P3.0 : RxD(serial input port)P3.1 :TxD (serial output port)P3.2 :INT0 (external interrupt 0)P3.3 :INT1 (external interrupt 1)P3.4 :T0 (timer 0 external input)P3.5 :T1 (timer 1 external input)P3.6 :WR (external data memory write strobe)P3.7 :RD (external data memory read strobe)

CONTINUE….

04/12/23 34niteesh kumar(BBDIT)

Page 35: Introduction to embedded system

crystal

reset

External memory

Add. Latch enable

Program Store Enable

CONTINUE….

04/12/23 35niteesh kumar(BBDIT)

Page 36: Introduction to embedded system

SENSOR

A sensor (also called detectors) is a device that measures a measurable attribute and converts it into a signal which can be read by an observer or by an instrument.

04/12/23 36niteesh kumar(BBDIT)

Page 37: Introduction to embedded system

TYPES

Electric current, electric potential, magnetic

Optical, light  Pressure  Force, density, level Thermal, heat, temperature

04/12/23 37niteesh kumar(BBDIT)

Page 38: Introduction to embedded system

EXAMPLES

04/12/23 38niteesh kumar(BBDIT)

Page 39: Introduction to embedded system

IR SENSOR

An object reflects,transmits, and emits

energy, as shownin the diagram.

04/12/23 39niteesh kumar(BBDIT)

Page 40: Introduction to embedded system

REQUIREMENT

To detect & differentiate between two contrasting surfaces

Generally, black & white Small & attachable Operates at +5V and also gives output in TTL

(0V/5V) Configurable

04/12/23 40niteesh kumar(BBDIT)

Page 41: Introduction to embedded system

Reflects most of the incident light

Absorbs almost of the incident light

Photodiode(detector)

Photodiode(detector)

WORKING

04/12/23 41niteesh kumar(BBDIT)

Page 42: Introduction to embedded system

Hurray! I‘ve found

whiteI think I am on black

surface

CONTINUE….

04/12/23 42niteesh kumar(BBDIT)

Page 43: Introduction to embedded system

LINE FOLLOWER

04/12/23 43niteesh kumar(BBDIT)

Page 44: Introduction to embedded system

CKT. DIAGRAM

3.5V

4V

5V

04/12/23 44niteesh kumar(BBDIT)

Page 45: Introduction to embedded system

CONTINUE….

3.5V

2.5V 0V

04/12/23 45niteesh kumar(BBDIT)

Page 46: Introduction to embedded system

A TO D CONVERTER

An analog-to-digital converter (abbreviated ADC, A/D or A to D) is a device that converts a continuous quantity to a discrete time digital representation

04/12/23 46niteesh kumar(BBDIT)

Page 47: Introduction to embedded system

SAR ADC

04/12/23 47niteesh kumar(BBDIT)

Page 48: Introduction to embedded system

An 8-level ADC coding scheme

04/12/23 48niteesh kumar(BBDIT)

Page 49: Introduction to embedded system

D TO A CONVERTER

A digital-to-analog converter (DAC or D-to-A) is a device that converts a digital (usually binary) code to an analog signal(current , voltage, or electric charge)

04/12/23 49niteesh kumar(BBDIT)

Page 50: Introduction to embedded system

BLOCK DIAGRAM

04/12/23 50niteesh kumar(BBDIT)

Page 51: Introduction to embedded system

OUTPUT

04/12/23 51niteesh kumar(BBDIT)

Page 52: Introduction to embedded system

ACUATORS

An actuator is a type of motor for moving or controlling a mechanism or system. It is operated by a source of energy, usually in the form of an electric current, hydraulic fluid pressure or pneumatic pressure, and converts that energy into some kind of motion

04/12/23 52niteesh kumar(BBDIT)

Page 53: Introduction to embedded system

ActuatorsActuators

RotationalRotational LinearLinear

PneumaticsPneumaticsDC MotorsDC Motors Stepper MotorsStepper Motors

GearedGeared RC ServoRC Servo BipolarBipolarUnipolarUnipolar

ArtificialMusclesArtificialMuscles

HydraulicsHydraulics

TYPES

04/12/23 53niteesh kumar(BBDIT)

Page 54: Introduction to embedded system

DC MOTOR

A DC motor is an electric motor that runs on direct current (DC) electricity. DC motors were used to run machinery

04/12/23 54niteesh kumar(BBDIT)

Page 55: Introduction to embedded system

DC ELECTRIC MOTOR

04/12/23 55niteesh kumar(BBDIT)

Page 56: Introduction to embedded system

DC GEARED

Reliable, sturdy & relatively powerful

A major actuator in robotics

Easy to use Available in

various shapes and sizes

04/12/23 56niteesh kumar(BBDIT)

Page 57: Introduction to embedded system

INSIDE DC GEARED

04/12/23 57niteesh kumar(BBDIT)

Page 58: Introduction to embedded system

DC SERVO

A servomotor is a motor which forms part of a servomechanism. The servomotor is paired with some type of encoder to provide position/speed feedback

04/12/23 58niteesh kumar(BBDIT)

Page 59: Introduction to embedded system

SERVO

Remote Controlled Servo (RC Servo)

Used mostly in RC aeroplanes and cars

Needs PWM signal to control its position

Cannot rotate more than 180 degrees

04/12/23 59niteesh kumar(BBDIT)

Page 60: Introduction to embedded system

Signal Conditioning

(Analog/Digital)Driver

GearedMotor

POT

Basic Operation of a RC Servo Motor

RC Servo Motor

Vcc

Gnd

PWMControl Signal

SERVO CONTROL

04/12/23 60niteesh kumar(BBDIT)

Page 61: Introduction to embedded system

INSIDE SERVO

04/12/23 61niteesh kumar(BBDIT)

Page 62: Introduction to embedded system

STEPPER MOTOR

• A stepper motor (or step motor) is a brushless DC electric motor that can divide a full rotation into a large number of steps. The motor's position can be controlled precisely without any feedback mechanism

04/12/23 62niteesh kumar(BBDIT)

Page 63: Introduction to embedded system

1 2 3 4

1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1

Truth table

CLOCKWISE ROTATION

04/12/23 63niteesh kumar(BBDIT)

Page 64: Introduction to embedded system

UNIPOLAR STEPPER

FULL STEPPING

(wave drive)

a,b 1a 1b 1c 1d

0 1 0 0 0

0 1 1 1 0

0 1 1 1 0

0 0 0 0 1

cw

ccw

04/12/23 64niteesh kumar(BBDIT)

Page 65: Introduction to embedded system

BIPOLAR STEPPER

Construction is similar to unipolars but without the center taps

Current flows in both directions

Highest Torque Complex driving

circuitry

04/12/23 65niteesh kumar(BBDIT)

Page 66: Introduction to embedded system

IDENTIFYING STEPPER

Unipolar Steppers• Mostly have 5 to 6 wires• There are always 1 or 2

commons

Bipolar Steppers• Always have 4 wires• No commons

04/12/23 66niteesh kumar(BBDIT)

Page 67: Introduction to embedded system

PNEUMATIC

Powerful Complicated Expensive Bulky

04/12/23 67niteesh kumar(BBDIT)

Page 68: Introduction to embedded system

DC motors are always preffered over stepper motors

There are many things which we can do with our DC motor when interfaced with microcontroller

MOTOR INTERFACING

04/12/23 68niteesh kumar(BBDIT)

Page 69: Introduction to embedded system

CONTINUE….

For example: we can control the speed of motor we can control the direction of rotation we can also do encoding of the rotation

made by DC motor i.e. keeping track of how many turns are made by our motors etc.

04/12/23 69niteesh kumar(BBDIT)

Page 70: Introduction to embedded system

CONTINUE….

Usually H-bridge is preferred way of interfacing a DC motor.

L293D is most used H-Bridge driver IC.

04/12/23 70niteesh kumar(BBDIT)

Page 71: Introduction to embedded system

IC L293D

04/12/23 71niteesh kumar(BBDIT)

Page 72: Introduction to embedded system

WORKING

04/12/23 72

M

+Vcc

GNDniteesh kumar(BBDIT)

Page 73: Introduction to embedded system

LCD

04/12/23 73niteesh kumar(BBDIT)

Page 74: Introduction to embedded system

PIN CONFIGURATION

04/12/23 74niteesh kumar(BBDIT)

Page 75: Introduction to embedded system

PIN DESCRIPTION

Connections JP1 Pins 1 - 8 Description JP1 Pins 9 -16 Description

Pin1 Ground Pin9 D2 (Not Used)

Pin2 VCC (+5) Pin10 D3 (Not Used)

Pin3 Contrast Pin11 D4 Pin4 Data/Command (R/S) Pin12 D5 Pin5 Read/Write (W) Pin13 D6 Pin6 Enable (E1) Pin14 D7 Pin7 D0 (Not Used) Pin15 VCC (LEDSV+)

Pin8 D1 (Not Used) Pin16 Ground

04/12/23 75niteesh kumar(BBDIT)

Page 76: Introduction to embedded system

Software’sSoftware’s UsedUsed

Kiel µVision Top View Simulator

Express PCB

SOFTWARE

04/12/23 76niteesh kumar(BBDIT)

Page 77: Introduction to embedded system

EXAMPELS

04/12/23 77niteesh kumar(BBDIT)

Page 78: Introduction to embedded system

APPLICATIONS

Industrial automation Electronics application and consumer

device Communication application Biomedical application Mobile phone Digital camera Robots04/12/23 78niteesh kumar(BBDIT)

Page 79: Introduction to embedded system

APPLICATIONS

Point of sales terminals Automatic Chocolate Vending Machine Stepper motor controllers for a robotics

system Washing or cooking system Multitasking Toys Microcontroller- based single or multi-

display04/12/23 79niteesh kumar(BBDIT)

Page 80: Introduction to embedded system

APPLICATIONS

digital panel meter for voltage, current, resistance and frequency

Keyboard controller

04/12/23 80niteesh kumar(BBDIT)

Page 81: Introduction to embedded system

QUESTION

04/12/23 81niteesh kumar(BBDIT)

Page 82: Introduction to embedded system

04/12/23 82niteesh kumar(BBDIT)