2013-08-28 03:47 AM
2013-08-28 05:15 AM
I'd use a timer to pace samples.
Your USART output speed is likely to be bandwidth limiting.2013-08-28 05:46 AM
Dear Clive,
Thank you for your fast response ! :)But is there a method to get the sampling frequency without using a timer routine ?i will keep it as it is ... but i need to know the sampling rate since i need to write some codes using MATLAB .... cheers2013-08-28 07:17 AM
Give the way your code is constructed, I guess you'd want to time stamp the EOC.
Personally, I wouldn't be using SCAN mode as you only have ONE channel. If you want to control the sample rate via the ADC, then you'd want to program the cycles, and use it in CONTINUOUS mode. Using software delay loops, and manually firing the ADC are not ways to get consistent sample periodicity. I'd trigger it with a timer, and have a hard/known time line.