- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am currently doing an RTD project using PSoC 5 and i am being hit with noise issues on longer PT100 lines. I have come accross the following document and i was wondering could someone enlighten me how to setup the DMA and filter etc. in this project https://www.cypress.com/file/102931/download.
Any help would be greatly appreciated
Regards
Shane
Solved! Go to Solution.
- Labels:
-
PSOC5 LP MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
shmc,
The example project shows use of DMA and hardware filter for demo purposes. The RTD measurements are likely performed at less of 1kHz rate, which does not need DMA. You can simply write ADC data into the Filter, and read it the result from the Filter using Filter API.
Another opportunity to improve S/N is to consider noise distribution properties. It is often that the noise is not normally distributed (not Gaussian), and is overloaded with occasional spikes. In such situation, a Median filter shows better performance than a linear filter, such as PSoC5 Filter. Check if this custom community component is improving your S/N (no DMA needed)
MedianFilter: sliding window median filter component
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This tutorial may help:
https://www.youtube.com/watch?v=oq8eQhvkceM
or this one
http://web.mit.edu/6.115/www/document/psoc_filter_manual.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you for these suggestions. I will take a look. These all seem to provide an output from the filter in terms of hardware. how would i view the filtered data in the code is what i am looking for. this is so that i can then send the temperature data out over LoRa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @shmc_934566
You can refer to the following appnote: Link which mentions in detail how a DMA controller (DMAC) in PSoC 5LP can transfer data from a source to a destination with no CPU intervention.
Best Regards
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I Remember Correctly, the digital filter output is/can be DMA'd into memory to be used for other purposes. You end up with an array of data that you can work on in your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
shmc,
The example project shows use of DMA and hardware filter for demo purposes. The RTD measurements are likely performed at less of 1kHz rate, which does not need DMA. You can simply write ADC data into the Filter, and read it the result from the Filter using Filter API.
Another opportunity to improve S/N is to consider noise distribution properties. It is often that the noise is not normally distributed (not Gaussian), and is overloaded with occasional spikes. In such situation, a Median filter shows better performance than a linear filter, such as PSoC5 Filter. Check if this custom community component is improving your S/N (no DMA needed)
MedianFilter: sliding window median filter component
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi odissey1,
Thank you for your reply. I have tried your suggestion of the median filter and it looks to have helped on my benchtop setup here. I am going to send it out to do some further testing on the end hardware in the field. I will keep you posted on it.