# Generate a model into Ltspice where we can adjust a parameter

I am trying to generate a subcircuit on ltspice. It is a first order filter where I would like to adjust the cuttoff frequency. I know that it is possible to do it on component but on a parameter ("param") I do not know how to do it.

I would like to set directly the param "fp" of the subcircuit. Does anyone know a way to do it ?

Have a nice day !

• I'm confused. What you have there works exactly as you need: all you have to do is to use fp as the parameter to be passed to the subcircuit, and Rfiltre will be automatically calculated. It looks like you had no problem to start with, after all. :-) Jan 20 at 12:43
• Actually, my subject was not clear I wanted to do a netlist for a SUBCIRCUIT and I wanted to pass a parameter to this SUBCIRCUIT when I put it on my scheme. I found the solution :)
– Jess
Jan 22 at 7:25
• Yes, that's what I was talking about. Make the subcircuit out of what you have in the picture, then use fp=<...> as the parameter. Here are a thousand words. The green numbers indicate the order of the pins for the symbol I chose. Jan 22 at 9:23
• You re right ! Actually I did not write the parameter line on the same line of the SUBCKT. That was my error !
– Jess
Jan 22 at 9:29
• You can write them in two ways: on the same line with the .subckt, written as params: (note, no dot), or normally, as you have them. I forgot to add a fp=100k to the symbol, but I'm sure you already figured that out. ;-) Jan 22 at 9:40

I think your main problem was expecting the raw "10n" to be recognized in the .param Rfiltre statement. Having said that, microcap will allow it. I can also keep the curly braces around Rfiltre in microcap too.