Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Changing port from input to output on the fly

2006-01-31 by Dave VanHorn

> 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?  :)

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.