Presentation is loading. Please wait.

Presentation is loading. Please wait.

SUMMER TRAINING REPORT ON ‘ EMBEDDED SYSTEM ’ BY SOFCON Submitted to : Submitted by : Mr. KARAMBIR SHEORAN SANDEEP Asstt. Professor & Head 1130112367 ECE.

Similar presentations


Presentation on theme: "SUMMER TRAINING REPORT ON ‘ EMBEDDED SYSTEM ’ BY SOFCON Submitted to : Submitted by : Mr. KARAMBIR SHEORAN SANDEEP Asstt. Professor & Head 1130112367 ECE."— Presentation transcript:

1 SUMMER TRAINING REPORT ON ‘ EMBEDDED SYSTEM ’ BY SOFCON Submitted to : Submitted by : Mr. KARAMBIR SHEORAN SANDEEP Asstt. Professor & Head 1130112367 ECE Deptt. Department of Electronics & Communication Engineering

2 Embedded Systems  Embedded system means the processor is embedded into that application  An embedded product uses a microprocessor or microcontroller to do task  In an embedded system, there is only one application software that is typically burned into ROM  Example printer, keyboard, video game player

3 Features of 8051 ROM-4K bytes RAM-128 bytes Timer-2 I/O pins-32 Serial port-1 Interrupt sources-6  8051 is based on CISC architecture.  It is based on Harvard architecture. So, it has separate program and data memory.

4 Block Diagram of 8051 CPU On-chip RAM On-chip ROM for program code 4 I/O Ports Timer 0 Serial Port OSC Interrupt Control External interrupts Timer 1 Timer/Counter Bus Control TxD RxD P0 P1 P2 P3 Address/Data Counter Inputs

5 8051: Pin Diagram

6 What is a microprocessor? The microprocessor is the integration of a number of useful functions. These functions are:  The ability to execute a stored set of instructions to carry out user defined tasks.  General-purpose microprocessor.  Act as CPU for Computers.  No RAM, ROM, I/O on CPU chip itself  Example Intel’s 8086,8085.

7 Microprocessor v/s Micro-controllers Microprocessors  High end of market where performance matters  High power dissipation–high cost  Need peripheral devices to work  Mostly used in microcomputers Microcontrollers  Targeted for low end of market where performance doesn’t matter  Low power dissipation – low cost  Memory plus I/O devices, all integrated into one chip  Mostly used in embedded systems

8

9 Type optoelectronic Working principleElectroluminescence InventedNick Holonyak Jr.Nick Holonyak Jr. (1962) Electronic symbol Pin configurationAnodeAnode and CathodeCathode A light-emitting diode ( LED ) is a semiconductor light source. LEDs are used as indicator lamps in many devices

10 Like a normal diode, the LED consists of a chip of semiconducting material doped with impurities to create a p-n junction. As in other diodes, current flows easily from the p-side, or anode, to the n-side, or cathode.

11 Color Wavelength Wavelength (nm) Voltage (V)Semiconductor Material Infraredλλ > 760ΔΔV < 1.9 Gallium arsenideGallium arsenide (GaAs) Aluminium gallium arsenide (AlGaAs) Aluminium gallium arsenide Red610 < λ < 7601.63 < ΔV < 2.03 Aluminium gallium arsenideAluminium gallium arsenide (AlGaAs) Gallium arsenide phosphide (GaAsP) Aluminium gallium indium phosphide (AlGaInP) Gallium(III) phosphide (GaP) Gallium arsenide phosphide Aluminium gallium indium phosphide Gallium(III) phosphide Orange590 < λ < 6102.03 < ΔV < 2.10 Gallium arsenide phosphideGallium arsenide phosphide (GaAsP) Aluminium gallium indium phosphide (AlGaInP) Gallium(III) phosphide (GaP) Aluminium gallium indium phosphide Gallium(III) phosphide Yellow570 < λ < 5902.10 < ΔV < 2.18 Gallium arsenide phosphideGallium arsenide phosphide (GaAsP) Aluminium gallium indium phosphide (AlGaInP) Gallium(III) phosphide (GaP) Aluminium gallium indium phosphide Gallium(III) phosphide

12 Green500 < λ < 570 1.9 [42] < ΔV < 4.0 [42] Indium gallium nitrideIndium gallium nitride (InGaN) / Gallium(III) nitride (GaN) Gallium(III) phosphide (GaP) Aluminium gallium indium phosphide (AlGaInP) Aluminium gallium phosphide (AlGaP)Gallium(III) nitride Gallium(III) phosphide Aluminium gallium indium phosphide Aluminium gallium phosphide Blue450 < λ < 5002.48 < ΔV < 3.7 Zinc selenideZinc selenide (ZnSe) Indium gallium nitride (InGaN) Silicon carbide (SiC) as substrate Silicon (Si) as substrate — (under development) Indium gallium nitride Silicon carbide Silicon Violet400 < λ < 4502.76 < ΔV < 4.0Indium gallium nitrideIndium gallium nitride (InGaN) Purplemultiple types2.48 < ΔV < 3.7 Dual blue/red LEDs, blue with red phosphor, or white with purple plastic Ultravioletλ < 4003.1 < ΔV < 4.4 DiamondDiamond (235 nm) [43] Boron nitride (215 nm) [44][45] Aluminium nitride (AlN) (210 nm) [46] Aluminium gallium nitride (AlGaN) Aluminium gallium indium nitride (AlGaInN) — (down to 210 nm) [47] [43] Boron nitride [44][45] Aluminium nitride [46] Aluminium gallium nitride Aluminium gallium indium nitride [47]

