home *** CD-ROM | disk | FTP | other *** search
- '**************************************
- '
- ' C-Control/BASIC TRMESS.BAS
- '
- ' Aufgabe:
- '
- ' - Transistorpruefung
- ' - Identifizierung NPN/PNP
- ' - Identifizierung E, B, C
- '
- '**************************************
- ' --- Definitionen --------------------
-
- define P1 port[1]
- define P2 port[2]
- define P3 port[3]
- define E1 AD[1]
- define E2 AD[2]
- define E3 AD[3]
-
- ' --- Programmoperationen -------------
-
- #Loop
- P1=0: P2=0: P3=1
- pause 2
- if abs(E1-E3)<5 then print "PNP C B E"
- if abs(E2-E3)<5 then print "PNP B C E"
- P1=0: P2=1: P3=0
- pause 2
- if abs(E1-E2)<5 then print "PNP C E B"
- if abs(E3-E2)<5 then print "PNP B E C"
- P1=0: P2=1: P3=1
- pause 2
- if abs(E3-E1)<5 then print "NPN E B C"
- if abs(E2-E1)<5 then print "NPN E C B"
- P1=1: P2=0: P3=0
- pause 2
- if abs(E2-E1)<5 then print "PNP E C B"
- if abs(E3-E1)<5 then print "PNP E B C"
- P1=1: P2=0: P3=1
- pause 2
- if abs(E1-E2)<5 then print "NPN C E B"
- if abs(E3-E2)<5 then print "NPN B E C"
- P1=1: P2=1: P3=0
- pause 2
- if abs(E1-E3)<5 then print "NPN C B E"
- if abs(E2-E3)<5 then print "NPN B C E"
- pause 20
- goto Loop 'Endlosschleife
- end
-
-
-
-
-
-