ATmega644p reboots on serial input