31
Techogroovy Systems India Pvt Ltd www.technogroovy.com Cell- +91-7500347448 , +91-7533940322 Mail : [email protected] Practical Training Seminar on www.technogroovy.com, Cell- +91-7500347448 , +91- 7533940322

Computer Science Training,IT Training,CS Training,Computer Training Institute,

Embed Size (px)

DESCRIPTION

Technogroovy Systems India Pvt. Ltd. Website : http://www.technogroovy.com/ Email:- [email protected] Cell: +91-7500347448 , +91-7533940322

Citation preview

Page 1: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Techogroovy Systems India Pvt Ltd www.technogroovy.com

Cell- +91-7500347448 , +91-7533940322 Mail : [email protected]

Practical Training Seminaron

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 2: Computer Science Training,IT Training,CS Training,Computer Training Institute,

“ An embedded system can be defined as those control systems which are designed either by microprocessor or microcontroller for a specific tasks. ” OR“ An embedded system is some combination of computer hardware & software, either fixed in capability or programmable, that is specifically designed for a particular kind of application device. ”

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 3: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Important Units Of microprocessor/controller

• CPU: Central Processing Unit• I/O: Input /Output• Bus: Address bus & Data bus• Memory: RAM & ROM• Timer• Interrupt

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 4: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Block Diagram of an Embedded System

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 5: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Traffic LightDVD player

Digital clockMoving message display

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 6: Computer Science Training,IT Training,CS Training,Computer Training Institute,

CPUGeneral-Purpose Micro-

processorRAM ROM I/O

PortTimer

Serial 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 microprocessor

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 7: Computer Science Training,IT Training,CS Training,Computer Training Institute,

RAM ROM

I/O Port

TimerSerial COM Port

Microcontroller

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

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 8: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Microprocessor • CPU is stand-alone, RAM,

ROM, I/O, timer are separate

• designer can decide on the amount of ROM, RAM and I/O ports.

• expensive• general-purpose• Ex. 8085,8086 mp,

Motorola 6800, Intel’s 8086, etc.

Microcontroller• CPU, RAM, ROM, I/O and

timer are all on a single chip

• fix amount of on-chip ROM, RAM, I/O ports

• for applications in which cost, power and space are critical

• single-purpose• Ex. 8051, PIC mc,

Motorola MC’s, Phillips, etc.

Microprocessor v/s Microcontroller

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 9: Computer Science Training,IT Training,CS Training,Computer Training Institute,

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 10: Computer Science Training,IT Training,CS Training,Computer Training Institute,

The 8051 Microcontroller:• The 8051 is the first microcontroller of the MCS-51

family introduced by Intel Corporation at the end of the 1970’s.

• The 8051 family characteristics:o 4K Bytes ROMo 128 Bytes RAMo two timer/counters (16 bit)o A serial porto 32 input/output porto Interrupt controller

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 11: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Microcontroller 8051 internal Architecture

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 12: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Pin Description of the 8051

1234567891011121314151617181920

4039383736353433323130292827262524232221

P1.0P1.1P1.2P1.3P1.4P1.5P1.6P1.7RST

(RXD)P3.0(TXD)P3.1

(T0)P3.4(T1)P3.5

XTAL2XTAL1

GND

(INT0)P3.2(INT1)P3.3

(RD)P3.7(WR)P3.6

VccP0.0(AD0)P0.1(AD1)P0.2(AD2)P0.3(AD3)P0.4(AD4)P0.5(AD5)P0.6(AD6)P0.7(AD7)EA/VPPALE/PROGPSENP2.7(A15)P2.6(A14)P2.5(A13)P2.4(A12)P2.3(A11)P2.2(A10)P2.1(A9)P2.0(A8)

8051IC

• 8051

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 13: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Vcc(+5volt)Pin - 40

Ground(0 volt)Pin-20

Pin Description

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 14: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Pin Description

Port 0 fromPin-39 to pin-32

Used to excess bothdata & address

Dual functional

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 15: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Microcontroller 8051Pin Description

Port 1 fromPin-1 to pin-8

Used as I/O port

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 16: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Pin Description

Port 2 fromPin-21 to pin-28

Used to excessaddress & as I/O port

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 17: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Microcontroller 8051Pin Description

Port 3 from Pin-10 to Pin-17

P3.0 RXDP3.1 TXDP3.2 IN T0P3.3 IN T1P3.4 T0

P3.5 T1P3.6 WRP3.7 RD

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 18: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Pin Description

reset

crystal

External memory

Add. Latch enable

Program Store Enable

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 19: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Addressing Modes

• Immediate addressing modeso ADD A, #23h (Add immediate data to Acc)

• Register addressing modeso ADD A, R2 (Add register to Accumulator)

• Direct addressing modeso ADD A, 40h (Add data at location 40h to Accumulator)

• Register Indirect addressing modeso ADD A,@R2 (Add indirect RAM to Acc)

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 20: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Timers/counters

• The 8051 has 2 timer/counter . They can be used either as timers to generate delay or as counters to count events happening outside the controller.

o e.g., traffic light.

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 21: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Timers/Counters

• General 8051 has 2 timer:o Two 16-bit timero The counters are divided into two 8-Bit registers called the

timer low (TL0, TL1) and high (TH0, TH1) bytes. o All counters action is controlled by bit states in the timer

mode control register (TMOD), the timer/counter control register (TCON), and certain program instructions.

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 22: Computer Science Training,IT Training,CS Training,Computer Training Institute,

TMOD Register:

• Gate : It controls the way by which timer/counter will start.

(set when gate is controlled by hardware)• C/T : Counter/Timer select bit.(set for counter)• M1 : Mode bit 1.• M0 : Mode bit 0.

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 23: Computer Science Training,IT Training,CS Training,Computer Training Institute,

InterruptsDefinition of ‘Interrupt’

“Event that disrupts the normal execution of a program and causes the execution of special

instructions”

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 24: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Interrupts

Program

time t

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 25: Computer Science Training,IT Training,CS Training,Computer Training Institute,

InterruptsInterrupt

Program

time t

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 26: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Interrupts

Program

Interrupt Service Routine

Interrupt

Program

time t

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 27: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Interrupts• Internal or External• Handling can be

enabled/disabled• Prioritized

• General 8051: o 3x timer interrupts,o 2x external interrupts o 1x serial port interrupt

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 28: Computer Science Training,IT Training,CS Training,Computer Training Institute,

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 29: Computer Science Training,IT Training,CS Training,Computer Training Institute,

External Interrupts

Pins for external interrupts

P3.2 IN T0

P3.3 IN T1

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 30: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Smart card

ATM

Health card

Robotics

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Page 31: Computer Science Training,IT Training,CS Training,Computer Training Institute,

Thank YouTechogroovy Systems India Pvt Ltd ,

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322

Mail : [email protected]

Grazie

Gracias

Obrigado

Danke

www.technogroovy.com, Cell- +91-7500347448 , +91-7533940322