this is an humble request, and I hope to find the right help as I have found before now on this forum. This particular phase of my project should have been completed, but I am stuck with the ADC which seems to be affecting the data received over the UART on my AT32UC3A1512 microcontroller.
using a data acquisition device such as the NI DAQ 6008/9, the graphical settings allow specifying values such as sampling rate, reference voltages, single ended or differential inputs, but this is not the case with microcontrollers. None of the tutorials, videos or blogs I have read/seen mentioned how to specify sampling frequency (this seems to be my major concern).
in my project, I need to specify a sampling frequency of 250Hz, how does a microcontroller do this effectively? Suggestions have been to use Interrupts. I have fairly new to programming, and do not know how to get this done. Yet to come across a suitable material as well. can someone please give me some guidance? What other alternatives are there to use of interrupts? how do i use them?