Microcontroller base project

14

Click here to load reader

Transcript of Microcontroller base project

Page 1: Microcontroller base project

Project Report

Government Engineering Collage,Rajkot

Page 2: Microcontroller base project

@ BCD To HEX Converter @

The Project Base On

8051 Microcontroller…

Page 3: Microcontroller base project

Prepared By:

Neeraj Deshani(090200117113)

&

Anant Chodhri(090200117)

Page 4: Microcontroller base project

INDEX

• Curcuit Diagram

• Component List

• Discription Of Component

• Introduction

• Working Process

• 89c51 IC Pin Diagram

• Programm

• References

Page 5: Microcontroller base project
Page 6: Microcontroller base project

Computers recognize Base 16 (hex)

Binary Hex0000 00001 10010 20011 30100 40101 50110 60111 71000 81001 91010 A1011 B1100 C1101 D1110 E1111 F

Page 7: Microcontroller base project

Component List

• 89c51 ic

• Register

• Capacitor

• Dip switch

• 7 segment led counter

Page 8: Microcontroller base project

Pin Diagram Of 89c51 IC

Page 9: Microcontroller base project

Features Of 89c51 IC

• FLASH EPROM internal program memory with Chip Erase.• Up to 64 k byte external program memory if the internal program memory is disabled (EA = 0).• Programmable security bits.• 100 minimum erase/program cycles for each byte.• 10 year minimum data retention.• Programming support available from many popular vendors.

Page 10: Microcontroller base project

About DIP swich

• A DIP switch is a set of manual electric switches that are packaged in a group in a standard dual in-line package (DIP) (the whole package unit may also be referred to as a DIP switch in the singular).

• (DIP switches) Dual Interface Poll switches usually allow you to change the configuration of a circuit board to suit your application.

• A series of miniature switches, all housed in the same unit, commonly used in computer and telephony systems to set options. Compare to jumper.

Page 11: Microcontroller base project

Introduction

• The hexadecimal number system is the most popular means of direct data entry and retrieval in digital system. The base of hexadecimal number system is 16 and uses 16 symbols, namely, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. The symbol A to F represents the decimal 10 to 15 respectively.

• Since its base is 16= 24, every 4 bit binary digit combination can be represented by one hexadecimal digit. Each significant position in an hexadecimal number has a positional weight.

• These weights are given in the ascending powers of 16. i.e., 160,

161, 162, …. etc

Page 12: Microcontroller base project

Working Process

• As shown from the fig. we can understand the working process of BCD to HEX converter.

• Now from fig. there is one DIP swich put in curcuit.

• In one DIP swich Four Port Are Available Who having a power supply.

• Now first of all all swich is off Position That’s why HEX value is zero.

• Now Only one Swich is at ‘1’ or ‘ON’ position & other is ‘off’. Hence, we get HEX value as ‘1. Due to 89c51 IC’s inbilt process.

• So, Like vise if on All the Swiches So we can get ‘F’.. HEX value..

• This is simplest process of This BCD to HEX converter..

Page 13: Microcontroller base project

ORG 00h AJMP start ORG 03h RETIStart: MOV P1,#00h ;configure port 1 as output port MOV P2,#0FFh ;configure port 2 as input portAgain: MOV DPTR,#CODE ;initialise DPTR as a base address code MOV A,P2 ;read status of the switch ACALL DELAY MOVC A,@A+DPTR MOV P1,A ;display count value AJMP again ;continue DIP swich reading processDELAY: MOV R6,#0FFhLOOP1: DJNZ R6,LOOP1 RETCODE: db 0C0h,0F9H,0A4h, 0B0h ,99 h ,92h ,8 2h ,0F8h ,80 h ,90h ,0C8h , db 83 h ,0C6h ,0A1 h , 86h , 8Eh , 00hEND

Program:

Page 14: Microcontroller base project

Reference:

www.engineersgarage.com

www.pdfcontain.com

www.8051.net

www.efybgm.com