COM-2(PC)FRS-232C (2ch) Serial I/O BoardUser’s Guide
IntroductionCOM-2(PC)F 11. IntroductionAbout the COM-2(PC)F BoardThe COM-2(PC)F is an IBM PC/AT ISA-Bus add-on interfaceboard for multi-channel RS-232
IntroductionCOM-2(PC)F2Limited Three-Year WarrantyCONTEC Interface boards are warranted by CONTEC Co., LTD tobe free from defects in material and work
IntroductionCOM-2(PC)F 3About the ManualThis manual consists of the following chapters :Chapter 1 IntroductionChapter 2 How to Use the BoardChapter 3
IntroductionCOM-2(PC)F4
How to Use the BoardCOM-2(PC)F 52. How to Use the BoardCompatible Mode and Enhanced ModeThe COM-2(PC)F supports Compatible mode and Enhanced mode.In C
How to Use the BoardCOM-2(PC)F6Operating under Windows Me/98This section describes the procedure for using the board underWindows Me/98 and lists a nu
How to Use the BoardCOM-2(PC)F 7Compatible Mode Installation Procedure 11. Set the operation mode (I/O address) and interrupt level for theCOM-2(PC)F.
How to Use the BoardCOM-2(PC)F8Compatible Mode Installation Procedure 21. Turn on the power to the PC without inserting the COM-2(PC)Fin an expansion
How to Use the BoardCOM-2(PC)F 9Enhanced Mode Installation ProcedureWhen it is used with Enhanced Mode, API-PAC(W32) of the optionis necessary. Refer
How to Use the BoardCOM-2(PC)F10Operating under Windows 95This section describes the procedure for using the board underWindows 95 and lists a number
COM-2(PC)F iCopyrightCopyright 1996 CONTEC Co., LTD. ALL RIGHTS RESERVEDNo part of this document may be copied or reproduced in any formby any means
How to Use the BoardCOM-2(PC)F 11Compatible Mode Installation Procedure 11. Set the operation mode (I/O address) and interrupt level for theCOM-2(PC)F
How to Use the BoardCOM-2(PC)F12Compatible Mode Installation Procedure 21. Turn on the power to the PC without inserting the COM-2(PC)Fin an expansion
How to Use the BoardCOM-2(PC)F 13Enhanced Mode Installation ProcedureWhen it is used with Enhanced Mode, API-PAC(W32) of the optionis necessary. Refe
How to Use the BoardCOM-2(PC)F14Operating under Windows 2000This section describes the procedure for using the board underWindows 2000 and lists a num
How to Use the BoardCOM-2(PC)F 15Compatible Mode Installation Procedure 1It can’t be used with Compatible Mode when API-SIO(98/PC)NTof packing togethe
How to Use the BoardCOM-2(PC)F16Compatible Mode Installation Procedure 2It can’t be used with Compatible Mode when API-SIO(98/PC)NTof packing together
How to Use the BoardCOM-2(PC)F 17Enhanced Mode Installation ProcedureWhen it is used with Enhanced Mode, API-PAC(W32) of the optionis necessary. Refe
How to Use the BoardCOM-2(PC)F18Operating under Windows NTThis section describes the procedure for using the board underWindows NT and lists a number
How to Use the BoardCOM-2(PC)F 19Operating under Windows 3.1This section describes the procedure for using the board underWindows 3.1 and lists a numb
How to Use the BoardCOM-2(PC)F20Operating under MS-DOSThis section describes the procedure for using the board underMS-DOS and lists a number of point
COM-2(PC)FiiProduct Configuration- COM-2(PC)F Board…1- Sample Program Diskette (3.5inch/1.44MB)…1- User's Guide (This Booklet)…1Unpacking:This bo
How to Use the BoardCOM-2(PC)F 21Note!When used in Compatible mode, COM3 and COM4 are notsupported by some programming languages. Check thespecificat
How to Use the BoardCOM-2(PC)F22
Hardware SetupCOM-2(PC)F 233. Hardware SetupNames of Board ComponentsFigure 3.1. shows the names of various board components.The switch and jumper set
Hardware SetupCOM-2(PC)F24I/O Address SettingThe board is an I/O device controlled by I/O instructions from thePC. I/O devices include expansion boar
Hardware SetupCOM-2(PC)F 25Setting ProcedureThe I/O address is set using a DIP switch (SW1) on the board.SW11234OFFMODE1234Figure 3.2. I/O Address DIP
Hardware SetupCOM-2(PC)F26Interrupt Level SettingThe signal from the LSI (NS16550 equivalent) on the board can beused as an interrupt request signal b
Hardware SetupCOM-2(PC)F 27Table 3.2. lists the I/O address and standard interrupt level settingsfor COM1 to COM4 (Compatible mode).Table 3.2. Exampl
Hardware SetupCOM-2(PC)F28Mounting MethodThere are many kinds of boards that can be mounted in a computer'sextension slots, however the mounting
Hardware SetupCOM-2(PC)F 29(3) Remove the screw retaining the cover of the slot where theboard is to be mounted, and remove the cover from the rearpan
Hardware SetupCOM-2(PC)F30(7) Anchor the board with the screw. Use the screw set aside instep 3. Tighten so that the board is held in place.Figure 3
COM-2(PC)F iiiTable of ContentsCopyright...iTrademarks ...
Hardware SetupCOM-2(PC)F 31Connecting the External DevicesConnecting the COM-2(PC)F board to external devices is via two9-pin D-SUB connector (male) o
Hardware SetupCOM-2(PC)F32Connecting the CableThe RS-232C interface requires that you use a different type ofcable depending on the type of device bei
System ReferenceCOM-2(PC)F 334. System ReferenceSpecificationsTable 4.1. SpecificationsItem SpecificationNumber of Channels 2Input Type RS-232CExtern
System ReferenceCOM-2(PC)F34Circuitry DiagramsTXD, RTS, DTRRXD, CTS, DSRSN75188SN7518915pFFigure 4.1. Circuitry DiagramsBlock DiagramThe following is
TroubleshootingCOM-2(PC)F 355. TroubleshootingIf you are having trouble with your board or program, answer thefollowing questions to see if you can fi
TroubleshootingCOM-2(PC)F36Does the sample program work?Check the following:- Signals are connected to the correct pins.- Pin connections on the I/O c
TroubleshootingCOM-2(PC)F 373. DOS Version.4. Name of the CONTEC board that you are using.5. Names of other boards in the computer.6. I/O addresses fo
TroubleshootingCOM-2(PC)F3810.Different I/O addresses you have tried.11. Are you using your own program or a CONTEC sampleprogram.12.List AUTOEXEC.BAT
AppendixCOM-2(PC)F 396. AppendixA. Sample Programs (for MS-DOS)This section covers the sample programs that are supplied on thefloppy disk included wi
AppendixCOM-2(PC)F40Sample ProgramsThe programs are written in GW-BASIC and Microsoft C.The sample programs transmit data entered from the keyboard an
COM-2(PC)FivMounting Method...28Connecting the External Devices...
AppendixCOM-2(PC)F 41Notes!- All the sample programs must be run on a PC operating underMS-DOS.- Sample programs 3, 4, 6, and 10 cannot be used on a P
AppendixCOM-2(PC)F42Switch and Jumper SettingsTable 6.2. Switch and Jumper Settings of Sample Program 1,2, and 5ItemI/O Address(SW1)Interrupt Level(J
AppendixCOM-2(PC)F 43Table 6.4. Switch and Jumper Settings of Sample Program 7ItemI/O Address(SW1)Interrupt Level(JP1, JP2, JP3)1234OFFSW1JP1JP2JP39
AppendixCOM-2(PC)F44Cable ConnectionWhen running the sample programs 1 to 11 (except 8 and 9), use theinterconnection cable as shown in Figure 6.2. fo
AppendixCOM-2(PC)F 45Sample Program 1This GW-BASIC sample program demonstrates the transmit-datacapability of COM-2(PC)F in Enhanced mode. First, it
AppendixCOM-2(PC)F46Sample Program 2This GW-BASIC sample program demonstrates the receive-datacapability of COM-2(PC)F in Enhanced mode. First, it in
AppendixCOM-2(PC)F 47Sample Program 3This GW-BASIC sample program demonstrates the transmit-datacapability of COM-2(PC)F in Compatible mode. Using th
AppendixCOM-2(PC)F48Sample Program 4This GW-BASIC sample program demonstrates the receive-datacapability of COM-2(PC)F in Compatible mode. Using this
AppendixCOM-2(PC)F 49Sample Program 5This GW-BASIC sample program demonstrates thereceive/transmit-data capability of COM-2(PC)F in Enhanced mode.Firs
AppendixCOM-2(PC)F50Sample Program 6This GW-BASIC sample program demonstrates thereceive/transmit-data capability of COM-2(PC)F in Compatiblemode. Us
COM-2(PC)F vList of FiguresFigure 3.1. Names of Board Components and Default FactorySettings ...
AppendixCOM-2(PC)F 51Sample Program 7This GW-BASIC sample program demonstrates thereceive/transmit-data capability of COM-2(PC)F in Enhanced modewith
AppendixCOM-2(PC)F52Sample Program 8[Half-duplex data transmission (Enhanced mode)]The sample program 8 enables initialization on ACE, datatransmissio
AppendixCOM-2(PC)F 53Sample Program 9[Half-duplex data reception (Enhanced mode)]The sample program 9 enables initialization on ACE, receives5-byte da
AppendixCOM-2(PC)F54Sample Program 10[Data transmission and reception (COM1, COM2 mode)]Sample program 10 uses the bios_serialcom( ) function for MS-C
AppendixCOM-2(PC)F 55Sample Program 11[Data transmission and reception (COM3, COM4 mode)]Sample program 11 uses the bios_serialcom( ) function for MS-
AppendixCOM-2(PC)F56B. Notes on Developing Driver SoftwareInternal RegistersCOM-2(PC)F uses the NS16550 (National Semiconductor) as theAsynchronous Co
AppendixCOM-2(PC)F 57Baud Rate SelectionThe COM-2(PC)F board has one programmable baud rate generatorfor each of the two ACEs. The ACEs use a 1.8432M
AppendixCOM-2(PC)F58LSI Recovery TimeDue to the ever higher CPU clock rates used in PCs, restrictionsapply when controlling a peripheral LSI device by
AppendixCOM-2(PC)F 59Example program (for accessing an i8254 or equivalent)- Microsoft Macro AssemblerOUT DX, AL ; Access to the i8254IN AL, 2EFH ; E
AppendixCOM-2(PC)F60Various Aspects of Interrupt Handling in Enhanced Modeand Compatible ModeEnhanced ModeWhen in Enhanced mode, two channels of the C
COM-2(PC)FviFigure 6.11.Flowchart of Sample Program 9... 53Figure 6.12.Flowchart of Sample Program10 ...
AppendixCOM-2(PC)F 61Output Port2BF/1BFD7Not UsedGlobal Interrupt0: Disable1: EnableD6 D5 D4 D3 D2 D1 D0Input Port2BF/1BFD7Not UsedCH1 Interrupt0: Occ
AppendixCOM-2(PC)F62C. The Details on NS16550Table 6.9. NS16550's Register(Short from National Semiconductor's data book)< 1 / 2 >Reg
AppendixCOM-2(PC)F 63Table 6.9. NS16550's Register(Short from National Semiconductor's data book)< 2 / 2 >Register4 5 6 7 0 DLAB = 1
AppendixCOM-2(PC)F64D. Difference Between the COM-2(PC)Fand COM-2(PC)VThe COM-2(PC)F is an upgrade of the previous COM-2(PC)Vboard and is upwardly com
IndexCOM-2(PC)F 657. IndexBBaud Rate, 57Block Diagram, 34Board Setup, 25CCircuitry Diagrams, 34Compatible Mode, 5Connectors, 31EEnhanced Mode, 5Extern
IndexCOM-2(PC)F66WWarranty, 2Windows 2000, 14Windows 3.1, 19Windows 95, 10Windows Me/98, 6Windows NT, 18
A-41-606LZU2821021025 [961015]
A-46-368 Ver. 2001. 02. 06CONTEC GroupJAPAN : HeadquartersCONTEC Co., LTD.3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, JapanTel : +81 (6) 6477
COM-2(PC)F viiList of TablesTable 2.1. COM Port Support for Various ProgrammingLanguages.....
COM-2(PC)Fviii
Commentaires sur ces manuels