Professional Documents
Culture Documents
MIC Complete
MIC Complete
2022-23
1
CERTIFICATE
This is to certify that Mr. Harshal B. Patil, Mr. Aniket S. Shekokar, Mr. Ajay A. Wagh,
Mr. Saurav .S. Fulpagare of Polytechnic second Year Computer Engineering have submitted
a micro project titled “Conversion of number system” during the academic year 2022-
2023 satisfactory manner in partial fulfilment of the requirement for the Diploma in
Computer Engineering of MSBTE, Mumbai.
Prof. S.N.Khachane
(Principal)
2
DECLARATION
3 Internet www.wikipedia.comwkivicypidiy 1
a
Completed and written by me and has not been previously formed the basis for the
award of any diploma certificate.
3
ACKNOWLEDGEMENT
The real spirit of achieving a goal is through the way of excellence and lustrous discipline. I would have
never succeeded in completing my task without the cooperation, encouragement and help provided to me by
various personalities.
I would like to take this opportunity to express my heartfelt thanks to my guide Prof.
A.R.Warkhede her esteemed guidance and encouragement, especially through difficult times. His
suggestions broaden my vision and guided me to succeed in this work. I am also very grateful for his
guidance and comments while studying part of my seminar and learnt many things under his leadership.
I also extend my thanks Prof S .N. Khachane Principal, Padm. Dr. V. B. Kolte college of
Engineering (Polytechnic !st shift) Malkapur for their valuable support.
Also I would like to thanks to all teaching and non-teaching staff of the department for their
encouragement, cooperation and help. My greatest thanks are to all who wished me success especially my
parents, my friends whose support and care makes me stay on earth.
4
PART A
Brief Introduction: In the micro project report we have explained the conversion of number system
What is number system and conversion of number system i.e.
Resource Required:
Sr. Name of resources Specification Quantity Remark
No
3 Internet www.wikipedia.comwki 1
vicypidiya
5
PART B
Brief Introduction: In the micro project report we have explained the conversion of number system
What is number system and conversion of number system i.e.
6
Output of the project:-
The conversion process involves dividing the Hexa number into its individual digits, converting each
digit to its decimal equivalent, and then converting the decimal digits to their BCD representation.
For example, let's consider the Hexa number 2Bh. To convert this to BCD, we first separate the two
hexadecimal digits, 2 and B. We then convert each digit to its decimal equivalent, which is 2 and 11,
respectively.
Next, we convert each decimal digit to its 4-bit BCD representation. The decimal digit 2 is
represented by the BCD code 0010, while the decimal digit 1 is represented by the BCD code 0001.
Finally, we combine the two BCD codes to get the BCD representation of the original Hexa number.
In this case, the BCD representation of 2Bh is 0010 0001.
The conversion process can be done manually, but it can also be implemented in software or
hardware. In software, the conversion can be done using programming languages or assembly
language. In hardware, BCD converters can be implemented using digital circuits or
microcontrollers.
Example:-
To convert (213AFE)H to BCD, first it has to be converted to binary which gives (2177790)D
. Now each digit is converted to its BCD code which gives (0010 0001 0111 0111 0111 1001
0000)BCD .
Binary Coded Decimal (BCD) is a system of representing decimal numbers using binary
digits. In BCD, each decimal digit is represented by a 4-bit binary code. This system is used in
applications that require high precision and accuracy, such as financial calculations and
measurements. Hexadecimal, on
the other hand, is a base-16 numbering system that uses 16 symbols, including 0-9 and A-F,
to represent numbers. In this section, we will describe the steps involved in converting a hexadecimal
number to its equivalent BCD format.
Step 1: Write down the hexadecimal number that you want to convert.
For example, let's say we want to convert the hexadecimal number "5A" to BCD.
Step 2: Convert each hexadecimal digit into its 4-bit binary equivalent.
To do this, you can use a hexadecimal to binary conversion table or the method of repeatedly
7
dividing
the hexadecimal number by 2 and writing down the remainder until you reach 0. For example, the
hexadecimal digit "5" can be converted to binary as "0101", and the hexadecimal digit "A" can be
converted to binary as "1010".
Step 3: Write down the binary equivalent of each hexadecimal digit next to each other, to get a binary
number.
Step 4: Divide the binary number into groups of 4 bits, starting from the rightmost bit.
If the number of bits is not a multiple of 4, you can add leading zeros to make it divisible by 4. For
example, "01011010" can be divided into "0101" and "1010".
Each group of 4 bits can represent a decimal digit from 0 to 9, so you can use a conversion table or
convert the binary to decimal manually. For example, "0101" is equivalent to the decimal number "5"
and "1010" is equivalent to the decimal number "10".
Step 6: Write down the decimal equivalent of each group of 4 bits next to each other, to get the BCD
representation of the original hexadecimal number.
For example, the BCD representation of "5A" is "0101 1010", which is equivalent to the decimal
number "59".
Overall, converting hexadecimal to BCD requires converting each hexadecimal digit to binary,
grouping the binary digits into sets of 4 bits, and then converting each group to its decimal
equivalent. By following these steps, you can convert a hexadecimal number to its equivalent BCD
format.
It is important to note that BCD can be an inefficient way to represent numbers, as it uses more bits
than other formats. For example, a 4-digit BCD number requires 16 bits, while a 4-digit binary
number only requires 4 bits. BCD is often used in applications where decimal arithmetic is required,
such as in calculators and financial systems. However, in most cases, binary or other formats are
more efficient and easier to work with.
Additionally, there are some cases where the conversion from hexadecimal to BCD can be more
complicated, such as when dealing with negative numbers or fractional numbers. In these cases,
additional steps may be required to properly represent the number in BCD format.
In conclusion, converting hexadecimal to BCD involves a few simple steps, but it is important to
understand the limitations and complexities of this system. With the right knowledge and tools, you
can easily convert hexadecimal numbers to their equivalent BCD format for use in various
applications.
8
Algorithm for converting hexadecimal to equivalent BCD:-
9
Flowchart for converting Hexadecimal to equivalent BCD:-
10
Program For Hex to BCD Conversion Code:-
LOOP1:
DIV BL ; Divide AL by 10
LOOP2:
POP AX ; Pop remainder from stack
11
ADD DL, 30h ; Convert high digit to ASCII
12
Example:-
; Convert Hex to BCD
MOV AH, 0 ; Clear AH register
MOV BL, AL ; Move AL value to BL register
13
Example:-
hex_to_bcd:
MOV BL, AL ; Move hex number to BL
AND BL, 0FH ; Clear upper nibble
MOV AH, 0 ; Clear AH
skip_adjustment:
ADD AH, BL ; Add the lower nibble to AH
SHL AH, 4 ; Shift AH left 4 bits to make room for upper nibble
skip_upper_adjustment:
ADD AH, BL ; Add the upper nibble to AH
Skills Developed
14
TEACHER EVALUATION SHEET
Name of Student: - Mr. Harshal B. Patil EnrollmentNo.:-2115650096
Name of Program:-Computer Science &Engineering Semester:Fourth
Course Title: - Microprocessor Code: - 22415
Title of the Micro-project: - “Conversion of number system”
Course Outcomes Achieved:-Use instruction for different addressing modes
..……………………………………………………………………………………………………………………
…
3 Project proposal
4 Completion of target
Quality of
6
Prototype/Model
7 Report preparation
8 Presentation
9 Defense
Part B Project
Part A Project Individual Total Marks 10
Report /
Project Methodology Presentation Viva
Working Model
Proposal
2 4 Marks
2 Marks
2 Marks Marks
Comments / Suggestion about team work / leadership / inter-personal communication (if any )
------------------------------------------------------------------------------------------------------------------------
--
Any other comments:--------------------------------------------------------------------------------------------------------------
---
---------
Signature: - -----------------------
Name and designation of A. R. Warkhede
15
TEACHER EVALUATION SHEET
Name of Student: - Mr. Aniket S. Shekokar EnrollmentNo.:-2115650104
Name of Program :-Computer Science &Engineering Semester:Fourth
Course Title: - Microprocessor Code :- 22415
Title of the Micro-project:- “Conversion of number system”
Course Outcomes Achieved:- Use instruction for different addressing modes
..………………………………………………………………………………………………………………………………
……………………
1 Relevance to course
2 Literature survey
3 Project proposal
4 Completion of target
Quality of
6
Prototype/Model
7 Report preparation
8 Presentation
9 Defense
Part B Project
Part A Project Project Individual Presentation Total Marks 10
Report / Working
Proposal Methodology Viva
Model
2 Marks 2 Marks 4 Marks
2 Marks
Comments / Suggestion about team work / leadership / inter-personal communication (if any )
--------------------------------------------------------------------------------------------------------------------------
Any other comments:
--------------------------------------------------------------------------------------------------------------------------
Signature: - -----------------------
Name and designation of A. R. Warkhede
16
TEACHER EVALUATION SHEET
Name of Student: -- Mr. Ajay A. Wagh Enrollment No.:-2115650005
Name of Program :-Computer Science &Engineering Semester:-Fourth
1 Relevance to course
2 Literature survey
3 Project proposal
4 Completion of target
Analysis &
5
representation of data
Quality of
6
Prototype/Model
7 Report preparation
8 Presentation
9 Defense
Part B Project
Part A Project Project Individual Total Marks 10
Report / Working
Proposal Methodology Presentation Viva
Model
2 Marks 2 Marks 4 Marks
2 Marks
Comments / Suggestion about team work / leadership / inter-personal communication (if any )
--------------------------------------------------------------------------------------------------------------------------
Any other comments:
-
Signature: - -----------------------
Name and designation of : A. R. Warkhede
17
TEACHER EVALUATION SHEET
Name of Student: - Mr. Saurav S. Fulpagare Enrollment No.:-2115650016
Name of Program:-Computer Science &Engineering Semester:-Fourth
1 Relevance to course
2 Literature survey
3 Project proposal
4 Completion of target
Analysis &
5
representation of data
Quality of
6
Prototype/Model
7 Report preparation
8 Presentation
9 Defense
Part B Project
Part A Project Project Individual Total Marks 10
Report / Working
Proposal Methodology Presentation Viva
Model
2 Marks 2 Marks 4 Marks
2 Marks
Comments / Suggestion about team work / leadership / inter-personal communication (if any )
--------------------------------------------------------------------------------------------------------------------------
Any other comments:
Signature: - -----------------------
18