Hi All !
I'm using TivaC Launchpad with latest CCS and TivaWare.
I want to sample 3 ADC inputs with a 5-6kHz sample rate ( oversampling 3 lower freqency -66Hz- sine waves ).
I need advice on what is the best solution to do this given the below requirements >
1. I need to sample the signals periodically, let's say every 0.5sec - not really important value, no need to do it more frequently -
2. When sampling I need to oversample the signals. My plan > oversample 6.6kHz for duration of 15ms ( which is the period for the 66Hz )
This would produce 100samples / channel = 300 samples at 6.6kHz rate in this 15ms time frame.
So to sum it up > I should have 300samples every 0.5sec in memory. The data would be analyzed also only every 0.5sec worst case.
I know the approach of running a timer interrupt at oversample frequency, but I don't want to mess up other functions the board is doing in the main code which such a frequent interrupt as it is doing fine now.
Is it a mode to run the ADC continuously in the background and the DMA to collect the data in memory, overwriting it in every cycle?
I want to access that buffer only every 0.5sec or even slower.
Is it possible to setup the ADC to take samples exactly at a given freq (6.6kHz ) ?
What are my other possibilities ?
I don't want a complete working code , just ideas.
Thanks !