| 1 |
%% |
| 2 |
%% This is file `cibimos.mf', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% circ.dtx (with options: `csybimos') |
| 8 |
%% CIRC is a LaTeX package to typeset circuit and optics diagrams. |
| 9 |
%% Copyright (C) 1997,1998,2003 Sebastian Tannert and Andreas Tille |
| 10 |
%% |
| 11 |
%% This program is free software; you can redistribute it and/or modify |
| 12 |
%% it under the terms of the GNU General Public License as published by |
| 13 |
%% the Free Software Foundation; either version 2 of the License, or |
| 14 |
%% (at your option) any later version. |
| 15 |
%% |
| 16 |
%% This program is distributed in the hope that it will be useful, |
| 17 |
%% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
%% GNU General Public License for more details. |
| 20 |
%% |
| 21 |
%% You should have received a copy of the GNU General Public License |
| 22 |
%% along with this program; if not, write to the Free Software |
| 23 |
%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 24 |
%% |
| 25 |
%% For error reports concerning UNCHANGED versions of this file no |
| 26 |
%% more than one year old, see CIRC.DVI after installation. |
| 27 |
%% If installation fails search thru this file for 'bug'. |
| 28 |
font_identifier:="cibimos"; |
| 29 |
|
| 30 |
string optionname; optionname:=""; |
| 31 |
|
| 32 |
input defcirc.mf; |
| 33 |
|
| 34 |
input csym; |
| 35 |
designsize:=1lLE#; |
| 36 |
|
| 37 |
def mosfet = % ok |
| 38 |
z0=(0,0); |
| 39 |
x1=x2=x3=x4; |
| 40 |
y2-y1=mos_SD; |
| 41 |
y4-y3=mos_sd; |
| 42 |
.5[z2,z1]=.5[z4,z3]; |
| 43 |
y6=y4; y7=y3; |
| 44 |
x4-x6=x3-x7; |
| 45 |
.5[z8,z9]=.5[z6,z7]=z5; |
| 46 |
x9=x8; |
| 47 |
y8-y6=mos_soSD; |
| 48 |
x10=x11; |
| 49 |
x0+mos_Gsub=x10+mos_ox=x7; |
| 50 |
x1-x0=mos_GSx; |
| 51 |
y0=y10=y1+mos_GSy; |
| 52 |
y6-y11=y10-y7; |
| 53 |
z12=.5[z1,z2]; |
| 54 |
z6=.5[z13,z8]; |
| 55 |
z7=.5[z14,z9]; |
| 56 |
z15-z16=z8-z13; |
| 57 |
z5=.5[z15,z16]; |
| 58 |
pickup pencircle scaled mos_rad; |
| 59 |
drawdot round(z3); |
| 60 |
pickup pensquare scaled normalline; |
| 61 |
draw z1--z3--z7; |
| 62 |
draw z2--z4--z6; |
| 63 |
draw z0--z10--z11; |
| 64 |
draw z5--z12--z3; |
| 65 |
pickup pensquare scaled thickline; |
| 66 |
enddef; |
| 67 |
|
| 68 |
def mosfet_V = % ok |
| 69 |
mosfet; |
| 70 |
draw z8--z9; |
| 71 |
enddef; |
| 72 |
|
| 73 |
def mosfet_A = % ok |
| 74 |
mosfet; |
| 75 |
draw z8--z13; |
| 76 |
draw z9--z14; |
| 77 |
draw z15--z16; |
| 78 |
enddef; |
| 79 |
|
| 80 |
def fet = % ok |
| 81 |
z0=(0,0); |
| 82 |
z1=z0+(fet_Gsub,0); |
| 83 |
y2=y1; |
| 84 |
x2=x3=x4=x0+fet_GSx; |
| 85 |
y3=y2-fet_GSy; |
| 86 |
z2-z3=z4-z5; |
| 87 |
y4-y3=fet_SD; |
| 88 |
y6=y5; |
| 89 |
x1=x6; |
| 90 |
x8=x7; |
| 91 |
y8=y1-fet_soSD; |
| 92 |
.5[z4,z3]=.5[z5,z2]; |
| 93 |
.5[z7,z8]=.5[z1,z6]; |
| 94 |
z9=z1-(fet_sarr+tri_lt,0); |
| 95 |
pickup pensquare scaled normalline; |
| 96 |
draw z0--z1--z2--z3; |
| 97 |
draw z6--z5--z4; |
| 98 |
pickup pensquare scaled thickline; |
| 99 |
draw z7--z8; |
| 100 |
enddef; |
| 101 |
|
| 102 |
def transistor_without_basis = % "uberarbeiten |
| 103 |
numeric pl; |
| 104 |
pl:=.5(tst_ht-tst_iht); |
| 105 |
z1-z2=(0,tst_iht); |
| 106 |
z0=.5[z1,z2]; |
| 107 |
z3=tst_fac[z0,z1]; |
| 108 |
z4=tst_fac[z0,z2]; |
| 109 |
z5=z1+(tst_wd,0); |
| 110 |
z6=z2+(tst_wd,0); |
| 111 |
z7=z5+(0,pl); |
| 112 |
z8=z6+(0,-pl); |
| 113 |
z9=tst_dis[z4,z6]; |
| 114 |
pickup pensquare scaled normalline; |
| 115 |
draw z1--z2; |
| 116 |
draw z3--z5--z7; |
| 117 |
draw z4--z6--z8; |
| 118 |
pickup pencircle scaled thinline; |
| 119 |
triangle(z9,tst_rad,tri_phi,angle(z6-z4)); |
| 120 |
enddef; |
| 121 |
|
| 122 |
def npn_no_basis = % "uberarbeiten |
| 123 |
numeric tst_rad,tst_dis; |
| 124 |
tst_rad:=-tri_lt; |
| 125 |
tst_dis:=npn_dis; |
| 126 |
z0=(0,0); |
| 127 |
transistor_without_basis; |
| 128 |
enddef; |
| 129 |
|
| 130 |
def npn_photo = % "uberarbeiten |
| 131 |
numeric pl; |
| 132 |
z0=(0,0); |
| 133 |
pl:=.5(tst_ht-tst_iht); |
| 134 |
y0=y1=y2=y3; |
| 135 |
x1=x0+tst_ht; |
| 136 |
x2-x0=x1-x3=pl; |
| 137 |
y5=y4=y6=y7=y8=y0+tst_wd; |
| 138 |
x5-x6=tst_iht; |
| 139 |
x4=.5[x5,x6]=.5[x0,x1]; |
| 140 |
x7=tst_fac[x4,x5]; |
| 141 |
x8=tst_fac[x4,x6]; |
| 142 |
z9=tst_dis[z2,z8]; |
| 143 |
pickup pensquare scaled normalline; |
| 144 |
draw z0--z2--z8--z7--z3--z1; |
| 145 |
draw z5--z6; |
| 146 |
pickup pencircle scaled thinline; |
| 147 |
triangle(z9,tst_rad,tri_phi,angle(z8-z2)); |
| 148 |
enddef; |
| 149 |
|
| 150 |
def pnp_no_basis = % "uberarbeiten |
| 151 |
numeric tst_rad,tst_dis; |
| 152 |
tst_rad:=tri_lt; |
| 153 |
tst_dis:=pnp_dis; |
| 154 |
z0=(0,0); |
| 155 |
transistor_without_basis; |
| 156 |
enddef; |
| 157 |
|
| 158 |
def npn = % "uberarbeiten |
| 159 |
numeric tst_rad,tst_dis; |
| 160 |
tst_rad:=-tri_lt; |
| 161 |
tst_dis:=npn_dis; |
| 162 |
z0=(tst_wd,0); |
| 163 |
z20=(0,0); |
| 164 |
transistor_without_basis; |
| 165 |
pickup pensquare scaled normalline; |
| 166 |
draw z20--z0; |
| 167 |
enddef; |
| 168 |
|
| 169 |
def pnp = % "uberarbeiten |
| 170 |
numeric tst_rad,tst_dis; |
| 171 |
tst_rad:=tri_lt; |
| 172 |
tst_dis:=pnp_dis; |
| 173 |
z0=(tst_wd,0); |
| 174 |
z20=(0,0); |
| 175 |
transistor_without_basis; |
| 176 |
pickup pensquare scaled normalline; |
| 177 |
draw z20--z0; |
| 178 |
enddef; |
| 179 |
|
| 180 |
"Transistor NPN ohne Basis"; |
| 181 |
eightchars(0) |
| 182 |
(npn_no_basis) |
| 183 |
(tst_wd#,.5tst_ht#,.5tst_ht#,0); |
| 184 |
|
| 185 |
"Transistor PNP ohne Basis"; |
| 186 |
eightchars(8) |
| 187 |
(pnp_no_basis) |
| 188 |
(tst_wd#,.5tst_ht#,.5tst_ht#,0); |
| 189 |
|
| 190 |
"Transistor NPN"; |
| 191 |
eightchars(16) |
| 192 |
(npn) |
| 193 |
(tst_wd#+tst_wd#,.5tst_ht#,.5tst_ht#,0); |
| 194 |
|
| 195 |
"Transistor PNP"; |
| 196 |
eightchars(24) |
| 197 |
(pnp) |
| 198 |
(tst_wd#+tst_wd#,.5tst_ht#,.5tst_ht#,0); |
| 199 |
|
| 200 |
"FET n-Kanal"; |
| 201 |
eightchars(32) |
| 202 |
(fet; |
| 203 |
pickup pencircle scaled thinline; |
| 204 |
triangle(z1,tri_lt,tri_phi,180); |
| 205 |
) |
| 206 |
(fet_GSx#,fet_GSy#,fet_SD#-fet_GSy#,0); |
| 207 |
|
| 208 |
"FET p-Kanal"; |
| 209 |
eightchars(40) |
| 210 |
(fet; |
| 211 |
pickup pencircle scaled thinline; |
| 212 |
triangle(z9,tri_lt,tri_phi,0); |
| 213 |
) |
| 214 |
(fet_GSx#,fet_GSy#,fet_SD#-fet_GSy#,0); |
| 215 |
|
| 216 |
"MOSFET n-Kanal V"; |
| 217 |
eightchars(48) |
| 218 |
(mosfet_V; |
| 219 |
pickup pencircle scaled thinline; |
| 220 |
triangle(z5,tri_lt,tri_phi,0); |
| 221 |
) |
| 222 |
(mos_GSx#,mos_GSy#,mos_SD#-mos_GSy#,0); |
| 223 |
|
| 224 |
"MOSFET p-Kanal V"; |
| 225 |
eightchars(56) |
| 226 |
(mosfet_V; |
| 227 |
pickup pencircle scaled thinline; |
| 228 |
triangle(z12,tri_lt,tri_phi,180); |
| 229 |
) |
| 230 |
(mos_GSx#,mos_GSy#,mos_SD#-mos_GSy#,0); |
| 231 |
|
| 232 |
"MOSFET n-Kanal A"; |
| 233 |
eightchars(64) |
| 234 |
(mosfet_A; |
| 235 |
pickup pencircle scaled thinline; |
| 236 |
triangle(z5,tri_lt,tri_phi,0); |
| 237 |
) |
| 238 |
(mos_GSx#,mos_GSy#,mos_SD#-mos_GSy#,0); |
| 239 |
|
| 240 |
"MOSFET p-Kanal A"; |
| 241 |
eightchars(72) |
| 242 |
(mosfet_A; |
| 243 |
pickup pencircle scaled thinline; |
| 244 |
triangle(z12,tri_lt,tri_phi,180); |
| 245 |
) |
| 246 |
(mos_GSx#,mos_GSy#,mos_SD#-mos_GSy#,0); |
| 247 |
|
| 248 |
current_char_code:=80; |
| 249 |
|
| 250 |
twopincharfourfour("npnPH")("T")("E")("C")("photo transistor") |
| 251 |
(tst_ht#,tst_wd#+1.6lLE#,0) |
| 252 |
( |
| 253 |
shiftpoint:=z1; |
| 254 |
npn_photo; |
| 255 |
lightarrows(z4+(.8lLE,1.7lLE),240); |
| 256 |
) |
| 257 |
|
| 258 |
end; |
| 259 |
%% |
| 260 |
%% |
| 261 |
%% End of file `cibimos.mf'. |