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

Hi, Two projects using the principle of functional independence, increases ...

Two projects using the principle of functional independence, increases system accuracy?

Smart parking system, Design a smart park system using Iot sensors to udate...

Design a smart park system using Iot sensors to udate stautus to a server ?

Show that any periodic signal is not typically energy type, (a) Evaluate wh...

(a) Evaluate whether the sinusoidal signal x(t) = A cos (2πf 0 t + θ) is an energy-type or a power-type signal. (b) Show that any periodic signal is not typically energy type, a

What is cd-rom, Compact Disc - Read Only Memory. A CD-ROM is any compact di...

Compact Disc - Read Only Memory. A CD-ROM is any compact disc which having computer data. These discs can store enormous amounts of data (up to 640 megabytes). If there is a large

Discuss the characteristics of embedded systems, Problem : a) What is a...

Problem : a) What is an "Embedded System"? Discuss the characteristics of Embedded Systems. b) Describe three downfalls of "Embedded Systems". c) Explain the difference b

Determine a normalized frequency at 820nm, Determine a normalized frequency...

Determine a normalized frequency at 820nm for a step index fibre having 25µm core radius. Given n 1 =1.48 and n 2 =1.46.Also calculate how several modes propagate within this fibre

Compare with register, Compare with Register The contents  of the re...

Compare with Register The contents  of the register  are compared with  the contents  of the accumulator  here  register  may be  any one  of the  A, B, C, D E, H, or L  reg

Vehicle tracking system, coding for vehicle tracking system using gsm in av...

coding for vehicle tracking system using gsm in avr atmega16 microcontroller

Measurement of frequency by wein''s bridge, Q.  Explain the measurement of...

Q.  Explain the measurement of frequency in detail by using Wein's bridge. Sol. The Wein's bridge is presented here not only for its use as an AC bridge to measure frequency

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