K
Klaus Kragelund
Hi
I am working on a current mode controlled SMPS. I have a sawtooth voltage ramp (measured current in a sense resistor) and I would like use a digital input pin of a micrcontroller to turn off the PWM that controls the ramp. The ramp moves from 0 to 100mV in 10us.
I do not have a free comparator on the micro, so I thought of using the digital input threshold as the fast level detect, and an outer loop measuring the current for slow current control. The ramp is offset shifted to just below the threshold since I have a low voltage swing
But, does the typical digital input have a threshold that moves due to external factors fast, appart from supply voltage? (I only need the positive threshold)
Thanks
Klaus
I am working on a current mode controlled SMPS. I have a sawtooth voltage ramp (measured current in a sense resistor) and I would like use a digital input pin of a micrcontroller to turn off the PWM that controls the ramp. The ramp moves from 0 to 100mV in 10us.
I do not have a free comparator on the micro, so I thought of using the digital input threshold as the fast level detect, and an outer loop measuring the current for slow current control. The ramp is offset shifted to just below the threshold since I have a low voltage swing
But, does the typical digital input have a threshold that moves due to external factors fast, appart from supply voltage? (I only need the positive threshold)
Thanks
Klaus