Frequency Meter with 100 MHz RF desktop channel using ATtiny2313 microcontroller

This basically the frequency meter section of the frequency meter/pulse generator based on the AT90S2313 described elsewhere on this site, combined with the 100 MHz RF interface described in the page about the RS-232 to 100 MHz RF desktop channel adapter. Built and align this is the same manner as the 100 MHz RF desktop channel adapter. The frequency meter has a maximum input frequency of 4 Mhz and counts up to 65535. Time bases of 10 ms, 100 ms, 1 second, 10 seconds, and 100 seconds are selectable from the keyboard via the RF link.
Frequency Meter with 100 MHz RF desktop channel using ATtiny2313 microcontroller
Assembler source
hex file
I would suggest adding a 5 volt zener from pin 9 of the AT90S2313 to ground to reduce chances of damage to the input from electrostatic discharges. I did not put it on the schematic because I did not build this and try it. Take a look at the frequency and pulse generator project on this web site to see how I used the reverse base-emitter junction of a transistor to accomplish the same thing because I didn’t have any appropriate zeners at the time of the project.
The frequency meter sends to address $02 (the RS232 to RF Data Channel receive address) and receives address $03 (which is coded as $18 in the firmware because of the position of the address within the header byte).


This firmware was a combination of the firmware from two projects, with the irrelevant parts removed. There are several assembler warnings of registers being assigned more than once -don’t worry about it, there aren’t any conflicts but it made hooking the two pieces of code a little easier and made the resulting file a little easier to read doing it this way.
Here is the Assembler source file. In case its helpful, here is the hex file
At power-on a greeting and menu is displayed. Individual readings are taken whenever the “R” key or return key are pressed.
For more detail: Frequency Meter with 100 MHz RF desktop channel using ATtiny2313 microcontroller

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top