the main function of the ve dial switch is to realize the selection, option and location of the coding function by controlling the on and off of the circuit.
the stability of the dip switch is directly related to the stable operation of the system, so it is important to use high-quality dip switches.
advantages of dip switch design:
1. simple and applicable, which can greatly simplify the construction time of the project.
2. the contact terminals are all plated with thick gold, and there will be no poor contact or unstable use due to oxidation during use.
3. simple maintenance
dial switch word mark identification: dial up to open (on), dial down to close (off).
dip switch diagram 1
the decimal relationship corresponding to the dip switch is shown in the figure above: there are characters 128, 64, 32, 16, 8, 4, 2, 1 from left to right on the circuit board, indicating the weight relationship of the dip switch corresponding to a decimal number.
the weight of the first dial switch is: 128
the weight of the second dial switch is: 64
the weight of the third dial switch is: 32
the weight of the fourth dial switch is: 16
the weight of the fifth dial switch is: 8
the weight of the 6th dip switch is: 4
the weight of the seventh dip switch is: 2
the weight of the eighth dial switch is: 1
in binary, on is 1, off is 0
the weight of the first dip switch is: 2^7 (10000000)
the weight of the second dip switch is: 2^6 (01000000)
the weight of the third dip switch is: 2^5 (00100000)
the weight of the fourth dip switch is: 2^4 (00010000)
the weight of the fifth dip switch is: 2^3 (00001000)
the weight of the sixth dip switch is: 2^2 (00000100)
the weight of the seventh dial switch is: 2^1 (00000010)
the weight of the eighth dip switch is: 2^0 (00000001)
binary and decimal systems are connected; the weights of the corresponding dip switches are equal (128=2^7)
the calculation method of the physical address of the decoder: the sum of the weights of all ve dip switches (addition)
when the dial switch is turned on, it means that the weight of the dial switch is valid; when the dial switch is turned off, it means that the weight of the dial switch is 0;
for example: binary 11111111(2^0 2^1 …… 2^6 2^7)=decimal 255(128 64 32 16 8 4 2 1)
dial decimal 0126 (64 32 16 8 4 2) corresponding to the eight-bit dial switch, dial 2/3/4/5/6/7 to the on position
decimal 0126 = binary 011111110