hello everyone.i am new to the AVR programing.recently i am doing a project where i need to sample a 50 hz sine wave to the ADC of atmega 32.but i can't write the code.i googled enough but nothing is helpful.can anyone help me by telling how to write code for sampling.thanks in advance