NEWS

News

News

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

Contact us

DIP dip switch binary and decimal relationship

2020-05-25

The main function of the dip switch is to control the on/off of the circuit to select, choose, and locate coding functions.

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, can greatly simplify the construction time of the project.

2. All contact terminals are plated with thick gold, which will not cause poor contact or unstable use due to oxidation during use.

3. Easy maintenance.

Dial switch label: Turn up to turn on (ON), turn down to turn off (OFF).


拨码开关


The weight of the first dip switch is 128

The weight of the second dip switch is 64

The weight of the third dip switch is 32

The weight of the fourth dip switch is 16

The weight of the 5th dip switch is: 8

The weight of the 6th dip switch is: 4

The weight of the 7th dip switch is: 2

The weight of the 8th dip switch is: 1

In binary, ON is 1 and 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 5th dip switch is: 2 ^ 3 (00001000)

The weight of the 6th dip switch is: 2 ^ 2 (00000 100)

The weight of the 7th dip switch is: 2 ^ 1 (000000 10)

The weight of the 8th dip switch is: 2 ^ 0 (00000001)

Binary and decimal are interchangeable; The weight of the corresponding dip switch is equal (128=2 ^ 7)

The calculation method for the physical address of the decoder: the sum of the weights of all VE dip switches (addition)

When the dip switch is turned on, it indicates that the weight of the dip switch is valid; When the dip switch is turned off, it indicates that the weight of the dip 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 code decimal 0126 (64+32+16+8+4+2) corresponds to the eight digit dial switch's 2/3/4/5/6/7 to the ON position

Decimal 0126=Binary 011111110

Partner

Focus on us