1
\$\begingroup\$

I am going to simulate buck converter using current mode control. I followed the circuit 2-80 from book Switch-Mode Power Supplies: SPICE Simulations and Practical Designs, second edition written by Basso. Unfortunately, I get an error from LTSpice WARNING: Can't resolve .param gi

does anybody knows how I can fix this error?

enter image description here

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

All the .param definitions are evaluated prior to simulation start, because they need to be available in the schematic for the duration of the simulation. For this reason you can't evaluate .params that involve time-dependent quantities: gr, gi1, gi2, Dprim and D0 (or DO). There are ready-made examples, and not only in LTspice. Best take those instead of making your own, at least until you learn more about the tool you are using.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.