الاثنين، 21 أكتوبر 2024

Day 13

 Hallo every body today I will speak about transfer from Binary to  Hexadecimal and vice versa ,But in the first I will tell you what is the Hexadecimal

The Hexadecimal Unit

Hexadecimal Number System is a base-16 number system used in diverse fields, especially in computing and digital electronics. It consists of 16 symbols, including numbers 0 to 9 and letters A to F, offering a compact way to represent binary-coded values. The hexadecimal number system is sometimes also represented as, ‘hex’.

Hexadecimal-Number-SystemHexadecimal Number System Table 

*Now lets know How we transfer from Binary to Hexadecimal*

Example: (1110)2 = (___)16

?How to Convert Hex to Binary Converting from hex to binary

 is straightforward since hexadecimal numbers are simplified versions of binary strings. You just need to remember that each hex value will produce four binary digits. 

 Step 1: Write down the hex number. If there are any, change the hex values represented by letters to their decimal equivalents. 

Step 2: Each hex digit represents four binary digits and therefore is

equal to a power of The rightmost digit equals to 20 (1), the next one equals to 21 (2) the next one equals to 22 (4) and the leftmost one equals to 23 (8). Write these numbers (8, 4, 2 and 1) below the hex values.

 Step 3: Determine which powers of two (8, 4, 2 or 1) sum up to your hex digits. For example, if one of your hex values is 10, this means 8 and 2 sum up to 10 (4 and 1 are not used). If your hex number is 2, only 2 is used; 8, 4 and 1 are not. 

Step 4: Write down 1 below those 8, 4, 2 and 1’s that are used. Write down 0 below those that are not used. 

Step 5: Read the 1’s and 0’s from left to right to get the binary equivalent of the given hex number. Let's apply these steps to the hex number (4FA)16


هناك 7 تعليقات:

Day45

  Source Transformation Technique (Voltage Source to Current Source & Current Source to Voltage Source) May 8, 2024   by  Electrical4U C...