Mercurial > hg > Members > kono > nitros9-code
annotate docs/nitros9guide/acia51.appendix @ 682:d12f1a5c5e31
Made source enhancements
author | boisy |
---|---|
date | Sun, 29 Dec 2002 21:54:49 +0000 |
parents | 525b12e17d60 |
children | cc153d1671f7 |
rev | line source |
---|---|
142 | 1 <appendix> |
2 <title>Using the Serial Interface</title> | |
3 <para> | |
4 For those who wish to use the serial port, the input or | |
5 output path of a program may be redirected to the serial port of | |
148
525b12e17d60
Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents:
142
diff
changeset
|
6 your &make; computer. |
142 | 7 </para> |
8 <para> | |
9 This is done by including the following module in the OS-9 kernel: | |
10 </para> | |
11 <literallayout> | |
12 ACIA51 - Serial Device Driver | |
13 </literallayout> | |
14 <para> | |
15 To load this module into the kernel enter the following command line: | |
16 </para> | |
17 <literallayout> | |
18 LOAD /D0/CMDS/ACIA51 | |
19 </literallayout> | |
20 | |
21 <section> | |
22 <title>Serial Printer Implementation</title> | |
23 <para> | |
24 For those with a serial printer, you can use the serial port | |
25 in the redirection of a program's output path by including the | |
26 following modifier at the end of a command line: | |
27 </para> | |
28 <literallayout> | |
29 >/P1 | |
30 </literallayout> | |
31 <para> | |
32 The baud rate of the serial port may be changed as follows: | |
33 </para> | |
34 <literallayout> | |
35 XMODE /P1 BAUD=3 | |
36 </literallayout> | |
37 <para> | |
38 This will change the baud rate to 1200 characters per second. | |
39 For a detailed description of the baud rate see the XMODE | |
40 command description. | |
41 </para> | |
42 </section> | |
43 <section> | |
44 <title>Serial Terminal Implementation</title> | |
45 <para> | |
148
525b12e17d60
Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents:
142
diff
changeset
|
46 For those who wish to connect two &make; computers, running |
142 | 47 OS-9, together using the serial port, redirection of the input |
48 or output paths is possible using the following modifier at | |
49 the end of a command line: | |
50 </para> | |
51 <literallayout> | |
52 >/T1 - for an output path | |
53 </literallayout> | |
54 <literallayout> | |
55 </T1 - for an input path | |
56 </literallayout> | |
57 <para> | |
58 To pass a file of data between the two computers, one must be | |
59 configured for input from the serial port and the other | |
60 configured for output: | |
61 </para> | |
62 <literallayout> | |
63 Computer 1, BUILD TEXT </T1 - input to port | |
64 </literallayout> | |
65 <literallayout> | |
66 Computer 2, BUILD <TEXT /T1 - output to port | |
67 </literallayout> | |
68 <para> | |
69 Using the above example, the text file on computer 2 will be | |
70 transferred to a file called TEXT on computer 1. | |
71 </para> | |
72 <para> | |
73 When the command line is entered on computer 1, the system will | |
74 reply with a question mark and wait for information from the | |
75 serial port. The command line on computer 2 will send data to | |
76 the now waiting computer 1. A string of question marks will now | |
77 be seen, this is the number of lines sent and recieved by the | |
78 respective computers. | |
79 </para> | |
80 <para> | |
81 To create a log-off sequence after such a transfer, use the DISPLAY | |
82 command as follows: | |
83 </para> | |
84 <literallayout> | |
85 Computer 1, BUILD <TEXT /T1 ; DISPLAY 0A 0D >/T1 | |
86 </literallayout> | |
87 </section> | |
88 </appendix> |