i mean low pass filter code...
I need to do this filter for sin wave with noisefor a single pole filter:
Output += (Input-Output)/factor;
is the simplest possible.
And what are you trying to achieve?
I want to received filtered signal after low pass filter .And what are you trying to achieve?
I don’t know already used in Matlab, are you have some examples how to choose that ?What order filter do you need (.i.e. how fast a rolloff above the filter corner frequency)?
As you have added broadband noise, there will always be noise on the filtered signal, because the noise appears at every frequency.I don’t know already used in Matlab, are you have some examples how to choose that ?
The code in post #4 will do something like thatin matlab I got this:
View attachment 326935
so i think that i some pic32 code of low pass filter i can do something like that
are you sure just this line will be enough for that?>The code in post #4 will do something like that
Yes - that's a single pole IIR filter. I use it all the time to remove noise from ADC inputs.are you sure just this line will be enough for that?>
I have clock of 50 MHZYes - that's a single pole IIR filter. I use it all the time to remove noise from ADC inputs.
It can be implemented in three instructions in ARM code, so it executes in 62ns on a 48MHz clock.
I see this fir code but its not working for me:Yes - that's a single pole IIR filter. I use it all the time to remove noise from ADC inputs.
It can be implemented in three instructions in ARM code, so it executes in 62ns on a 48MHz clock.
void CalculateFloatFilterCoefficients()
{
for (k = 0; k< (FILTER_ORDER +1); k++)
{
floatFilterCoefficient[k] = 1.0/(FILTER_ORDER+1);
}
}
void ConvertCoefficients()
{
for (k = 0; k< (FILTER_ORDER +1); k++)
{
Q15_Ftoi( floatFilterCoefficient[k], &Q15_FilterCoefficient[k]);
}
}
void DoFIRfiltration()
{
for (k=0; k< (SIGNAL_LENGTH) ; k++)
{
outputData[k] = FIR_Radix(Q15_FilterCoefficient, FILTER_ORDER+1,signal, SIGNAL_LENGTH,k);
}
}
Your input signal is noisy_sine_wave.I have clock of 50 MHZ
are you can show me how to implement this filter to my code? how to do it?
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
| A | Spwm in mikroc | Programming & Languages | 6 | |
|
|
how to put characters in an array | Programming & Languages | 1 | |
|
|
Heart rate code working mikroc pic -- and question | Microcontrollers | 7 | |
|
|
pic mikroc heart rate monitor question | Programming & Languages | 1 | |
|
|
mikroc question usb write data | Programming & Languages | 0 |