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

Fiind the magnitudes of the line-to-line voltages, Q. A single-line diagram...

Q. A single-line diagram of a three-phase transformer bank connected to a load is given in Figure. Find the magnitudes of the line-to-line voltages, line currents, phase voltages,

Discuss direct memory access, Discuss DMA definition. Direct memory ac...

Discuss DMA definition. Direct memory access (DMA) is a process wherein an external device takes over the control of system bus by the CPU. Direct memory access is for high-sp

Determine the initial value and final value of the current, Given the frequ...

Given the frequency-domain response of an RL circuit to be determine the initial value and the final value of the current by using the initial-value and final-value theorem

Convert decimal numbers into binary, Q. Convert the following DECIMAL numbe...

Q. Convert the following DECIMAL numbers into BINARY, double check by converting the result BINARY to DECIMAL. Assume all binary numbers are represented by 12 bits on LHS of binary

Microcontroller, Project Garage door opener with password. Wrong password ...

Project Garage door opener with password. Wrong password "door close" on lcd screen, correct password "door open" on lcd Screen no need the motor. Material used - Microcontroller

Drive operating envelopes and induction machines, Solve using data from the...

Solve using data from the DC machine data sheet, using the "hot" resistance value for all calculations. Note that the value of K on the sheet is for rated (100%) field flux.  Assum

Why fet is called a voltage-controlled device, Q. Why FET is called a volta...

Q. Why FET is called a voltage-controlled device? Why its input resistance is high? In the case of a FET the output current ID is a function of the voltage VGS applied to the i

Diode transistor logic gate, A circuit realization of a NAND gate will now ...

A circuit realization of a NAND gate will now be developed. By connecting NAND gates together in various ways, one can synthesize other gates and flip-flops. Thus in principle, a s

Distinguish between ferromagnetic and diamagnetic materials, Distinguish be...

Distinguish between ferromagnetic and diamagnetic materials, mentioning at least one example of each. Ferromagnetic Materials: These are materials wherein magnetic dipoles in

Compare with memory, Compare with memory The contents  of the memory...

Compare with memory The contents  of the memory  of the memory  location  pointed by HL  register pair are compared with the  contents of the accumulator. The  instruction 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