Signal frequency is one of the most popular information carriers in measurement technology. A circuit called a frequency-to-code converter  is used to convert frequency into numerical values. Frequency-to-code converters usually operate in the mode of a recorder of a certain number of periods of the signal under test. Often it is a microcontroller-based circuit that uses built-in memory to collect measurement data. The size of the memory limits the measurement capabilities of the transmitter. The paper presents the development of a frequency-to-code converter that sends measurement data directly to the host computer without collecting the results in the RAM of the converter. The working algorithm of the transmitter is presented. The results  of measurement experiments carried out for sample signals of constant and variable frequency are presented.. The metrological analysis of the results is presented.


frequency; digital period measurement; frequency-to-code converter; microcontroller

Barrett S. F., Pack D. J: Atmel avr microcontroller primer: Programming and interfacing. In Synthesis Lectures on Digital Circuits and Systems. Morgan & Claypool Publishers, Williston 2012. DOI:

Francuz T.: Język C dla mikrokontrolerów AVR. Helion, 2011.

Goswami J. C., Hoefel A. E.: Algorithms for estimating instantaneous frequency. Signal Process. 84, 2004, 1423–1427. DOI:

Kirianaki N. V., Yurish S. Y., Shpak N. O., Deynega V. P.: Data Acquisition and Signal Processing for Smart Sensors. John Wiley & Sons, Chichester 2001. DOI:

Murillo C. A., López B. C., Celma S.: Voltage-to-Frequency Converters: CMOS Design and Implementation. Springer, New York 2013.

Pawłowski E., Świsulski D.: Problems with microprocessor voltage-to-frequency and frequency-to-voltage converters implementation. Przegląd Elektrotechniczny 91, 2015, 46–49.

Pereira J. M., Postolache O. A., Girao P. S.: Analog to Digital Conversion Methods for Smart Sensing Systems. In: Sharma M. K. (Ed.): Advances in Measurement Systems. InTech Open, Rijeka 2010.

Singh H. K., Bezboruah T.: Micro controller-based frequency to digital converter for interfacing frequency output sensors. International Conference on Electronic Design, Computer Networks & Automated Verification, 2015, 34–37. DOI:

Swisulski D., Pawlowski E., Dorozhovets M.: Digital Processing of Frequency–Pulse Signal in Measurement System. Analysis and Simulation of Electrical and Computer Systems. Springer, Cham 2018. DOI:

Warda P.: Adaptive correction of the quantization error in the frequency-to-code converter. 22nd International Conference on Methods and Models in Automation and Robotics (MMAR), 2017, 226–231. DOI:

Warda P.: Measurement Data Transmission in the Presence of Electromagnetic Field. Proceedings of the International Conference on Electromagnetic Devices and Processes in Environment Protection with Seminar Applications of Superconductors (ELMECO &AoS), 2017. DOI:

Warda P.: Simulation of an Adaptive Method of Improving the Accuracy and Extending the Range of Frequency Signal Processing in a Frequency-to-Code Converter. Applied Sciences 11(21), 2021, 1–19 []. DOI:

Yurish S. Y.: Sensors and transducers: Frequency output versus voltage output. Sens. Transducers 49, 2004, 302–305.

Yurish S. Y., Reverter F., Pallàs-Areny R.: Measurement error analysis and uncertainty reduction for period-and time-interval-to-digital converters based on microcontrollers. Meas. Sci. Technol. 16, 2005, 1660. DOI:

Agilent 33220A20 MHz Function /Arbitrary Waveform Generator, User's Guide, 2007 Agilent Technologies, Inc.

FT232R USB UART IC Datasheet,Version 2.16

SN54132, SN54LS132, SN54S132, SN74132, SN74LS132, SN74S132 Quadruple 2-input positive-nand Schmitt triggers, 2022, Texas Instruments Incorporated


Published : 2022-12-30

Warda, P. (2022). FREQUENCY-TO-CODE CONVERTER WITH DIRECT DATA TRANSMISSION. Informatyka, Automatyka, Pomiary W Gospodarce I Ochronie Środowiska, 12(4), 74-77.

Piotr Warda
Lublin University of Technology  Poland