background image

Technical Reference

C168P User’s Manual

    A-3

PC I/O Port Address Map

The following is the list of the I/O port addresses commonly used, which is good for
preventing I/O address conflict when configuring C168P.

IO/ Address

Device

000-01F

DMA controller 1

020-03F

interrupt controller

040-05F

Timer

060-06F

Keyboard

070-07F

Real-time clock

080-09F

DMA page register

0A0-0BF

Interrupt controller 2

0C0-0DF

DMA controller

0F0-0FF

Math coprocessor

100-1EF

not usable

1F0-1F8

Fixed disk

200-207

Game I/O

278-27F

Parallel printer port 2 ( LP2: )

2F8-2FF

Serial Port 2 ( COM2: )

300-31F

Prototype card

360-36F

Reserved

378-37F

Parallel printer port 1 ( LP1: )

3B0-3BF

Monochrome display

3C0-3CF

Reserved

3D0-3DF

Color graphics display

3F0-3F7

Diskette controller

3F8-3FF

Serial port 1 ( COM 1: )

Содержание C168P

Страница 1: ...iversal 8 Port Serial Board May 1999 7th Edition The content of this manual is also available in CD ROM and at Moxa Web Site Moxa Technologies Co Ltd Tel 866 2 8665 6373 Fax 886 2 8665 6372 www moxa c...

Страница 2: ...d does not represent a commitment on the part of Moxa Moxa provides this document as is without warranty of any kind either expressed or implied including but not limited to the particular purpose Mox...

Страница 3: ...ilt for technical support product inquiry new driver update user s manual update etc The followings are the services we provide E mail for technical support address support moxa com tw FTP site for fr...

Страница 4: ...dware Installation Hardware installation for the C168P boards and connection option Opt8x is detailed Chapter 3 Software Installation This Chapter details the software installation configuration drive...

Страница 5: ...and Hardware Configuration 2 4 Software Installation 3 1 Windows NT 3 1 Installing Driver 3 2 Configuring Board and Port 3 7 Updating Driver 3 9 Removing Driver 3 9 Windows 95 98 3 9 Installing Driver...

Страница 6: ...ring 5 1 RS 232 Cable Wiring for Opt8A B C D S 5 1 RS 422 Cable Wiring for Opt8J F Z 5 7 RS 485 Cable Wiring for Opt8J 5 10 RS 422 485 Impedance Matching 5 11 Troubleshooting 6 1 General Troubleshooti...

Страница 7: ...ip which replaces lots of conventional ICs and reduces the board to half size The whole family supports 16 bit architecture Full range of I O addresses and IRQs are available In addition with on board...

Страница 8: ...hannel via which the configuration utility Io irq exe can access the board which is identical to the first port s base I O address The only jumper JP1 is designed in case that users forget the CAP add...

Страница 9: ...configure the standard driver MOXA Serial Comm Tools For easy application development MOXA provides an easy use serial communication library under Windows NT 95 98 PComm and DOS API 232 Users can use...

Страница 10: ...S 422 optional connection box Opt8F v PComm serial communication tool v Support popular OS Windows NT Windows 95 98 DOS Linux v Compatible with many other OS QNX SCO UNIX OpenServer SCO XENIX Free BSD...

Страница 11: ...vice driver diskettes l Windows NT and Windows 95 98 1 l DOS 1 v C168P User s Manual This Manual v PComm Lite diskette 1 You need also one of the following connection options Opt8A Opt8B Opt8S v RS 23...

Страница 12: ...s DB25 for Opt8C and DB9 for Opt8D 1 meter long P1P2 P3 P4 P6 P5 P7 P8 Opt8C Opt8D C168P Opt8F Opt8Z v RS 422 connection box with 8 port female DB25 connectors isolation protection for Opt8F v 1 5 met...

Страница 13: ...female DB25 connectors for MOXA 8 port boards including the C168P There are 8 DIP switches on the side of the Opt8J Each switch controls the communication mode RS 422 or RS 485 of each port respective...

Страница 14: ...a brief summary of how to install the C168P under each supported operating system The installation is simple and involves the following stages Configure C168P with io irq exe See Chapter Hardware Ins...

Страница 15: ...Settings The C168P has the following default factory settings I O address 0x180 Port 1 0x188 Port 2 0x190 Port 3 0x198 Port 4 0x1A0 Port 5 0x1A8 Port 6 0x1B0 Port 7 0x1B8 Port 8 IRQ 10 INT Vector 0x1...

