Changes

Original Amstrad RS232 interface

4,577 bytes added, 07:17, 1 September 2014
[[Image:RS232 illu p0.jpg|center|400px]]<br>
<center>RS232C
SERIAL INTERFACE USER INSTRUCTION BOOK<br>AMSTRAD RS232C SERIAL INTERFACE WITH ROM SOFTWARE AND POWER SUPPLY<br>AMSOFT<br>A division of CONSUMER ELECTRONICS PLC.<br>© Copyright 1985 AMSOFT, AMSTRAD Consumer Electronics plc.
</center>
Neither the whole nor any part of the information contained herein, nor the product described in this manual, may be adapted or reproduced in any material form except with the prior written approval of AMSTRAD Consumer Electronics plc. (‘AMSTRAD‘). The product described in this manual, and products for use with it are subject to continuous development and improvement. All information of a technical nature and particulars of the product and its use (including the information and particulars in this manual) are given by AMSTRAD in good faith. However, it is acknowledged that there may be errors or omissions in this manual. and a list of details of any amendments or revisions can be obtained by sending a stamped, self addressed envelope to AMSOFT Technical Enquiries.
All correspondence should be addressed to:
'''AMSOFT Brentwood House<br>169 Kings Road<br>Brentwood Essex<br>CM14 4EF'''
All maintenance and service on the product must be carried out by AMSOFT authorized dealers. Neither AMSOFT nor AMSTRAD can accept any liability whatsoever for any loss or damage caused by service or maintenance by unauthorized personnel. This guide is intended only to assist the reader in the use of the product, and therefore AMSOFT and AMSTRAD shall not be liable for any loss or damage whatsoever arising from the use of any information or particulars in, or any error or omission in, this manual or any incorrect use of the product.
<center>CP/M is a trademark of Digital Research Inc. <br>Z80 is a trademark of Zilog Inc. AMSDOS, CPC464, CPC664, CPC6128, DDI-1, and FD-1 are trademarks of AMSTRAD. First Published 1985
Written by Roland Perry <br>Illustrated by Alexander Martin
Electronics and SIO drivers by MEJ Electronics
Programming by AMSOFT:
Printer re-direction, PRESTEL, and TERMINAL by David Radisic <br>File transfer by Vik Olliver
Concepts by Roland Perry Consolidation and ROM housekeeping by Cliff Lawson <br>Edited by Ivor Spital
Published by AMSTRAD <br>Typeset by KAMSET typesetting graphics (Brentwood)</center>; <br>
AMSTRAD is a registered trademark of AMSTRAD Consumer Electronics plc. Unauthorized use of the trademarks or word AMSTRAD is strictly forbidden. When you have fitted the AMSTRAD RS232C to your computer, you have the means to communicate with printers, modems, and other computers. Implementing such a link is often regarded as a very mysterious and complicated business, if only because of the serial interface‘s inherent flexibility and versatility. To help you use your AMSTRAD RS232C serial interface, we have provided instructions in the form of ‘magic spells‘. Simply select those spells which are relevant to your application by identifying the accompanying sketches.
 
<br>
A full technical explanation is available in a series of appendices. The examples in these ‘spells‘ are not intended to be an exhaustive survey of all the possible uses of the RS232C. They do represent, however, the majority of applications encountered.
 
<br>
The AMSTRAD RS232C serial interface, and these instructions, are suitable for use with the AMSTRAD CPC464, CPC664 and CPC6128 computers. The AMSTRAD RS232C works equally well with any of these computers. Some of the applications referred to work best with a disc drive, although cassette tape storage is usable as an alternative. Some disc drive applications will require CP/M 2.2 (supplied with both the CPC664, and with the DDI-1 add-on disc system for the CPC464), or CP/M Plus (supplied with the CPC6 128).
 
