I'm using the PB1 on an Attiny24 as an output and controlling an external system with this output. Sometimes I want to force the PB1 pin high (no matter what the code must say) and to do so I've added a push button and an external 4.7k pull-up resistor to 3v3.
But here's the issue. When the Attiny drives the PB1 low, my external pull-up resistor isn't able to force the voltage high on the pin. I'm figuring that its because the resistor is too big and it thereby limits the flow of current through it.
So, how do I determine the right value of the resistor to make sure I'm always able to force the pin high?
Appriciate any feedback I can get.