NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » Activating Pull-up Resistor on ATMega I/O Port
September 11, 2012 by jlaskowski |
According to the ATMega doc, "If PORTxn is written logic one when the pin is configured as an input pin, the pull-up resistor is activated." There is nothing currently connected to PC2, and when I run this code, it shows PC2 as high. When I take out the line that activates the pull-up resistor, it shows PC2 as low.
|
---|---|
September 11, 2012 by jlaskowski |
Never mind. I realize now that it's the job of the pull up resistor to pull the voltage up to 1 when it's connected to nothing. |
Please log in to post a reply.
Did you know that first-order systems have a exponentially decaying response to step inputs? Learn more...
|