采用霍尔传感器采集液压泵旋转产生的脉冲,结合单片机定时器的中断来精确计时,并对单位时间内的霍尔脉冲数进行统计。
Then, the interrupt of the single chip timer had been used to time precisely, and the Hall pulse number had been counted in unit time.
通过单片机的设置可使内部定时器T1对脉冲输入引脚T0进行控制,这样能精确地算出加到T0引脚的单位时间内检测到的脉冲数;
SCM through the setup will enable the internal timer T1 pulse input pin T0 control, This can be accurately calculated foisted T0 pin unit time detection of the pulse;
应用推荐