Has someone used timer1 input compare triggered by analog compare?
I did it, but it work only if I set (TIMSK1=0x20), the drawback is when ICP1 change ( drive a 7 segment display) the interrupt fire again.
The question: There is a possibility to fire icp1 interrupt only by analog comparator while ICP1 pin changes make no effects? (pin14 in my atmega88).
If yes, someone may show me how?
Now the setup working is:
TCCR1B=0x04
TIMSK1=0x20
ACSR=0x0E
All other registers for TIMER1 and ANALOG COMPARE are 0x00.
Many thanks Fabio