#REFLECTOR 2 CODE CODE#
Excess-3 CodeĪs mentioned above, some of the codes will not follow the binary weights, Excess-3 code is an example of it and it is an important 4 bit code. ASCII code and Grey code are some of the examples where they are coded for some special purpose applications and they do not follow the weighted binary number calculations. Some of the codes will not follow the weights of the sequence binary numbers these are called as non-weighted codes. 24 codes do not come under sequential codes. The 8421 and Excess-3 codes are examples of sequential codes. Sequential codes are the codes in which 2 subsequent numbers in binary representation differ by only one digit. NOTE: 8421 code is not a reflective code. The same can be observed in the following table: Decimal Number These codes are called as Reflective Codes. It can be observed that in the 24 codes, the code for decimal 9 is the complement of the code for decimal 0, the code for decimal 8 is the complement of the code for decimal 1, the code for decimal 7 is the complement of the code for decimal 2, the code for decimal 6 is the complement of the code for decimal 3, the code for decimal 5 is the complement of the code for decimal 4. This code is also a 4 bit application code where the binary weights carry 5, 2, 1, 1 from left to right. This code also a 4 bit application code where the binary weights carry 2, 4, 2, 1 from left to right. They are having their own importance for some of the exclusive applications and may be useful for some of the special applications. They are 2421 code, 5211 code, reflective code, sequential code, non- weighted coded, excess-3 code and Grey code. There are other forms of codes which are not so popular but rather confusing. Decimal NumberĪs per the above expression all the decimal numbers written in the 4 Bit binary code in the form of 8421 and this is called as 8421 Code and also as Binary coded decimal BCD.Īs this is a straight code, any Decimal number can be expressed easily because the weights of the positions are straight for easy conversion into this 8421 code. As per the weighted binary digits, the 4 Bit binary numbers can be expressed according to their place value from left to right as 8421 (2³ 2² 2¹ 2⁰ = 8421). All these binary numbers again expressed in the last column by expanding into 4 bits.
![reflector 2 code reflector 2 code](https://cdn.ukelectricalsupplies.com/product-images/1437/crompton-lamps-ar111g53-12v-50-watt-halogen-aluminium-reflector-lamp-1-large.jpg)
The decimal numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 can be expressed in Binary numbers as shown in the following table. When there is 0 in a digit position, weight of that position should be disregarded.įor example binary number 1100 has a decimal equivalent of 8 + 4 + 0 + 0 = 12.When there is 1 in a digit position, weight of that position should be added.Whenever any binary number appears, its decimal equivalent can be found easily as follows. It is easily can be understood that the weight of digit of the binary system is ‘2’. In the same way, the values assigned to consecutive places in the binary system, which is also a place value system, are called as weighted binary system. It is easily can be understood that the weight of digit of the decimal system is ‘10’. The values assigned to consecutive places in the decimal system which is a place value system are 10⁴, 10³, 10², 10¹, 10⁰, 10⁻¹, 10⁻², 10⁻³… and so on from left to right. In the above list, the first three i.e., 8421, 24 are Weighted Binary Codes while the other two are Non-Weighted Binary Codes.
![reflector 2 code reflector 2 code](https://www.etrailer.com/Merchant2/graphics/00000001/pics/R/E/RE13AB_500.jpg)
Commonly used Binary Codesīefore going into the details of individual binary codes, let us quickly take a look at some of the commonly used Binary Codes. Other than the commonly used 8421 code or BCD code, other Binary Codes like 2421 code, 5211 code, reflective code, sequential code, non-weighted code, excess-3 code and Gray code are also popular.
![reflector 2 code reflector 2 code](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/ajyadav123/disassembling-with-reflector-part-1/Images/ILDASM.jpg)
In the same way, binary digits also be utilized to make such various innumerable combinations. If it is observed logically, various innumerable combinations of dots and dashes of any kind of words (even sentences) can be written utilizing the above code. If the key pressed for a short time it is the Morse code called ‘dot’ and if the key pressed for a long-time it is ‘Dash’. The telegraph operators used a code of clicks to send the messages. The first successful system of electrical communication was the telegraph, which was invented by Samuel F.B.