Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
DIP switch
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Types== The slide, rocker, and piano types, which are very common, are arrays of simple [[single pole, single throw]] (SPST) contacts, each of which can be either on or off. This allows each switch to select a one-bit binary value. The values of all switches in the package can also be interpreted as one number. For example, seven switches offer 128 (2<sup>7</sup>) combinations, allowing them to select a standard ASCII character. Eight switches offer 256 (2<sup>8</sup>) combinations, which is equivalent to one [[byte]]. A tri-state type DIP switch can be in one of three positions (+, 0, โ) which allows more codes than a binary DIP switch. For example, 8 pole [[Three-state logic|tri-state]] DIP switches offer 6,561 (3<sup>8</sup>) combinations/codes compared to 8 pole binary switches' 256 (2<sup>8</sup>) combinations/codes. This makes them especially suitable for encoding devices such as a remote controller. Rotary DIP switches contain multiple [[electrical contact]]s, one of which is selected by rotating the switch to align it with a number printed on the package. Some have a knob that can be turned by fingers, or a small slot that requires a [[screwdriver]] to change them. Typically, rotary types are available in two different types of output, 1) a binary encoded output, where 10 ([[Binary-coded decimal|BCD]]) or 16 (hex) choices are encoded into a 4-bit binary output, or 5 to 8 choices are encoded into a 3-bit binary output. 2) a rotary version of a multipole slide switch where one signal has a choice between multiple connections, such as SPDT, SP3T, SP4T. The DIP switch package also has socket pins or mounting leads to provide an electrical path from the switch contacts to the circuit board. Although circuits can use the electrical contacts directly, it is more common to convert them into high and low signals. In this case, the circuit board also needs interface circuitry for the DIP switch, consisting of a series of pull-up or pull-down resistors, a buffer, decode logic, and other components.<ref name="Patent5010445">[https://patents.google.com/patent/US5010445 U.S. Patent 5010445.]: "DIP switch with built-in active interfacing circuitry", filed January 25, 1990.</ref> Typically, the device's [[firmware]] reads the DIP switches when the device is powered on. [[Single in-line package|Single in-line]] SIP switches are also available, which only have one row of pins instead of the two rows of pins in DIP packages. This saves on pins and space. One of the pins is a common. With the popularization of [[surface-mount technology]], these switches are now commonly available in non-DIP surface-mount package types. They are, however, still referred to as "DIP switches", as the term has become associated with the style of switch. <gallery heights="80" widths="120"> RockerDipSwitch.png|Rocker DIP switch Wรผrth 418317270912 DIP Switch 01.jpg|Piano DIP switch Sab 2PST DIP Switch.jpg|2PST DIP switches Electronic-Component-Four-Switch.jpg Sab Rotary Switch.jpg|Rotary DIP switches: surface-mount (left), [[Through-hole technology|through-hole]] (right) Miniature Rotary coded switch.jpg|Rotary DIP switches (surface-mount) Sab Tri state type DIP switch.jpg|Tri-State DIP switch (surface-mount) </gallery>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)