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

Nodal Analysis, sample problem and solutions with answer

sample problem and solutions with answer

Which alloy is used for making heater & thermocouple element, Give the name...

Give the names of four alloys along with their composition, which are used for making heater and thermocouple elements. Constantan or Eureka {(55 to 60 percent) Cu, (45 to 40 p

History of computers , History of Computers To understand the  inventi...

History of Computers To understand the  invention of microprocessor we have  to see the  history  of computer  first. The growth  the computers  is divided in  different  gener

Pid controller design, PID controllers are popularly adopted in a wide rang...

PID controllers are popularly adopted in a wide range of industrial processes. The objective of this design practical is to study the way this PID controller changes system dynamic

Example numerical of dc generator., Q. An 8 - pole dc generator has 500 arm...

Q. An 8 - pole dc generator has 500 armature conductors and has a useful flux per pole of 0.065 web. What will be the emf generated if it is lap connected and runs at 1000 r.p.m.

Structure and use of pnp transistor, Structure and use of PNP transistor: ...

Structure and use of PNP transistor: The figure opposite is a schematic presentation of a PNP transistor related to two voltage sources. To construct the transistor conduct ap

Evaluate the magnitude of the wave impedance, Questions: (a) Suppose a ...

Questions: (a) Suppose a 100 kHz switching power supply. (i) Evaluate the magnitude of the wave impedance of the radiated field of a very short wire in the switching power s

Discuss need of caches, Discuss need of Caches. Caches are other big t...

Discuss need of Caches. Caches are other big thing done in the last 2 decades to enhance performance. Keep things locally when they are going to be used soon. By a physics vie

Explain the working of rectifier circuits, Q. Explain the working of Rectif...

Q. Explain the working of Rectifier Circuits? A simple half-wave rectifier using an ideal diode is shown in Figure(a). The sinusoidal source voltage v S is shown in Figure (b)

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