摘要
介绍了双轴加速度传感器ADXL202在车载电子罗盘应用中的干扰抑制和软件滤波方法。基于VRS51L3074单片机的软件滤波方案,只需1个字节型变量就能动态存储1个通道的周期采样值,并根据此变量二进制位的数值变化,判断出有效信号上升沿、下降沿和干扰尖峰脉冲,达到有效计数和滤除干扰的目的。这一设计思想在电子罗盘测试中取得了较好的实验结果。
The anti-jamming and software filter methods for dual-axis accelerometer ADXL202 used in vehicle electronic compass are introduced. Based on MCU VRS51L3074,only a one-byte variable is needed to dynamically store the sampling values of a channel and recognize the rising edge,falling edge and peak pulse jamming of a signal according to the value changes of the variable.The method gets good effect in the engineering experiment of the electronic compass.
出处
《单片机与嵌入式系统应用》
2010年第5期8-11,共4页
Microcontrollers & Embedded Systems