the Avr microcontroller is programmed using WIN AVRfor beginners have a look at this instructable firsthttp://www.instructables.com/id/Ghetto-Programming%3a-Getting-started-with-AVR-micro/this is the way to pogram the avratmega 16look at the pin diagram ...
there are always two connections which come out of the phone,
these connections are
i'll prefer to use handsfree which have a straight jack (similar to the ones which we use in our ipods, but a thinner one)
the tip of that jack is called the "tip"
and the rest part behind the tip after a black strip is the ring So connect these two connections with the circuit and you will be done