Hello Every body,
Can any one provide me a demo code for oversampling my SAR output in PSOC 5LP.
I shall be very thankful to you.
Nothing to do with code, only the sampling rate is of interest which can be selected for instance by a timer signal
Actually i am very confusing it.
I am using SAR for ADC and before my signal pass through the Bandpass filter i want to do oversampling in order to increase my ADC output resolution from 12 bit to 14 bits.
For this, what i am thinking is to read ADC output, store it in a variable say "adc_output". Performs oversampling on every 16 values and then pass it to the band pass filter.
Am i going right?
Looking forward for your suggestion
I am also trying to implement an elliptical low pass filter in psoc 5lp project. Is there any application note present how i can do that? I have no filter block left as i am also using two channel band pass filter.
Looking forward for your reply
Not quite right.
Oversampling has nothing to do with the ADC resolution. Think of a digitized sine with frequency f0 output to a scope.
When you digitize with 2*f0 (Nyquist) you will just see a square wave with f0
When you digitize with 20*f0 or even 50*f0 you will see a smooth curve on the scope. This is the effect of oversampling.
Ok, So this means if i want to get more smooth signal then i need to multiply my ADC output with a factor "n" right?
So then what should i do then, in order to increase my ADC resolution?
So this means if i want to get more smooth signal then i need to multiply my ADC output with a factor "n" right? Frankly: No
You will get a more smooth signal you have to take more samples/s
You cannot increase the resolution, it is a given property of the underlying ADC. When you take an ADC with 12 bit resolution you will have to take it.
You may use the Delta Sigma ADC with max. 20 bit resolution at the cost of only ~180 samples/s
I mean using the method "IMPROVING ADC RESOLUTION BY OVERSAMPLING AND AVERAGING".
I think it is possible?
I cannot use Delta sigma because i need two of them which i don't have avaliable in PSOC.
Looking forward for your suggestion.
I wrote the code for oversampling using shifting method also called decimation technique.
I experiment it with Deltasigma ADC could please have a look on it please and guide me if that is the correct thing or not? Looking forward for your valuable suggestion.
Are you sure right project attached?
Yea i think so.
Its just an ADC with VDAC. I just try to implement over sampling in C file.