2013-03-11 03:05 AM
I want to create 2 signals and they must have 90 degrees phase difference (on square wave). for example signals have 2 kHz freq. i set the timer 8 kHz and just changed the one of the outputs on each timer interrupt. the signals are coming 90 degrees difference while i'm debugging on discovery board but when i stop debugging (controller is free running) i'm not seeing the difference between signals just inverted 2 signals on scope. can i do it with pwm or capture/compare mode?