problem whit cp2102 for programmer atmega328p-pu

hi, i can’t use the USB to TTL cp 2102 for programmer a Atmega328p-pu.
i have use this IC but i dont know how use it.

the connections are:

DTR------>through capacitor 0.1uF-----> pin1 atmega328
TX -----> Rx(pin2)
Rx -----> Tx(pin3)
Gnd------>(pins 8 and 22)
VCC ----->(pins 7, 20 and 21)

and in the Arduino’ s IDE
What type of programmer should I use? AVR ISP mkII or USB tyniISP

thanks to all

Uno? Nano? Depending on the bootloader in the 328.

If there is no bootloader in the 328, you can't program it via serial; you will need to program it with a programmer using ICSP.

pablodbsas83:
What type of programmer should I use? AVR ISP mkII or USB tyniISP

Do you own one (or both) of those already or are you asking for shopping suggestions? If you're going to buy a programmer I recommend the 6 pin USBasp. You can buy them on eBay for $2.45 USD with free shipping if you don't mind waiting for it to come from China. The AVRISP mkII is a nice programmer but there is a possible issue you might encounter using it with the Arduino IDE. That issue can easily be worked around though. I haven't had much luck with the USBtinyISPs I own but some people really like them.