Programming microcontroller with ARDUINO IDE

Hi,

I know about microcontrollers. I don't know much about it ARDUINO IDE. if I change the microcontroller on board, how can I program the microcontroller using ARDUINO IDE. I just assume if I want to write and test code for ATMEGA328P how to test source code in ARDUINO IDE.

This is just my question and I just want to clear my question

Rehan11:
if I change the microcontroller on board, how can I program the microcontroller using ARDUINO IDE. I

That is not at all clear. Do you mean that you want to replace the Atmega328 on an Uno with a different Atmega328?

The Arduino IDE assumes that there is a bootloader program already on the Atmega328. You can buy the chips with the bootloader already installed or, if you have a functioning Uno and a solderless breadboard you can upload the bootloader onto an new Atmega328 yourself. Nick Gammon has good instructions on his website

...R

Robin2:
That is not at all clear. Do you mean that you want to replace the Atmega328 on an Uno with a different Atmega328?

...R

Thanks assume I have inbuilt Atmega328 microcontroller on arduino board. then how to create new prject write and compile code in Arduino IDE

Rehan11:
Thanks assume I have inbuilt Atmega328 microcontroller on arduino board. then how to create new prject write and compile code in Arduino IDE

This is still not clear.

Do you just mean that you have an Arduino Uno?

If not what arduino board do you have?

...R