Society of Robots - Robot Forum
Software => Software => Topic started by: Razor Concepts on December 24, 2009, 04:37:17 PM
-
Say a pin is currently an output pin and high. If I change it to input, will it have the pull up resistor enabled or not?
If a pin is input, and I change it to output, will it be high or low? Does it depend on if the pull up is enabled?
-
hi,
When AVR is in input its in high impedance mode. You can enable the internal pullups on pins by setting the pullup registers .
Changing it to output with pullups enabled who bring it high, changing it without anything would put it in floating.