it's me again, this time i was wondering if i am able to connect a Switch(input) and a base a a transistor for selecting 7-segment display(output) all these in one pin of the AT89S8252 port1.
i'm asking if it's possible to use a pin as an input and output at the same time. my input is a switch and my output is a base of a transistor(To select one of the 7-segment displays).
It might depend on what type of transistor you use and what state the pin is when the switch is close..... It might work as long as you make sure that the switch doesn't trigger the transistor.