CMPSS框图:

1. CMPSS的数字滤波器Digital Filter
图1.1

Digital Filter在CMPSS模块中的位置:
Digital Filter 实现的等效C代码如下:
//Equivalent C code of the filter implementation
//is shown below:
if (FILTER_OUTPUT == 0) {
if (Num_1s_in_SAMPWIN >= THRESH) {
FILTER_OUTPUT = 1;
}
}
else {
if (Num_0s_in_SAMPWIN >= THRESH) {
FILTER_OUTPUT = 0;
}
}
Digital Filter 使用步骤:
- Configure and enable the comparator for operation
- Configure the digital filter parameters for operation
• Set SAMPWIN for

本文详细介绍了CMPSS模块中的数字滤波器DigitalFilter,包括其C代码实现、配置步骤及示例程序。讲解了如何设置SAMPWIN、THRESH、CLKPRESCALE等关键参数,并演示了初始化采样值、配置信号路径以及时钟设置的方法。

最低0.47元/天 解锁文章
2447

被折叠的 条评论
为什么被折叠?



