introduction to embedded system

Post on 24-May-2015

1.418 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

DESCRIPTION

It is a simplest ppt based on embedded system

TRANSCRIPT

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

04/12/23 1niteesh kumar(BBDIT)

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)

BLOCK DIAGRAM

CPU

MEMORY

A/D

SENSOR HUMAN INTERFACE

D/A ACTUATORS

LCD

04/12/23 3niteesh kumar(BBDIT)

EMBEDDED SYSTEM CONSIST OF:

An EMBEDDED SYSTEM consist of:

Hardware Software

04/12/23 4niteesh kumar(BBDIT)

HARDWARE

The physical components of a system.

Ex.- CPU MEMORY SENSOR

04/12/23 5niteesh kumar(BBDIT)

A TO D CONVERTORD TO A CONVERTORACTUATORSLCD

CONTINUE…

04/12/23 6niteesh kumar(BBDIT)

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)

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)

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)

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)

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)

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)

CLASSIFICATION

MEMORIESMEMORIES

NON-VOLATILENON-VOLATILE

VOLATILEVOLATILE

SRAMSRAM

DRAMDRAM

E2PROME2PROM

NAND FLASHNAND FLASH

NOR FLASHNOR FLASH

04/12/23 13niteesh kumar(BBDIT)

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)

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)

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)

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)

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)

8085 IC

04/12/23 19niteesh kumar(BBDIT)

PIN DIAGRAM

04/12/23 20niteesh kumar(BBDIT)

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)

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)

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)

ARCHITECHTURE

04/12/23 24niteesh kumar(BBDIT)

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)

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)

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)

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)

INTERNAL ARCHITECHTURE

04/12/23 29niteesh kumar(BBDIT)

Ground

Voltage Supply

(+5V)

PIN DIAGRAM

04/12/23 30niteesh kumar(BBDIT)

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)

Port 1 fromPin-1 to pin-8

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

CONTINUE….

04/12/23 32niteesh kumar(BBDIT)

Port 2 fromPin-21 to pin-28

Used to access address and I/O

CONTINUE….

04/12/23 33niteesh kumar(BBDIT)

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)

crystal

reset

External memory

Add. Latch enable

Program Store Enable

CONTINUE….

04/12/23 35niteesh kumar(BBDIT)

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)

TYPES

Electric current, electric potential, magnetic

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

04/12/23 37niteesh kumar(BBDIT)

EXAMPLES

04/12/23 38niteesh kumar(BBDIT)

IR SENSOR

An object reflects,transmits, and emits

energy, as shownin the diagram.

04/12/23 39niteesh kumar(BBDIT)

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)

Reflects most of the incident light

Absorbs almost of the incident light

Photodiode(detector)

Photodiode(detector)

WORKING

04/12/23 41niteesh kumar(BBDIT)

Hurray! I‘ve found

whiteI think I am on black

surface

CONTINUE….

04/12/23 42niteesh kumar(BBDIT)

LINE FOLLOWER

04/12/23 43niteesh kumar(BBDIT)

CKT. DIAGRAM

3.5V

4V

5V

04/12/23 44niteesh kumar(BBDIT)

CONTINUE….

3.5V

2.5V 0V

04/12/23 45niteesh kumar(BBDIT)

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)

SAR ADC

04/12/23 47niteesh kumar(BBDIT)

An 8-level ADC coding scheme

04/12/23 48niteesh kumar(BBDIT)

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)

BLOCK DIAGRAM

04/12/23 50niteesh kumar(BBDIT)

OUTPUT

04/12/23 51niteesh kumar(BBDIT)

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)

ActuatorsActuators

RotationalRotational LinearLinear

PneumaticsPneumaticsDC MotorsDC Motors Stepper MotorsStepper Motors

GearedGeared RC ServoRC Servo BipolarBipolarUnipolarUnipolar

ArtificialMusclesArtificialMuscles

HydraulicsHydraulics

TYPES

04/12/23 53niteesh kumar(BBDIT)

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)

DC ELECTRIC MOTOR

04/12/23 55niteesh kumar(BBDIT)

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)

INSIDE DC GEARED

04/12/23 57niteesh kumar(BBDIT)

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)

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)

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)

INSIDE SERVO

04/12/23 61niteesh kumar(BBDIT)

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)

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)

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)

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)

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)

PNEUMATIC

Powerful Complicated Expensive Bulky

04/12/23 67niteesh kumar(BBDIT)

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)

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)

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)

IC L293D

04/12/23 71niteesh kumar(BBDIT)

WORKING

04/12/23 72

M

+Vcc

GNDniteesh kumar(BBDIT)

LCD

04/12/23 73niteesh kumar(BBDIT)

PIN CONFIGURATION

04/12/23 74niteesh kumar(BBDIT)

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)

Software’sSoftware’s UsedUsed

Kiel µVision Top View Simulator

Express PCB

SOFTWARE

04/12/23 76niteesh kumar(BBDIT)

EXAMPELS

04/12/23 77niteesh kumar(BBDIT)

APPLICATIONS

Industrial automation Electronics application and consumer

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

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)

APPLICATIONS

digital panel meter for voltage, current, resistance and frequency

Keyboard controller

04/12/23 80niteesh kumar(BBDIT)

QUESTION

04/12/23 81niteesh kumar(BBDIT)

04/12/23 82niteesh kumar(BBDIT)

top related