This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

timer with ADC



hello sir, 

i want to take the analog value for 20ms.(i.e. the sine wave of 50Hz).i want exact 20 ms. so i am using timer. so how should i write the isr.

adc_isr within timer isr ? or in the reverse way.

plzz tell me..i am getting confused.

kindly tell  me how will be the declarations.