Version 4 SHEET 1 1236 680 WIRE 304 -32 128 -32 WIRE 128 16 128 -32 WIRE 128 128 128 96 WIRE 304 128 304 -32 WIRE 256 208 128 208 WIRE 128 256 128 208 WIRE 128 368 128 336 WIRE 304 368 304 224 WIRE 304 368 128 368 WIRE 128 384 128 368 FLAG 128 384 0 FLAG 128 128 0 SYMBOL voltage 128 240 R0 SYMATTR InstName V1 SYMATTR Value -1 SYMBOL voltage 128 0 R0 SYMATTR InstName V2 SYMATTR Value -5 SYMBOL nmos 256 128 R0 SYMATTR InstName M1 SYMATTR Value IRLZ34N SYMATTR Prefix X TEXT 104 -120 Left 2 !.dc V2 0 5 10m V1 2.5 3.5 0.5 TEXT 104 -168 Left 2 !.include irlz34n.spi TEXT 512 -168 Left 2 ;1. Add a "nmos" device to the schematic.\n \n2. Replace the value NMOS with IRLZ34N\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 MN 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 irlz34n.spi\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, an included file may contain many models.