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

What is the function of ct and p.t, Q. What is the function of CT and P.T a...

Q. What is the function of CT and P.T and where they are used? Ans: The full form of CT is Current transformer and is used for calculating of current. The full form of PT is

What is memory paging, What is memory paging? The memory paging mechan...

What is memory paging? The memory paging mechanism located inside the 80386 and above permits any physical memory location to be assigned to some linear address.

Find the current in resistance, Q. Obtain the Thévenin and Norton equivalen...

Q. Obtain the Thévenin and Norton equivalent circuits for the portion of the circuit to the left of terminals a-b in Figure, and find the current in the 200- resistance.

Find the voltage ratio, Q. (a) Two amplifiers, which can be represented by ...

Q. (a) Two amplifiers, which can be represented by the model of Figure of the text, are connected in cascade (that is, head to tail), as shown in Figure. Let their parameters be R

Transformer of distribution, Transformer of distribution: Let be the t...

Transformer of distribution: Let be the transformer of distribution of the Face(Figure) 3 connected to the primary between phase a and c of a three-phase network of 23 kV. Bot

Explain two types of materials that are formed after doping, Explain the tw...

Explain the two types of materials that are formed after doping. Depending on the impurity added, extrinsic semiconductors can be then subdivided in two types of class: N-ty

Explain nodal analysis procedure, Nodal analysis procedure: 1.  Verify ...

Nodal analysis procedure: 1.  Verify the number of common nodes and reference node within the network. 2.  Assign current and its direction to every distinct branch of the n

Decrement contents of register - dcr decrement , Decrement  contents of Re...

Decrement  contents of Register The contents of register R will be decremented  by one and  the result is stored  in the same register  R. It is also  an exceptional  case i

Define hrq, Define HRQ? The hold demand output requests the access of t...

Define HRQ? The hold demand output requests the access of the system bus. In non- cascaded 8257 systems, this is linked with HOLD pin of CPU. In cascade mode, this pin of a sla

Determine the current and voltage in given network, Q. For a part of the ne...

Q. For a part of the network shown in Figure, given that i 1 = 4A; i 3 (t) = 5e -t , and i 4 (t) = 10 cos 2t, find v 1 , v 2 , v 3 , v 4 , i 2 , and i 5 .

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