Analog Devices AN-644 Frequency Measurement Application Note

This application note describes the implementation of a single pin measurement of frequencies up to 500 kHz using the Timer 2 counter input pin. The code accompanying this document implements a frequency acquisition system that can be combined with a voltage measure- ment via the ADC to track both the frequency and voltage of the input signal. The measurement is displayed on an HD44780 compatible LCD screen.


Analog Devices AN-644 Frequency Measurement Application Note - cover page
Brand
Analog Devices
Category
microcontrollers
Document type
Application Note
Language
English
Pages
2
File format
PDF
File size
62 KB
Published
03 August, 2012
Updated
30 September, 2023
MD5 checksum
9025030064472DCECC744C75EFE0CA37

About this manual

This document explains how to measure frequencies up to 500 kHz using the Timer 2 counter input pin on MicroConverter devices. It details two methods for measuring the one-second interval required for frequency calculation: using Timer 0 with 10 ms overflows or using a time interval counter to interrupt the core after one second. The latter method is preferred as it allows the core to perform other tasks between interruptions.

What's inside

  • Introduction
  • Measuring the Frequency
  • Program Example
  • Program Flow
  • Interrupt Service Routine Flowcharts

Frequently asked questions

What is the maximum frequency this application note supports for measurement?

The application note describes the implementation of a single pin measurement of frequencies up to 500 kHz.

What is the maximum frequency measurable using the Timer 2 registers alone?

Since the Timer 2 registers can hold only a 16-bit result, the maximum measurable frequency is 65535 Hz.

At what frequency does the calibration routine begin to ignore gain error?

The calibration routine ignores the gain error below 10 kHz.

Download PDF (62 KB)

More Analog Devices Manuals


View all Analog Devices manuals →