What is the difference between an 8421bcd code and a 2421bcd code

Updated on culture 2024-03-29
14 answers
  1. Anonymous users2024-02-07

    First, the weights are different.

    The weights of the 8421bcd code from high to low are .

    The weights of the 2421bcd code from high to low are .

    Second, the number of representations of 2 in the decimal number is different.

    There is only one weighting method when the 8421bcd code represents 2, which is 0010.

    When the 2421bcd code represents 2, there are two weighting methods, 1000 and 0010.

    3. The number of representations of 3 in decimal numbers is different.

    There is only one weighting method when the 8421bcd code represents 3, which is 0011.

    When the 2421bcd code represents 3, there are two weighting methods, 1001 and 0011.

    Fourth, the number of representations of 4 in the decimal number is different.

    There is only one weighting method when the 8421bcd code represents 4, which is 0100.

    When the 2421bcd code represents 4, there are two weighting methods, 1010 and 0100, respectively.

    Fifth, the number of representations of 5 in decimal numbers is different.

    There is only one weighting method when the 8421bcd code represents 5, which is 0101.

    When the 2421bcd code represents 5, there are two weighting methods, 1011 and 0101, respectively.

    6. The number of representations of 6 in decimal numbers is different.

    There is only one weighting method when the 8421bcd code represents 6, which is 0110.

    When the 2421bcd code represents 6, there are two weighting methods, 1100 and 0110.

    7. The number of representations of 7 in decimal numbers is different.

    There is only one weighting method when the 8421bcd code represents 7, which is 0111.

    When the 2421bcd code represents 7, there are two weighting methods, 1101 and 0111.

    8. The representation of 8 in decimal numbers is different.

    The 8421bcd code means that 8 is 1000.

    The 2421BCD code means 8 is 1110.

    9. The representation of 9 in decimal numbers is different.

    The 8421 BCD code means that 9 is 1001.

    The 2421BCD code means 9 is 1111.

  2. Anonymous users2024-02-06

    Yard. It is a kind of right code, that is, each binary number has a fixed weight, and each BCD code from high to low is , it is the most natural and simple BCD code.

    For example: 1011 8*1+4*0+2*1+1*1 11 of 8421bcd code

    Yard. It is a kind of right code, and each BCD code from high to low is .

    For example: 2421bcd (1100 0100 0010) Decimal (6 4 2).

    Because. 1100 2*1+4*1+2*0+1*0 of 2421bcd code 0100 2*0+4*1+2*0+1*0 0010 2*0+4*0+2*1+1*0 2*0010 2*0+4*0+2*1+1*0 2

  3. Anonymous users2024-02-05

    The 8421 code, also known as the BCD code, is the most commonly used type of decimal systemThe two refer to the same decimal system**, and there is no difference.

    The 8421 code, also known as the BCD code, is the most commonly used type of decimal systemIn this encoding, the "1" of each binary ** represents a fixed value. Adding up the binary numbers represented by each "1" gives you the decimal number it represents.

    Definition: Uncompressed BCD code represents a BCD code with one byte, the upper four bits are always 0000, the lower four bits are from 0000-1001, and the table is 0-9. This coding technique is most commonly used in the design of accounting systems, which often require accurate calculations on long strings of numbers.

  4. Anonymous users2024-02-04

    BCD code is also called 8421 code is to convert the decimal number into binary in the form of 8421, we all know that the decimal system is composed of 0 9 ten numbers, each of these ten numbers has its own 8421 code:

    For example, 8421 yards of 321 is 32

    Reason: 0011 = 8x0 + 4x0 + 1x2 + 1x1 = 30010 = 8x0 + 4x0 + 2x1 + 1x0 = 2

    0001=8x0+4x0+2x0+1x1=1 Specific: BCD code is a four-digit binary code, that is, the decimal number is converted into binary, but it is a little different from ordinary conversion, each decimal number 0-9 corresponds to a four-digit binary code, and the correspondence is as follows:

    Decimal 0 corresponds to binary 0000

    Decimal 1 corresponds to binary 0001

    The next 10 is represented by two of the above codes.

    10 is represented as 00010000

    That is, the BCD code is to produce a carry when it meets 1001, unlike the ordinary binary code, which only produces a carry of 10000 until 1111

  5. Anonymous users2024-02-03

    8421 corresponds to 4 bitsBinary numbersLadies and gentlemen, the 8421bcd code represents a binary encoding, only 0000 to 1001, that is, 0 to 9.

    The 8421 code can only represent the decimal system.

    When it is greater than or equal to 10, that is, in the range of 1010 to 1111, it needs to be corrected by 6 (6 is 0110 in binary).

    For example, the binary code of 17 is 10001, and the corrected code is 10111.

    Another example is that the binary code of 10 is 1010, and the corrected code is 10000.

    Like 9 can be represented, so it is directly 1001.

    Decimal is converted to binary.

    The conversion of a decimal number to a binary number is divided into integer parts and decimal parts, and finally combined.

    The integer part is adopted"Divide by 2 and take the remainder and arrange them in reverse order"Law. Here's how: divide a decimal integer by 2 to get a quotient and remainder.

    Removing the quotient with 2 will give a quotient and remainder again, and so on until the quotient is less than 1, and then the remainder obtained first will be used as the lower significant digit of the binary number, and the remainder obtained later will be used as the high significant digit of the binary number, and then arranged in turn.

    The above content reference: Encyclopedia-Binary.

  6. Anonymous users2024-02-02

    Same: It's all four-bit binary.

    Different: The range is different.

  7. Anonymous users2024-02-01

    No, 8421 is a combination of these numbers to represent 1-9

    BCD is represented by octal binary from 0 to 9

    The difference between BCD and binary code is that a byte can only represent one number.

  8. Anonymous users2024-01-31

    It is supposed to refer to the same thing that BCD stands for Binary Coded Decimal binary encoded decimal.

  9. Anonymous users2024-01-30

    The 8421BCD code is a 4-bit binary code to represent the decimal system.

    The weights from high to low are 8, 4, 2, 1, as long as the corresponding weights of each 4-bit binary code are added to get the corresponding decimal number. For example, the conversion of binary 10010111bcd code to decimal is: 97.

    BCD code encoding techniques are most commonly used in the design of accounting systems, which often require accurate calculations of long strings of numbers. BCD encoding is used to store the accuracy of the values compared to other encoding methods.

    It also eliminates the need to use the computer for floating-point arithmetic.

    time spent.

  10. Anonymous users2024-01-29

    Code 8421 is the name of Chinese mainland, that is, bcd**. Binary-coded decimal 6 0, abbreviated as BCD, is called BCD code or binary decimal **, also known as binary decimal number. It is a form of binary numeric encoding, with binary encoded decimal**.

    6-digit BCD code: Computer designers generally use 6-, 7-, or 8-bit BCD alphanumeric characters to replace the 4-digit BCD code, which has only 16 possible characters, and in the 6-digit BCD code, the four-digit BCD number is still retained.

    However, it contains two additional d flags, which can be represented by 6 binary digits (2 6), which is sufficient for encoding decimal numbers (10), capital letters (26), and other special fonts and punctuation marks (28).

    About BCD Code:

    With BCD code, it is possible to convert each bit of the decimal number into an equal binary number, rather than converting the entire decimal number into a pure binary number.

    Since 8 and 9 require 4-digit binary numbers, all decimal numbers are represented by 4-digit BCD codes. It is well known that 202 is equal to L1001010 when expressed as a pure binary number, but when 202 is converted into a BCD code, the result is: the BCD code of 202 (10) is 0010 0000 0010.

  11. Anonymous users2024-01-28

    Code 8421 is the name of Chinese mainland, that is, bcd**.

    Encoding is the process of converting information from one form or format to another, also known as encoding for computer programming languages. Text, numbers, or other objects are numbered by a predetermined method, or information or data is converted into a specified electrical pulse signal. Coding is widely used in computers, television, remote control, and communications.

    Encoding is the process of converting information from one form or format to another. Decoding is the inverse process of encoding.

    In computer hardware, coding refers to the use of ** to represent each set of data, so that it can be processed and analyzed by a computer. ** is a symbol used to represent things, it can be represented by numbers, letters, special symbols, or a combination between them.

    Convert data into ** or encoded characters and translate it into the original data form. It is the process of writing instructions on a computer, a part of programming. In automatic map mapping, the process of using numbers and letters to represent the content of the map according to certain rules, through coding, enables the computer to identify the geographical elements of the map.

    N-bit binary numbers can be combined into 2 different pieces of information to the nth power, and a specific code group is specified for each message, which is also called encoding.

    There are two types of codes commonly used in numerical systems, one is binary encoding and the other is decimal encoding.

  12. Anonymous users2024-01-27

    The review is as follows:

    1. BCD code.

    BCD code, which uses 4-digit binary numbers to represent the 10 digits of 0 9 in 1-digit decimal numbers, is a binary numerical encoding form, and uses binary encoded decimal **. The BCD code is an encoding form that uses four bits to store a decimal digit, allowing for quick and easy conversion between binary and decimal systems.

    Yard. It is a kind of weight code, assuming that the value is b3b2b1b0, then the weight is from the highest to the bottom.

    If the sum of the two 8421 codes is less than or equal to (1001)2, i.e. (9)10, no correction is required; If the sum of the additions is greater than or equal to (1010)2, i.e. (10)10, a correction of 6 is added.

    Yard. It is also a weight code, assuming that the value is b3b2b1b0, then the weight is from the highest to the bottom. It is characterized by the fact that 4 greater than or equal to 5 is the highest level of binary numbers, 1, and the highest value less than 5 is 0. Such as 8 1110, 5 1011, 3 0011.

    Yard. It is also a weight code, assuming that the value is b3b2b1b0, then the weight is from the highest to the bottom.

    5, the remaining 3 yards.

    The remaining 3 codes are formed by adding 3 (0011) to each code group of 8421 BCD codes. It is often used in the operation circuit of BCD code.

  13. Anonymous users2024-01-26

    8421 code, 5421 code, 2421 code are all encodings for decimal numbers (0-9).

    8421 yards as an example, where 8, 4, 2, and 1 represent the weight of each of you.

    For example, 9 is encoded with 8421 code: 1x8 + 0x4 + 0x2 + 1x1 = 9;

    Other encodings are similar.

    The remaining 3bcd code is to add 3 to the 8421bcd code, that is, the binary number 11

  14. Anonymous users2024-01-25

    The decimal number 0 9, the BCD code is the same as the binary number, but the decimal number greater than 9, the BCD code is not the same as the binary number.

    The BCD code is only to change the decimal value corresponding to the binary number for convenience, and the binary number is the relative equal relationship with the corresponding decimal Xun number, such as the decimal number 15, 1111 is his binary value, which is actually stored in the computer, and the operation is 1111, not his BCD code 00010101.

    In fact, it is a kind of encoding for developers to see the values directly from the compiler or memory monitoring tool, and there is no other meaning.

Related questions
3 answers2024-03-29

It's normal for nothing to come out.

This problem is just a virtual memory relationship. Your virtual memory settings are smaller, and the problem will be solved by making it larger. >>>More

6 answers2024-03-29

Let me tell you my personal experience so that it can be convincing. >>>More

10 answers2024-03-29

According to the Pythagorean theorem: ab 2 = bc 2 + ac 2 gives 13 2 = 5 2 + ac 2 solution gives ac = 12 >>>More

10 answers2024-03-29

I've seen a lot of posts from this guy called "Water". It's just really watery. Don't mislead people with this kind of technology. >>>More

12 answers2024-03-29

See the polarization scale on the high-frequency head? There is a 0 scale in the middle, just parallel it to the ground, no matter up and down, left and right, the 0 line is parallel to the earth. Visual inspection ensures that the high-frequency head is roughly perpendicular to the bottom of the pot! >>>More