Version 4 SHEET 1 1180 680 WIRE 320 32 144 32 WIRE 144 80 144 32 WIRE 144 192 144 160 WIRE 320 192 320 32 WIRE 272 272 144 272 WIRE 144 320 144 272 WIRE 144 432 144 400 WIRE 320 432 320 288 WIRE 320 432 144 432 WIRE 144 448 144 432 FLAG 144 448 0 FLAG 144 192 0 SYMBOL voltage 144 304 R0 SYMATTR InstName V1 SYMATTR Value -4 SYMBOL voltage 144 64 R0 SYMATTR InstName V2 SYMATTR Value -5 SYMBOL pmos 272 192 R0 SYMATTR InstName M1 SYMATTR Value IRF9510 SYMATTR Prefix X TEXT 120 -48 Left 2 !.dc V2 0 -5 -10m V1 0 -5 -1 TEXT 120 -88 Left 2 !.include sihf9510.lib TEXT 480 -112 Left 2 ;1. Add a "pmos" device to the schematic.\n \n2. Replace the value PMOS with IRF9510\n on your pmos-transistor in the schematic.\n \n3. Ctrl-right-mouse-click on the transistor\nin your schematic. A dialog window with all\nthe attributes will be shown.\n \n4. Replace the value MP with X.\nThis X tells LTspice that this symbol is for a subciruit.\nOK\n \n5. Add the SPICE-directive into your schematic\n .include sihf9510.lib\n \n6. \nI recommend to keep the model file in the same \nfolder as the schematic. This makes a complete\nbackup of a circuit easier than having this file \nin the installation lib\\sub folder.\nHint, this file may contain many models.