Hello, I'm a student of Technical University. I really need a code for high-pass filter to my lesson. I have been searching in the whole net, but i didn't find. It would be great if u could help. Thanks ! info: Keil uVision4 c330
I'm a student of Technical University ..... I have been searching in the whole net
graduating as a websearcher?
Erik
Just seeking for analysing and understanding :>
Please try asking professor of Technical University, or reviewing course materials
I'm a student of Technical University.
So how about you start studying, then, instead of asking others to do it for you?
I really need a code for high-pass filter to my lesson.
I'm reasonably certain that's a misrepresentation of facts. What you need is not "a code". What you actually need is to do the homework that your teachers gave to you, which almost certainly says that you are supposed to write that code, based on the things you learned. I'd be very surprised if any instituion calling itself a Technical University stooped so low as handing out homework assignments that say "Acquire code doing [...] any which way you can."
In other words: on what basis did you figure you should not fail that assignment?
It would be great if u could help.
We might do that. But you seem to be under the impression that "helping" meant "hand your entire homework to you on a silver platter". No, sir. It doesn't work that way.
First you'll have to convince us you've actually been working on this yourself. Explain what you learned, how you tried to apply that newly acquired knowledge, and why you seem to have become stuck along the way. Then someone will muster the goodwill to point out where you went wrong.
Thx for ur opionos, I undermentioned some code, is it correct? Can I somehow upgrade it ? :>
#if HIGH_PASS
{
float RC = 1.0/(CUTOFF*2*3.14);
float dt = 1.0/SAMPLE_RATE;
float alpha = RC/(RC + dt);
float filteredArray[numSamples];
filteredArray[0] = data.recordedSamples[0];
for (i = 1; i<numSamples; i++)
filteredArray[i] = alpha * (filteredArray[i-1] + data.recordedSamples[i] -
data.recordedSamples[i-1]);
}
data.recordedSamples = filteredArray;
#endif
Could you rewrite that code? .... My teacher something here seems strange
Warning says what?
As presented the code can't even be compiled because it's insufficiently complete, and utilizes variables and defines not provided.