Contact us
Contact: Miss Wei +86-18002932564
Phone: +86-769-85168706
Fax: +86-769-85168706
E-mail: 2573495894@qq.com
QQ: 2573495894
Address: No.84, Xinsan Road, Xin'an Avenue, Fanshen Village, Ludong Community, Humen Town, Dongguan City
Do you know the algorithm for the dip switch?
2018-12-09
An 8-bit dip switch, from left to right 1-8, with a maximum value of 128. When not dip, the switch is all up, that is, on the ON/DP side. When the dip switch is close to the number side, it is down. Next, we will explain in detail the correspondence between the numbers on the switch and the actual decimal system number.
1. If you want to dial number 1, you can directly turn off the 1 on the switch, because as can be seen from the diagram, 1 corresponds to the zero power of 2, and the zero power of 2 is equal to the decimal 1.
2. If you want to dial number 10, you can turn off 2 and 4 on the switch. From the diagram, it can be seen that 2 corresponds to the power of 2, which is equal to 2 in decimal; 4 corresponds to the third power of 2, which is equal to 8 in decimal; 2+8=10

