> 1. Can anyone see any problem with this? The pullup resistors are weak, and their equivalent resistance value is not guaranteed. Multiply that somewhat unknown number by the beta of your transistor, and you'll see how much collector current you'll get. You'll be happier with something like a 2N7000 mosfet. Draws no gate current, and acts more like a relay. Also, you'll want a pulldown resistor on the gate to assure that they are off when the processor is in reset. Otherwise, they could all come on during reset, and that could have implications for your power supply. > 2. Is there any limit to the number of times you can change from an > input to an output and back again? Nope. > 3. What would be the best way to do this with Bascom? Try assembler? :)
Message
Re: Changing port from input to output on the fly
2006-01-31 by Dave VanHorn
Attachments
- No local attachments were found for this message.