FIELD: information technology.
SUBSTANCE: device and a method for generating digital serial frequency output signals in a Coriolis flowmeter are provided. Method for generating a frequency output signal on the microcontroller comprises: initialization of a clock input having a predetermined period; calculation of a parameter based on the predetermined period; calculation of a desired frequency based on the parameter and the predetermined preset scaling rate-frequency; calculation of a set of fractional pulses, each fractional pulse from the set of fractional pulses is calculated based on the desired frequency, a predetermined preset period of the clock input and the value of the previous fractional pulse; and output of the desired frequency by switching the output state when the calculated fractional pulse is greater than or equal to a half of the period of the output pulse.
EFFECT: providing a low level of the jitter phase for a given clock input, the highest possible accuracy of counting pulses, the greatest possible absolute accuracy, simplifying the implementation of other settings (including quadrature, pulse width, et cetera) and the exclusion of specialized external hardware, id est implementation by means of usual available hardware with serial output, available in most microcontrollers.
12 cl, 4 dwg
Authors
Dates
2018-04-17—Published
2014-07-08—Filed