13 LEDs are produced in a variety of shapes and sizes. The 5 mm cylindrical package (red, fifth from the left) is the most common, estimated at 80% of world production.The color of the plastic lens is often the same as the actual color of light emitted, but not always. For instance, purple plastic is often used for infrared LEDs, and most blue devices have clear housings. There are also LEDs in SMT packages, such as those found on blinkies and on cell phone keypads (not shown). The main types of LEDs are miniature, high power devices and custom designs such as alphanumeric or multi-color Types

14 #include #define led P1 void msdelay(unsigned int); void main() { while(1) { led=0xff; msdelay(44); led=0x00; msdelay(44); } void msdelay(unsigned int t) { unsigned int i,j; for(i=0;i<=1233;i++) for(j=0;j<=t;j++); }

15  7-segment LED Display is display device which can display one digit at a time  Actually one digit is represented by arrangement of 7 LEDs in a small cubical box  For representing 3 digit number we need three 7-segment LED Displays look like

16 OUTPUThgfedcbaHEX CODE 0 11000000C0 1 11111001F9 2 10100100A4 3 10110000B0 4 1001100199 5 1001001092 6 1000001082 7 11111000F8 8 1000000080 9 1001000090 Truth Table: 7 Segment Display

17 #include #define seg P1 sbit inc=P2^0; sbit dec=P2^1; void main() { unsigned int k=0,i; while(1) { if(inc==0) { k=k+1; for(i=0;i<=35000;i++); } if(dec==0) { k=k-1; for(i=0;i<=35000;i++); } switch(k) { case 0: seg=0x3f; break; case 1: seg=0x06; break; case 2: seg=0x5b; break; case 3: seg=0x4f; break; case 4: seg=0x66; break; case 5: seg=0x6d; break; case 6: seg=0x7d; break; case 7: seg=0x07; break; case 8: seg=0x7f; break; case 9: seg=0x67; break; }}}

18 PROTEUS DESIGN

19 Pin no.Description 1Ground 2+5 Volts 3LCD contrast 4Instruction/Data input 5Write/read signal 6Enable signal 7 to 14D0 to D7 data bus lines About LCD

20 RS – register select If RS=0, used to send commands such as clear display, cursor position etc. If RS=1, used to send data to the LCD. R/W – read / write If R/W = 1, read from LCD If R/W = 0, write to LCD E – enable A 450 nano seconds high-to-low pulse is applied in order to send data. For 16x2 LCD the address of the cursor positions are: All these addresses are in hexadecimal. 80818283848586to 8F C0C1C2C3C4C5C6to CF

21 HEX CODE COMMAND HEX CODE COMMAND 0x01 CLEAR LCD 0x02 RETURN HOME 0x04 SHIFT CURSOR LEFT 0x06 SHIFT CURSOR RIGHT 0x05 SHIFT DISPLAY RIGHT 0x07 SHIFT DISPLAY LEFT 0x08 DISPLAY OFF, CURSOR OFF 0x0A DISPLAY OFF, CURSOR ON 0x0C DISPLAY ON, CURSOR OFF 0x0E DISPLAY ON, CURSOR BLINKING 0x10 SHIFT CURSOR TO LEFT 0x14 SHIFT CURSOR TO RIGHT 0x18 SHIFT DISPLAY TO LEFT 0x1C SHIFT DISPLAY TO RIGHT 0x80 FORCE CURSOR TO BEGINNING OF FIRST LINE 0xC0 FORCE CURSOR TO BEGINNING OF 2ND LINE 0x38 2 LINES & 5X7 MATRIX

22 Addressing Modes The CPU can access data in various ways. The data could be in a register or in memory or be provided as an immediate value. These various ways of accessing data are called addressing modes. Total 5 addressing modes: 1) Immediate 2) Register 3) Direct 4) Register indirect 5) Indexed

23 Immediate addressing mode Ex: MVI A,25H ;load 25h into A  Immediate data must be preceded by the pound sign “#”.  Although DPTR is 16 bit, it can be accessed as two 8- bit registers, DPH and DPL. Ex: MOV DPTR, #2550h is same as, MOV DPL, #50h MOV DPH,#25h

24 Register Addressing Modes Ex: MOV A, R0 ;copy contents of R0 into A Direct addressing Mode Ex: MOV R0,40h ;save the contents of RAM location 40h in R0 MOV 56h,A ;save the contents of A in RAM location 56h  The ‘#’ symbol distinguishes between the direct addressing and immediate addressing mode.

25 Register Indirect addressing Mode  Here register is used as a pointer to the data. If the data is inside CPU, only registers R0 and R1 are used for this purpose.  When R0 and R1 are used as pointers, i.e., when they hold the address of RAM, they must be preceded by “@” sign. Ex: MOV A,M ; MOV @R1,B ;move contents of B into RAM location whose address is held by R1.

26


Download ppt "SUMMER TRAINING REPORT ON ‘ EMBEDDED SYSTEM ’ BY SOFCON Submitted to : Submitted by : Mr. KARAMBIR SHEORAN SANDEEP Asstt. Professor & Head 1130112367 ECE."

Similar presentations


Ads by Google