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

Transformer, how back emf is produced in transformer?

how back emf is produced in transformer?

1- phase full bridge inverter with r- load , 1- phase  Full Bridge Invert...

1- phase  Full Bridge Inverter with R- Load 1-phase full  bridge inverter with resistive load R i it has  advantage over 1-? half  bridge  inverter that it does  not require

Explain n-type and p-type semiconductors, Explain n-type and p-type semicon...

Explain n-type and p-type semiconductors. n - Type semiconductor: If small amount of pentavalent impurity (group V elements) is added to a pure semiconductor giving a large

Storage oscilloscopes, Q.  Write short note on storage oscilloscopes. ...

Q.  Write short note on storage oscilloscopes. Sol. Storage Oscilloscope: The bistable storage tube is between two to ten times slower than a comparable variable persistence

Show the familiar electric sources, Q. Show the familiar electric sources? ...

Q. Show the familiar electric sources? Batteries and ac outlets are the familiar electric sources. These are voltage sources.An ideal voltage source is one whose terminal volta

Public safety - application of software defined radio, Public safety - Appl...

Public safety - Application of Software Defined Radio During emergency situation such as earthquake, tsunami, terrorist attack, public safety officials from different agencies

Inductor, assignment for inductor

assignment for inductor

Transistor Amplifier, I need help designing a BJT amplifier with that meets...

I need help designing a BJT amplifier with that meets the following parameters: voltage gain greater than 300, Ic(Vce=0)=2uA, Vcc=20V.

Determine lower and upper cut-off frequency, Q. In an amplifier, the maximu...

Q. In an amplifier, the maximum voltage gain is 1500 and occurs at 1kHz. It falls to 1060.5 at 20kHz and at 20Hz. Determine (i) lower cut-off frequency (ii) upper cut-o

Explain implicit data addressing mode, Explain implicit data addressing mod...

Explain implicit data addressing mode (with examples) available in microprocessors. Implicit Mode: Does not exactly give an operand. Instruction implicitly gives the o

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