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

Which steps are used for the procurement, Q. Which Steps are used for the p...

Q. Which Steps are used for the procurement? a. Initially, an introductory letter may be sent addressed to The Head, NRSA Data Centre, National Remote Sensing Agency, Balanagar

Piezo crystal osillator, whether piezo crystal and quazt crystal oscillator...

whether piezo crystal and quazt crystal oscillator are same?

About semi conductor, explain compensation and charge neutrality in GaAs

explain compensation and charge neutrality in GaAs

Transistors, what is transistor how it works?

what is transistor how it works?

Discuss in brief on combination clippers, Q. Discuss in brief on combinatio...

Q. Discuss in brief on combination clippers ? Combination clippers are a combination of biased positive and negative clippers. With a combination clipper, a portion of both pos

Find the voltage, Q. The current sources in Figure are given to be I A = 3...

Q. The current sources in Figure are given to be I A = 30 A and I B = 50 A. For the values of R 1 = 20 ,R2 = 40 , and R3 = 80 , find: (a) The voltage V. (b) The current

Fixed bias, Fixed bias (base bias): Diagram: Fixed bias (Base ...

Fixed bias (base bias): Diagram: Fixed bias (Base bias) This type of biasing is also known as  base bias . In the instance above figure, the single power source (

The operation of colpitts oscillator, Q. Explain with the help of a circuit...

Q. Explain with the help of a circuit diagram,the operation of COLPITTS OSCILLATOR. Oscillator is a circuit used to generate a.c voltage without a.c.input signal.The energy to

How does a mosfet amplify electrical signals, Q. How does a MOSFET amplify ...

Q. How does a MOSFET amplify electrical signals? While a minimum requirement for amplification of electrical signals is power gain, one finds that a device with both voltage an

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