How can I correctly setup attachInterrupt() in this sketch?

1. What is the frquency of oscillation?

2. The coils L1 and L2 are magnetically coupled. So, the frequecy of OUT_HIGH and OUT_LOW should be same except the phase difference.

3. Are you planning to measure the phase differece between the two signals of Step-2?

4. What is the affect of the analog signal of Ch-A0 on the oscillator signal? Does it change the frequency or the phase difference or both?

Get the answers of all the above questions and then write your own codes (take help from the copied sketch and Forum) to achieve your objectives.