Download 31295003447074
Transcript
87 The SPICE code is. SPICE CODE .MODEL DM1 D IS= l.OE-06 N=0.97 + VIN 4 0 SIN(0 10 60) VK21 1 5 0 VK22 2 6 0 Rl 4 1 5 Cl 1 2 lU Dl 5 2 DM1 C2 2 0 IM LI 6 3 0.1 C3 3 0 IM RL 3 0 IK .TRAN lOM 200M Recall that the test points are IDl, ILl and VRL. In order to measure the current flow through Dl, a zero-valued voltage source, VK21, is added and a new node, node 5, is assigned to the circuit diagram. The current flows through the voltage source VK21, I(VK21), is then equal to IDl. Similarly, a zero-valued voltage source and node 6 are added to the circuit diagram for ILl. SPICE Code for the External Input of "Pseudo Circuit": The external input of pseudo circuit U^ = col [u I y] = col [VIN | IDl ILl VRL] That is, u. = VIN = V(4,0) --- the voltage at node 5. y, = IDl = I(VK21) --- the current flows through VK21. y^ = ILl = I(VK22) --- the current flows through VK22. y^ = VRL = V(3,0) --- the voltage at node 3. Therefore, the SPICE code is generated and stored in a file named SOURCE.DT,