-
Notifications
You must be signed in to change notification settings - Fork 1
/
howto-parallel.tex
277 lines (251 loc) · 12.3 KB
/
howto-parallel.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
\twocolumn[\begin{@twocolumnfalse}
\chapter{Making a Printer cable\hfill\difficulty{3}}
The NABU Personal Computer \texttt{PRINTER} port allows printers with Centronics (parallel) interfaces to be connected. Since the NABU port features a non-standard parallel port connector, either a custom cable or adaptor is required. This section describes both how to wire a cable with a DB-15 connector to a 36-way Centronics printer connector and how to make an adaptor, which allows `standard' printer cables to be used with the NABU.
\vskip1em
\end{@twocolumnfalse}]
\section{NABU Printer cable wiring}
The \texttt{PRINTER} port on the back of the NABU Personal Computer implements a parallel interface. To make a printer cable use the wiring as specified in Table~\ref{tbl:prtcable}. For best performance, the cable should be shielded.
\begin{center}
\sffamily
\begin{tblr}{
colspec={|cccc|},
cell{1}{1} = {c=2}{c},
cell{1}{3} = {c=2}{c},
row{1} = {font=\bfseries},
row{1,2} = {bg=gray4,fg=white},
row{4,6,8,10,12} = {bg=gray9},
vline{3} = {3-11}{text=\clap{$\rightarrow$}},
vline{3} = {12-12}{text=\clap{$\leftarrow$}},
vline{3} = {13-13}{text=\clap{--}},
% vline{3} = {13-13}{text=\clap{$\leftrightarrow$}},
hline{1,3,14} = {solid}
}
NABU (DB-15) & & Printer (Centronics) &\\
Signal & Pin & Pin & Signal \\
$\mathsf{\overline{Strobe}}$ & 1 & 1 & $\mathsf{\overline{Strobe}}$ \\
Data 0 & 2 & 2 & Data 0 \\
Data 1 & 3 & 3 & Data 1 \\
Data 2 & 4 & 4 & Data 2 \\
Data 3 & 5 & 5 & Data 3 \\
Data 4 & 6 & 6 & Data 4 \\
Data 5 & 7 & 7 & Data 5 \\
Data 6 & 8 & 8 & Data 6 \\
Data 7 & 9 & 9 & Data 7 \\
$\mathsf{\overline{Busy}}$ & 11 & 11 & $\mathsf{\overline{Busy}}$ \\
Ground & 15 & 16, 19--30 & Ground \\
\end{tblr}
\captionof{table}{Printer cable wiring.}
\label{tbl:prtcable}
\end{center}
\section{NABU (DB-15) end of the cable}
\label{sec:db15}
\begin{enumerate}
\item Solder the pins of the \underline{male double-row} DB-15 connector as shown in Figure \ref{fig:db15}. Note that the pin numbers shown in the diagram are for the solder side of the connector.
\end{enumerate}
\begin{figure}[h!]
\begin{center}
\scalebox{0.175}{
\begin{tikzpicture}[font=\sffamily]
\draw[rounded corners=2cm,line width=6mm] (0, 0) rectangle (31,10) {};
\draw[line width=4mm] (3,5) circle (1.4cm);
\draw[line width=4mm] (28,5) circle (1.4cm);
\draw[line width=1mm] (7,8) -- (24,8);
\draw[line width=1mm] (8,2) -- (23,2);
\draw[line width=1mm] (6,7) -- (7,3);
\draw[line width=1mm] (25,7) -- (24,3);
\draw[line width=1mm] (6,7) to[out=102,in=180,distance=22] (7,8);
\draw[line width=1mm] (7,3) to[out=-78,in=180,distance=22] (8,2);
\draw[line width=1mm] (23,2) to[out=0,in=-102,distance=22] (24,3);
\draw[line width=1mm] (25,7) to[out=78,in=0,distance=22] (24,8);
\draw[line width=1mm] (7,8.5) -- (24,8.5);
\draw[line width=1mm] (8,1.5) -- (23,1.5);
\draw[line width=1mm] (5.5,7) -- (6.5,3);
\draw[line width=1mm] (25.5,7) -- (24.5,3);
\draw[line width=1mm] (5.5,7) to[out=102,in=180,distance=30] (7,8.5);
\draw[line width=1mm] (6.5,3) to[out=-78,in=180,distance=30] (8,1.5);
\draw[line width=1mm] (23,1.5) to[out=0,in=-102,distance=30] (24.5,3);
\draw[line width=1mm] (25.5,7) to[out=78,in=0,distance=30] (24,8.5);
\foreach \p\k [count=\q from 0] in {
{Data~6}/{Ground},{Data~5}/{},{Data~4}/{},{Data~3}/{},{Data~2}/{$\mathsf{\overline{Busy}}$},{Data~1}/{},{Data~0}/{Data~7},{$\mathsf{\overline{Strobe}}$}/{}} {
\draw[line width=1mm] (8.4+\q*2,6.2) circle (4mm);
\ifthenelse{\q<7}{\draw[line width=1mm] (9.4+\q*2,3.8) circle (4mm); }{}
\foreach \x in \p {
\draw[line width=1mm,red] (8.4+\q*2,6.6) -- ++(0,6);
\draw (8.4+\q*2,14.8) node[rotate=-90,scale=4]{\p};
}{}
\foreach \x in \k {
\draw[line width=1mm,red] (9.4+\q*2,3.4) -- ++(0,-6);
\draw (9.4+\q*2,-4.8) node[rotate=-90,scale=4,text width=1cm]{\k};
}
\draw (7.4,6.6) node[scale=3,gray]{8};
\draw (23.45,6.6) node[scale=3,gray]{1};
\draw (8.4,3.4) node[scale=3,gray]{15};
\draw (22.45,3.4) node[scale=3,gray]{9};
}
\end{tikzpicture} }
\caption[DB-15 male connector pinouts.]{DB-15 male connector (solder side).}
\label{fig:db15}
\end{center}
\end{figure}
\newpage
\begin{figure}[h!]
\begin{center}
\scalebox{0.175}{
\begin{tikzpicture}[font=\sffamily]
\draw[line width=6mm] (40,19) -- ++(-40,0) -- ++(0,-19) -- ++(40,0);
\draw[line width=1mm,decorate,decoration={saw,segment length=45mm,amplitude=10mm}] (40,0) -- ++(0,19);
\draw[line width=2mm,fill=white] (3,8) rectangle (18,16);
\draw[line width=2mm,fill=white] (21,8) rectangle (36,16);
\draw[line width=1mm,fill=white] (2.5,12) circle (4mm);
\draw[line width=1mm,fill=white] (18.5,12) circle (4mm);
\draw[line width=1mm,fill=white] (20.5,12) circle (4mm);
\draw[line width=1mm,fill=white] (36.5,12) circle (4mm);
\draw[line width=2mm,fill=white] (7,5) circle (15mm);
\draw[line width=2mm,fill=white] (32,5) circle (15mm);
\node[black,scale=4] at (7,2) {ADAPTOR};
\node[black,scale=4] at (32,2) {KEYBOARD};
\draw[line width=2mm,color=red,fill=white] (16,3.7) rectangle (22,5.5); \node[black,scale=4,] at (19,2) {PRINTER};
\end{tikzpicture}
}
\caption[Printer port position.]{NABU Personal Computer \texttt{PRINTER} port.}
\label{fig:backprt}
\end{center}
\end{figure}
\section{Printer (Centronics) end of the cable}
\begin{enumerate}
\item Solder the pins of the \underline{male} Centronics connector as shown in Figure \ref{fig:centronics}. Note that the pin numbers shown in the diagram are for the solder side of the connector.\\
\end{enumerate}
\begin{figure}[h!]
\begin{center}
\scalebox{0.18}{
\begin{tikzpicture}[font=\sffamily]
\draw[rounded corners=1cm,line width=6mm] (.5, -.5) rectangle (34.5,10.5) {};
\fill[color=black!80,line width=1mm] (-3,9.75) to[out=180,in=90] (-4,9) to[out=-90,in=135] (-3.5,8.25) -- (-2,6.75) to[out=-45,in=225] (-1.5,6.75) to[out=45,in=90,distance=22] (-0.5,6.75) -- (-0.5,3.25) to[out=-90,in=-45,distance=22] (-1.5,3.25) to [out=-225,in=45] (-2,3.25) -- (-3.5,1.75) to[in=90,out=-135] (-4,1) to[in=180,out=270] (-3,0.25) --
(38,0.25) to [in=270,out=0] (39,1) to[in=135,out=90] (38.5,1.75) -- (37,3.25) to[in=45,out=135] (36.5,3.25) to[in=-90,out=-135,distance=22] (35.5,3.25) -- (35.5,6.75) to[in=135,out=90,distance=22] (36.5,6.75) to [in=-135,out=-45] (37,6.75) -- (38.5,8.25) to[in=-90,out=-135] (39,9) to[in=0,out=90] (38,9.75) -- cycle;
\fill[line width=1mm,color=white] (3,8.5) -- (32,8.5) to[out=0,in=78,distance=30] (33.5,7) -- (32.5,3) to[in=0,out=-102,distance=30] (31,1.5) -- (4,1.5) to[in=-78,out=180,distance=30] (2.5,3) -- (1.5,7) to[out=102,in=180,distance=30] (3,8.5);
\draw[line width=1mm] (3,8) -- (32,8);
\draw[line width=1mm] (4,2) -- (31,2);
\draw[line width=1mm] (2,7) -- (3,3);
\draw[line width=1mm] (33,7) -- (32,3);
\draw[line width=1mm] (2,7) to[out=102,in=180,distance=22] (3,8);
\draw[line width=1mm] (3,3) to[out=-78,in=180,distance=22] (4,2);
\draw[line width=1mm] (31,2) to[out=0,in=-102,distance=22] (32,3);
\draw[line width=1mm] (33,7) to[out=78,in=0,distance=22] (32,8);
\fill[fill=black!50] (4,3.7) rectangle (31,6.3);
\foreach \x in {0,1,...,11} {
\draw[line width=1mm,red] (13.7+\x*1.5,3.4) -- ++(0,-5.25);
}
\draw[line width=1mm,red] (9.2,-1.85) -- ++(21,0);
\foreach \p\k [count=\q from 0] in {
{}/{},{Shield}/{},{Ground}/{},{}/{Ground},{}/{},{}/{},{}/{},{$\mathsf{\overline{Busy}}$}/{},{}/{},{Data~7}/{},{Data~6}/{},{Data~5}/{},{Data~4}/{},{Data~3}/{},{Data~2}/{},{Data~1}/{},{Data~0}/{},{$\mathsf{\overline{Strobe}}$}/{}}{
\foreach \x in \p {
\draw[line width=1mm,red] (4.7+\q*1.5,6.6) -- ++(0,6);
\draw (4.7+\q*1.5,14.8) node[rotate=-90,scale=4]{\p};
}{}
\foreach \x in \k {
\draw[line width=1mm,red] (4.7+\q*1.5,3.4) -- ++(0,-6);
\draw (4.7+\q*1.5,-4.8) node[rotate=-90,scale=4,text width=1cm]{\k};
}
\draw[line width=1mm,fill=white] (4.4+\q*1.5,5.5) rectangle (5+\q*1.5,7);
\draw[line width=1mm,fill=white] (4.4+\q*1.5,4.5) rectangle (5+\q*1.5,3);
}
\draw (3.4,6.6) node[scale=3,gray]{18};
\draw (31.45,6.6) node[scale=3,gray]{1};
\draw (3.4,3.4) node[scale=3,gray]{36};
\draw (31.45,3.4) node[scale=3,gray]{19};
\end{tikzpicture}
}
\caption[Centronics male connector pinouts.]{Centronics male connector (solder side).}
\label{fig:centronics}
\end{center}
\end{figure}
\newpage
\section{NABU Printer Adaptor wiring}
To make an adaptor cable that allows the use of standard parallel printer cables use the wiring as specified in Table~\ref{tbl:prtadaptor}. The DB-15 connector (at the NABU end) should be wired as described in section \ref{sec:db15} on page \pageref{sec:db15}.
\begin{center}
\sffamily
\begin{tblr}{
colspec={|cccc|},
cell{1}{1} = {c=2}{c},
cell{1}{3} = {c=2}{c},
row{1} = {font=\bfseries},
row{1,2} = {bg=gray4,fg=white},
row{4,6,8,10,12} = {bg=gray9},
vline{3} = {3-11}{text=\clap{$\rightarrow$}},
vline{3} = {12-12}{text=\clap{$\leftarrow$}},
vline{3} = {13-13}{text=\clap{--}},
hline{1,3,14} = {solid}
}
NABU (DB-15) & & Adaptor (DB-25) &\\
Signal & Pin & Pin & Signal \\
$\mathsf{\overline{Strobe}}$ & 1 & 1 & $\mathsf{\overline{Strobe}}$ \\
Data 0 & 2 & 2 & Data 0 \\
Data 1 & 3 & 3 & Data 1 \\
Data 2 & 4 & 4 & Data 2 \\
Data 3 & 5 & 5 & Data 3 \\
Data 4 & 6 & 6 & Data 4 \\
Data 5 & 7 & 7 & Data 5 \\
Data 6 & 8 & 8 & Data 6 \\
Data 7 & 9 & 9 & Data 7 \\
$\mathsf{\overline{Busy}}$ & 11 & 11 & $\mathsf{\overline{Busy}}$ \\
Ground & 15 & 18--35 & Ground \\
\end{tblr}
\captionof{table}{Printer adaptor wiring.}
\label{tbl:prtadaptor}
\end{center}
\section{Adaptor (DB-25) end of the cable}
\label{sec:db25}
\begin{enumerate}
\item Solder the pins of a \underline{female} DB-25 connector as shown in Figure \ref{fig:db25}. Note that the pin numbers shown in the diagram are for the solder side of the connector.
\end{enumerate}
\begin{figure}[h!]
\begin{center}
\scalebox{0.175}{
\begin{tikzpicture}[font=\sffamily]
\draw[rounded corners=2cm,line width=6mm] (0, 0) rectangle (41,10) {};
\draw[line width=4mm] (3,5) circle (1.4cm);
\draw[line width=4mm] (38,5) circle (1.4cm);
\draw[line width=1mm] (7,8) -- (34,8);
\draw[line width=1mm] (8,2) -- (33,2);
\draw[line width=1mm] (6,7) -- (7,3);
\draw[line width=1mm] (35,7) -- (34,3);
\draw[line width=1mm] (6,7) to[out=102,in=180,distance=22] (7,8);
\draw[line width=1mm] (7,3) to[out=-78,in=180,distance=22] (8,2);
\draw[line width=1mm] (33,2) to[out=0,in=-102,distance=22] (34,3);
\draw[line width=1mm] (35,7) to[out=78,in=0,distance=22] (34,8);
\draw[line width=1mm] (7,8.5) -- (34,8.5);
\draw[line width=1mm] (8,1.5) -- (33,1.5);
\draw[line width=1mm] (5.5,7) -- (6.5,3);
\draw[line width=1mm] (35.5,7) -- (34.5,3);
\draw[line width=1mm] (5.5,7) to[out=102,in=180,distance=30] (7,8.5);
\draw[line width=1mm] (6.5,3) to[out=-78,in=180,distance=30] (8,1.5);
\draw[line width=1mm] (33,1.5) to[out=0,in=-102,distance=30] (34.5,3);
\draw[line width=1mm] (35.5,7) to[out=78,in=0,distance=30] (34,8.5);
\foreach \p\k [count=\q from 0] in {
{$\mathsf{\overline{Strobe}}$}/{},{Data~0}/{},{Data~1}/{},{Data~2}/{},{Data~3}/{Ground},{Data~4}/{},{Data~5}/{},{Data~6}/{},
{Data~7}/{},{}/{},{$\mathsf{\overline{Busy}}$}/{},{}/{},{}/{}} {
\fill[line width=1mm] (8.4+\q*2,6.2) circle (4mm);
\ifthenelse{\q<12}{\fill[line width=1mm] (9.4+\q*2,3.8) circle (4mm); }{}
\foreach \x in \p {
\draw[line width=1mm,red] (8.4+\q*2,6.6) -- ++(0,6);
\draw (8.4+\q*2,14.8) node[rotate=-90,scale=4]{\p};
}{}
\foreach \x in \k {
\draw[line width=1mm,red] (9.4+\q*2,3.4) -- ++(0,-6);
\draw (9.4+\q*2,-4.8) node[rotate=-90,scale=4,text width=1cm]{\k};
}
\draw (7.4,6.6) node[scale=3,gray]{1};
\draw (33.45,6.6) node[scale=3,gray]{13};
\draw (8.4,3.4) node[scale=3,gray]{14};
\draw (32.45,3.4) node[scale=3,gray]{25};
}
\foreach \x in {0,1,...,6} {
\draw[line width=1mm,red] (19.4+\x*2,3.4) -- ++(0,-5.25);
}
\draw[line width=1mm,red] (17.4,-1.85) -- ++(14,0);
\end{tikzpicture}
}
\caption[DB-25 female connector pinouts.]{DB-25 female connector (solder side).}
\label{fig:db25}
\end{center}
\end{figure}