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

Find the value of the induced emf, Q. A six-pole, double-layer dc armature ...

Q. A six-pole, double-layer dc armature winding in 28 slots has five turns per coil. If the field flux is 0.025 Wb per pole and the speed of the rotor is 1200 r/min, find the value

Explain the usage of the output ports , Objective: To Understand the Usage ...

Objective: To Understand the Usage of the Output ports of PIC18F452 and make changes in the previous code accordingly. Procedure: 1. Open the p1.asm program from t

Network analysis, expain how to do proper initial approximatio for the give...

expain how to do proper initial approximatio for the given cct....... by a example

Explain about darlington amplifier, Q Explain about 'Darlington Amplifier'?...

Q Explain about 'Darlington Amplifier'? DARLINGTON AMPLIFIER : A CC stage followed by another CC stage has an input resistance of about (b + 1) 2 times the emitter resistance

Compute the maximum internal torque, For the motor speci?ed in figure,  com...

For the motor speci?ed in figure,  compute the following: (a) The load component I' 2 of the stator current, the internal torque T, and the internal power P m for a slip of 0.

CRO probe, #question. passive probe .

#question. passive probe .

Explain lithography, Explain Lithography. Lithography - This is one ...

Explain Lithography. Lithography - This is one of the processes which is carried out throughout manufacture of integrated circuits. Silica oxide (SiO 2 ) layer is thermally

Dynamic response of control systems, Q. Dynamic Response of Control Systems...

Q. Dynamic Response of Control Systems? The existence of transients (and associated oscillations) is a characteristic of systems that possess energy-storage elements and that a

Illustrate balanced delta-connected load, Next, let us consider the case of...

Next, let us consider the case of a balanced delta-connected load with impedance of 5 45° supplied by a three-phase, three-wire 100-V system, as shown in Figure (a). We shall dete

Financing the power sector projects, Financing the power sector projects: ...

Financing the power sector projects:   Massive investment is required for the targeted expansion of the sector. It has been estimated at Rs. 9 lakh crores in the further 10 yea

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