I'm a student and I'm attempting to study how to use two different PWM signals to continuously drive and brake a brushed 12 V motor from an microcontroller.
First frequency will be around 4 kHz (for drive, red) and the second will be ten times the first, so around 40 kHz (for brake, green).
My idea is braking during low (or zero) side of the main power signal, using a NOR or NAND gate to make sure you don't destroy the two MOSFETs
Also, motor need to spin in only one direction, so there is no request for a full bridge.
Is this possible? I read around about Locking Anti-Phase, but it doesn't seems like my idea.