7 years, 12 months ago.

Non-inverted and inverted drive signals using FRDM-K64F

Hello all,

I'm looking for an opinion on the easiest way to create two square wave drive signals at the same frequency (in the range 100kHz to 300kHz) with high resolution on the specific frequency using the mbed library (or extension).

My original thought was to make use of the "FastPWM" library. This works well for generating the non-inverted signal and has the resolution I need, but I need a way to generate an inverted (180 degrees out of phase) signal as well. Another thought was to use the "FastIO" library to manually create the two waveforms, but this only gives me a 100ns max resolution (since each call takes 50ns).

The goal is to drive an H-bridge; the circuitry will handle eliminating shoot-through, so that is not an problem here. I do need a way to force both signals to 0 periodically.

Thank you for the help.

Be the first to answer this question.