Instruction/ maintenance manual of the product COM-2(PC)F Compaq
Go to page of 77
COM- 2(PC)F RS-232C (2ch) Serial I/O Board User ’ s Guide.
COM-2(PC)F i Copyright Copyright 1996 CONTEC Co., LTD. ALL RIGHTS RESERVED No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC Co., LTD. CONTEC Co., LTD. makes no commitment to update or keep current the information contained in this document.
COM-2(PC)F ii Product Configuration - COM - 2 (PC) F Board …1 - Sample Program Diskette (3.5inch/1.44MB) …1 - User's Guide ( T his B ooklet)…1 Unpacking: This board is specially packed in an anti-static bag to prevent damage in shipping. Check the contents to make sure that you have everything listed above.
COM-2(PC)F iii Table of Contents Copyright ............................................................................ i Trademarks ........................................................................ i Product Configuration .....................
COM-2(PC)F iv Mounting Method ............................................................ 28 Connecting the External Devices ................................... 31 Connecting the Cable ...................................................... 32 4. System Reference .
COM-2(PC)F v List of Figures Figure 3.1. Names of Board Components and Default Factory Settings ..................................................................... 23 Figure 3.2. I/O Address DIP Switch ............................................ 25 Figure 3.
COM-2(PC)F vi Figure 6.11. Flowchart of Sample Program 9 ................................ 53 Figure 6.12. Flowchart of Sample Program10 ............................... 54 Figure 6.13. Flowchart of Sample Program 11 .............................. 55 Figure 6.
COM-2(PC)F vii List of Tables Table 2.1. COM Port Support for V arious Programming Languages ................................................................. 21 Table 3.1. I/O Address Settings ................................................. 25 Table 3.
COM-2(PC)F viii.
Introduction COM-2(PC)F 1 1. Introduction About the COM- 2(PC)F Board The COM- 2(PC)F is an IBM PC/ A T ISA-Bus add-on interface board for multi-channel RS-232C asynchronous communications. It features two serial communication ports and a programmable communication rate ranging from 50 to 115,200 bps for communication or modem control.
Introduction COM-2(PC)F 2 Limited Three- Y ear Warranty CONTEC Interface boards are warranted by CONTEC Co., LTD to be free from defects in material and workmanship for up to three years from the date of purchase by the original purchaser.
Introduction COM-2(PC)F 3 About the Manual This manual consists of the following chapters : Chapter 1 Introduction Chapter 2 How to Use the Board Chapter 3 Hardware Setup Chapter 4 I/O Ports and Regis.
Introduction COM-2(PC)F 4.
How to Use the Board COM-2(PC)F 5 2. How to Use the Board Compatible Mode and Enhanced Mode The COM- 2(PC)F supports Compatible mode and Enhanced mode. In Compatible mode, the board channels operate as standard PC serial ports. In Enhanced mode, the board operates under CONTEC's proprietary control procedures.
How to Use the Board COM-2(PC)F 6 Operating under Windows Me/98 This section describes the procedure for using the board under Windows Me/98 and lists a number of points to note. Procedure When using the board under Windows Me/98, the OS must be set to recognize the I/O address and interrupt level used by the COM- 2(PC)F.
How to Use the Board COM-2(PC)F 7 Compatible Mode Installation Procedure 1 1. Set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F. Set the COM- 2(PC)F switch and jumpers as described in Hardware Setup. Set an interrupt level that is not currently used by the computer.
How to Use the Board COM-2(PC)F 8 Compatible Mode Installation Procedure 2 1. Turn on the power to the PC without inserting the COM- 2(PC)F in an expansion slot. 2. After Windows Me/98 starts, select [Control Panel] from [My Computer] and start the [Add New Hardware].
How to Use the Board COM-2(PC)F 9 Enhanced Mode Installation Procedure When it is used with Enhanced Mode, API- PAC(W32) of the option is necessar y . Refer to Help "HWINSTE.HLP" of the way of registering the hardware being attached to API- PAC(W32) for the way of installing it.
How to Use the Board COM-2(PC)F 10 Operating under Windows 95 This section describes the procedure for using the board under Windows 95 and lists a number of points to note. Procedure When using the board under Windows 95, the OS must be set to recognize the I/O address and interrupt level used by the COM- 2(PC)F.
How to Use the Board COM-2(PC)F 11 Compatible Mode Installation Procedure 1 1. Set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F. Set the COM- 2(PC)F switch and jumpers as described in Hardware Setup. Set an interrupt level that is not currently used by the computer.
How to Use the Board COM-2(PC)F 12 Compatible Mode Installation Procedure 2 1. Turn on the power to the PC without inserting the COM- 2(PC)F in an expansion slot. 2. After Windows 95 starts, select [Control Panel] from [My Computer] and start the [Add New Hardware].
How to Use the Board COM-2(PC)F 13 Enhanced Mode Installation Procedure When it is used with Enhanced Mode, API- PAC(W32) of the option is necessar y . Refer to Help "HWINSTE.HLP" of the way of registering the hardware being attached to API- PAC(W32) for the way of installing it.
How to Use the Board COM-2(PC)F 14 Operating under Windows 2000 This section describes the procedure for using the board under Windows 2000 and lists a number of points to note. Procedure When using the board under Windows 2000, the OS must be set to recognize the I/O address and interrupt level used by the COM- 2(PC)F.
How to Use the Board COM-2(PC)F 15 Compatible Mode Installation Procedure 1 It can ’ t be used with Compatible Mode when API- SIO(98/PC)NT of packing together is used for API-PAC(W32). 1. Set the operation mode (I/O address) and i nterrupt level for the COM- 2(PC)F.
How to Use the Board COM-2(PC)F 16 Compatible Mode Installation Procedure 2 It can ’ t be used with Compatible Mode when API- SIO(98/PC)NT of packing together is used for API-PAC(W32). 1. Turn on the power to the PC without inserting the COM- 2(PC)F in an expansion slot.
How to Use the Board COM-2(PC)F 17 Enhanced Mode Installation Procedure When it is used with Enhanced Mode, API- PAC(W32) of the option is necessar y . Refer to Help "HWINSTE.HLP" of the way of registering the hardware being attached to API- PAC(W32) for the way of installing it.
How to Use the Board COM-2(PC)F 18 Operating under Windows NT This section describes the procedure for using the board under Windows NT and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F.
How to Use the Board COM-2(PC)F 19 Operating under Windows 3.1 This section describes the procedure for using the board under Windows 3.1 and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F.
How to Use the Board COM-2(PC)F 20 Operating under MS-DOS This section describes the procedure for using the board under MS-DOS and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F.
How to Use the Board COM-2(PC)F 21 Note! When used in Compatible mode, COM3 and COM4 are not supported by some programming languages. Check the specifications of the language you are using. T able 2.1. lists the COM ports supported by a number of common programming languages.
How to Use the Board COM-2(PC)F 22.
Hardware Setup COM-2(PC)F 23 3. Hardware Setup Names of Board Components Figure 3.1. shows the names of various board components. The switch and jumper settings shown in the figure are the default factory settings.
Hardware Setup COM-2(PC)F 24 I/O Address Setting The board is an I/O device controlled by I/O instructions from the PC. I/O devices include expansion boards and devices inside the PC. The various devices are identified by their I/O addresses. I/O addresses are represented as four digit hexadecimal values (e.
Hardware Setup COM-2(PC)F 25 Setting Procedure The I/O address is set using a DIP switch (SW1) on the board. S W 1 1 2 3 4 O F F M OD E 1 2 3 4 Figure 3.
Hardware Setup COM-2(PC)F 26 Interrupt Level Setting The signal from the LSI (NS16550 equivalent) on the board can be used as an interrupt request signal based on the JP1, JP2, and JP3 settings. Note! When using interrupts, set an interrupt level that is not used by any other device.
Hardware Setup COM-2(PC)F 27 Table 3.2. lists the I/O address and standard interrupt level settings for COM1 to COM4 (Compatible mode). Table 3.2. Example Compatible Mode Settings Port I/O Address COM1 3F8~3FF IRQ4 COM2 2F8~2FF IRQ3 COM3 3E8~3EF IRQ4 *1 *1 On the IBM PS/55Z and similar, COM4 2E8~2EF IRQ3 COM3 uses IRQ3.
Hardware Setup COM-2(PC)F 28 Mounting Method There are many kinds of boards that can be mounted in a computer's extension slots, however the mounting method is identical for any slot. Before starting (1) Set the Power switch to OFF. (2) Unplug the power cable from the AC outlet.
Hardware Setup COM-2(PC)F 29 (3) Remove th e screw retaining the cover of the slot where the board is to be mounted, and remove the cover from the rear panel. Figure 3.6. Expansion Slot Cover Caution! T o prevent a discharge of static electricity from damaging the board, it is important to ground yourself.
Hardware Setup COM-2(PC)F 30 (7) Ancho r the board with the scre w . Use the screw set aside in step 3. Tighten so that the board is held in place. Figure 3.
Hardware Setup COM-2(PC)F 31 Connecting the External Devices Connecting the COM- 2(PC)F board to external devices is via two 9-pin D-SUB connector (male) on the board. C N 1 C N 2 5 9 1 6 5 1 9 6 O n - b o a r d C o n n e c t o r : D E L C - J9 P A F - 20 L 9 ( M a l e ) [ m f d .
Hardware Setup COM-2(PC)F 32 Connecting the Cable The RS-232C interface requires that you use a different type of cable depending on the type of device being connected. For example, modem connections and computer (PC) connections require different cables.
System Reference COM-2(PC)F 33 4. System Reference Specifications Table 4.1. Specifications Item Specification Number of Channels 2 Input Type RS-232C External connectors Two 9-pin D-SUB connector (Male) Transfer Method Asychronous serial transfer Baud Rate 50~115,200bps *1 5, 6, 7, 8 bits 1, 1.
System Reference COM-2(PC)F 34 Circuitry Diagrams T X D , R T S , D T R R X D , C T S , D S R S N 7 5188 S N 751 89 15 p F Figure 4.1. Circuitry Diagrams Block Diagram The following is a block diagram of the COM- 2(PC)F interface board.
Troubleshooting COM-2(PC)F 35 5. Troubleshooting If you are having trouble with your board or program, answer the following questions to see if you can find the problem. QUESTIONS: STEPS TO TAKE Is the pilot light on? The system must be turned on and the power supply must be working.
Troubleshooting COM-2(PC)F 36 Does the sample program work? Check the following: - Signals are connected to the correct pins. - Pin connections on the I/O cables are secure. - Signals are present at the e xternal connectors. - Try using the COM- 2(PC)F board with other non-essential boards removed.
Troubleshooting COM-2(PC)F 37 3. DOS Version. 4. Name of the CONTEC board that you are using. 5. N ames of other boards in the computer. 6. I/O addresses for the CONTEC board and all other boards. 7. Interrupt levels for the CONTEC board and all other boards.
Troubleshooting COM-2(PC)F 38 10. Different I/O addresses you have tried. 11. Are you using your own program or a CONTEC sample program. 12. List AUTOEXEC.
Appendix COM-2(PC)F 39 6. Appendix A. Sample Programs (for MS-DOS) This section covers the sample programs that are supplied on the floppy disk included with this board. COM- 2(PC)F Diskette CONTEC supplies a sample program diskette with each COM- 2(PC)F board.
Appendix COM-2(PC)F 40 Sample Programs The programs are written in GW-BASIC and Microsoft C. The sample programs transmit data entered from the keyboard and display received data on the screen. Table 6.1. lists the communications data format. The sample programs listed in Figure 6.
Appendix COM-2(PC)F 41 Notes! - All the sample programs must be run on a PC operating under MS-DOS. - Sample programs 3, 4, 6, and 10 cannot be used on a PC that already has COM1 and COM2 ports. Similarly, sample programs 11 cannot be used on a PC that already has COM3 and COM4 ports.
Appendix COM-2(PC)F 42 Switch and Jumper Settings Table 6.2. Switch and Jumper Settings of Sample Program 1, 2, and 5 I t e m I / O A dd r e ss ( S W 1 ) I n t e rr u p t L e v e l ( J P 1 , J P 2 , J.
Appendix COM-2(PC)F 43 Table 6.4. Switch and Jumper Settings of Sample Program 7 I t e m I / O A dd r e ss ( S W 1 ) I n t e rr u p t L e v e l ( J P 1 , J P 2 , J P 3 ) 1 2 3 4 O F F S W 1 J P 1 J P 2 J P 3 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C S e tt i n g s Table 6.
Appendix COM-2(PC)F 44 Cable Connection When running the sample programs 1 to 11 (except 8 and 9), use the interconnection cable as shown in Figure 6.2. for connection with the mating device in the Compatible mode. For use in the Enhanced mode, on the other hand, use the cross cable or the interconnection configuration diagram in Figure 6.
Appendix COM-2(PC)F 45 Sample Program 1 This GW-BASIC sample program demonstrates the transmit-data capability of COM- 2(PC)F in Enhanced mode. First, it initializes the Asynchronous Communication Element (ACE) , then it transmits the data input from the keyboard to the external device through channel 1 (CN1).
Appendix COM-2(PC)F 46 Sample Program 2 This GW-BASIC sample program demonstrates the receive-data capability of COM- 2(PC)F in Enhanced mode. First, it initializes the ACE , then it transmits the data input from the external device to CRT through CN1.
Appendix COM-2(PC)F 47 Sample Program 3 This GW-BASIC sample program demonstrates the transmit-data capability of COM- 2(PC)F in Compatible mode. Using this [OPEN " COM1 : 9600, N, 8, 2, DS" AS #1] command opens the RS-232C communication file (COM1).
Appendix COM-2(PC)F 48 Sample Program 4 This GW-BASIC sample program demonstrates the receive-data capability of COM- 2(PC)F in Compatible mode. Using this [OPEN " COM1 : 9600, N, 8, 2, DS" AS #1] command opens the RS-232C communication file (COM1).
Appendix COM-2(PC)F 49 Sample Program 5 This GW-BASIC sample program demonstrates the receive/transmit-data capability of COM- 2(PC)F in Enhanced mode. First, it initializes the ACE , it then receives the data input from the keyboard through CN1. Finally it outputs the data to C RT through CN2.
Appendix COM-2(PC)F 50 Sample Program 6 This GW-BASIC sample program demonstrates the receive/transmit-data capability of COM- 2(PC)F in Compatible mode. Using the [OPEN " COM1 : 9600, N, 8, 2, DS" AS #1] command and the [OPEN "COM2 : 9600, N, 8, 2, DS" AS #2] command opens two RS-232C communication files (COM1 and COM2).
Appendix COM-2(PC)F 51 Sample Program 7 This GW-BASIC sample program demonstrates the receive/transmit-data capability of COM- 2(PC)F in Enhanced mode with interrupt input. It calls a machine language program to register and handle interrupt input. One channel's receive/transit- data routine is processed in the interrupt handler.
Appendix COM-2(PC)F 52 Sample Program 8 [Half-duplex data transmission (Enhanced mode)] The sample program 8 enables initialization on ACE, data transmission in the transmission mode, and waits for the receive data in the receive mode.
Appendix COM-2(PC)F 53 Sample Program 9 [Half-duplex data reception (Enhanced mode)] The sample program 9 enables initialization on ACE, receives 5-byte data; after transmission, the program enters the transmission mode for data transmission.
Appendix COM-2(PC)F 54 Sample Program 10 [Data transmission and reception (COM1, COM2 mode)] Sample program 10 uses the bios_serialcom ( ) function for MS-C. It first receives the data transmitted from COM1, and then receives the data at COM1 transmitted from COM2.
Appendix COM-2(PC)F 55 Sample Program 11 [Data transmission and reception (COM3, COM4 mode)] Sample program 11 uses the bios_serialcom ( ) function for MS-C. It first receives the data transmitted from COM3, and then receives the data at COM3 transmitted from COM4.
Appendix COM-2(PC)F 56 B. Notes on Developing Driver Software Internal Registers COM- 2(PC)F uses the NS16550 (National Semiconductor) as the Asynchronous Communication Element (ACE). Within the address range of each channel, the offset addresses 0 through 7 furnish access to the internal registers of each of the two ACE's.
Appendix COM-2(PC)F 57 Baud Rate Selection The COM- 2(PC)F board has one programmable baud rate generator for each of the two ACEs. The ACEs use a 1.8432MHz crystal oscillator as clock input. The baud rate generator takes the 1.8432MHz clock and divides it by a divisor from 1 to (2 16 - 1).
Appendix COM-2(PC)F 58 LSI Recovery Time Due to the ever higher CPU clock rates used in PCs, restrictions apply when controlling a peripheral LSI device by software. Table 6.8. lists the LSIs used on CONTEC boards which require special consideration when accessing.
Appendix COM-2(PC)F 59 Example program (for accessing an i8254 or equivalent) - Microsoft Macro Assembler OUT DX, AL ; Access to the i8254 IN AL, 2EFH ; Execute IN AL, 2EFH once to provide the recover.
Appendix COM-2(PC)F 60 V arious Aspects of Interrupt Handling in Enhanced Mode and Compatible Mode Enhanced Mode When in Enhanced mode, two channels of the COM- 2(PC)F share the same interrupt request line. The interrupt levels can be set from IRQ3~IRQ7, IRQ9~IRQ12, IRQ14, and IRQ15 by setting JP1 before installing this board.
Appendix COM-2(PC)F 61 O u t p u t P o r t 2 B F / 1 B F D 7 N o t U s e d G l o ba l I n t e rr u p t 0 : D i s ab l e 1 : E n a b l e D 6 D 5 D 4 D 3 D 2 D 1 D 0 I n p u t P o r t 2 B F / 1 B F D 7 .
Appendix COM-2(PC)F 62 C. The Details on NS16550 Table 6.9. NS16550's Register (Short from National Semiconductor's data book) < 1 / 2 > Register 0 DLAB = 0 0 DLAB = 0 1 DLAB = 0 2 2 3 Bit Receiver Transmitter Interrupt Interrupt FIFO Line No.
Appendix COM-2(PC)F 63 Table 6.9. NS16550's Register (Short from National Semiconductor's data book) < 2 / 2 > Register 4 5 6 7 0 DLAB = 1 1 DLAB =1 Bit MODEM Line MODEM Scratch Divisor Divisor No.
Appendix COM-2(PC)F 64 D. Difference Between the COM- 2(PC)F and COM-2(PC)V The COM- 2(PC)F is an upgrade of the previous COM-2(PC)V board and is upwardly compatible.
Index COM-2(PC)F 65 7. Index B Baud Rate, 57 Block Diagram, 34 Board Setup, 25 C Circuitry Diagrams, 34 Compatible Mode, 5 Connectors, 31 E Enhanced Mode, 5 External Connection, 31 F Features, 1 I I/O.
Index COM- 2(PC)F 66 W W arrant y , 2 Windows 2000, 14 Windows 3.1, 19 Windows 95, 10 Windows Me/ 98, 6 Windows NT, 18.
A-41-606 LZU2821 021025 [961015 ].
A-46-368 Ver. 2001. 02. 06 CONTEC Group JAPAN : Headquarters CONTEC C o ., LTD. 3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan Tel : +81 (6) 6 477-5219 Fax : +81 (6) 6 477-1692 E-mail : intsales@osaka.contec.co. jp U.S.A. : CONTEC MICROELECTRONICS U.
An important point after buying a device Compaq COM-2(PC)F (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Compaq COM-2(PC)F yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Compaq COM-2(PC)F - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Compaq COM-2(PC)F you will learn all the available features of the product, as well as information on its operation. The information that you get Compaq COM-2(PC)F will certainly help you make a decision on the purchase.
If you already are a holder of Compaq COM-2(PC)F, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Compaq COM-2(PC)F.
However, one of the most important roles played by the user manual is to help in solving problems with Compaq COM-2(PC)F. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Compaq COM-2(PC)F along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center