A continuation of the article AVR GCC : Microcontrollers Port Management (Part 1).
>>Once the data transfer direction for the port is configured, you can set the port value to be stored in the appropriate register PORTx.
PORTx – register the port, where x is the port name.
If the output is configured as an output, then the corresponding bit in the register PORTx forms on output high signal, and zero – low signal.
If the output is configured as an input, the corresponding bit in the register PORTx connects to the output internal pull-up resistor, which provides a high level of input in the absence of an external signal.
Tags: AVR-GCC, Connect the LED to a microcontroller, Management of the ports, Microcontrollers Port Management, ports of the microcontroller, simple programs microcontroller






