Timer-based PWM (Pulse Width Modulation) wave acquisition method

An acquisition method and timer technology, applied in the direction of pulse characteristic measurement, etc., can solve problems such as misjudgment and signal acquisition errors
CN104698286AActive Publication Date: 2015-06-10宁波乐丰新能源有限公司

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
宁波乐丰新能源有限公司
Publication Date
2015-06-10

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a timer-based PWM (Pulse Width Modulation) wave acquisition method. The method comprises the following steps: I, setting one timer in a cycle count working mode, wherein one clock interrupt is triggered in each cycle; II, setting the timer for acquiring the PWM wave in the working mode of high level reductional count trigger, wherein an input end of the PWM wave acquisition timer is connected with a to-be-acquired PWM wave signal; III, writing an interruption service function, and responding clock interruption after the count of each cycle is ended. According to the timer-based PWM wave acquisition method, since the acquisition mode that the timer is triggered by high level to count other than pulse capture is adopted, almost no effect is caused to the acquisition result even though burrs or other jumps occur in a signal, so that the anti-interference capacity of PWM acquisition is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention provides a timer-based PWM wave acquisition method, which relates to a timer-based pulse width length modulation signal PWM wave acquisition method, and proposes a timer-based PWM wave acquisition method. This timer-based PWM wave acquisition method can be extended to various types of timers to realize the acquisition of PWM signals, and is applicable to various industrial control fields. In the present invention, the CDT2000 board is used as an example to explain the example. The collected PWM wave is a 14ms cycle PWM wave used to control the action of the steering gear, and the pulse width length ranges from 1.1 to 1.9ms. Background technique

[0002] PWM wave (PWM, that is, Pulse Width Modulation, pulse width modulation) is a mature industrial control signal, which is widely used in industrial control such as motor speed control and actuator stroke control. It uses digital output to control analog circuits. A very effective technique ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More