I have a code that is designed for atmel atmega 2560 MCU. Now, there is a need to interface a USB and ethernet port into the system which is currently working on an atmega2560 MCU. ATmega 2560 does not support either of USB or ethernet so the MCU has to be changed. I donot want to rewrite the complete code again so, is there any way that the same code can be implemented on another 32 bit MCU with minimal changes. i have all the required program and code data. I just don't know where to start from and what to do.The basic function of the system is to take data from memory card and transfer is via RS-422 protocol. The code is significantly big for redesigning again. Any help would be highly appreciated.