Hello. First time post.
I have a subckt model that I'm trying to investigate why it has convergence issues. What I am trying to do is view the internals as waveforms in a transient analysis.
I have been simulating circuits using Orcad pspice and have used the software when it was microsim pspice. I am mostly familiar with the visual editor and have done some work looking at models through the model editor. I have been doing a lot of reading about the pspice syntax and how different elements are implemented (E's, G's, C's, D's, Tables, Values) and it's just spinning my head marrying the two worlds of visual schematics and the text based pieces.
Here's the subcircuit that I'm working with and trying to dig into:
.subckt vco_sqr in out Params: Fcenter=1k Frange=50 Vmin=1 Vmax=5
+phase=0
Rin in 0 1G
Rtable table 0 1G
Etable table 0 Value {Table(V(in),Vmin,-1,Vmax,1)}
Esin sine 0 value {sin(6.28318*(Fcenter*time+Frange*SDT(V(table)))+phase*(3.14159/180))}
Esqr out 0 table {V(sine)} (0,0) (1n,1)
.ends
The reason I'm looking at this subcircuit is that it looks like a good starting point for a simple PWM controller model. I know that there are PWM models out there, but I'm interested in getting into the nuts and bolts for personal intrigue. Here's a simple boost circuit that I'm trying to place this VCO into.
I placed a second VCVS after the VCO just to boost the gain. I tried modifying the subckt to produce a 10V output, but I keep running into convergence problems which seem to point to the Esqr line. After playing around now for two days I decided to try to break apart the subckt and place it into a visual schematic so that I can observe the waveforms when they fail to converge. Plus, I think it would be an interesting exercise.
Here's the basic layout as I think it looks visually.
What I'm wondering is as follows:
1) Is there a "visual" model that I can put on the schematic that is a dependent voltage source? One that I can write in the equation for the output like is being done inside the Esin or Esqr or Etable lines? I have the generic E model, but that's a four terminal block with only a gain entry.
2) Is there a way to observe the internals of the subckt during simulation? In other words, can I put a 'voltage probe' on Rtable or the sine node inside the vco_sqr subckt?
I am used to doing all of my simulations in the transient domain.
Thanks
I have a subckt model that I'm trying to investigate why it has convergence issues. What I am trying to do is view the internals as waveforms in a transient analysis.
I have been simulating circuits using Orcad pspice and have used the software when it was microsim pspice. I am mostly familiar with the visual editor and have done some work looking at models through the model editor. I have been doing a lot of reading about the pspice syntax and how different elements are implemented (E's, G's, C's, D's, Tables, Values) and it's just spinning my head marrying the two worlds of visual schematics and the text based pieces.
Here's the subcircuit that I'm working with and trying to dig into:
.subckt vco_sqr in out Params: Fcenter=1k Frange=50 Vmin=1 Vmax=5
+phase=0
Rin in 0 1G
Rtable table 0 1G
Etable table 0 Value {Table(V(in),Vmin,-1,Vmax,1)}
Esin sine 0 value {sin(6.28318*(Fcenter*time+Frange*SDT(V(table)))+phase*(3.14159/180))}
Esqr out 0 table {V(sine)} (0,0) (1n,1)
.ends
The reason I'm looking at this subcircuit is that it looks like a good starting point for a simple PWM controller model. I know that there are PWM models out there, but I'm interested in getting into the nuts and bolts for personal intrigue. Here's a simple boost circuit that I'm trying to place this VCO into.
I placed a second VCVS after the VCO just to boost the gain. I tried modifying the subckt to produce a 10V output, but I keep running into convergence problems which seem to point to the Esqr line. After playing around now for two days I decided to try to break apart the subckt and place it into a visual schematic so that I can observe the waveforms when they fail to converge. Plus, I think it would be an interesting exercise.
Here's the basic layout as I think it looks visually.
What I'm wondering is as follows:
1) Is there a "visual" model that I can put on the schematic that is a dependent voltage source? One that I can write in the equation for the output like is being done inside the Esin or Esqr or Etable lines? I have the generic E model, but that's a four terminal block with only a gain entry.
2) Is there a way to observe the internals of the subckt during simulation? In other words, can I put a 'voltage probe' on Rtable or the sine node inside the vco_sqr subckt?
I am used to doing all of my simulations in the transient domain.
Thanks