Hi guys;
I finish breadboard my "telephone call counter" project. I use two interrupts. One intererupt for counting a phone ring and the other interrupt to "clear" the counter. The project work fine, I use a 7805 for power, an ATmega - Arduino breadboard version, wired it up properly, use an opto-coupler to receive the "rings", use an another Atmega - Arduino breadboard version to simulated a phone call power by a 4.5 V ( 3 X 1.5 V AA battery ), I use a 555 circuit extender to extend the time when it keep on ringing, ( telephone ring 2 second and 4 second no ring, and repeat ) and a reset circuit.
Every things work ok until it hit 37 ( the program use a multiplex mode ). and try to "ring" and wait, no change in number, than I press the clear button, NO CHANGE... What the....????? I keep pressing the clear button , still no change. OK I said, let re-power and reset, use a logic probe to monitor the counting pulse, and to tested, I wait until the state go from LOW to HIGH and to LOW, and " ringing" and repeat, it work until I check the "over" LED ( over 99 ) and it work, and the "clear" work to.
My question is : Why the interrupt ( both of them ) did not work ? And How reliable the ATmega is ?
In my opinion... reliability is about 50 to 80 %...
I will show my schematics and the code later if you guys requested... My project work but at 50 % to 80% reliability because of the interrupts.