Pull-up and pull-down resistor circuits