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

Microcontroller project, hi there, i have to write a program for seven seg...

hi there, i have to write a program for seven segments counter with three buttons to make it counting up and down from 00 to 99 so i''m looking for someone can write it..........th

Draw the block diagram of phase cancellation ssb generator, a. The antenna ...

a. The antenna current of an AM broadcast transmitter, modulated to depth of 40% by an audio sine wave is 11 amp. It enhances to 12 amp as a result of simultaneous modulation by an

Drift current and diffusion current, Drift Current and Diffusion Current : ...

Drift Current and Diffusion Current : There are two mechanisms in which electrons and holes move through a semiconductor. One of these is termed as drift and other is diffusi

Gate terminal - field-effect transistor, Gate terminal - field-effect trans...

Gate terminal - field-effect transistor: The names of the terminals consider to their functions. The gate terminal might be thought of since controlling the opening and closin

Fet parameters, FET Parameters A basic, low-frequency hybrid-pi model ...

FET Parameters A basic, low-frequency hybrid-pi model for the MOSFET is displayed in figure. The several parameters are as follows. is the transconductance in siemens

Which realization requires the least number of gates, Q. Consider a 1-bit v...

Q. Consider a 1-bit version of the digital comparator shown in Figure. Note that the operation of this circuit is such that whichever output is 1 gives the desired magnitude compar

What are the drawbacks of microprocessor, There is a limitation on the size...

There is a limitation on the size of data. Most Microprocessor does not maintain floating-point operations.

Calculate the v number and the number of guided modes, A multimode step ind...

A multimode step index fibre along with a core diameter of 80µm and a associative refractive index difference of 1.5% is operating at a wavelength of 0.85µm. If the core refractive

Addition of binary numbers , Addition of binary numbers Example:   Ad...

Addition of binary numbers Example:   Add  110010102 ( -510). and 00000101 2 (+5 10 ) Solution :                         Binary                                   signed

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