Show the decimal to hex conversion, Electrical Engineering

Assignment Help:

Q. Show the Decimal to Hex Conversion?

To convert the decimal to the hex is slightly more difficult. The usual method to convert from decimal to hex is repeated division by 16. Whereas we may also use repeated subtraction by the weighted position value, it is more difficult for large decimal numbers.

For this process, divide the decimal number by 16, and write the remainder on the side as the least significant digit. This method is continued by dividing the quotient by 16 and writing the remainder until the quotient is 0. Whereas performing the division, the remainders which will represent the hex equivalent of the decimal number are written beginning at the least significant digit (right) and each new digit is written to the next more significant digit (the left) of the previous digit.

Consider the number 44978.

Division

Quotient

Remainder

Hex Number

44978 / 16

2811

2

2

2811 / 16

175

11

B2

175 / 16

10

15

FB2

10 / 16

0

10

0AFB2

Since you can see, we are back with the original number. That is what we should suppose.

When you use the hex numbers in an 8085 program, the Assembler usually requires the most significant hex digit to be 0 even if this number of digits exceeds the size of the register. This is an Assembler necessity and your value will be assembled correctly.

Illustration Convert the number 1,210 decimal to hexadecimal.

2172_Show the Decimal to Hex Conversion.png

Consequently the decimal number 1,210 is equal to 4BAH in hexadecimal.


Related Discussions:- Show the decimal to hex conversion

Describe in brief how email system works, Describe in brief how email syste...

Describe in brief how email system works Following is a simple description of how email system works: -  Sender composes a message (and attaches a file if required) and send

Instruction set architecture, assume that the top of the stack in the progr...

assume that the top of the stack in the program is pointed by the register sp.

Explain the types of power plants, Explain in detail the various energy res...

Explain in detail the various energy resources and their availability. Explain the following: (a) Types of power plants (b) Selection of power Plants

The central processing unit - stepper motor , The Central Processing Unit ...

The Central Processing Unit The  central processing  unit  is the brain of whole PLC.  The CPU  consist of a microprocessor memory  chip  and other  integrated circuits to con

Give the properties of pvc, Give the properties of PVC. PVC- It is acqu...

Give the properties of PVC. PVC- It is acquired from polymerisation of hydrogen chloride and acetylene in the presence of a catalyst as peroxides at about 50 0 C. Properties

Explain industry standard architecture bus, Explain the term Industry Stand...

Explain the term Industry Standard Architecture Bus. The Industry Standard Architecture, bus has been approximately since the very start of the IBM-compatible personal computer

Give a few applications of superconductors, Give a few applications of supe...

Give a few applications of superconductors. Also give three applications of superconductors. Application of superconductors in Electrical and Electronic Engineering (i) The

Square wave generator ( 10 MHz to 20MHz), I need a simple design of above ...

I need a simple design of above mentioned , this oscillator will be used in a wireless power transmission

Simplest equivalent circuit topology using lumped elements, Simplest equiva...

Simplest equivalent circuit topology using lumped elements: For each of the Smith chart traces below, sketch (at the right of each chart) the simplest equivalent circuit topol

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd