Logic Biasing
Circuit configurations that connect a signal line to a positive supply voltage through a resistor ensure the line reaches a known logic state when no active driver is present. This pull-up resistance prevents inputs from floating, which could lead to random switching and increased power consumption. It provides the necessary current to return the voltage to the high rail once an open-drain transistor turns off.
Value Selection
Common values for this component range from 1 kiloohm to 10 kiloohms depending on the bus speed and power constraints. A low pull-up resistance allows for faster signal transitions but consumes more current when the line is pulled low. Designers must select a value that balances the need for sharp rise times with the requirement for low energy use.
Bus Capacitance
Total capacitance of the wires and connected pins slows down the voltage rise as the resistor charges the line. When the pull-up resistance is too high, the signal may never reach the logic high threshold before the next clock pulse. This timing error is particularly common in long I2C bus traces where many devices are connected.
Internal Integration
Many modern microcontrollers include software-configurable resistors inside the silicon die. Utilizing internal pull-up resistance reduces the count of external components on the board and simplifies the layout. These integrated options are verified during the chip manufacturing process to meet specific tolerance levels.
Software settings allow the designer to enable or disable these paths based on the needs of the peripheral. The accuracy of the internal value is usually lower than that of a discrete resistor. High-speed communication often requires an external component to achieve the necessary rise time.
Selection of the final resistance value is confirmed by viewing the signal edges on an oscilloscope.