Страница 16: ...onfiguration effort i e installation without running configuration program Io irq exe Simply always short the jumper JP1 The software and hardware configuration will be completed at the same time whil...

Страница 17: ...ds in a system u Fail to install due to the I O address 0xA700 is not available or has conflict in the system u Use operating systems other than Windows NT and 95 98 Before proceeding the software ins...

Страница 18: ...o irq exe contained in the driver diskette to set up I O address IRQ and INT vector of the board Please refer to the next section IO IRQ Utility and Hardware Configuration for more details Or follow t...

Страница 19: ...Installation C168P User s Manual 2 5 1 Run the utility Io irq exe contained in the driver diskette to set up I O address IRQ and INT vector of the board 2 Select Smartio Industio ISA Family and press...

Страница 20: ...each port either sequentially or not Avoid to conflicting with any other devices IRQ Enter the IRQ 2 3 4 5 7 10 11 12 or 15 for each port independently or not Speed This field specifies the use of nor...

Страница 21: ...of interrupt for corresponding port To use interrupt vector type in the hardware Interrupt vector I O address If not using interrupt vector type 0 or leave blank as the interrupt vector There are two...

Страница 22: ...2 8 C168P User s Manual...

Страница 23: ...g Tools for programming issues Windows NT Windows NT supports up to 256 serial ports from COM1 to COM256 To fully integrate the advanced features of Windows NT multi process and multi thread pure 32 b...

Страница 24: ...oard s has have already been plugged in the system slot s if you are doing quick installation 1 Please log in NT as Administrator 2 Open the Control Panel click on the Network icon and select the Adap...

Страница 25: ...ndustio Configuration Panel dialog box click Add to enter Property dialog box to add the C168P board Select the C168 Series in the Board Type field If necessary type the desired interrupt vector addre...

Страница 26: ...y to the step 8 if you need not change any setting 7 In the Property dialog box select the desired port in the port list and click Port Setting to enter the individual Port setting dialog box to chang...

Страница 27: ...t is mapped to COM4 sequentially If Auto Enumerating COM Number is not checked specify the COM number for individual port For instance the second port can be out of sequence say COM10 while the first...

Страница 28: ...configuration will not take effect unless the system restarts 11 Once the system restarts you may check the event log issued by the MOXA driver to see if the ports of the board are initialized succes...

Страница 29: ...ng Tools chapter or the Microsoft Win32 API You can also execute any ready made applications such as PComm utility Terminal emulator See Serial Programming Tools chapter or HyperTerminal to transmit r...

Страница 30: ...Interrupt no and Base I O Port Address Please see steps 6 to 8 in the previous section Installing Driver for more details except that the Board Type field is not supposed to be changed l Click Add to...

Страница 31: ...Windows 95 98 Windows 95 98 supports up to 128 serial ports from COM1 to COM128 To fully integrate the advanced features of Windows 95 98 multi process and multi thread pure 32 bit Windows 95 98 virtu...

Страница 32: ...the Complete message dialog to enter the configuration panel 4 The Moxa Smartio Industio Configuration Panel dialog will pop up for you to configure the boards and ports 5 In the Moxa Smartio Industi...

Страница 33: ...directly to the step 7 if you need not change any setting 6 In the Property dialog box select the desired port in the port list and click Port Setting to enter the individual Port setting dialog box t...

Страница 34: ...to COM4 sequentially If Auto Enumerating COM Number is not checked specify the COM number for individual port For instance the second port can be out of sequence say COM10 while the first port is map...

Страница 35: ...80 port 1 COM3 Board is not found appears refer to chapter Troubleshooting for solutions Note Once the board and the driver are installed and the driver restarts successfully you can start to develop...

Страница 36: ...etails In this configuration panel you may l Click Property to enter Property dialog box to configure the selected board with the correct COM Number INT Vector Interrupt no and Base I O Port Address P...

Страница 37: ...Control Panel icon and then System icon and then select Device Manager tab Then select and open the Moxa Smartio Industio muliport board option and then select the C168 Series Click on Properties butt...

Страница 38: ...Manual Removing Driver Open Control Panel icon and then Add Remove Programs icon and then select Install Uninstall tab Then select and open the MOXA Smartio Industio Driver option and then enter OK to...

Страница 39: ...ll the package how to setup up the driver and how to load or unload driver For details of the serial programming API 232 Library and utilities please refer to the next chapter Serial Programming Tools...

Страница 40: ...are steps for setting up the C168P driver Note that it is not intended to illustrate all the convenient functions of the setup programs when configuring the boards Please refer to the F1 on line help...

