Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 25

A PRESENTATION ON THE EMBEDDED SYSTEM BY SUNIL KUMAR JAIMAN

What is an embedded system

Embedded system are the microprocessor Or micro controller based electronic system which are designed for the specific task/purpose only.
An Embedded System is a microprocessor based system that is embedded as a subsystem, in a larger system (which may or may not be a computer system).

APPLICATION
Medical systems
Military applications

Trains Aircraft electronics

LEARNING EMBEDDED SYSTEM


The study of embedded system means we want to get the knowledge so that we can design the electronics system in such a way that it will increase intelligence in system.We would be able to think programming of system in assembly and can burn flash memories.

NEED OF EMBEDDED SYSTEM



Less cost of other system Small size Reliability Less power consumption Work on specific purpose

Classification of Embedded Systems


Distributed Non distributed

In embedded system we are selecting micro controller 8051 because of following reasons: This is widely used in electronics industries. It has 8-bit architecture and designed by Intel
co. It contains UART chip, RAM, ROM, timers and ports on single chip. Its assembly language is quite similar to 8085 mp.

Difference between mp and mc


ALU Main memory MP CU I/O unit I/O PORTS Main memory

Microprocessor

Microcontroller

Micro controller IC

Micro controller
A smaller computer On-chip RAM, ROM, I/O ports... Example Motorolas 6811, Intels 8051, and PIC
16X

Features of 8051 micro controller


8-bit CPU optimized for control application. On chip data ram 128 byte. Bi-directional and individually addressable, I/o
lines. Multiple 16-bit timer/counters On chip CLK oscillator Serial port Parallel port

P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD) P3.0 (TXD) P3.1 (INT0) P3.2 (INT1) P3.3 (T0) P3.4 (T1) P3.5 (WR) P3.6 (RD) P3.7 XTAL2 XTAL1 VSS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

40 39 38 37 36 35 34

VCC P0.0 (AD0) P0.1 (AD1) P0.2 (AD2) P0.3 (AD3) P0.4 (AD4) P0.5 (AD5) P0.6 (AD6) P0.7 (AD7) (VPP)/EA (PROG)ALE PSEN P2.7 (A15) P2.6 (A14) P2.5 (A13) P2.4 (A12) P2.3 (A11) P2.2 (A10) P2.1 (A9) P2.0 (A8)

Port 1

Pin diagram of 8051


Port 0

8 0 5 1

33 32 31 30 29 28 27 26 25 24 23 22 21

Port 3

Port 2

Pin description of 8051 Mc S



P0-Port 0, P1-Port 1, P2-Port 2, P3-Port 3 (AD0 ~ AD7)- multiplexed address/data lines (A8 A15)- high order address lines RST- reset T0,T1- timer CLK input XTAL1,XTAL2- crystal oscillator pins RXD,TXD- serial receive/transmit lines ALE/PROG- address/program logic in burning the flash ROM EA/VPP- external enable/Vcc WR,RD- write,read lines INT0,INT1- external interrupt lines

Overview of Memory structure: Internal code, Internal data, External data


ICM IDM EDM

CONTROL REGISTERS use in 8051 mc

TCON ( timer/counter control register) TMOD (timer/counter mode control register) SCON (start/stop controller register) PCON ( power control register) IP (interrupt priority register) IE (interrupt enable register)

TMOD Register:

Gate : When set, timer


INT(0,1) is high.

only runs while

C/T : Counter/Timer select bit. M1 : Mode bit 1. M0 : Mode bit 0.

Interrupt Enable Register :

EA- disable all interrupts EX0- enables or disables external interrupt 0 ET0- enables or disables timer 0 overflow interrupt EX1- enables or disables external interrupt 1 ET1- enables or disables timer 1 overflow interrupt ES- enables or disables the serial port interrupts ET2- enables or disables timer 2 overflow or capture interrupt 1 bit is not implemented,reserved for future

TCON Register:

TF1: Timer 1 overflow flag. TR1: Timer 1 run control bit. TF0: Timer 0 overflag. TR0: Timer 0 run control bit. IE1: External interrupt 1 edge flag. IT1: External interrupt 1 type flag. IE0: External interrupt 0 edge flag. IT0: External interrupt 0 type flag.

SERIAL PROGRAMMING
Computers transfer data in two ways:1 Parallel:-often 8 or more lines are used to transfer data that is only a few fact away. 2 Serial:-to transfer a device located many meters away,the serial method is used.the data is sent one bit at a time.

PAEALLEL SERIAL

SENDER

RECEIVER SENDER RECEIVER

Definition of Serial Communication


Travels in series

B Bit by bit transmission of information in series

Serial data communication uses two methods


Synchronous method transfers a
block of data at a time Asynchronous method transfers a single byte at a time

Types of serial communication


Simplex
TX RX

Half duplex
TX RX RX TX

full duplex
TX RX RX TX

THANK YOU

You might also like