Author Topic: AVR pin states  (Read 1223 times)

0 Members and 1 Guest are viewing this topic.

Offline Razor ConceptsTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
AVR pin states
« 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?

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
Re: AVR pin states
« Reply #1 on: December 24, 2009, 06:45:54 PM »
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.
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

 


Get Your Ad Here