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

What are the basic modes of operation of 8255, What are the basic modes of ...

What are the basic modes of operation of 8255? There are two basic modes of operation of 8255, viz. 1. I/O mode. 3. BSR mode. In I/O mode, the 8255 ports work as progr

Electrical drives and actuators, 'Electric drives' is a term used to descri...

'Electric drives' is a term used to describe DC and AC electric motors that provide continuous rotarmotion. They are often controlled by 'electronic drivesystems' designed to contr

Two quadrant type a chopper or class c chopper or reversible, Two Quadrant ...

Two Quadrant Type A Chopper or Class C Chopper or Reversible Chopper The  quadrant type A Chopper  is also  known as reversible chopper   because  the polarity of the load cur

Alternater, if the prime mover input of an alternater connected directly t...

if the prime mover input of an alternater connected directly to an infinite bus in increased,then its?

Fourier deries, how to compute the fourier series expansion of a rectangula...

how to compute the fourier series expansion of a rectangular pulse train

Power semiconductor devices , Normal 0 false false false ...

Normal 0 false false false EN-IN X-NONE X-NONE

Define successive approximation digital to analog converter, Define Success...

Define Successive Approximation Digital to Analog Converter? Successive approximation ADCs transform analog signals to digital data by comparing the incoming analog signal alo

Combinational logic circuit design, Design a circuit to enable a chemical a...

Design a circuit to enable a chemical additive to be introduced into the fluid through another inlet only when the temperature is not too cold or too hot and the fluid is above the

Dsp causal LTI system, cosider a causal LTI system whose system function is...

cosider a causal LTI system whose system function is H(z)=1-1/5z^-1/(1-1/2z^-1+1/3z^-2)(1+1/4z^-1) find the direct form 1 and direct form 2

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