Search Engine www.edaboard.com

# Avr Frequency Counter

9 Threads found on edaboard.com: Avr Frequency Counter

## ATMega8 Frequeny problem and i confused :|

HELLO. I wrote a code to atmega8 to Clear OC2 pin of avr in frequeny of 8MHZ AND i set cs20 of timer2 in no prescaling (clk of timer==clock of cpu);here is code but when i run this in proteus and use counter Timer component in proteus to measure frequency of OC2 PIN IT SHOWS 31.25KHz it means that==>> 8MHz/256=31.25KHz but i chosen Timer1 (...)

## code for computing pulse rate

My counter is displaying random values. Can anyone guide me ..i need to know where i am going wrong?reply asap. #ifndef F_CPU //defining CPU clock #define F_CPU 16000000UL // setting clock frequency for Atmega 16 #endif #include<avr/io.h> #include<avr/interrupt.h> #include #include"LCD_mega16.h" (...)

## AVR frequency counter

use GOOGLE for search avr + RPM.

## time difference calculation

I am developing a circuit for calculation of time spent for the wave to travel from one end of sample to another. The length of sample varies from 0.5 cm to 10 cm. I have generated sinewave and I want to determine the instance the wave hits the sample and the instance the wave gets out of it. Once, i determine the first instance, i will start the

## high Accuracy Frequency Counter with AVR Atmega16

Hi, what are you actually trying to achieve? Measuring a pulse width and calculate the frequency or do you count pulses? If you count pulses, the accuracy is in your calculation because the number of pulses is integer by definition. If you measure the length of a pulse to calculate the corresponding frequency within 0.01Hz in the range of 100 kH