orbitronics
Well-known member
Hi,
I want to use a teensy to generate four to nine square wave in the region of 30 - 100 KHz. This is easy using analogWrite and analogFrequency, but i am trying to find a way to adjust the phase of each signal with respect to each other.
I've tried something like this:
But it doesn't make any difference.
Am i missing something ?
I want to use a teensy to generate four to nine square wave in the region of 30 - 100 KHz. This is easy using analogWrite and analogFrequency, but i am trying to find a way to adjust the phase of each signal with respect to each other.
I've tried something like this:
Code:
analogWriteFrequency(2, 40000);
analogWriteFrequency(3, 40000);
analogWrite(2, 128);
delayMicroseconds(5);
analogWrite(3, 128);
But it doesn't make any difference.
Am i missing something ?