Version 4 SHEET 1 1180 680 WIRE 320 -32 144 -32 WIRE 144 16 144 -32 WIRE 144 128 144 96 WIRE 320 128 320 -32 WIRE 272 208 144 208 WIRE 144 256 144 208 WIRE 144 368 144 336 WIRE 320 368 320 224 WIRE 320 368 144 368 WIRE 144 384 144 368 FLAG 144 384 0 FLAG 144 128 0 SYMBOL voltage 144 240 R0 SYMATTR InstName V1 SYMATTR Value -4 SYMBOL voltage 144 0 R0 SYMATTR InstName V2 SYMATTR Value -5 SYMBOL pmos 272 128 R0 SYMATTR InstName M1 SYMATTR Value IRF9510 SYMATTR Prefix X TEXT 120 -112 Left 2 !.dc V2 0 -5 -10m V1 0 -5 -1 TEXT 120 -152 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.