how to install protection from short circuit ?

hello guys,
i would like to know please where exactly should i put the diode for short circuit protection on atmega328P, should i out it just between the +5 and the VCC pin ? or what is the protection circuit that should be added ? i need something for thruhole not for smd

A polyfuse is the way to go

KenF:
A polyfuse is the way to go

a diode won't work ? i need something for thruhole not for smd

The use of a sacrificial diode to supply your board could work but it's a fine line between being useful protection OR just an irritating point of failure.

What current are you looking to protect against?

What you need to do is to explain what you mean by "short circuit protection".

Against precisely what circumstance do you wish to protect?

CrossRoads:
What current are you looking to protect against?
http://www.digikey.com/product-search/en?pv16=14762&FV=fff4000a%2Cfff80390&k=ptc&mnonly=0&newproducts=0&ColumnSort=0&page=1&stock=1&quantity=0&ptm=0&fid=0&pageSize=25

i am supplying the circuit with 9V to a 5V voltage regulator which goes to the chips (atmega328P, shift registers etc ... ) and 9V going to the RF transmitter

Paul__B:
What you need to do is to explain what you mean by "short circuit protection".

Against precisely what circumstance do you wish to protect?

against a reverse battery for example

firashelou:
against a reverse battery for example

I don't think that's referred to as a "short circuit", but no matter: I Googled thus "using a diode to protect reverse polarity" and got the best part of 500k hits. Seems the easiest way is just to put a diode in series with the battery and load....

JimboZA:
I don't think that's referred to as a "short circuit", but no matter: I Googled thus "using a diode to protect reverse polarity" and got the best part of 500k hits. Seems the easiest way is just to put a diode in series with the battery and load....

ok so it must simply goes between the +V from the battery and the input of the voltage regulator ? or between the output of regulator and the atmega328P Voltage pin ?