Hi,
i want to take adc samples for every 500us , so i thought of doing with a TIMER by setting an interrupt for 500us , so every time when it goes to ISR i can take ADC samples, but taking ADC sample in ISR is good idea?? or i need to do it in other way like setting a falg in ISR and in main inside while loop observing that flag and taking ADC samples when it is set , which one is better?, and if possible can anybody share the code for setting the timer interrupt for 500us.
thanks!
Regards,
Rupendra