单片机10种软件滤波程序
1、限副滤波
#define A 10
char value;
char filter()
{
}
2、中位值滤波法
#define N
char filter()
{
}
3、算术平均滤波法
#define N 12
char filter()
{
}
4、递推平均滤波法(又称滑动平均滤波法)
#define N 12
char value_buf[N];
char i=0;
char filter()
{
}
5、中位值平均滤波法(又称防脉冲干扰平均滤波法)
#define N 12
char filter()
{