You can easily calculate and set AVR ATMEGA128's all types of register. Also you can find the information of each register as well. AVR ATMEGA128. PORT. UART. SPI. TIMER. EEPROM. ADC. PINMAP. INTERRUPT. TWI/I2C.