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

Evaluate the temperature corresponding to a thermistor, Question: (a) A...

Question: (a) A tube from one end of a differential pressure transducer is placed at the bottom of a cylindrical cup (D= 0.8m, H= 0.1m) to measure mass flow rate. The cup i

General purpose diodes - types of power diodes , General Purpose Diodes ...

General Purpose Diodes The  general purpose  diodes  have relatively high reverse recovery time. The  diodes are general  made  by diffusion. They  are used  in low  speed  app

Calculate the induced armature voltage, Q. A 50-kW, 250-V, short-shunt comp...

Q. A 50-kW, 250-V, short-shunt compound generator has the following data: R a = 0.06 , R S = 0.04 , and R f = 125 . Calculate the induced armature voltage at rated load and t

Square wave, Connect the TTL output (square wave) of the "Audio Oscillator"...

Connect the TTL output (square wave) of the "Audio Oscillator" to the "Scope Selector". Adjust the frequency of the square wave to 2 kHz. Observe and record the time domain pict

Embedded systems design, You have been requested by your Senior Engineer to...

You have been requested by your Senior Engineer to design a lift control unit (LCU) and prepare a report detailing your proposed solution. The client requires a microcontroller bas

Compute the terminal voltage and current of each generator, Q. Three dc gen...

Q. Three dc generators are operating in parallel with excitations such that their external characteristics are almost straight lines over the working range with the following pairs

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

Basic definition of electromagnetism, Q. Basic definition of electromagneti...

Q. Basic definition of electromagnetism? A basic understanding of electromagnetism is essential to the study of electrical engineering because it is the key to the operation of

Spectrum analyzer, Problem statement: A specialized piece of laboratory te...

Problem statement: A specialized piece of laboratory test equipment, called a spectrum analyzer,will be placed on a mobile push cart. The spectrum analyzer measures the amplitude

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