- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey guys,
I just came across this article
I was using the filter blocks in the PSoC creator. I wasn't able to achieve a band pass filter above 10KHz. Can someone give a sample code for higher frequency, if possible the limit as mentioned 250KHz.
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum
You only need a realistic sample rate to perform your filter. Nyquist is 2f, but I suggest 10 to 50f gives the best results.
250kHz * 20 is 5MHz sample rate which is a bit fast for the ADC. At 20kHz you would be fine off with a sample rate of 400kHz.
I would suggest you to use DMA transfer (There are examples for that in Creator) although a bit complicate for the beginner.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum
You only need a realistic sample rate to perform your filter. Nyquist is 2f, but I suggest 10 to 50f gives the best results.
250kHz * 20 is 5MHz sample rate which is a bit fast for the ADC. At 20kHz you would be fine off with a sample rate of 400kHz.
I would suggest you to use DMA transfer (There are examples for that in Creator) although a bit complicate for the beginner.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the reply.
I was able to achieve till 35KHz. of sampling rate 384000.
Since adc del sigma has max sampling rate of 384000, we can't achieve more than it.
Or is there a work around for this limitation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My reply was shorter, I am a lousy typist 😉
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set the PSoC clock to 72MHz and use the SAR ADC, you'll get up to 1Msps.
Bob
PS: BTW, where in Germany are you located? I live near Bremen.