Using Serial Port for Programming a MCU

I am having a DE9 Female Serial port on my Desktop. I want to know how to use it to program my ATmega328P. Is there any converter which I will have to buy?

If you mean a chip, you can't.

That's not going to happen.
It has to be programmed using SPI with an UNO or a programmer ICSP connector.
Do you have a bootloader ?
Clarify what you mean by 328. ( UNO, chip WITH bootloader, or chip WITHOUT bootloader)

Can you give me examples of ICSP programmers. I want it cheap.

Try google 'serial programmer'.
Example:
http://core.st/projects/Serial_programmer/

Budvar10:
Try google 'serial programmer'.
Example:
Serial programmer

That looks like just what he is looking for.

If he has to do any more searching then I think it would be a good idea to use a search term like this: serial port avr ICSP programmer . You want a programmer that uses the traditional PC 'serial port' and without the term 'port' you will also get a lot of those using the USB interface. Without the term AVR you will tend to get programmers for PICs etc.

I guess it is going to happen....

Don

A MAX233 chip will convert PC RS232 levels to TTL and visa versa. Then you can program a bootloaded 328 through serial.

Only if it has a bootloader installed already. With no bootloader, a Programmer is needed to install code via the SPI (SCK, MISO, MOSI) + Reset pins.

I used this for a long time, 6 months or so, until I got an Atmel AVR ISP MKii to use with 1284P chips

CrossRoads:
I used this for a long time, 6 months or so, until I got an Atmel AVR ISP MKii to use with 1284P chips
USB AVR-ISP Programmer - MDFLY

But he was specifically looking for a programmer to run from the DE9 (probably DB9) serial port on his computer. The computer probably has a crank on the side as well.

Don

There HAVE been device programmers that bit-bang the serial modem control signals in ways that permit programming of microcontrollers using just the serial port of a computer and some "junkbox" parts. The best known is the Ludipipo or JDM programmer for the PIC16F84. I don't know if any of those were ever modified to support AVR programming. These have all become less likely to work as the state of the Windows operating system has advanced (identically to those that used parallel ports.) If you're running DOS or W95, you could investigate further.

Otherwise, it's MUCH easier and perhaps cheaper to get one of those $5 USBASP clones, and forget that your computer even has the native serial port.

Otherwise, it's MUCH easier and perhaps cheaper to get one of those $5 USBASP clones, and forget that your computer even has the native serial port.

I guess the bit about the crank was too subtle. His computer may not have a USB port.

Don