Hi Joseph! Just was looking to see if anyone had the same issue.
I'm running it on a Nano too. The square wave signal looks fine until almost 20kHz. When I connect D9 and D2 I'm in principle able to observe the sine wave but with a very low frequency, in units of Hzs. But frequency stops changing on turning the encoder, the interrupt catcher seems to prevent the rest of the code from execution. If I attempt first disconnecting D9-2, then setting frequency to a higher value then reconnecting, the device seems to reset on reconnect and the square wave signal starts with frequency 1Hz again.
It seems some kind of decoupling is needed between D9 and D2.
Hi Joseph! Just was looking to see if anyone had the same issue.
I'm running it on a Nano too. The square wave signal looks fine until almost 20kHz. When I connect D9 and D2 I'm in principle able to observe the sine wave but with a very low frequency, in units of Hzs. But frequency stops changing on turning the encoder, the interrupt catcher seems to prevent the rest of the code from execution. If I attempt first disconnecting D9-2, then setting frequency to a higher value then reconnecting, the device seems to reset on reconnect and the square wave signal starts with frequency 1Hz again.
It seems some kind of decoupling is needed between D9 and D2.