AnsweredAssumed Answered

KL03 Control PWM output directly with comparator

Question asked by Nastran on Mar 23, 2018
Latest reply on Jun 14, 2018 by Kerry Zhou



I'm using MKL03Z32VFK4 MCU. Is there way to control turn OFF/ON PWM signal (timer) directly with comparator output. The idea is to regulate boost DC DC converter and would be great if it works without CPU usage.

example: If voltage < 4V PWM turns ON and if voltage > 4V PWM turns OFF.

Is there way to set registers to connect comparator output to turn off timer/PWM if voltage is to high?


dc dc boost converter


Here is sample how I would like to set the MCU. Here is used PWM shut-down feature and you could use comparator output directly to shut down the PWM output.

STM32 PWM shut-down feature


Thanks for answers,