For port A, there are three ``variables'' defined. Bit
of
each of these variables corresponds to a pin
of port A.
DDRA is a read/write variable.
For an output pin, a bit value of 0 means the pin drives low (tries to lower the voltage), whereas a bit value of 1 means the pin drives high (tries to raise the voltage).
For an input pin, a bit value of 0 means the pin has no ``pull-up''. A bit value of 1 means the pin is ``pulled up'' by a large resistor. We'll discuss the concept of ``pull up'' later.
Copyright © 2006-02-15 by Tak Auyeung