microcontroller replace in uno

You can remove the Atmega328 from the Arduino Uno and use it elsewhere as long as you have a 16MHz crystal to make it run at the right speed.

If you want to put a different Atmega328 into the Uno it must have the bootloader installed. You can buy 328s with the bootloader installed or you can use an existing working Uno to install the bootloader.

This page may be interest.

...R