1
\$\begingroup\$

I am quite new to PSPICE, and I am using Capture to design my circuit. To explain what I am trying to do, I have two circuits that I want to connect via a voltage in the following manner:

In circuit 1 I have a certain voltage, let us call it V1.

In circuit 2 I have a resistor (R1), with a value that I want to be dependent on V1. So that basically, R1 = f(V1), where f is a function. The function, f, is not necessarily linear.

Is there any easy way to do this in SPICE/PSPICE?

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

Yep, there is a way to do this in pspice:

enter image description here

Or this way:

.SUBCKT RES_10K 1 2
ERES   1  3  VALUE = { I(VSENSE)*10K }
VSENSE 3  2  DC 0
.ENDS

Sources: E circuit center

Just a side note, this and other functions are accomplished much easier in LT spice, the package is free and I believe the solver is better and it's easier to use and accomplish special functions like this

\$\endgroup\$
4
  • \$\begingroup\$ +1 for the LTspice reference. Some time ago I went to a friend and tried to use OrCad, the last time was in college. I found it very clunky compared to LTspice. Of course, it's just an opinion. \$\endgroup\$ Commented Apr 6, 2018 at 6:08
  • \$\begingroup\$ It is difficult to use, and much more difficult when you want to do custom functions, you can simulate almost anything with B-sources including ADC's \$\endgroup\$
    – Voltage Spike
    Commented Apr 6, 2018 at 15:26
  • \$\begingroup\$ I am quite new, so I am not able to implement the circuit above using OrCAD capture. The problem is setting the value of ERES to { I(VSENSE)*10k }, how do I do that. I have tried to double right click on the voltage value of ERES and write the expression, but that does not work. \$\endgroup\$
    – camzor00
    Commented Apr 9, 2018 at 13:33
  • \$\begingroup\$ Its been a while, but I believe this is done through the property editor. pspice.com/… \$\endgroup\$
    – Voltage Spike
    Commented Apr 9, 2018 at 16:49

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.