Страница 41: ...on C168P User s Manual 3 19 2 Press Enter to pop up the SETUP dialog box In the SETUP dialog box Press F8 to specify the CAP Address and press ENTER and then type Y YES to load the configuration of th...

Страница 42: ...P board will be shown along with other default settings such as port number buffer size etc Note Up to now you have completed the setup for C168P board You may skip this step and go directly to the ne...

Страница 43: ...referred to as port number in terms of serial programming You may map the port number range to the one you prefer between 0 and 255 as long as no port number overlapping condition or port number unde...

Страница 44: ...setup you can load the driver BIN SER DRV EXE at the DOS prompt The driver will detect the C168P board automatically If the board is detected a message similar to below will show API 232 Version 3 5...

Страница 45: ...een will show a message like API 232 Version 3 5 Universal 2 4 8 serial ports Communication Driver Setup driver None serial port found It means the C168P driver is not installed properly Please refer...

Страница 46: ...3 24 C168P User s Manual...

Страница 47: ...ary for easy programming in most popular languages useful utilities such as diagnostic monitor and terminal emulator illustrative example programs and comprehensive on line documents The serial commun...

Страница 48: ...lementation of multi process and multi thread serial communication programs and hence greatly reduce the developing time For complete library function description and example programs for Visual C Vis...

Страница 49: ...gnostic for MOXA boards only A convenient diagnostic program provides internal and external testing such as IRQ TxD RxD UART CTS RTS DTR DSR DTR DCD testing etc for the MOXA boards and ports to verify...

Страница 50: ...ou to watch the selected MOXA COM ports data transmitting receiving throughput and communication line status which are updated and displayed on the screen at every time interval In addition you may cl...

Страница 51: ...4 5 Terminal Emulator The Terminal Emulator features multi windows and supports terminal types of VT100 and ANSI You can transfer data interactively send pattern periodically or transfer file using AS...

Страница 52: ...b directory EXAMPLE language of the API 232 directory In addition for DOS C language only there are also Modem Control and File Transfer library available supporting Hayes compatible modem control as...

Страница 53: ...ed to disk storage for later analysis 2 The TTY terminal emulation utility allows user to view the signal status and transfer data interactively or files using ASCII XMODEM YMODEM ZMODEM and KERMIT pr...

Страница 54: ...Opt8J please follow the RS 485 programming guide below and also refer to Chapter Connection Option Opt8x and Cable Wiring for more Opt8J RS 485 operation details The Opt8J supports only 2 wire half du...

Страница 55: ...n blocks until last character transmitted sio_RTS port 0 Turn off RTS signal The RS 485 port is ready for receiving data sio_read port buff 10 Read 10 bytes Solution 2 There is a dedicated RS 485 func...

Страница 56: ...4 10 C168P User s Manual...

Страница 57: ...for Data Communication Equipment like modem RS 232 Cable Wiring for Opt8A B C D S RS 232 8 port connection boxes octopus cable designed for C168P are Opt8A 8 port RS 232 DB25 female connection box Opt...

Страница 58: ...ignments for various connection options Opt8A S DCE DB25 Female 2 RxD 3 TxD 4 CTS 5 RTS 6 DTR 7 GND 8 DCD 20 DSR Opt8B C DTE DB25 Male 2 TxD 3 RxD 4 RTS 5 CTS 6 DSR 7 GND 8 DCD 20 DTR Opt8D DTE DB9 Ma...

Страница 59: ...ght through Cable Opt8A S DTE Device DB25 Female DB25 Male RxD 2 2 TxD TxD 3 3 RxD CTS 4 4 RTS RTS 5 5 CTS DTR 6 6 DSR DSR 20 20 DTR GND 7 7 GND DCD 8 8 DCD PC COM2 port Serial Printer Terminal or any...

Страница 60: ...2 2 TxD TxD 3 3 RxD CTS 8 4 RTS RTS 7 5 CTS DTR 4 6 DSR DSR 6 20 DTR GND 5 7 GND DCD 1 8 DCD Type 2 To connect C168P to a DCE device Modem or any DCE Device Opt8A S Null Modem Cable Opt8A S DCE Devic...

Страница 61: ...h Cable Opt8B C DCE Device DB25 Male DB25 Female TxD 2 2 RxD RxD 3 3 TxD RTS 4 4 CTS CTS 5 5 RTS DSR 6 6 DTR DTR 20 20 DSR GND 7 7 GND DCD 8 8 DCD Modem or any DCE Device Opt8D Opt8D DCE Device DB9 Ma...

