Adept Rocketry - Setting a Value on a DIP Switch

Copyright 1995-2001, All Rights Reserved

Black areas represent switch positions: a switch is up (ON) when the black area is up, and a switch is down (OFF) when the black area is down. To set the eight switches to a particular value, first choose the value from the chart below, 0 to 255. Then set the eight switches to match the binary pattern to the left of the value. 1 means UP and ON; 0 means DOWN and OFF. In actuality, this is nothing but simple binary counting. If you understand binary numbers, you shouldn't need the chart. Please study the example and read the text below.

DIP Switches are often used in computers and electronic devices to select or deselect certain features, or to select a value for something. DIP stands for Dual-Inline-Package which simply describes how the pins are arranged on the package, in two inline rows. The DIP Switch illustrated here contains eight individual on/off switches. The eight switches may be set to any one of 256 possible patterns. For convenience, all the 256 patterns are included below. Each value is represented both in binary form (1 's and 0's), then with the corresponding actual value. The binary values relate directly to the way the individual switches should be set. A 1 indicates that the switch for that corresponding position should be ON. A 0 indicates that the switch for its corresponding position should be OFF. When all the switches are OFF, then the value is zero. When all the switches are ON, the value is 255. When switches 1 and 2 and 5 and 6 and 8 are all OFF, and switches 3 and 4 and 7 are ON, then the value is 50 as in our example above.

If the value set on the switches represents time in one-tenth second increments, then to set the time to 5.0 seconds means that the switches must be set to a value of 50, for 50 tenth seconds. Set to 100 for 10 seconds. If time increments are full seconds, then a value of 20 on the switches represents 20 seconds; a value of 200 represents 200 seconds.

00000000   0  00101011	43  01010110  86  10000001 129  10101100 172  11010111 215
00000001   1  00101100	44  01010111  87  10000010 130  10101101 173  11011000 216
00000010   2  00101101	45  01011000  88  10000011 131  10101110 174  11011001 217
00000011   3  00101110	46  01011001  89  10000100 132  10101111 175  11011010 218
00000100   4  00101111	47  01011010  90  10000101 133  10110000 176  11011011 219
00000101   5  00110000	48  01011011  91  10000110 134  10110001 177  11011100 220
00000110   6  00110001	49  01011100  92  10000111 135  10110010 178  11011101 221
00000111   7  00110010	50  01011101  93  10001000 136  10110011 179  11011110 222
00001000   8  00110011	51  01011110  94  10001001 137  10110100 180  11011111 223
00001001   9  00110100	52  01011111  95  10001010 138  10110101 181  11100000 224
00001010  10  00110101	53  01100000  96  10001011 139  10110110 182  11100001 225
00001011  11  00110110	54  01100001  97  10001100 140  10110111 183  11100010 226
00001100  12  00110111	55  01100010  98  10001101 141  10111000 184  11100011 227
00001101  13  00111000	56  01100011  99  10001110 142  10111001 185  11100100 228
00001110  14  00111001	57  01100100 100  10001111 143  10111010 186  11100101 229
00001111  15  00111010	58  01100101 101  10010000 144  10111011 187  11100110 230
00010000  16  00111011	59  01100110 102  10010001 145  10111100 188  11100111 231
00010001  17  00111100	60  01100111 103  10010010 146  10111101 189  11101000 232
00010010  18  00111101	61  01101000 104  10010011 147  10111110 190  11101001 233
00010011  19  00111110	62  01101001 105  10010100 148  10111111 191  11101010 234
00010100  20  00111111	63  01101010 106  10010101 149  11000000 192  11101011 235
00010101  21  01000000	64  01101011 107  10010110 150  11000001 193  11101100 236
00010110  22  01000001	65  01101100 108  10010111 151  11000010 194  11101101 237
00010111  23  01000010	66  01101101 109  10011000 152  11000011 195  11101110 238
00011000  24  01000011	67  01101110 110  10011001 153  11000100 196  11101111 239
00011001  25  01000100	68  01101111 111  10011010 154  11000101 197  11110000 240
00011010  26  01000101	69  01110000 112  10011011 155  11000110 198  11110001 241
00011011  27  01000110	70  01110001 113  10011100 156  11000111 199  11110010 242
00011100  28  01000111	71  01110010 114  10011101 157  11001000 200  11110011 243
00011101  29  01001000	72  01110011 115  10011110 158  11001001 201  11110100 244
00011110  30  01001001	73  01110100 116  10011111 159  11001010 202  11110101 245
00011111  31  01001010	74  01110101 117  10100000 160  11001011 203  11110110 246
00100000  32  01001011	75  01110110 118  10100001 161  11001100 204  11110111 247
00100001  33  01001100	76  01110111 119  10100010 162  11001101 205  11111000 248
00100010  34  01001101	77  01111000 120  10100011 163  11001110 206  11111001 249
00100011  35  01001110	78  01111001 121  10100100 164  11001111 207  11111010 250
00100100  36  01001111	79  01111010 122  10100101 165  11010000 208  11111011 251
00100101  37  01010000	80  01111011 123  10100110 166  11010001 209  11111100 252
00100110  38  01010001	81  01111100 124  10100111 167  11010010 210  11111101 253
00100111  39  01010010	82  01111101 125  10101000 168  11010011 211  11111110 254
00101000  40  01010011	83  01111110 126  10101001 169  11010100 212  11111111 255
00101001  41  01010100	84  01111111 127  10101010 170  11010101 213
00101010  42  01010101	85  10000000 128  10101011 171  11010110 214

www.adeptrocketry.com, 3-1-01