<br>
When operating in BASIC, the additional commands provided for the RS232C are programmed in a ROM supplied inside the RS232C and are accessed by keywords starting with a bar | symbol. The bar symbol is obtained by pressing
<br> '''[SHIFT]'''<br>
The CP/M commands referred to are supplied on your standard CP/M system disc. The use of a serial interface allows you to connect equipment together using very simple wires up to 50 feet long. It is possible, using a modern, to convert the signals in these wires into a form in which they can be sent almost any distance to another modern, over standard telephone lines. Most equipment manufacturers have agreed the connection details to a standard called ‘RS232C‘. It is also possible to connect devices which conform to the alternative ‘RS423‘ standard. <br>
 
<br>
== Spell 1: Connecting the RS232C to your computer ==
 
[[Image:RS232 illu p5.jpg|400px]]
 
<br>
Switch off the computer and remove anything connected to the computer‘s port marked ‘EXPANSION‘ or ‘FLOPPY DISC‘.
== Spell 1: Connecting the RS232C to your computer ==
 
[[Image:RS232 illu p5 2.jpg|400px]]
 
<br>
Switch off the computer and remove anything connected to the computer‘s port marked ‘EXPANSION‘ or ‘FLOPPY DISC‘.
Push the connector plug at the end of the RS232C‘s ribbon cable onto the edge connector of the computer‘s port marked ‘EXPANSION‘ or ‘FLOPPY DISC‘. If required, refit any additional expansion interfaces to the RS232C ‘throgh-bus’ connection. Connect the lead from the RS232C power supply unit, into the small socket on the RS232C it self.
'''WARNING - ELECTRIC SHOCK NEVER ATTEMPT TO OPERATE THE RS232C POWER SUPPLY UNIT WITH ITS CASE REMOVED.'''
Switch on any additional expansion interfaces, connect the power supply unit on the RS232C to the mains supply, and switch on your computer, in that order. A ‘wake-up‘ message similar to the following will appear on the screen:
 
<br>
 
[[Image:RS232 illu p6.jpg|400px]]
 
