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

Develop a block diagram of an asynchronous decade counter, Q. Counting to m...

Q. Counting to moduli other than 2 n is a frequent requirement, the most common being to count through the binary-coded decimal (BCD) 8421 sequence. All that is required is a four

Di disable interrupts instruction, DI Disable  Interrupts Instruction ...

DI Disable  Interrupts Instruction The interrupt enable  flip flop is reset and all the  interrupts of 8085 microprocessors  except  TRAP  are disabled . the  instruction  form

Explain time multiplexed space switching, Explain time multiplexed space sw...

Explain time multiplexed space switching? With a neat diagram illustrate its operation. Ans: Time division switches where an outlet or an inlet corresponded to a single s

Designated consumers - features of energy conservation, Designated Consumer...

Designated Consumers - Features of Energy Conservation The Act gives the list of designated consumers, which involves the energy intensive industries, Railways, Port Trust, Tr

What are the modes of operations used in 8253, What are the modes of operat...

What are the modes of operations used in 8253? Each of the three counters of 8253 can be operated in one of the following six modes of operation. 1. Mode 0 (Interrupt on ter

Factors contributing in losses in transformer, Factors Contributing in loss...

Factors Contributing in losses in Transformer Factors contributing towards losses in transformer are: - Oversized transformers operating at low loading: Improper selectio

Develop a block diagram of an asynchronous decade counter, Q. Counting to m...

Q. Counting to moduli other than 2 is a frequent requirement, the most common being to count through the binary-coded decimal (BCD) 8421 sequence. All that is required is a four-st

Show twos complement multiplication, 2's Complement Multiplication Two'...

2's Complement Multiplication Two's complement multiplication follows the similar rules as binary multiplication. For illustration, (-4) × 4 = (-16)              1111

Pdc, disadvantages of shunt&series clippers

disadvantages of shunt&series clippers

On a scale of one to ten, TRAPS: Give a perfect 10, and you'll seem too sim...

TRAPS: Give a perfect 10, and you'll seem too simple to please. Give anything less than a perfect 10, and he could press you as to where you're being significant, and that road lea

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