 Mark as New
 Bookmark
 Subscribe
 Mute
 Subscribe to RSS Feed
 Permalink
 Report Inappropriate Content
Hello, I could say that I'm doing wrong when I measure a sine signal using a filter and I get some voltage spikes are we of that wave
 Labels:

PSoC 5LP
 Mark as New
 Bookmark
 Subscribe
 Mute
 Subscribe to RSS Feed
 Permalink
 Report Inappropriate Content
Can you please post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator>File>Create Workspace Bundle (minimal)
and attach the resulting file.
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
I have no experiences with ADC configured as left align, Did you try using right align?
Bob
 Mark as New
 Bookmark
 Subscribe
 Mute
 Subscribe to RSS Feed
 Permalink
 Report Inappropriate Content
Looks like your signal us unsigned values and the filter is treating the values as signed.
That gives a spike at the signed rollover.
Magnus
 Mark as New
 Bookmark
 Subscribe
 Mute
 Subscribe to RSS Feed
 Permalink
 Report Inappropriate Content
if you comment out the line 63 the voltage spikes disappear.
difficult to understand the work Filter_SetDalign () and Set Coherency ()
 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
 Mark as New
 Bookmark
 Subscribe
 Mute
 Subscribe to RSS Feed
 Permalink
 Report Inappropriate Content
No, this is not a solution.
The problem reappears at the increase of 32,768 over the input signal.
 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
What happens if you increase the signal amplitude so that the mximum values goes above 33000?
 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
yes there are lessons to learn from this, what happens when an unsigned value is treated by a computation component as a signed value ?
If the signal stays in the range of the positive half of the numbers, then everything is ok, but you can only use half the signal range.
If the signal crosses the half range value, when the signed interpretation treats it as a maximum negative value, then the filter sees a sudden shift in signal from maximum positive to maximum negative, and there will be spikes and ringing.
Magnus
 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
how do I give the signal with sign ???
mode differntial????
 Mark as New
 Bookmark
 Subscribe
 Mute
 Subscribe to RSS Feed
 Permalink
 Report Inappropriate Content
It crosses the value 32768. Thats when it happens, as you clearly can see.
 Mark as New
 Bookmark
 Subscribe
 Mute
 Subscribe to RSS Feed
 Permalink
 Report Inappropriate Content
Hello fernnando28. I often use the filters in my projects.
So I want to use your project as a starter.
I hope it will help me to configure filters.
I wonder what your project is very easy to organize a conclusion in USBUART.
It will not create problems?
In the example, "USBFS UART Code Example" the procedure is much more complicated.