- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to implement a notch filter with 50 Hz. I followed the example shown in Filter_ADC_VDAC_polled and configured the same. However not getting results. Can anyone help
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry guys .. its fixed... I should connect EOS to drq instead of EOC....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I fixed for WaveDAC8_1_Start(); but still no results ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry guys .. its fixed... I should connect EOS to drq instead of EOC....
- 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
it seems necessary to use Filter_1_STAGEAH_PTR for DMA not Filter_1_STAGEA_PTR
103 CyDmaTdSetAddress(tdChanA, LO16((uint32)ADC_SAR_1_SAR_WRK0_PTR), LO16((uint32)Filter_1_STAGEAH_PTR));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Pavloven !! I have corrected it and its fixed. But it working for 128 filter taps. If I reduce the number of taps, significant amount of 50Hz appears at the output. I have to add one more stage and the total combined size of all filters can be up to 128 taps.. What can be the solution??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apparently you have to use OPAMP (TIA, PGA) and external components
for constructing the prefilter.
eg danaaknight gave a link to TI Filter Designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the suggestion!! I was trying to avoid off chip components. Anyway it would be essential some times. Thanks for your time and attention !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dhans,
Another approach can be to utilize 50 Hz notch filter in code:
https://www.fpgarelated.com/showarticle/935/harmonic-notch-filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your suggestion !! I shall go through this one.