Elenco Electronics MO-1251 Manual do Utilizador Página 76

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 100
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 75
82
2
2
3
3
4
4
5 5
6 6
7
7
8
8
9 9
10
10
11
11
12
12
13
13
14
14
15
32
16
31
17
36
19
19
25
30
25 -PIN
D
CONNECTOR
(MALE)
II
36 -PIN
CENTRONICS
PARALLEL
PRINTER
CONNECTOR
(FEMALE)
Fig. 5.
ADAPTER for testing a standard
printer cable with a male Centronics
plug on one end.
connector, strip back the outer
cable jacket about
11/2
inches.
ex-
posing
the 15 wires. Then strip ' /8
inch of insulation from 13 of
the
wires,
and cut off the remaining
two wires. Tin
each of the ex-
posed
ends. Repeat the process
for
the other end of the cable, but
strip
4 inches
of outer jacket and
3/8 of an inch of insulation
from
each wire. The wires
on the con-
nector end
are soldered to the 13
pins
of
P1
as shown in Fig. 4.
The
wires on the
other end are inser-
ted into the
appropriate points
on the breadboard.
Cut forty -eight 4 -inch lengths
of no. 22 solid wire,
stripping '/8
of an inch of insulation from
one
end and :' /8
of an inch of insula-
tion
from the other. Solder the Vs-
inch stripped end of a wire
to pin
1 of
J1.
Repeat
that
process
for
pins 2 -24 of
J1 and pins 1 -24 of
J2
(J1 and
J2 are standard 25-
pin
"D" connectors). Make a
bracket out of a piece of
alumi-
num
and then mount J1 and
J2
on the bracket. Finally, insert
the
free end of
each of the
forty
eight
wires into
the appropriate points
on the
breadboard.
The three
AA batteries are
LISTING 1
1 REM" PC Cable
Tester Program
2 REM'. Name: PCCABLE
3 REM.. (c) 1987 J.J. Barbarello
4 REM'. V871017
10
DEF SEO =64:KEY OFF:DEFINT
I,O:DIM I(5761,0(576)
20 CLS:CNT
=1:PRINT TAB(30) ;'P.C.
CABLE
TESTER':PRINT
STRINGa(79,223)
30
LOCATE 4,15:PRINT STRINOS(50,32):LOCATE 4,15:LINE INPUT'How many
wires
in
the cable
(1-
24)7... ';NLa:NL
=VAL(NLa)
40 IF NL (1 OR NL)24 THEN 20
50
N1 =INT(NL /8):N2 =NL
MOD 8:IF 112 =0 THEN N2 =7 ELSE N2 =N2 -1
60 LOCATE 6,18,O:PRINT'Checking
for
Connections
on Line:'
90 T =TIlIER
100 FOR I =1 TO NL
110
IF I =1
THEN OUT
890,5 ELSE IF I =9 THEN OUT 890,6 ELSE IF I =17 THEN OUT
890,0
120 OUT 888,1I
-1) AND
7:LOCATE
6,52:PRINT USINO'ee';I
130 GOSUB 250:NEXT
I
140 CLS:PRINT TAB(301;'P.C. CABLE TESTER':PRINT STRING /(79,223)
150
LOCATE
3,22,1:PRINT USINO'Test
Completed in
gee.*
seconds.';TIMER -T
160 IF CNT =1
THEN
LOCATE
5,28:PRINT110 CONNECTIONS FOUND.':GOTO 190
170
LOCATE 5,1:PRINT'CONNECTION FOUND BETWEEN
THE
FOLLOWING
INPUT AND
OUTPUT
LINES
(IN/OUT):'
180 FOR I=0 TO CNT- 2:LOCATE
(I
MOD
10)+7,INT(I
/10)'10.1:PRINT
USINO'ee
/ee';
I(I+1);0(I+1) ;:NEXT
I
190
LOCATE
18,27:PRINT'Another
Test (Y
/N)'...
;
200 WS
=INPUTS(1):WS
=CHR$(ASC(WS) AND
223):IF
WSO'Y'
AND
WS()'N'
THEN 200
210 PRINT
WS:IF
WS ='Y' THEN
20
220
LOCATE
18,27:PRINT'PC
CABLE TESTER OFF LINE.
230 OUT 888,O:OUT 890,238:END:REMe TURN
EVERYTHING OFF BEFORE
ENDING
240 REM" SUBROUTINE
TO CHECK EACH INPUT LINE
250 L1 =7:IF NL(8 THEN
L1
=N2
260 MASK
=192:C=1:FOR L =0 TO L1:OUT 888,(MASK+L'8+(INP(8881
AND
7)):00SUB
310:
NEXT
L:IF NL(9 THEN RETURN
270 L1 =7:IF
NL(16 THEN L1 =N2
280 MASK =128:C
=9:FOR L =0 TO L1:OUT 888,(MASK +L'8.(INP(888) AND 7)1:00SUB
310:
NEXT L:IF NL(17
THEN
RETURN
290 MASK
=64:C
=17:FOR
L =0 TO N2:OUT 888,(MASK.L8.(INP(888) AND 7)):GOSUB
310:
NEXT
L:RETURN
300
REM'. SUBROUTINE TO CHECK FOR CONTINUITY
310 IF (INP(880) AND
128) =128
THEN
RETURN
320
IF (INP(889) AND 128)0 0 THEN LOCATE 10,1:PRINT'"
ERROR " ':STOP
330 I( CNT ) =I:0(CNT)=L+C:CNT =CNT+1:RETURN
housed
in a
standard battery
holder. You
can use a power
switch, but it's just as
easy to in-
sert or remove
the
+V
battery
wire
to the breadboard.
The
breadboard.
batteries
and
bracket
can be mounted
on a
plywood
base.
To test a cable without
25 -pin D
connectors,
make a suitable
adapter.
One end of the
adapter
will
be a 25
pin
"D"
plug. The
other end will
have a mating
con-
nector for the
cable to be tested.
These
two connectors are
then
attached. An adapter for
a 36 -pin
Centronics connector
is shown
in Fig.
5.
Operation
Type in and
save the
BASIC
program
shown
in Listing 1 (or
download
PCCABLE. BAS
from
the RE -BBS
-516- 293 -3000).
At-
tach
the cable
tester to your PC's
printer port
and then run
the
program.
Connect the cable
to be
tested to the input
and output
jacks of
the tester. When the pro-
gram
asks How
many
wires in
the
cable (1 -24) ?, enter
the ap-
propriate
number;
if you're not
sure,
enter 24. The program
will
then
check all possible
combina-
tions of lines
and
give
you a list
of
connections found.
Each item in
the list is of the
form
1/1, meaning
that pin 1 of
the connector
that is attached to
the tester's input
is connected to
pin
1 of the other connector
at the
tester's
output. On a standard
4.77 -MHz
PC, it takes about
10
seconds
to test all 24 lines in
all
Fig. 6. The completed ruble
tester. Con-
struction
is not critical. and a prototyp-
ing board should
give good
results.
576 combinations;
testing fewer
lines
decreases the test time.
Compiling the
program reduces
test time considerably..CD«
Vista de página 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 99 100

Comentários a estes Manuais

Sem comentários