Page 3 - Product Configuration
COM-2(PC)F ii Product Configuration - COM-2(PC)F Board…1 - Sample Program Diskette (3.5inch/1.44MB)…1 - User's Guide (This Booklet)…1 Unpacking: This board is specially packed in an anti-static bag to preventdamage in shipping. Check the contents to make sure that you have everything listedabove. If...
Page 4 - Table of Contents
COM-2(PC)F iii Table of Contents Copyright ............................................................................i Trademarks ........................................................................i Product Configuration ..................................................... ii 1. Introduction...
Page 5 - Various Aspects of Interrupt Handling in Enhanced
COM-2(PC)F iv Mounting Method............................................................ 28 Connecting the External Devices ................................... 31 Connecting the Cable ...................................................... 32 4. System Reference ........................................
Page 6 - List of Figures; Figure 3.1. Names of Board Components and Default Factory
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.3. Interrupt Level Settings ..............
Page 8 - List of Tables; Table 2.1. COM Port Support for Various Programming
COM-2(PC)F vii List of Tables Table 2.1. COM Port Support for Various Programming Languages ................................................................. 21 Table 3.1. I/O Address Settings ................................................. 25 Table 3.2. Example Compatible Mode Settings .............
Page 10 - Introduction; Support Software of Option
Introduction COM-2(PC)F 1 1. Introduction About the COM-2(PC)F Board The COM-2(PC)F is an IBM PC/AT ISA-Bus add-on interfaceboard for multi-channel RS-232C asynchronous communications.It features two serial communication ports and a programmablecommunication rate ranging from 50 to 115,200 bps forco...
Page 11 - Limited Three-Year Warranty; Liability
Introduction COM-2(PC)F 2 Limited Three-Year Warranty CONTEC Interface boards are warranted by CONTEC Co., LTD tobe free from defects in material and workmanship for up to threeyears from the date of purchase by the original purchaser. Repair will be free of charge only when this device is returnedf...
Page 12 - About the Manual
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 Registers Chapter 5 System Reference Chapter 6 Troubleshooting Chapter 7 Index
Page 14 - How to Use the Board; Compatible Mode and Enhanced Mode; Compatible Mode
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 PCserial ports. In Enhanced mode, the board operates underCONTEC's proprietary control proc...
Page 15 - Operating under Windows Me/98; Procedure; Check the Current Settings
How to Use the Board COM-2(PC)F 6 Operating under Windows Me/98 This section describes the procedure for using the board underWindows Me/98 and lists a number of points to note. Procedure When using the board under Windows Me/98, the OS must be set torecognize the I/O address and interrupt level use...
Page 16 - Compatible Mode Installation Procedure 1
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 asdescribed in Hardware Setup. Set an interrupt level that is notcurrently used by the computer. 2. Insert ...
Page 17 - Compatible Mode Installation Procedure 2
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]. 3. Click [Next >] in response...
Page 18 - Enhanced Mode Installation Procedure
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 optionis necessary. Refer to Help "HWINSTE.HLP" of the way ofregistering the hardware being attached to API-PAC(W32) for theway of installing it. Check Resources Alw...
Page 19 - Operating under Windows 95
How to Use the Board COM-2(PC)F 10 Operating under Windows 95 This section describes the procedure for using the board underWindows 95 and lists a number of points to note. Procedure When using the board under Windows 95, the OS must be set torecognize the I/O address and interrupt level used by the...
Page 23 - Operating under Windows 2000
How to Use the Board COM-2(PC)F 14 Operating under Windows 2000 This section describes the procedure for using the board underWindows 2000 and lists a number of points to note. Procedure When using the board under Windows 2000, the OS must be set torecognize the I/O address and interrupt level used ...
Page 27 - Operating under Windows NT
How to Use the Board COM-2(PC)F 18 Operating under Windows NT This section describes the procedure for using the board underWindows NT and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level forthe COM-2(PC)F. Set the COM-2(PC)F switch and jump...
Page 28 - Operating under Windows 3.1
How to Use the Board COM-2(PC)F 19 Operating under Windows 3.1 This section describes the procedure for using the board underWindows 3.1 and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level forthe COM-2(PC)F. Set the COM-2(PC)F switch and ju...
Page 29 - Operating under MS-DOS
How to Use the Board COM-2(PC)F 20 Operating under MS-DOS This section describes the procedure for using the board underMS-DOS and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level forthe COM-2(PC)F. Set the COM-2(PC)F switch and jumpers asde...
Page 32 - Hardware Setup; Names of Board Components; Figure 3.1. Names of Board Components and Default
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 defaultfactory settings. Figure 3.1. Names of Board Components and Default Factory Settings
Page 34 - Setting Procedure
Hardware Setup COM-2(PC)F 25 Setting Procedure The I/O address is set using a DIP switch (SW1) on the board. SW1 1 2 3 4 O F F MODE 1 2 3 4 Figure 3.2. I/O Address DIP Switch Table 3.1. I/O Address Settings SW1 Interrupt Vector Bit 1 Bit 2 Register Address ON Enhanced 1A0~1A7 1BF OFF Enhanced 2A0~2A...
Page 35 - Interrupt Level Setting; When not Using Interrupts
Hardware Setup COM-2(PC)F 26 Interrupt Level Setting The signal from the LSI (NS16550 equivalent) on the board can beused as an interrupt request signal based on the JP1, JP2, and JP3settings. Note! When using interrupts, set an interrupt level that is not used by anyother device. Setting Procedure ...
Page 36 - Table 3.2. Example Compatible Mode Settings
Hardware Setup COM-2(PC)F 27 Table 3.2. lists the I/O address and standard interrupt level settingsfor 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 ...
Page 37 - Mounting Method; Before starting
Hardware Setup COM-2(PC)F 28 Mounting Method There are many kinds of boards that can be mounted in a computer'sextension slots, however the mounting method is identical for anyslot. Before starting (1) Set the Power switch to OFF. (2) Unplug the power cable from the AC outlet. Mounting the board (1)...
Page 40 - Connecting the External Devices
Hardware Setup COM-2(PC)F 31 Connecting the External Devices Connecting the COM-2(PC)F board to external devices is via two9-pin D-SUB connector (male) on the board. CN1 CN2 5 9 1 6 5 1 9 6 On-board Connector : DELC-J9PAF-20L9 (Male) [mfd. by JAE] Application Connector : 17JE-13090-02 (D8C) (Female)...
Page 41 - Connecting the Cable; Figure 3.10. Example Connection to a Modem
Hardware Setup COM-2(PC)F 32 Connecting the Cable The RS-232C interface requires that you use a different type ofcable depending on the type of device being connected. Forexample, modem connections and computer (PC) connectionsrequire different cables. Accordingly, check the specifications ofthe ext...
Page 42 - System Reference; Specifications; Board Dimensions
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.5, 2...
Page 43 - Circuitry Diagrams
System Reference COM-2(PC)F 34 Circuitry Diagrams TXD, RTS, DTR RXD, CTS, DSR SN75188 SN75189 15pF Figure 4.1. Circuitry Diagrams Block Diagram The following is a block diagram of the COM-2(PC)F interfaceboard. ADDRESS DECODER DATA BUFFER Data Bus (D7~D0) IB M -P C /A T B U S CNTROL BUFFER Addr. Bus...
Page 44 - Troubleshooting; Is the pilot light on?
Troubleshooting COM-2(PC)F 35 5. Troubleshooting If you are having trouble with your board or program, answer thefollowing 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 beworking. Check the main po...
Page 48 - Appendix; Backup Copy
Appendix COM-2(PC)F 39 6. Appendix A. Sample Programs (for MS-DOS) This section covers the sample programs that are supplied on thefloppy disk included with this board. COM-2(PC)F Diskette CONTEC supplies a sample program diskette with eachCOM-2(PC)F board. This diskette contains sample programs toh...
Page 49 - Sample Programs
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 anddisplay received data on the screen. Table 6.1. lists thecommunications data format. The sample programs listed in Figure 6.1. are included on th...
Page 51 - Switch and Jumper Settings
Appendix COM-2(PC)F 42 Switch and Jumper Settings Table 6.2. Switch and Jumper Settings of Sample Program 1, 2, and 5 Item I/O Address (SW1) Interrupt Level (JP1, JP2, JP3) 1 2 3 4 O F F SW1 JP1 JP2 JP3 9 3 4 5 6 7 1 0 111 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 111 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 111 2 1 4 1 5...
Page 52 - Table 6.4. Switch and Jumper Settings of Sample Program 7; Table 6.5. Switch and Jumper Settings of Sample Program 11
Appendix COM-2(PC)F 43 Table 6.4. Switch and Jumper Settings of Sample Program 7 Item I/O Address (SW1) Interrupt Level (JP1, JP2, JP3) 1 2 3 4 O F F SW1 JP1 JP2 JP3 9 3 4 5 6 7 1 0 111 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 111 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 111 2 1 4 1 5 N C Settings Table 6.5. Switch and J...
Page 53 - Cable Connection
Appendix COM-2(PC)F 44 Cable Connection When running the sample programs 1 to 11 (except 8 and 9), use theinterconnection cable as shown in Figure 6.2. for connection withthe mating device in the Compatible mode. For use in theEnhanced mode, on the other hand, use the cross cable or theinterconnecti...
Page 54 - Sample Program 1
Appendix COM-2(PC)F 45 Sample Program 1 This GW-BASIC sample program demonstrates the transmit-datacapability of COM-2(PC)F in Enhanced mode. First, it initializesthe Asynchronous Communication Element (ACE), then ittransmits the data input from the keyboard to the external devicethrough channel 1 (...
Page 55 - Sample Program 2
Appendix COM-2(PC)F 46 Sample Program 2 This GW-BASIC sample program demonstrates the receive-datacapability of COM-2(PC)F in Enhanced mode. First, it initializesthe ACE, then it transmits the data input from the external device toCRT through CN1. Set Baud Rate Generator 1 Set Modem Control Output R...
Page 56 - Sample Program 3
Appendix COM-2(PC)F 47 Sample Program 3 This GW-BASIC sample program demonstrates the transmit-datacapability of COM-2(PC)F in Compatible mode. Using this[OPEN "COM1 : 9600, N, 8, 2, DS" AS #1] command opens theRS-232C communication file (COM1). It then writes the datainput from the keyboard...
Page 57 - Sample Program 4
Appendix COM-2(PC)F 48 Sample Program 4 This GW-BASIC sample program demonstrates the receive-datacapability of COM-2(PC)F in Compatible mode. Using this[OPEN "COM1 : 9600, N, 8, 2, DS" AS #1] command opens theRS-232C communication file (COM1). It then reads the data fromCOM1 and outputs to ...
Page 58 - Sample Program 5
Appendix COM-2(PC)F 49 Sample Program 5 This GW-BASIC sample program demonstrates thereceive/transmit-data capability of COM-2(PC)F in Enhanced mode.First, it initializes the ACE, it then receives the data input from thekeyboard through CN1. Finally it outputs the data to CRT throughCN2. Figure 6.7....
Page 59 - Sample Program 6
Appendix COM-2(PC)F 50 Sample Program 6 This GW-BASIC sample program demonstrates thereceive/transmit-data capability of COM-2(PC)F in Compatiblemode. 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 com...
Page 60 - Sample Program 7
Appendix COM-2(PC)F 51 Sample Program 7 This GW-BASIC sample program demonstrates thereceive/transmit-data capability of COM-2(PC)F in Enhanced modewith interrupt input. It calls a machine language program toregister and handle interrupt input. One channel's receive/transit-data routine is processed...
Page 61 - Figure 6.10. Flowchart of Sample Program 8
Appendix COM-2(PC)F 52 Sample Program 8[Half-duplex data transmission (Enhanced mode)] The sample program 8 enables initialization on ACE, datatransmission in the transmission mode, and waits for the receivedata in the receive mode. 1 Note: Wait Time = (sec) Data Length Baud Rate No Yes 1 Line Statu...
Page 62 - Figure 6.11. Flowchart of Sample Program 9
Appendix COM-2(PC)F 53 Sample Program 9[Half-duplex data reception (Enhanced mode)] The sample program 9 enables initialization on ACE, receives5-byte data; after transmission, the program enters the transmissionmode for data transmission. No Yes 1 Line Status D0 bit = 1 Set Baud Rate Generator 1 Se...
Page 63 - Figure 6.12. Flowchart of Sample Program10
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 receivesthe data at COM1 transmitted from COM2. Received data isdisplayed on the CRT. ...
Page 64 - Figure 6.13. Flowchart of Sample Program 11
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 receivesthe data at COM3 transmitted from COM4. Received data isdisplayed on the CRT. ...
Page 65 - B. Notes on Developing Driver Software; Internal Registers; Table 6.6. Function Selection through Internal Registers
Appendix COM-2(PC)F 56 B. Notes on Developing Driver Software Internal Registers COM-2(PC)F uses the NS16550 (National Semiconductor) as theAsynchronous Communication Element (ACE). Within theaddress range of each channel, the offset addresses 0 through 7furnish access to the internal registers of e...
Page 66 - Baud Rate Selection
Appendix COM-2(PC)F 57 Baud Rate Selection The COM-2(PC)F board has one programmable baud rate generatorfor each of the two ACEs. The ACEs use a 1.8432MHz crystaloscillator as clock input. The baud rate generator takes the1.8432MHz clock and divides it by a divisor from 1 to (2 16 - 1). The output f...
Page 67 - LSI Recovery Time; Table 6.8. Number of Times the IN Instruction Must be
Appendix COM-2(PC)F 58 LSI Recovery Time Due to the ever higher CPU clock rates used in PCs, restrictionsapply when controlling a peripheral LSI device by software.Table 6.8. lists the LSIs used on CONTEC boards which requirespecial consideration when accessing. Take note of the followingpoint when ...
Page 68 - Example program (for accessing an i8254 or equivalent)
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 recovery time - Microsoft C/C++ outp(port, byte); /* Access to the i8254 */ rt=inp(0x2ef); /* Execute rt=in...
Page 69 - Various Aspects of Interrupt Handling in Enhanced Mode; Enhanced Mode
Appendix COM-2(PC)F 60 Various Aspects of Interrupt Handling in Enhanced Mode and Compatible Mode Enhanced Mode When in Enhanced mode, two channels of the COM-2(PC)F sharethe same interrupt request line. The interrupt levels can be setfrom IRQ3~IRQ7, IRQ9~IRQ12, IRQ14, and IRQ15 by setting JP1before...
Page 70 - Figure 6.14. IVR Bit Function in Enhanced Mode
Appendix COM-2(PC)F 61 Output Port 2BF/1BF D7 Not Used Global Interrupt 0: Disable 1: Enable D6 D5 D4 D3 D2 D1 D0 Input Port 2BF/1BF D7 Not Used CH1 Interrupt 0: Occurred 1: Not Occurred D6 D5 D4 D3 D2 D1 D0 CH2 Interrupt 0: Occurred 1: Not Occurred Global Interrupt 0: Enable 1: Disable Figure 6.14....
Page 74 - Index
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 Address, 24 Internal Registers, 56 Interrupt Level, 26 L Liability, 2 LSI Recovery Time, 58 M Mount...