Страница 62: ...OFF you could just leave RTS CTS DSR DTR DCD open ignoring the connection indicated in dash lines PC COM2 port Serial Printer Terminal or any DTE Device Opt8A S Opt8A S DTE Device DB25 Female DB25 Ma...

Страница 63: ...DCD 1 8 DCD RS 422 Cable Wiring for Opt8J F Z RS 422 connection boxes designed for C168P are Opt8J Connection box with 8 female RS 422 485 DB25 ports Set the port switch to OFF position RS 422 for the...

Страница 64: ...xD B 3 TxD B 14 RxD A 16 TxD A 7 GND 4 CTS B 5 RTS B 13 RTS A Opt8J only 19 CTS A The RS 422 transmission distance can reach as long as 4000ft The connection box needs an external power adapter to sup...

Страница 65: ...t8J F Z RS 422 Device 1 3 TxD B RxD B 3 TxD B RxD B 16 TxD A RxD A 2 RxD B TxD B 2 RxD B TxD B 16 TxD A RxD A 14 RxD A TxD A 14 RxD A TxD A 7 GND GND 7 GND GND RS 422 Device N RxD B TxD B RxD A TxD A...

Страница 66: ...ved for both data transmitting and receiving depending on the RTS signal RS 485 Pinouts for Opt8J Opt8J 3 Data B 7 GND 16 Data A Multidrop RS 485 Half duplex Point to Point RS 485 Half duplex Opt8J RS...

Страница 67: ...m is to establish the same impedance at the line ends as in the line itself by terminating them with resistors The value of the termination resistor should equal the characteristic impedance of the tr...

Страница 68: ...5 12 C168P User s Manual...

Страница 69: ...stem If that is the case re install the board and make sure that it fits well in a 16 bit slot this time Sometimes the slot for plugging the board is bad In this case try other slots until you find a...

Страница 70: ...t may lead to this trouble a The user forgets or does not know the Configuration Access Port CAP of the board See next problem 4 for how to solve this problem b The CAP of the board conflicts with oth...

Страница 71: ...he CAP is unknown Step 1 Power off the PC OFF Step 2 Install jumper onto the JP1 of the board jumper JP1 Install Step 3 Power on the PC Now the CAP address of the board will be 0xA700 ON Step 4 Execut...

Страница 72: ...m reboots the error message Another driver in the system which did not report its resources has already claimed the interrupt used by xxx appears in the Event Log This indicates that the MOXA board is...

Страница 73: ...COM numbers of different boards happen to be the same Try to change the COM number mappings 4 Windows NT system panic blue screen The possible reason is an IRQ or memory conflict with other ISA Bus a...

Страница 74: ...is case please try other slots until you find a good one f The board might be defective DOS This section is specific for troubleshooting under DOS For general problems and solutions please see the pre...

Страница 75: ...1 5 2 v Parity none even odd space mark v UART 8 16550 or compatible v Speed bps 50 115 2K v Connectors 8 DB25 male or female v Data signals RS 232 TxD RxD RTS CTS DTR DSR DCD GND RS 422 TxD B TxD A R...

Страница 76: ...3 Windows 95 98 3 DOS 3 Linux R SCO UNIX OpenServer C SCO XENIX C QNX C FreeBSD C 3 Driver supported by Moxa and shipped with product C Driver supported by OS R Available by request Note Download the...

Страница 77: ...05F Timer 060 06F Keyboard 070 07F Real time clock 080 09F DMA page register 0A0 0BF Interrupt controller 2 0C0 0DF DMA controller 0F0 0FF Math coprocessor 100 1EF not usable 1F0 1F8 Fixed disk 200 2...

Страница 78: ...GND 3 RxD2 25 TxD2 46 CTS2 4 DSR2 26 DTR2 47 RTS2 5 DCD2 6 TxD3 27 RxD3 48 CTS3 7 DTR3 28 DSR3 49 RTS3 29 DCD3 50 GND 8 RxD4 30 TxD4 51 CTS4 9 DSR4 31 DTR4 52 RTS4 10 DCD4 32 GND 11 RxD5 33 TxD5 53 CT...

Страница 79: ...System o Windows 95 o Windows 98 o Windows NT 3 51 o Windows NT 4 0 o DOS o Others 5 PC Host Make _________ Model _________ 6 CPU Speed _____MHz Make ______ Model ______ 7 BIOS Make _________________...

Страница 80: ...er product repair time v Obtain a Return Merchandise Authorization RMA number from the sales representative or dealer v Carefully pack the product in anti static package and send it pre paid to the de...

Отзывы: