I have a Address Select pins (A0, A1, A2) for I2C Serial EEPROM. These 3 lines enables 8 different addresses for IC. What I want is to connect these lines to DIP switch, so I can manually change addresses. Can I connect those lines from dipswitch directly to GND and VCC or I need pull-up/pull-down resistors?
Electronic – DIP Switch Connection to I2C EEPROM
switches
Related Topic
- Electrical – Using BILATERAL SWITCH properly
- Electronic – Arduino PIR relay with manual override switch
- Electrical – Should I consider debouncing the push button
- Electronic – Alternatives to a classic DIP switch
- Electronic – PCF8574 I2C Address Selector
- Electronic – High side Mosfet switch leakage issue
- Electronic – Mulitple switches connected to one pull-up resistor vs separate resistor for each
Best Answer
Either use pull-up resistors and use the DIP switches to pull down to ground, or use pull-down resistors and use the DIP switches to pull up to Vcc.
simulate this circuit – Schematic created using CircuitLab
If you do not pull (up|down) the address lines will be floating when the switch is open, which means arbitrary addresses will be in effect due to noise on the open, typically high-impedance address sense lines.