Frequency measurement method and apparatus
A technology of frequency measurement and frequency value, which is applied in the field of frequency measurement methods and devices, can solve problems such as multiple external hardware circuits, and achieve the effect of disconnection detection and high-precision frequency measurement
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2008-07-16
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the technical field of electronic measurement, in particular to a frequency measurement method and device. Background technique
[0002] At present, the frequency of the signal under test is usually measured by the period measurement method or the frequency measurement method. The period measurement method is to count the reference clock within one period of the signal under test to obtain the period of the signal under test, and then calculate the frequency of the signal under test. When using this method, the measurement accuracy depends on the period of the measured signal and the accuracy of the reference clock, especially when the measured signal is high-frequency, the counting requirements of the reference clock are very high, so this method is more suitable for the measurement of low-frequency signals.
[0003] The frequency measurement method counts the pulses of the signal under test within a certain period of time, a...
Examples
Embodiment Construction
[0021] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0022] In the embodiment of the present invention, the measured signal is connected to the external interrupt I / O port of the single-chip microcomputer or the microprocessor, and an internal timer of the single-chip microcomputer or the microprocessor is used, without occupying external related hardware circuits and having I / O The port line or resource of the timer / counter of the O port.
[0023] The flow process of a kind of frequency measuring method of the embodiment of the present invention is as shown in Figure 1, in the present embodiment, the single-chip microcomputer adopts the common 51 series of pins and 2051 with few functions (Duojia company can produce compati...