SlideShare a Scribd company logo
1 of 6
Download to read offline
IOSR Journal of Engineering (IOSRJEN) www.iosrjen.org
ISSN (e): 2250-3021, ISSN (p): 2278-8719
Vol. 04, Issue 12 (December 2014), ||V4|| PP 52-57
International organization of Scientific Research 52 | P a g e
Microcontroller based kit design for Octal to Hexadecimal system
Conversion without returning to another system
Noaman Abd Elnour Abd Elrahim1
, Abdelrasoul jabar Alzubaidi2 ,
1
Applied Sciences Collage- Red sea University- Port Sudan- Sudan.
2
Sudan University of science and technology- Engineering Collage-School of electronics-
ABSTRACT: The ordinary method of conversion from the octal numbering system to the hexadecimal
numbering system goes through two steps . The first step is to convert from octal to binary and the second step
is to convert from the binary to hexadecimal. The same procedure of conversion can be conducted by going
through the decimal system .This paper deals with a direct method of conversion from octal into hexadecimal
without returning to another system. Although it is little complicated, but it is useful to find such procedure of
conversion and then prove it mathematically. Building such a direct conversion algorithm is useful in the
computing work. The system design and the algorithm can be used as a model for teaching the undergraduate
students in the field of computer and electronics.
KEYWORDS: Binary, Octal, Hexadecimal, Numbering systems, Computer, Algorithm.
I. INTRODUCTION
Calculation systems are very important in the theory and practical in physics, mathematics and
computers. It is possible and easy to calculate in the decimal, binary, hexadecimal and octal number systems.
Also it is possible to convert between decimal and any other systems, and between binary and any other system
without returning to a third system. But if it is needed to convert octal into hexadecimal and vise versa, we must
first convert to binary or decimal then convert to the needed system.
We try to find out a direct method of conversion between octal and hexadecimal without returning to another
system. Table (1) below shows a sample of look up table for conversion from octal to hexadecimal system and
vice versa.
Table (1): A look up table for converting numbers octal to hexadecimal and vice versa
Octal Hexadecimal
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
10 8
11 9
12 A
13 B
14 C
15 D
16 E
17 F
Several steps have to be conducted to attain this goal. A step by step procedure will be demonstrated in this
paper. The example below assumes four digits octal number and three digits equivalent
hexadecimal number .
Microcontroller based kit design
International organization of Scientific Research 53 | P a g e
Octal to hexadecimal:

