Management of the ports in the AVR GCC. Registers and DDRx PORTx.
FSE. Bitwise operations.
The function of delay. Unconditional jump in the program.
Ports of the microcontroller – this I / O devices, allowing the microcontroller to send or receive data. The default port of the AVR microcontroller has eight bits of data that can be transmitted or received simultaneously. Each grade (or bit) corresponds to the output (pin) microcontroller. The legs of the microcontroller is also called pins. To designate ports use letters A, B, C, etc. Number of I / O ports varies depending on the model of the microcontroller. Any port of the microcontroller can be configured as input or output.
To do this, you should write to the corresponding port register DDRx desired value. In addition, as an input or output can be configured separately, any output (pin) port. In any case, if you want to configure all port or a single output, you will need to work with DDRx register.
Tags: AVR-GCC, DDRD register, Management of the ports, Microcontrollers Port Management, Registers and DDRx PORTx






