Post Created date
Bug in ATtiny2313 AT90S2313 ICP capture
12oclocker wrote:Quote:I would try declaring all static vars used in the ISR, volatile. Ah ha, very good observation, I will try that tonight.
Wednesday, 22 April 2009 - 20:26
Bug in ATtiny2313 AT90S2313 ICP capture
Quote:I would try declaring all static vars used in the ISR, volatile. Ah ha! that may very well be my entire problem! Thank you, I will try this tonight!
Wednesday, 22 April 2009 - 20:25
Bug in ATtiny2313 AT90S2313 ICP capture
12oclocker wrote:Quote:Because you have stopped the timer. I stopped the timer1, but not the loop, the loops runs forever to keep checking if the interrupt has got a measurement...
Wednesday, 22 April 2009 - 20:22
Bug in ATtiny2313 AT90S2313 ICP capture
Quote:Because you have stopped the timer. I stopped the timer1, but not the loop, the loops runs forever to keep checking if the interrupt has got a measurement for me to use....
Wednesday, 22 April 2009 - 20:17
Bug in ATtiny2313 AT90S2313 ICP capture
12oclocker wrote:Quote:I don't see why ICP won't work with a rate divider that apparently does not output a nice squarewave, as long as you keep the triggering on either positive...
Wednesday, 22 April 2009 - 19:37
Bug in ATtiny2313 AT90S2313 ICP capture
Quote:I don't see why ICP won't work with a rate divider that apparently does not output a nice squarewave, as long as you keep the triggering on either positive or the negative...
Wednesday, 22 April 2009 - 19:36
Bug in ATtiny2313 AT90S2313 ICP capture
theusch wrote:There is a bit of mish-mash above (IMO) between the ICP input capture program and the T1 timer-as-counter program. Pull out your 7-seg stuff etc. and post the...
Wednesday, 22 April 2009 - 17:31
Bug in ATtiny2313 AT90S2313 ICP capture
Quote:On my AT90S2313 frequency meter I connected the input frequency to ICP and T0. So T1 count the period time and act as time base and T0 count the period number. So I can...
Wednesday, 22 April 2009 - 16:53
Bug in ATtiny2313 AT90S2313 ICP capture
danni wrote:It seems, you have a wrong understanding of the ICP. The ICP catch always the timestamp of a rising or falling edge. To do so, the timer must be always running. Then...
Wednesday, 22 April 2009 - 05:02
Bug in ATtiny2313 AT90S2313 ICP capture
My AVR is clock to 6.912Mhz, the input freq I am measuring is coming off my function generator, which I vary from 1Hz to 1.1Mhz to test my code. I am well below half scale. Trust...
Tuesday, 21 April 2009 - 23:54
Bug in ATtiny2313 AT90S2313 ICP capture
Quote:what do you mean the overflow never occurs? Have you pulsed the T1 pin 65536 times? Yes I have, and the overflow interrupt is never called, then when I change the timer to...
Tuesday, 21 April 2009 - 21:48
Bug in ATtiny2313 AT90S2313 ICP capture
Ah, thanks, that makes sense...! I found another problem which I cant seem to figure out. When TCCR1B is set to External T1 pin, rising edge and TIMSK is set to Timer1 Overflow...
Tuesday, 21 April 2009 - 19:36

Pages