I'm building current limiter for my circuit, I saw a nice one in Maxim's document (Figure 2a): https://www.maximintegrated.com/en/app-notes/index.mvp/id/2158
I need current limiting for 100mA, so I modified that circuit and simulated in LTspice:
It works, it limits current well, but there is some glitch/spike when power is switched on (current across R1):
Spike in detail (power is turned at 10μs, spike starts at 10μs):
I tried different transistors (Q1 and M1) but it didn't help.
What causes this spike?
Is there any problem in that circuit?
Or is it just some problem in LTspice simulation?
Is it possible to get rid of this spike?
C1
is the culprit there. It's meant to be filteringM1
's voltage, to avoid slight perturbations, but, in return, at startup, it charges briefly throughR1-C1-R2
. If you look at the time scale, the pulse is limited in both amplitude and time (~3ns), which is minor (unless your circuit is so very sensitive). If you moveC1
in parallel withR2
, the behaviour will change. \$\endgroup\$Rser=1m Cpar=1m
toV1
, everything changes. \$\endgroup\$