A microcontroller is all about reading inputs, processing it and generating outputs. So learning I/O registers and their correct settings is the most essential part of our course.
AVR is an 8-bit microcontroller. This means that all the Ports are 8-bit wide.
For example, on our myAVR board we have an ATmega8 microcontroller. The pin configuration of this microcontroller is given below (PDIP package):
As we can see, ATmega8 has 3 Ports:
But in our myAVR MK2 board the following pins are available to use as I/O pins:
In an AVR microcontroller every Port has 3 registers associated with it. These registers are: