Arduino Mega For Programming An Atmega328

I would like to ask whether it is possible to program an atmega328 through arduino mega just like if i had an arduino uno .

cand3llax:
I would like to ask whether it is possible to program an atmega328 through arduino mega

Yes

cand3llax:
just like if i had an arduino uno .

No.

You can use the Mega as an programmer with the ArduinoISP sketch. But serial isn't going to the PC then.

You can also burn the bootloader and connect it to serial (and keep the mega reset) but then you don't have auto reset to start the programming so you will have to reset the ATmega328 yourself at the right moment.

So I need to connect the pins respectively to arduino mega and atmega328 in order to program it and connect the arduino onto my pc and upload the code? Or I can just burn the bootloader via the arduino.

To what pins "respectively"?

Do a little Googling on "Arduino as ISP" :slight_smile: