Hi,
I would like to use a Teensy 3.5 and the Audio Shield (Rev. C) to generate two signals:
a) a sine tone using the audio shield and
b) a digital square wave signal with the same frequency and adjustable phase angle to the sine signal.
I can already generate the sine signal (easy as the very first example in the tutorial does this already) but I don't have a idea how to approach the second signal.
I know that the sampling frequency is 60MHz/1360 so I could use a timer to generate a signal of the same frequency but I would not know the phase angle and I'm afraid over time the phase angle might drift.
Any ideas how to approach this problem?
See you
Flo
I would like to use a Teensy 3.5 and the Audio Shield (Rev. C) to generate two signals:
a) a sine tone using the audio shield and
b) a digital square wave signal with the same frequency and adjustable phase angle to the sine signal.
I can already generate the sine signal (easy as the very first example in the tutorial does this already) but I don't have a idea how to approach the second signal.
I know that the sampling frequency is 60MHz/1360 so I could use a timer to generate a signal of the same frequency but I would not know the phase angle and I'm afraid over time the phase angle might drift.
Any ideas how to approach this problem?
See you
Flo