搜索资源列表
CAPTURE
- PIC单片机的CCP功能 //220V的交流电源直接用电阻限流,经光耦隔离,形成脉冲送到CCP2, //CCP2模块的捕捉功能,设置为每16个上升沿捕捉一次,相当于平均滤波,目的是为了减小误差 //TMR1计数的分频系数计算:假设电源为50Hz,即一个周期为20ms,16个周期为320ms //320ms=320000us,单片机用4MHz晶振,指令周期为1us,设TMR1的分频系数为K:65536×K=320000 //得K=4.88,取K=8,即TMR1的预分频系数设为1
FFT_TO_DIS
- 利用加速度计算位移,通过FFT快速傅里叶变换实现,只需调整滤波频率-Displacement of the acceleration calculated by the fast Fourier transform FFT, simply adjust the filter frequency
SourceCode10_ADC_9
- 这个是我用CCS3。3做的一个AD采样,其中用到了数字滤波,采样频率可根据自己的须要做调整,经过校正后采样数据还比较准-This is my CCS3. A AD 3 to do sampling, which uses digital filtering, sampling can be adjusted according to their own needs to frequency, after correction of sampling data is accurate