<br>
Always switch off in reverse order to the above, before disconnecting the RS232C (or any additional expansion interfaces) from the computer.
('''Always disconnect the RS232C power supply unit from the mains supply socket when not in use.)'''
The serial output lead (the 25-way Chassis-plug) may be connected or disconnected at any time, regardless of power supply considerations.
The cable required to connect to a printer (or any other output device) is called a Null-modem cable (NMC). A technical explanation and drawing of the connections required is given in Appendix 1.
 
 
 
[[Image:RS232_illu_p7_1.jpg|400px]]
 
 
A Null-modem cable has Cable-sockets at each end to plug into the Chassis-plugs on the RS232C and the printer. If your printer has a Chassis-socket, then you will also require a converter cable comprising two back-to-back Cable-plugs.
 
 
 
[[Image:RS232_illu_p7_2.jpg|400px]]
== Spell 3: Setting the speed of your printer ==
== Spell 6: Redirecting printer output via the RS232C ==
 
[[Image:RS232_illu_p11.jpg|400px]]
 
Normally, printer output is sent to the parallel Centronics port at the rear of your computer. Having connected and set up the RS232C, the following commands will cause all printer output to be sent via the serial interface:
 
AMSTRAD BASIC: '''|SERIAL'''
 
CP/M 2.2: '''STAT LST:=TTY:'''
 
CP/M Plus: '''DEVICE LST:=SIO'''
 
When operating with CP/M, it is possible to program this re-direction as part of the loading process. For CP/M Plus, you should incorporate the command given above into the ‘'''PROFILE.SUB'''‘ file. For CP/M 2.2, you should use '''SETUP.COM''' as described in Appendix 2.
 
 
== Spell 7: Restoring printer output to the parallel port ==
 
[[Image:RS232_illu_p12.jpg|400px]]
 
Every time you reset the computer or move from BASIC to CP/M, or from CP/M to BASIC, the printer output will be restored to the parallel port. This can also be done using the commands:
 
 
AMSTRAD BASIC: |PARALLEL
 
CP/M 2.2: STAT LPT:=LPT:
 
CP/M Plus: DEVICE LST:=LPT
 
== Spell 8: Cables to connect Terminal Emulator to a minicomputer ==
 
[[Image:RS232_illu_p13.jpg|400px]]
 
In this manual, a commercial microcomputer that requires a terminal or Visual Display Unit (VDU) in order to operate is also referred to as a minicomputer.
 
It is possible to connect your computer fitted with RS232C as a substitute for a terminal attached directly to a minicomputer. The cable to use for this will depend on the minicomputer. Use either a Null-modem cable (Cable-socket to Cable-socket) if the minicomputer has a Chassis-plug, or a modern cable (Cable-socket to Cable-plug) if the minicomputer has a Chassis-socket. If in doubt, consult Appendix 1 and the hardware manual of the minicomputer.
 
== Spell 9: Attaching the Terminal Emulator to a minicomputer ==
 
[[Image:RS232_illu_p14.jpg|400px]]
 
The baud rate and framing parameters of the RS232C and minicomputer should agree, as discussed previously when attaching to printers.
 
The Terminal Emulator is entered by typing:
 
AMSTRAD BASIC: |TERMINAL
 
....and is exit-ed by [CTRL] [ESC]
Note that the Terminal Emulator ‘inherits‘ whatever keyboard values have been previously set up by BASIC, and also responds to the screen control codes described in the AMSTRAD computer‘s user instruction manual. It will often be convenient to set the [ESC] key to return a standard value by entering:
 
KEY DEF 66,0,27
 
== Spell 10: Terminal Emulator echo and control codes ==
 
[[Image:RS232_illu_p11.jpg|400px]]
 
The Standard Terminal Emulator sends all key-strokes to the minicomputer, displays all received printable characters, and obeys received control codes.
The minicomputer will normally echo the key-strokes sent to it, so that you can see (on the screen of the terminal) what you have typed, character by character. If the minicomputer does not perform such an echo, then it will be necessary for the Terminal Emulator to do it instead. This is achieved by typing:
 
|HALFDUPLEX
 
This local echo may be turned off by typing:
 
|FULLDUPLEX
 
For diagnostic purposes, it is sometimes convenient for the terminal to display control codes, rather than obey them. The Terminal Emulator can be switched between these two modes by the commands:
 
|CTRLDISPLAY …. And .... |CTRLACTION
 
== Scanned pages ==
 
<gallery>
Image:Rs232_page00.jpg
Image:Rs232_page01.jpg
Image:Rs232_page02.jpg
Image:Rs232_page03.jpg
Image:Rs232_page04.jpg
Image:Rs232_page05.jpg
 
Image:Rs232_page07.jpg
Image:Rs232_page08.jpg
Image:Rs232_page09.jpg
Image:Rs232_page10.jpg
Image:Rs232_page11.jpg
Image:Rs232_page12.jpg
Image:Rs232_page13.jpg
Image:Rs232_page14.jpg
Image:Rs232_page15.jpg
Image:Rs232_page16.jpg
Image:Rs232_page17.jpg
Image:Rs232_page18.jpg
Image:Rs232_page19.jpg
Image:Rs232_page20.jpg
Image:Rs232_page21.jpg
Image:Rs232_page22.jpg
Image:Rs232_page23.jpg
Image:Rs232_page24.jpg
Image:Rs232_page25.jpg
Image:Rs232_page26.jpg
Image:Rs232_page27.jpg
Image:Rs232_page28.jpg
Image:Rs232_page29.jpg
Image:Rs232_page30.jpg
Image:Rs232_page31.jpg
Image:Rs232_page32.jpg
Image:Rs232_page33.jpg
Image:Rs232_page34.jpg
Image:Rs232_page35.jpg
Image:Rs232_page36.jpg
Image:Rs232_page37.jpg
Image:Rs232_page38.jpg
Image:Rs232_page39.jpg
Image:Rs232_page40.jpg
</gallery>
 
[[Category:Serial interfaces]]