Atmega32 microcontroller interfacing with NES controller