Skip to main content
5 events
when toggle format what by license comment
Jun 4, 2010 at 18:25 comment added vicatcu @timrorr, wow yes that is way smarter way of doing it :) I posted updated AVR-GCC code in a separate post. Care to take a look and see what you think?
Jun 4, 2010 at 4:57 comment added timrorr Measuring a frequency using the period works quite well with slow waveforms (you're relying on the internal timer being much quicker than the external signal) but quickly hits a limit as the input signal frequency increases. Basically, as you've found, the time spent inside the timer capture interrupt becomes dominant; there is no time left for any other parts of the code to run. While I'm not that familiar with the ATTiny a quick look at the datasheet shows that timer/counter1 does support external event counting so let the hardware handle the counting.
Jun 2, 2010 at 20:59 history edited vicatcu CC BY-SA 2.5
added 496 characters in body; added 96 characters in body
Jun 1, 2010 at 18:57 history edited vicatcu CC BY-SA 2.5
deleted 5 characters in body; added 33 characters in body
Jun 1, 2010 at 18:38 history answered vicatcu CC BY-SA 2.5