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

Drift related to the instruments, If the instruments has no drift it is per...

If the instruments has no drift it is perfectly reproducible. No drift means that with a given input the measured values do not vary with time. Drift may be classified into thre

H – parameter model, H - Parameter model :- The transistor's equiv...

H - Parameter model :- The transistor's equivalent circuit can be dram using simple approximation by retaining its necessary features. These equivalent circuits will a

Number systems, Number Systems Various number systems  are decimal ( us...

Number Systems Various number systems  are decimal ( used by human beings) binary ( used by digital  systems) octal  and hexadecimal (used to represent  binary numbers in small

Resultant air-gap flux of induction machine, Q. Resultant air-gap flux of i...

Q. Resultant air-gap flux of induction machine? The resultant air-gap flux is produced by the combined mmfs of the stator and rotor currents. For the sake of conceptual and ana

Transfer function, how can i do a question concerning a transfer function

how can i do a question concerning a transfer function

What do you understand by progressive control, Q. What do you understand by...

Q. What do you understand by progressive control? Progressive Control: Step by step system is an example of progressive control. The connection is set up in stages, in response

Differentiate between n and p type semiconductors, Differentiate between n ...

Differentiate between n and p type semiconductors. n - Type semiconductor:- (i) If small amount of pentavalent impurity is added with, to a pure semiconductor giving a la

Force between current carrying conductors, If a second current carrying con...

If a second current carrying conductor is placed near to the first and the corresponding magnetic fields drawn, we can begin to visualise why a force is created between them. If

Determine the value of the load resistance, Q. A60-Hz, 100-kVA, 2400/240-V(...

Q. A60-Hz, 100-kVA, 2400/240-V(rms) transformer is used as a step-down transformer from a transmission line to a distribution system. Consider the transformer to be ideal. (a) F

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