Translate the C code from one to another microcontroller

Hi everybody! How can I quickly and correctly translate the C code from the PIC18F2580 microcontroller to the C code of the ATmega168 microcontroller.

no need to translate the C code, but any libraries may be different

see Arduino Reference for a summary of standard Arduino library functions

Hi,
the C code won't be much different, but what will certainly be very different are the handling of resources (Port, registers, etc) of the microcontrollers.
Each one, (PIC or Atmega), treats its resources with different conditions.

That's where the conversion issues will be.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.