Calculation steps for the digits , X1 , X2 are as follows :
Digit X0 :
= .
.
Digit X1 :
then convert to hexadecimal if A1 even and A2 less than four.
X1 = then convert to hexadecimal and hold (1)16 to X2 if A1 even and A2 more than three.
X1 = then convert to hexadecimal and carry (8)16 to X0 if A2 less than four and A1 odd
X1 = then convert to hexadecimal and carry (8)16 to X0 and hold (1)16 to X2 if A1 odd and A2
more than three
Digit X2 :
X2 = (2A3)16 if there is no hold
X2 = (2A3+1)16 if there is (1)16 held from X1
Hexadecimal to octal:
(X2X1X0)16  (A3A2A1A0)8
Calculation steps for the digits A0 , A1 , A2 , A3 are as follows :
Digit A0 :
A0 = X0 if X0 less than (10)8
A0 = (X0 – 8)16 then convert to octal and hold (1)8 to A1 if X0 more than (7)8
Digits A2A1 :
A2A1 = 2(X1 converted to octal) if X0 less than (10)8 and X2 even
A2A1 = 2(X1 converted to octal) then [(A2 + 4) (A1)] 8 if X0 less than (10)8 and X2 odd
A2A1 = 2(X1 converted to octal) then [(A2) (A1+1)] 8 if X0 more than (7)8 and X2 even
A2A1 = 2(X1 converted to octal) then [(A2+4) (A1+1)] 8 if X0 more than (7)8 and X2 odd
Digit A3 :
A3 = 8 if X2 even
A3 = 8 if X2 odd
The above operations in octal and hexadecimal repeat themselves when adding any other digits for any
of the two systems.
II. HARDWARE COMPONENTS
The main hardware components in the design are:
1. Breadboard:
Bread board (protoboard) is a construction base for a one-of-a-kind electronic circuit, a prototype. Because the
solderless breadboard does not require soldering, it is reusable, and thus can be used for temporary prototypes
and experimenting with circuit design more easily. A variety of electronic systems may be prototyped by using
breadboards, from small analog and digital circuits to complete central processing units (CPUs).
2. Microcontroller (Atmega32):
Atmega 32 is a microcontroller from Atmel 8-bit family with 32KB flash memory is used.
Figure (1) shows the pins description of the microcontroller (Atmega-32).
Microcontroller based kit design
International organization of Scientific Research 54 | P a g e
Figure (1) Atmega32 microcontroller pins
3. LCD 40x4
The LCD 40x4 is used in the system design. The function of the LCD is as a tool for displaying the data entry
and the results of conversion between the two numbering systems.
4. (3×4) matrix keypad:
This device is used as a means for data entry.
III. THE SYSTEM DESIGN
The main block diagram is based on using a keypad for data entry, a microcontroller, a LCD. Figure
(2) shows th3e block diagram for the hardware circuit.
Figure (2) block diagram of the hardware circuit.
Microcontroller based kit design
International organization of Scientific Research 55 | P a g e
IV. SOFTAWE PROGRAM & ALGORITHM
To achieve the operation of the design, we need to go through five steps as follows:
1. Step one: Developing a program in Bascom language in the computer and producing (.hex) file format of
the program.
2. Step two: Downloading the (.hex) into the microcontroller by using (Pony Prog) program as shown in
figure (3) below.
Figure (3) Connection for programming the microcontroller.
3. Step three: Operating the system by entering data from the matrix keypad and watching the results on the
LCD.
The algorithm for performing a demonstration for the conversion between the octal and the hexadecimal
systems contains an initialization step and two subroutines. The condition for calling the subroutine depends on
the commands entered from the keypad. The command (#) is for calling octal to hexadecimal conversion
subroutine. The command (*) is for calling hexadecimal to octal conversion subroutine the algorithm is:
Start
Initialization:
--- Clear all outputs from the microcontroller to the LCD.
--- Display on the LCD “system is ready”.
--- Delay few seconds.
--- Display on the LCD “enter (#) for octal to hexadecimal conversion and (*) for hexadecimal to octal
conversion”.
Check keypad entry:
--- If the (key pressed is (#)), then call the octal to hexadecimal conversion subroutine.
--- If the (key pressed is (*)), then call the hexadecimal to octal conversion subroutine.
--- Go to check incoming data.
End.
Octal to hexadecimal conversion subroutine:
Start:
Digit X0 :
--- If the ( A1 is even ), then X0 is equal to A0.
--- If the ( A1 is odd ), then X0 is equal to (A0 + 8)16.
Digit X1 :
--- If the ( A1 is even and A2 less than four), then .
--- If the ( A1 is even and A2 more than three), then hold (1)16 to X2 and X1 = .
--- If the ( A1 is odd and A2 less than four), then carry (8)16 to X0 and X1 = .
--- If the ( A1 is even and A2 more than three), then carry (8)16 to X0 , hold (1)16 to X2 and X1 =
Microcontroller based kit design
International organization of Scientific Research 56 | P a g e
.
Digit X2 :
--- If there is no hold , then X2 = (2A3)16 .
--- If there is (1)16 held from X1 , then X2 = (2A3+1)16 .
Return.
Hexadecimal to octal conversion subroutine:
Start:
Digit A0 :
--- If the (X0 less than (10)8 ), then A0 is equal to X0.
--- If the (X0 more than (7)8), then hold (1)8 to A1 and A0 = (X0 – 8)16.
Digit A1, A2 :
--- If the (X0 less than (10)8 and X2 is even) , then A2A1 = 2(X1 converted to octal).
--- If the (X0 less than (10)8 and X2 is odd) , then [(A2 + 4) (A1)] 8 and A2A1 = 2(X1 converted to octal).
--- If the (X0 is more than (7)8 and X2 is even) , then A2A1 = 2(X1 converted to octal).
--- If the (X0 is more than (7)8 and X2 is odd) , then [(A2+4) (A1+1)] 8 and A2A1 = 2(X1 converted to octal).
Digit A3 :
--- If (X2 is even) , then A3 = 8 .
--- If (X2 is odd) , then A3 = 8.
Return
V. RESULTS
Table (2) shows the results obtained from entering the three different octal numbers of and converting them
into hexadecimal . Table (3) shows the results obtained from entering two hexadecimal numbers and converting
it into octal .The program is made simple and user friendly.
Table (2) Results from entering the octal numbers and converting it into hexadecimal
Hexadecimal numberOctal numberExperiment number
E7347Experiment one
C9E6236Experiment two
76E3556Experiment three
Table (3) Results from entering the hexadecimal numbers and converting it into octal
Octal numberHexadecimal numberExperiment number
23054C5Experiment one
2571579Experiment two
VI. CONCLUSION
The functionality of the design is simple . The user has to follow the messages displayed on the LCD
and enter the digits for the related numbering system. The system in its turn performs the conversion asked from
the keypad. Based on the entered digits the program performs the related conversion subroutine . The results of
conversion are displayed on the screen of the LCD. The hardware and the software of the system can be used as
a means for demonstration for the undergraduate students . The program is written in Bascom language and
donloaded into the microcontroller
Microcontroller based kit design
International organization of Scientific Research 57 | P a g e
REFERANCES:
[1] Sanchez, Julio; Canton, Maria P. (2007). Microcontroller programming: the microchip PIC. Boca Raton, FL: CRC Press. p. 37.
ISBN 0-8493-7189-9.
[2] 2-Knuth, D. E. (1997), "Volume 2: Seminumerical Algorithms", The Art of Computer Programming (3rd ed.), Addison-Wesley,
p. 192, ISBN 0-201-89684-2 .
[3] Arndt, Jörg (March 5, 2009). Algorithms for Programmers: Ideas and source code (draft).
[4] Morris Mano , Digital design, McGraww Hill Publishing company, 2001.
[5] Thomas L. Floyd, Digital fundamentals, Merill Publishing company, 2002
[6] -Mazidi Muhammed Ali, The 8051 microcontroller and Embedded system, Prentic Hall, 2007.
[7] -Sedra and Smith, Microelectronic circuits, Fourth edition, Oxford university Press, 2006
[8] R. S. Sedha, A text Book of Applied Electronics, Chad and company Ltd, New Delhi, 2002
[9] © MSC Electronic, BASCOM – AVR, Help Reference V1.11.8.3, 2006
[10] Jan Axelson, Microcontroller idea book, Copy right 1999
[11] Thomas L. Floyd, Electronic Devices 2nd
Edition, Merill Publishing company, 2003

More Related Content

What's hot

digital systems and information
digital systems and informationdigital systems and information
digital systems and informationKamran Zafar
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsSSE_AndyLi
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsSSE_AndyLi
 
15CS32 ADE Module 3
15CS32 ADE Module 315CS32 ADE Module 3
15CS32 ADE Module 3RLJIT
 
Computer architecture
Computer architectureComputer architecture
Computer architectureSanjeev Patel
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdfmiftah88
 
Understand data representation on CPU 1
Understand data representation on CPU 1Understand data representation on CPU 1
Understand data representation on CPU 1Brenda Debra
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number systemNallapati Anindra
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuitssathish sak
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual Shankar Gangaju
 

What's hot (20)

Digital logic circuit
Digital logic circuitDigital logic circuit
Digital logic circuit
 
digital systems and information
digital systems and informationdigital systems and information
digital systems and information
 
Ch1 2
Ch1 2Ch1 2
Ch1 2
 
Dpsd lecture-notes
Dpsd lecture-notesDpsd lecture-notes
Dpsd lecture-notes
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
 
Datarepresentation2
Datarepresentation2Datarepresentation2
Datarepresentation2
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital Systems
 
Digital design chap 1
Digital design  chap 1Digital design  chap 1
Digital design chap 1
 
15CS32 ADE Module 3
15CS32 ADE Module 315CS32 ADE Module 3
15CS32 ADE Module 3
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdf
 
Ch3
Ch3Ch3
Ch3
 
Understand data representation on CPU 1
Understand data representation on CPU 1Understand data representation on CPU 1
Understand data representation on CPU 1
 
Practical data analysis with wine
Practical data analysis with winePractical data analysis with wine
Practical data analysis with wine
 
Objective Questions Digital Electronics
Objective Questions Digital ElectronicsObjective Questions Digital Electronics
Objective Questions Digital Electronics
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuits
 
Chapter 2 ee202 boolean part a
Chapter 2 ee202 boolean part aChapter 2 ee202 boolean part a
Chapter 2 ee202 boolean part a
 
Number systems
Number systemsNumber systems
Number systems
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
 

Viewers also liked

X2x pitch deck
X2x pitch deckX2x pitch deck
X2x pitch deckx2xproject
 
خطة اللجنة العلمية
خطة اللجنة العلميةخطة اللجنة العلمية
خطة اللجنة العلميةEslam Mansour
 
Location management for pcs networks using user movement pattern
Location management for pcs networks using user movement patternLocation management for pcs networks using user movement pattern
Location management for pcs networks using user movement patternIAEME Publication
 
Multi Specialty Physician - Ellen Scharaga
Multi Specialty Physician - Ellen ScharagaMulti Specialty Physician - Ellen Scharaga
Multi Specialty Physician - Ellen ScharagaEllen Scharaga
 
Adobe photoshop-seminer
Adobe photoshop-seminerAdobe photoshop-seminer
Adobe photoshop-seminerzeynep_zyn16
 
Informe gestion Hospital Nuestra Señora de la Candelaria Guarne nov 2014
Informe gestion  Hospital Nuestra Señora de la Candelaria Guarne nov 2014Informe gestion  Hospital Nuestra Señora de la Candelaria Guarne nov 2014
Informe gestion Hospital Nuestra Señora de la Candelaria Guarne nov 2014Concejo Municipal de Guarne
 
Livre blanc presse_electronique
Livre blanc presse_electroniqueLivre blanc presse_electronique
Livre blanc presse_electroniqueAssoib Rachid
 
Hyperv R2 Proyecto Migracion Active Directory 2003 R2
Hyperv R2 Proyecto Migracion Active Directory 2003 R2Hyperv R2 Proyecto Migracion Active Directory 2003 R2
Hyperv R2 Proyecto Migracion Active Directory 2003 R2ITSanchez
 
PHPフレームワーク勉強会第3回(CodeIgniterチーム)
PHPフレームワーク勉強会第3回(CodeIgniterチーム)PHPフレームワーク勉強会第3回(CodeIgniterチーム)
PHPフレームワーク勉強会第3回(CodeIgniterチーム)Keita Ojima
 
Que es una tablet power point
Que es una tablet power pointQue es una tablet power point
Que es una tablet power pointpaola1835
 
Una manzana al dia un habito saludable
Una manzana al dia un habito saludableUna manzana al dia un habito saludable
Una manzana al dia un habito saludablecomefruta
 
C041112247
C041112247C041112247
C041112247IOSR-JEN
 
Business intelligence visualization tools
Business intelligence visualization toolsBusiness intelligence visualization tools
Business intelligence visualization toolsEric_Klusman
 
「無業社会」の現在形と政策提言に向けて
「無業社会」の現在形と政策提言に向けて「無業社会」の現在形と政策提言に向けて
「無業社会」の現在形と政策提言に向けて亮介 西田
 
تنوين الضم
تنوين الضمتنوين الضم
تنوين الضمzazawiss
 

Viewers also liked (19)

Sem Comentarios ...
Sem Comentarios ...Sem Comentarios ...
Sem Comentarios ...
 
X2x pitch deck
X2x pitch deckX2x pitch deck
X2x pitch deck
 
خطة اللجنة العلمية
خطة اللجنة العلميةخطة اللجنة العلمية
خطة اللجنة العلمية
 
Location management for pcs networks using user movement pattern
Location management for pcs networks using user movement patternLocation management for pcs networks using user movement pattern
Location management for pcs networks using user movement pattern
 
Watanyamorocco
WatanyamoroccoWatanyamorocco
Watanyamorocco
 
Multi Specialty Physician - Ellen Scharaga
Multi Specialty Physician - Ellen ScharagaMulti Specialty Physician - Ellen Scharaga
Multi Specialty Physician - Ellen Scharaga
 
Adobe photoshop-seminer
Adobe photoshop-seminerAdobe photoshop-seminer
Adobe photoshop-seminer
 
Informe gestion Hospital Nuestra Señora de la Candelaria Guarne nov 2014
Informe gestion  Hospital Nuestra Señora de la Candelaria Guarne nov 2014Informe gestion  Hospital Nuestra Señora de la Candelaria Guarne nov 2014
Informe gestion Hospital Nuestra Señora de la Candelaria Guarne nov 2014
 
Livre blanc presse_electronique
Livre blanc presse_electroniqueLivre blanc presse_electronique
Livre blanc presse_electronique
 
Hyperv R2 Proyecto Migracion Active Directory 2003 R2
Hyperv R2 Proyecto Migracion Active Directory 2003 R2Hyperv R2 Proyecto Migracion Active Directory 2003 R2
Hyperv R2 Proyecto Migracion Active Directory 2003 R2
 
Preza 22.02.13
Preza 22.02.13Preza 22.02.13
Preza 22.02.13
 
PHPフレームワーク勉強会第3回(CodeIgniterチーム)
PHPフレームワーク勉強会第3回(CodeIgniterチーム)PHPフレームワーク勉強会第3回(CodeIgniterチーム)
PHPフレームワーク勉強会第3回(CodeIgniterチーム)
 
Que es una tablet power point
Que es una tablet power pointQue es una tablet power point
Que es una tablet power point
 
Una manzana al dia un habito saludable
Una manzana al dia un habito saludableUna manzana al dia un habito saludable
Una manzana al dia un habito saludable
 
C041112247
C041112247C041112247
C041112247
 
Mikejor
MikejorMikejor
Mikejor
 
Business intelligence visualization tools
Business intelligence visualization toolsBusiness intelligence visualization tools
Business intelligence visualization tools
 
「無業社会」の現在形と政策提言に向けて
「無業社会」の現在形と政策提言に向けて「無業社会」の現在形と政策提言に向けて
「無業社会」の現在形と政策提言に向けて
 
تنوين الضم
تنوين الضمتنوين الضم
تنوين الضم
 

Similar to I04124052057

Design of QSD Number System Addition using Delayed Addition Technique
Design of QSD Number System Addition using Delayed Addition TechniqueDesign of QSD Number System Addition using Delayed Addition Technique
Design of QSD Number System Addition using Delayed Addition TechniqueKumar Goud
 
Design of QSD Number System Addition using Delayed Addition Technique
Design of QSD Number System Addition using Delayed Addition TechniqueDesign of QSD Number System Addition using Delayed Addition Technique
Design of QSD Number System Addition using Delayed Addition TechniqueKumar Goud
 
Design and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save AdderDesign and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save AdderCSCJournals
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptxGobinathAECEJRF1101
 
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...IJERA Editor
 
Chapter 1 digital design.pptx
Chapter 1 digital design.pptxChapter 1 digital design.pptx
Chapter 1 digital design.pptxAliaaTarek5
 
Kaizen cso002 l1
Kaizen cso002 l1Kaizen cso002 l1
Kaizen cso002 l1asslang
 
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...IRJET Journal
 
Mazidi Presentation.pdf
Mazidi Presentation.pdfMazidi Presentation.pdf
Mazidi Presentation.pdfKhabibConor
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Addergueste731a4
 
Programmable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsProgrammable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsLiving Online
 
1 Unit-1 DEC B.Tech ECE III Sem Syllabus & Intro.pptx
1 Unit-1 DEC B.Tech ECE III Sem Syllabus & Intro.pptx1 Unit-1 DEC B.Tech ECE III Sem Syllabus & Intro.pptx
1 Unit-1 DEC B.Tech ECE III Sem Syllabus & Intro.pptxSatish Chandra
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1Deepak John
 
Design and Implentation of High Speed 16x16 CMOS Vedic Multiplier
Design and Implentation of High Speed 16x16 CMOS Vedic MultiplierDesign and Implentation of High Speed 16x16 CMOS Vedic Multiplier
Design and Implentation of High Speed 16x16 CMOS Vedic MultiplierEECJOURNAL
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes Srikrishna Thota
 
FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices Sachin Mehta
 

Similar to I04124052057 (20)

Design of QSD Number System Addition using Delayed Addition Technique
Design of QSD Number System Addition using Delayed Addition TechniqueDesign of QSD Number System Addition using Delayed Addition Technique
Design of QSD Number System Addition using Delayed Addition Technique
 
Design of QSD Number System Addition using Delayed Addition Technique
Design of QSD Number System Addition using Delayed Addition TechniqueDesign of QSD Number System Addition using Delayed Addition Technique
Design of QSD Number System Addition using Delayed Addition Technique
 
Design and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save AdderDesign and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save Adder
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
 
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
 
Chapter 1 digital design.pptx
Chapter 1 digital design.pptxChapter 1 digital design.pptx
Chapter 1 digital design.pptx
 
Kaizen cso002 l1
Kaizen cso002 l1Kaizen cso002 l1
Kaizen cso002 l1
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...
 
Mazidi Presentation.pdf
Mazidi Presentation.pdfMazidi Presentation.pdf
Mazidi Presentation.pdf
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Adder
 
Programmable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsProgrammable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA Systems
 
COA Unit-1.pdf
COA Unit-1.pdfCOA Unit-1.pdf
COA Unit-1.pdf
 
1 Unit-1 DEC B.Tech ECE III Sem Syllabus & Intro.pptx
1 Unit-1 DEC B.Tech ECE III Sem Syllabus & Intro.pptx1 Unit-1 DEC B.Tech ECE III Sem Syllabus & Intro.pptx
1 Unit-1 DEC B.Tech ECE III Sem Syllabus & Intro.pptx
 
microprocessor
microprocessormicroprocessor
microprocessor
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
Design and Implentation of High Speed 16x16 CMOS Vedic Multiplier
Design and Implentation of High Speed 16x16 CMOS Vedic MultiplierDesign and Implentation of High Speed 16x16 CMOS Vedic Multiplier
Design and Implentation of High Speed 16x16 CMOS Vedic Multiplier
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices
 

More from IOSR-JEN

More from IOSR-JEN (20)

C05921721
C05921721C05921721
C05921721
 
B05921016
B05921016B05921016
B05921016
 
A05920109
A05920109A05920109
A05920109
 
J05915457
J05915457J05915457
J05915457
 
I05914153
I05914153I05914153
I05914153
 
H05913540
H05913540H05913540
H05913540
 
G05913234
G05913234G05913234
G05913234
 
F05912731
F05912731F05912731
F05912731
 
E05912226
E05912226E05912226
E05912226
 
D05911621
D05911621D05911621
D05911621
 
C05911315
C05911315C05911315
C05911315
 
B05910712
B05910712B05910712
B05910712
 
A05910106
A05910106A05910106
A05910106
 
B05840510
B05840510B05840510
B05840510
 
I05844759
I05844759I05844759
I05844759
 
H05844346
H05844346H05844346
H05844346
 
G05843942
G05843942G05843942
G05843942
 
F05843238
F05843238F05843238
F05843238
 
E05842831
E05842831E05842831
E05842831
 
D05842227
D05842227D05842227
D05842227
 

Recently uploaded

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Recently uploaded (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

I04124052057

  • 1. IOSR Journal of Engineering (IOSRJEN) www.iosrjen.org ISSN (e): 2250-3021, ISSN (p): 2278-8719 Vol. 04, Issue 12 (December 2014), ||V4|| PP 52-57 International organization of Scientific Research 52 | P a g e Microcontroller based kit design for Octal to Hexadecimal system Conversion without returning to another system Noaman Abd Elnour Abd Elrahim1 , Abdelrasoul jabar Alzubaidi2 , 1 Applied Sciences Collage- Red sea University- Port Sudan- Sudan. 2 Sudan University of science and technology- Engineering Collage-School of electronics- ABSTRACT: The ordinary method of conversion from the octal numbering system to the hexadecimal numbering system goes through two steps . The first step is to convert from octal to binary and the second step is to convert from the binary to hexadecimal. The same procedure of conversion can be conducted by going through the decimal system .This paper deals with a direct method of conversion from octal into hexadecimal without returning to another system. Although it is little complicated, but it is useful to find such procedure of conversion and then prove it mathematically. Building such a direct conversion algorithm is useful in the computing work. The system design and the algorithm can be used as a model for teaching the undergraduate students in the field of computer and electronics. KEYWORDS: Binary, Octal, Hexadecimal, Numbering systems, Computer, Algorithm. I. INTRODUCTION Calculation systems are very important in the theory and practical in physics, mathematics and computers. It is possible and easy to calculate in the decimal, binary, hexadecimal and octal number systems. Also it is possible to convert between decimal and any other systems, and between binary and any other system without returning to a third system. But if it is needed to convert octal into hexadecimal and vise versa, we must first convert to binary or decimal then convert to the needed system. We try to find out a direct method of conversion between octal and hexadecimal without returning to another system. Table (1) below shows a sample of look up table for conversion from octal to hexadecimal system and vice versa. Table (1): A look up table for converting numbers octal to hexadecimal and vice versa Octal Hexadecimal 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 10 8 11 9 12 A 13 B 14 C 15 D 16 E 17 F Several steps have to be conducted to attain this goal. A step by step procedure will be demonstrated in this paper. The example below assumes four digits octal number and three digits equivalent hexadecimal number .
  • 2. Microcontroller based kit design International organization of Scientific Research 53 | P a g e Octal to hexadecimal:  Calculation steps for the digits , X1 , X2 are as follows : Digit X0 : = . . Digit X1 : then convert to hexadecimal if A1 even and A2 less than four. X1 = then convert to hexadecimal and hold (1)16 to X2 if A1 even and A2 more than three. X1 = then convert to hexadecimal and carry (8)16 to X0 if A2 less than four and A1 odd X1 = then convert to hexadecimal and carry (8)16 to X0 and hold (1)16 to X2 if A1 odd and A2 more than three Digit X2 : X2 = (2A3)16 if there is no hold X2 = (2A3+1)16 if there is (1)16 held from X1 Hexadecimal to octal: (X2X1X0)16  (A3A2A1A0)8 Calculation steps for the digits A0 , A1 , A2 , A3 are as follows : Digit A0 : A0 = X0 if X0 less than (10)8 A0 = (X0 – 8)16 then convert to octal and hold (1)8 to A1 if X0 more than (7)8 Digits A2A1 : A2A1 = 2(X1 converted to octal) if X0 less than (10)8 and X2 even A2A1 = 2(X1 converted to octal) then [(A2 + 4) (A1)] 8 if X0 less than (10)8 and X2 odd A2A1 = 2(X1 converted to octal) then [(A2) (A1+1)] 8 if X0 more than (7)8 and X2 even A2A1 = 2(X1 converted to octal) then [(A2+4) (A1+1)] 8 if X0 more than (7)8 and X2 odd Digit A3 : A3 = 8 if X2 even A3 = 8 if X2 odd The above operations in octal and hexadecimal repeat themselves when adding any other digits for any of the two systems. II. HARDWARE COMPONENTS The main hardware components in the design are: 1. Breadboard: Bread board (protoboard) is a construction base for a one-of-a-kind electronic circuit, a prototype. Because the solderless breadboard does not require soldering, it is reusable, and thus can be used for temporary prototypes and experimenting with circuit design more easily. A variety of electronic systems may be prototyped by using breadboards, from small analog and digital circuits to complete central processing units (CPUs). 2. Microcontroller (Atmega32): Atmega 32 is a microcontroller from Atmel 8-bit family with 32KB flash memory is used. Figure (1) shows the pins description of the microcontroller (Atmega-32).
  • 3. Microcontroller based kit design International organization of Scientific Research 54 | P a g e Figure (1) Atmega32 microcontroller pins 3. LCD 40x4 The LCD 40x4 is used in the system design. The function of the LCD is as a tool for displaying the data entry and the results of conversion between the two numbering systems. 4. (3×4) matrix keypad: This device is used as a means for data entry. III. THE SYSTEM DESIGN The main block diagram is based on using a keypad for data entry, a microcontroller, a LCD. Figure (2) shows th3e block diagram for the hardware circuit. Figure (2) block diagram of the hardware circuit.
  • 4. Microcontroller based kit design International organization of Scientific Research 55 | P a g e IV. SOFTAWE PROGRAM & ALGORITHM To achieve the operation of the design, we need to go through five steps as follows: 1. Step one: Developing a program in Bascom language in the computer and producing (.hex) file format of the program. 2. Step two: Downloading the (.hex) into the microcontroller by using (Pony Prog) program as shown in figure (3) below. Figure (3) Connection for programming the microcontroller. 3. Step three: Operating the system by entering data from the matrix keypad and watching the results on the LCD. The algorithm for performing a demonstration for the conversion between the octal and the hexadecimal systems contains an initialization step and two subroutines. The condition for calling the subroutine depends on the commands entered from the keypad. The command (#) is for calling octal to hexadecimal conversion subroutine. The command (*) is for calling hexadecimal to octal conversion subroutine the algorithm is: Start Initialization: --- Clear all outputs from the microcontroller to the LCD. --- Display on the LCD “system is ready”. --- Delay few seconds. --- Display on the LCD “enter (#) for octal to hexadecimal conversion and (*) for hexadecimal to octal conversion”. Check keypad entry: --- If the (key pressed is (#)), then call the octal to hexadecimal conversion subroutine. --- If the (key pressed is (*)), then call the hexadecimal to octal conversion subroutine. --- Go to check incoming data. End. Octal to hexadecimal conversion subroutine: Start: Digit X0 : --- If the ( A1 is even ), then X0 is equal to A0. --- If the ( A1 is odd ), then X0 is equal to (A0 + 8)16. Digit X1 : --- If the ( A1 is even and A2 less than four), then . --- If the ( A1 is even and A2 more than three), then hold (1)16 to X2 and X1 = . --- If the ( A1 is odd and A2 less than four), then carry (8)16 to X0 and X1 = . --- If the ( A1 is even and A2 more than three), then carry (8)16 to X0 , hold (1)16 to X2 and X1 =
  • 5. Microcontroller based kit design International organization of Scientific Research 56 | P a g e . Digit X2 : --- If there is no hold , then X2 = (2A3)16 . --- If there is (1)16 held from X1 , then X2 = (2A3+1)16 . Return. Hexadecimal to octal conversion subroutine: Start: Digit A0 : --- If the (X0 less than (10)8 ), then A0 is equal to X0. --- If the (X0 more than (7)8), then hold (1)8 to A1 and A0 = (X0 – 8)16. Digit A1, A2 : --- If the (X0 less than (10)8 and X2 is even) , then A2A1 = 2(X1 converted to octal). --- If the (X0 less than (10)8 and X2 is odd) , then [(A2 + 4) (A1)] 8 and A2A1 = 2(X1 converted to octal). --- If the (X0 is more than (7)8 and X2 is even) , then A2A1 = 2(X1 converted to octal). --- If the (X0 is more than (7)8 and X2 is odd) , then [(A2+4) (A1+1)] 8 and A2A1 = 2(X1 converted to octal). Digit A3 : --- If (X2 is even) , then A3 = 8 . --- If (X2 is odd) , then A3 = 8. Return V. RESULTS Table (2) shows the results obtained from entering the three different octal numbers of and converting them into hexadecimal . Table (3) shows the results obtained from entering two hexadecimal numbers and converting it into octal .The program is made simple and user friendly. Table (2) Results from entering the octal numbers and converting it into hexadecimal Hexadecimal numberOctal numberExperiment number E7347Experiment one C9E6236Experiment two 76E3556Experiment three Table (3) Results from entering the hexadecimal numbers and converting it into octal Octal numberHexadecimal numberExperiment number 23054C5Experiment one 2571579Experiment two VI. CONCLUSION The functionality of the design is simple . The user has to follow the messages displayed on the LCD and enter the digits for the related numbering system. The system in its turn performs the conversion asked from the keypad. Based on the entered digits the program performs the related conversion subroutine . The results of conversion are displayed on the screen of the LCD. The hardware and the software of the system can be used as a means for demonstration for the undergraduate students . The program is written in Bascom language and donloaded into the microcontroller
  • 6. Microcontroller based kit design International organization of Scientific Research 57 | P a g e REFERANCES: [1] Sanchez, Julio; Canton, Maria P. (2007). Microcontroller programming: the microchip PIC. Boca Raton, FL: CRC Press. p. 37. ISBN 0-8493-7189-9. [2] 2-Knuth, D. E. (1997), "Volume 2: Seminumerical Algorithms", The Art of Computer Programming (3rd ed.), Addison-Wesley, p. 192, ISBN 0-201-89684-2 . [3] Arndt, Jörg (March 5, 2009). Algorithms for Programmers: Ideas and source code (draft). [4] Morris Mano , Digital design, McGraww Hill Publishing company, 2001. [5] Thomas L. Floyd, Digital fundamentals, Merill Publishing company, 2002 [6] -Mazidi Muhammed Ali, The 8051 microcontroller and Embedded system, Prentic Hall, 2007. [7] -Sedra and Smith, Microelectronic circuits, Fourth edition, Oxford university Press, 2006 [8] R. S. Sedha, A text Book of Applied Electronics, Chad and company Ltd, New Delhi, 2002 [9] © MSC Electronic, BASCOM – AVR, Help Reference V1.11.8.3, 2006 [10] Jan Axelson, Microcontroller idea book, Copy right 1999 [11] Thomas L. Floyd, Electronic Devices 2nd Edition, Merill Publishing company, 2003