Across VCC and GND?
I believe, for the theory to be true, there has to be an interrupt service routine in the mix.
All libraries removed.
I got a single 1, as you would expect. Pressing reset produces another 1.
I can't say that a 489 Hz frequency introduced in your circuit should cause major problems.
My guess is that an interrupt is indeed behind it.
Judging by what you posted you are not using the standard "back end" library:
This seems to be confirmed by the fact that your alternative serial output routine does not have this problem.
For what it's worth
just tested on a Bare Bones Board (using the Duemilenove bootloader). Same results as before for me, that is it worked correctly.
I presume by pin 3 you mean D3.
When a change of the logic level (an event) occurs on the Input Capture pin (ICP1), alternatively on the Analog Comparator output (ACO), and this change confirms to the setting of the edge detector, a capture will be triggered.
Is it that hard to read the code?
... them loop well loops and doOnce is once again true ...
So, at each start of loop you set doOnce true, the if is executed, and inside the duOnce is set false, them loop well loops and doOnce is once again true, so what will happen?The if is executed!!!!!!!!!!!!!!!!!!!!!
So, at each start of loop you set doOnce true,
AVCC connected to +5 volts.Analog side GND connected to ground.
I thank all of you for your help! Especially you, Nick! Without your decoupling suggestions I would have come to the conclusion that the processor was damaged and tossed it.
Actually the funny thing is, a little while back I was reading the VCC line with a scope and saw what I thought was a crazy amount of noise on it, so I can see why those things are needed.
I'll see if I can reproduce it.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16