Manuel d'utilisation / d'entretien du produit MPAP-100 du fabricant Quatech
Aller à la page of 64
MPAP-100 RS-232 PCMCIA SYNCHRONOUS ADAPTER for PCMCIA Card Standard compatible machines User's Manual QUATECH, INC. TEL: (330) 655-9000 5675 Hudson Industrial Parkway FAX: (330) 655-9010 Hudson, Ohio 44236 www.
WARRANTY INFORMATION Quatech Inc. warrants the MPAP-100 to be free of defects for one (1) year from the date of purchase. Quatech Inc. will repair or replace any board that fails to perform under normal operating conditions and in accordance with the procedures outlined in this document during the warranty period.
Copyright 2001 Quatech, Inc. NOTICE The information contained in this document is protected by copyright, and cannot be reproduced in any form without the written consent of Quatech, Inc.
38 10.2.2 Receive FIFO ............................................. 37 10.2.1 Transmit FIFO ........................................... 37 10.2 Accessin g the FIFOs .......................................... 37 10.1 Enablin g and disablin g the FIFOs .
64 22.3.3 Bad Parameters ........................................... 63 22.3.2 Insufficient Number Of Command Line Ar g uments ........ 63 22.3.1 Resources Not Available .................................. 63 22.3 OS/2 Client Driver ...................
1 Introduction The Quatech MPAP-100 is a PCMCIA Type II (5 mm) card and is PCMCIA PC Card Standard Specification 2.1 compliant. It provides a single-channel RS-232 synchronous communication port. The base address and IRQ are configured through the PCMCIA hardware and software using utility programs provided by Quatech.
2 Hardware Installation Hardware installation for the MPAP-100 is a very simple process: 1. Insert the MPAP-100 into a vacant PCMCIA Type II adapter socket. 2. If PCMCIA Card and Socket Services and a Quatech MPAP-100 Client Driver are installed, the MPAP-100 will be configured for use automatically.
3 DOS / Windows 3.x Software Installation Two DOS configuration software programs are provided with the MPAP-100: a client driver and a card enabler. These programs are executed from DOS (before entering Windows) and allow operation of the MPAP-100 in both the DOS and Windows 3.
3.1 MPAP-100 Client Driver for DOS In order to use the MPAP-100 client driver, the system must be configured with Card and Socket Services software. Card and Socket Services software is not provided with the MPAP-100 but is available from Quatech. 3.1.
S# The PCMCIA socket into which the MPAP-100 must be inserted for this configuration to be used. This value is a decimal number ranging from 0 to 15. If this parameter is not used, the configuration can apply to any socket. B# The base I/O address of the MPAP-100.
is helpful if the user allows Card Services to select resources instead of specifying them on the command line..
3.2 DOS Client Driver examples Example: Attempt to configure an MPAP-100 inserted into any socket with a base address and IRQ automatically assigned by Card Services. DEVICE= C:MPAP-100MPAP1CL.SYS Example: Attempt to configure an MPAP-100 inserted into any socket with a base address of 300 hex and an IRQ assigned by Card Services.
3.3 MPAP-100 Enabler for DOS For systems that are not using PCMCIA Card and Socket Services software, the MPAP-100 DOS enabler may be used to enable and configure the card.
The enabler requires a single desired configuration to be provided on the command line. The card will not be configured if the desired configuration is not provided. The desired configuration must be enclosed in parentheses and it contains parameters separated using commas (no spaces).
If configuration is successful, the enabler will display a message showing the configuration on the screen. If the MPAP-100 is not successfully configured, then the information in this section along with the Troubleshooting chapter of this manual should be consulted to determine the cause of the problem.
3.4 DOS Enabler Examples Example: Configure the MPAP-100 in socket 0 with a base address of 300H and IRQ 5. Software control of SYNCA will be enabled . MPAP1EN.EXE (s0,b300,i5,c) Example: Configure the MPAP-100 in socket 1 with a base address of 300H and IRQ 3 using a configuration memory window at segment D800.
4 Windows 95/98 Installation Windows 95/98 maintains a registry of all known hardware installed in your computer. Inside this hardware registry Windows keeps track of all of your system resources, such as I/O locations, IRQ levels, and DMA channels.
2. Click the "Next" button. Select the radio button for "Search for the best driver for your device." Click the "Next" button to continue. 3. On the next dialog, select the " CD-ROM drive" checkbox. Insert the Quatech COM CD (shipped with the card) into the CD-ROM drive.
5. Windows will copy the INF file from the CD and display a final dialog indicating that the process is complete. Click the "Finish" button..
4.2 Viewing Resources with Device Manager The following instructions provide step-by-step instructions on viewing resources used by the MPAP-100 in Windows 95/98 using the "Device Manager" utility. 1. Double click the "System" icon inside the Control Panel folder.
6. If changes to the automatic configuration are necessary for compatibility with existing programs, uncheck the "Use Automatic Settings" box and doubleclick on the Resource Type that needs to be changed. Caution should be used to avoid creating device conflicts with other hardware in the system.
5 OS/2 Software Installation An OS/2 client driver is provided with the MPAP-100. This client driver works with OS/2's Card and Socket Services to allow operation of the MPAP-100 under OS/2. 5.1 System Requirements OS/2 2.1 or later. OS/2 PCMCIA Card and Socket Services support must be installed.
addr (required) The base I/O address of the MPAP-100. This number must be a three-digit hexadecimal value ending in 0. irq (required) The interrupt level (IRQ) of the MPAP-100. This decimal number must be one of the following values: 3, 4, 5, 7, 9, 10, 11, 12, 14, 15, or 0 if no IRQ is desired.
5.3 OS/2 Client Driver Configuration Examples Example: Configure the MPAP-100 at base address 300 hex and IRQ 5. Configuration will fail if any of these resources are already in use. Only one MPAP-100 can be used. DEVICE=C:MPAP-100MPAP100.SYS (300,5) Example: Configure the MPAP-100 at base address 300 hex and IRQ 5.
If PCMCIA support was not selected when OS/2 was installed, add it by using the Selective Install facility in the System Setup folder. Full PCMCIA support is built into OS/2 Warp 3.0 and later. On OS/2 2.1 and 2.11, PCMCIA Card Services is built in, but you must add Socket Services separately.
6 Using the MPAP-100 with Syncdrive Syncdrive is a synchronous communications software driver package designed to aid users of Quatech synchronous communication hardware in the development of their application software. Syncdrive is included free of charge with all Quatech MPA-series synchronous communication products.
7 Addressing The MPAP-100 occupies a continuous 16-byte block of I/O addresses. For example, if the base address is set to 300 hex, then the MPAP-100 will occupy address locations 300 hex to 30F hex. If the computer in which the MPAP-100 is installed is running PCMCIA Card and Socket Services, the base address is set by the client driver.
8 Interrupts The MPAP-100 will operate using the interrupt level (IRQ) assigned by the PCMCIA system. Interrupts can come from the SCC, the external FIFOs or RS-232 test mode. The interrupt source is selected by bits 4 and 5 of the Configuration Register (see page 41).
9 SCC General Information The Serial Communications Controller (SCC) is a dual channel, multi-protocol data communications peripheral. The MPAP-100 provides a single channel for communications, however, portions of the second channel can be utilized to support some special circumstances.
9.1 Accessing the registers The mode of communication desired is established and monitored through the bit values of the internal read and write registers.
Example 3: Write data into the transmit buffer of channel A. mov dx, base ; load base address out dx, al ; write data in ax to buffer Example 4: Read data from the receive buffer of channel A.
External/Status interrupt control WR15 Miscellaneous control bits: baud rate generator, DPLL control, auto echo WR14 Lower byte of baud rate time constant WR13 Lower byte of baud rate time constant WR.
9.2 Baud Rate Generator Programming The baud rate generator (hereafter referred to as the BRG) of the SCC consists of a 16-bit down counter, two 8-bit time constant registers, and an output divide-by-two. The time constant for the BRG is programmed into WR12 (least significant byte) and WR13 (most significant byte).
The MPAP-100 is a single-channel device. Portions of SCC channel B are used to augment channel A. Channel B cannot be used for transmit, but may be used for receive, subject to certain limitations. 9.4.1 Receive data and clock signals The receive data signals RXDA and RXDB are tied together.
9.5 SCC Incompatibility Warnings Due to the SCC implementation used by the MPAP-100, there are two minor incompatibilities that the software programmer must avoid. 9.5.1 Register Pointer Bits In a Zilog 85230, the control port register pointer bits can be set in either channel.
10 FIFO Operation The MPAP-100 is equipped with 1024-byte external FIFOs in the transmit and receive data paths. These FIFOs are implemented as extensions of the SCC's small internal FIFOs. They have been designed to be as transparent as possible to the software operating the MPAP-100.
10.2.2 Receive FIFO The receive FIFO can service the receiver of either channel A or channel B of the SCC. If RXSRC (bit 1) of the Configuration Register (see page 41) is logic 1, the receive FIFO will service SCC channel B. If RXSRC is logic 0, the receive FIFO will service SCC channel A.
10.3.1 Using channel A for both transmit and receive This is the mode in which most applications will run. Set RXSRC (bit 1) in the Configuration Register to logic 0. This will configure the MPAP-100 to use W/REQA for receive DMA and DTR/REQA for transmit DMA.
10.3.2 Using channel B for receive The MPAP-100 supplies only limited support for SCC channel B. This mode, therefore, is not recommended for most applications. Set RXSRC (bit 1) in the Configuration Register to logic 1. This will configure the MPAP-100 to use W/REQA for transmit DMA and W/REQB for receive DMA.
10.4 FIFO status and control Several registers are used to control the FIFOs and monitor their status. These registers are detailed in other chapters of this manual. 10.4.1 Interrupt status Three interrupt statuses, listed in Table 8, can be generated by four events related to FIFO activity.
10.4.2 Resetting the FIFOs The FIFOs are automatically disabled and reset at powerup or when the MPAP-100 is inserted into a PCMCIA socket. The transmit and receive FIFOs can also be independently reset by setting and clearing the appropriate bits in the FIFO Control Register.
To make the external FIFOs more useful in byte-synchronous modes, the MPAP-100 can watch for a given character to be transferred consecutively a specific number of times from the SCC into the receive FIFO. When this occurs, the RX_PAT bit in the Interrupt Status Register (see page 43) is set.
10.7 Receive FIFO timeout With asynchronous operational modes, the same problem exists. Namely, how is one to determine when a reception is complete? While the receive pattern detection may be useful here, the MPAP-100 also offers a timeout feature on the external receive FIFO.
11 Communications Register The Communications Register is used to set options pertaining to the clocks. The source and type of clock to be transmitted or received can be specified. External synchronization and RS-232 DTE test modes and can also be controlled with this register.
receive unformatted serial data, as it allows the SCC receiver to be manually placed into sync under program control. This bit is ignored if bit 6 is set (logic 1). Bit 3: RCKEN --- Receive Clock Source: When set (logic 1), this bit allows the receive clock (RCLK) signal to be generated by the TRxC pin on channel B of the SCC.
12 Configuration Register The Configuration Register is used to set the interrupt source and enable the interface between the SCC and the external FIFOs.
Bit 1: RXSRC --- Receive FIFO DMA Source: This bit determines which SCC pins are used to control transmit and receive DMA transactions between the SCC and the external FIFOs (when enabled).
13 Interrupt Status Register The Interrupt Status Register is used to determine the cause of an interrupt generated by the MPAP-100. The address of this register is Base+8.
14 FIFO Status Register The FIFO Status Register is used to return current status information about the external FIFOs. The address of this read-only register is Base+9. Table 12 details the bit definitions of the register. This register can be ignored if the external FIFOs are not being used.
15 FIFO Control Register The FIFO Control Register is used to control the external data FIFOs. The address of this register is Base+A (hex). Table 13 details the bit definitions of the register. This register can be ignored if the external FIFOs are not being used.
16 Receive Pattern Character Register The Receive Pattern Character Register is used to set the character value to be used in receive pattern detection. The address of this register is Base+B (hex). This register can be ignored if the external FIFOs are not being used.
17 Receive Pattern Count Register The Receive Pattern Count Register is used to set the counter value to be used in receive pattern detection. The address of this register is Base+C (hex). This register can be ignored if the external FIFOs are not being used.
18 Receive FIFO Timeout Register The Receive FIFO Timeout Register is used to control the operation of the external receive FIFO timeout feature. The address of this register is Base+D (hex). This register can be ignored if the external FIFOs are not being used.
19 External Connections The MPAP-100 is configured as a Data Terminal Equipment (DTE) device, meeting the RS-232-D standard using a DB-25 male connector. There is no DCE version available. The control signals the DTE can generate are Request To Send (RTS) and Data Terminal Ready (DTR).
N/C N/C RxCLK (DTE) SYNCA N/C CD DGND DSR CTS RTS RxD TxD CGND 13 12 11 10 9 8 7 6 5 4 3 2 1 25 24 23 22 21 20 19 18 17 16 15 14 TM (OUTPUT) TxCLK (DTE) N/C N/C RLBK (OUTPUT) DTR N/C LLBK (OUTPUT) RxC.
* Not included in the official RS-232-D specification Comm. Reg. bit 7 TM TEST MODE X 25 TRxCA pin DA TXCLK (DTE) X 24 N/C 23 PCMCIA STSCHG signal CE RING X 22 Comm.
20 DTE Interface Signals CIRCUIT AB - SIGNAL GROUND CONNECTOR NOTATION: DGND DIRECTION: Not applicable This conductor directly connects the DTE circuit ground to the DCE circuit ground.
CIRCUIT CC - DCE READY (DATA SET READY) CONNECTOR NOTATION: DSR DIRECTION: From DCE This signal indicates the status of the local DCE by reporting to the DTE device that a communication channel has been established.
CIRCUIT DB - TRANSMIT SIGNAL ELEMENT TIMING (DCE SOURCE) CONNECTOR NOTATION:TXCLK (DCE) DIRECTION: From DCE This signal, generated by the DCE, provides the DTE with element timing information pertaining to the data transmitted to the DCE. The DCE can use this information for its received data.
21 Specifications Bus interface: PCMCIA PC Card Standard 2.1 Physical Dimensions: Type II (5 mm) PCMCIA card Controller: 85230-compatible 16-MHz Serial Communications Controller (SCC) DTE Interface: M.
22 Software Troubleshooting This appendix discusses how to resolve some common problems sometimes encountered when using the MPAP-100 configuration software.
22.2.1 With Card and Socket Services The enabler should NOT be used if any Card and Socket Services are present on the system. If Card and Socket Services is installed, the enabler may interfere with its operation and with the device(s) it controls.
The base address or IRQ value may be out of range. Make sure that the base address is a hexadecimal number between 100 hex and 3F0 hex ending in 0. Make sure that the IRQ is a decimal number between 2 and 15.
MPAP-100 User's Manual Revision 2.22 March 2004 P/N 940-0090-222 Quatech MPAP-100 User's Manual i.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté Quatech MPAP-100 c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du Quatech MPAP-100 - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation Quatech MPAP-100, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le Quatech MPAP-100 va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le Quatech MPAP-100, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du Quatech MPAP-100.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le Quatech MPAP-100. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei Quatech MPAP-100 ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.