9 Threads found on edaboard.com: Avr Frequency Counter
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 (...)
Microcontrollers :: 11-22-2015 13:21 :: shirko20 :: Replies: 2 :: Views: 240
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
Microcontrollers :: 01-27-2012 04:39 :: pranali pandit :: Replies: 0 :: Views: 604
use GOOGLE for search avr + RPM.
Hobby Circuits and Small Projects Problems :: 03-03-2011 16:38 :: medap :: Replies: 3 :: Views: 2407
All avr timers have a prescaler (internal divisor). Make sure you have selected the correct value. All avr timers can run directly from the chip clock frequency.
Microcontrollers :: 04-24-2010 22:12 :: pauloynski :: Replies: 4 :: Views: 803
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
Microcontrollers :: 04-21-2010 19:18 :: bobsanjose :: Replies: 3 :: Views: 5737
they had a posted project simillar to what u asked
Microcontrollers :: 11-02-2006 13:46 :: Bassem_fahmy :: Replies: 3 :: Views: 1057
Please check below site.
I hope that will give you some help. thanks.
Microcontrollers :: 01-13-2006 21:51 :: pjyc :: Replies: 3 :: Views: 5273
do a google search on avr frequency meter...
for mains isolation use an optocoupler (0 detector circuit...)
hope this help,
Elementary Electronic Questions :: 01-24-2005 17:31 :: aNdreiBuuu :: Replies: 10 :: Views: 3917
If you have watchdog in your mcu , make active it , and start counting where counter is in memory location
In avr watchdog is supplied from different oscillator .
You should check watchdog implementation in your mcu for that . When watchdog reset will be happened get the counter value . Using precalculated counter values (...)
Analog Circuit Design :: 04-13-2004 05:39 :: artem :: Replies: 10 :: Views: 1841