Atmel publishes documents called data sheets which explain how the chips work. You don't say which you have, so take a look at
this pageClick on the chip you have and it will take you to the product page, from there you can get the data sheet and various other documents.
The functions of each pin are given in the data sheet, usually in a section called "Pin Descriptions".
Joe