VIBRATORY FLOW METER AND METHOD TO GENERATE DIGITAL FREQUENCY OUTPUTS
First Claim
Patent Images
1. A method to generate a frequency output on a microcontroller comprising:
- initializing an input clock signal having a predetermined period;
calculating a parameter based on the predetermined period;
calculating a desired frequency based on the parameter and a predetermined flow rate-frequency scaling;
calculating a plurality of fractional pulses, whereineach fractional pulse of the plurality of fractional pulses is calculated based on the desired frequency, the predetermined period of the input clock signal, and a value of a preceding fractional pulse, andoutputting the desired frequency by toggling an output state when the calculated fractional pulse is greater than or equal to half of an output pulse period.
1 Assignment
0 Petitions
Accused Products
Abstract
A device and method to generate digital serial frequency outputs in a Coriolis flow meter is provided. The present invention provides the theoretically lowest jitter for a given input clock, the highest possible pulse count accuracy, the highest possible absolute accuracy, easily implementable other aspects (including Quadrature, pulse width, etc.) and requires no specialized external hardware, and is, therefore, implemented with commonly available serial output hardware found in most microcontrollers.
-
Citations
12 Claims
-
1. A method to generate a frequency output on a microcontroller comprising:
-
initializing an input clock signal having a predetermined period; calculating a parameter based on the predetermined period; calculating a desired frequency based on the parameter and a predetermined flow rate-frequency scaling; calculating a plurality of fractional pulses, wherein each fractional pulse of the plurality of fractional pulses is calculated based on the desired frequency, the predetermined period of the input clock signal, and a value of a preceding fractional pulse, and outputting the desired frequency by toggling an output state when the calculated fractional pulse is greater than or equal to half of an output pulse period. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A vibratory flow meter (5) comprising:
-
a flow meter sensor assembly (10) including one or more flow tubes (103A, 103B) and first and second pickoff sensors (105, 105′
);a driver (104) configured to vibrate the one or more flow tubes (103A, 103B); and
meter electronics (20) coupled to the first and second pickoff sensors (105,105′
) and coupled to the driver (104), with the meter electronics (20) generating a frequency output by being configured to;initialize an input clock signal having a predetermined period; calculate a parameter based on the predetermined period; calculate a desired frequency based on the calculated parameter and a predetermined flow rate-frequency scaling; calculate a plurality of fractional pulses, wherein each fractional pulse of the plurality of fractional pulses is calculated based on the desired frequency, the predetermined period of the input clock signal, and a value of a preceding fractional pulse, and output the desired frequency by toggling the output state when the calculated fractional pulse is greater than or equal to half of an output pulse period. - View Dependent Claims (8, 9, 10, 11, 12)
-
Specification