Counting device and control method thereof
The invention discloses a counting device and a control method thereof, and in the counting device, an emitter is controlled to output a PWM pulse signal with a trigger signal and a detection signal, and a countdown signal and sampling times assigned to the trigger signal in advance, so that when a...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a counting device and a control method thereof, and in the counting device, an emitter is controlled to output a PWM pulse signal with a trigger signal and a detection signal, and a countdown signal and sampling times assigned to the trigger signal in advance, so that when a receiver receives the PWM pulse signal, the countdown signal and the sampling times are assigned to the trigger signal in advance; the controller can judge the state of the PWM pulse signal received by the receiver based on the countdown signal and the number of sampling times so as to control the state of the indicator lamp and carry out corresponding counting. Besides, as the trigger signal carries the sampling times, the receiver can sample the PWM pulse signal according to the sampling times during sampling so as to shield other interference signals, and the anti-interference capability of the counting device is improved.
本发明公开了一种计数装置及其的控制方法,计数装置中,通过控制发射器输出具有触发信号和检测信号的PWM脉冲信号,以及提前赋值给触发信号的倒计时信号和采样次数,使得接收器接收PWM脉冲 |
---|