Quatech MPAP-100 User Manual

Other manuals for MPAP-100: Specifications, User Manual
Manual is about: RS-232 PCMCIA SYNCHRONOUS ADAPTER for PCMCIA Card Standard compatible machines

Summary of MPAP-100

  • Page 1

    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.Quatech.Com quatech mpap-100 user's manual 1.

  • Page 2

    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 w...

  • Page 3

    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. Likewise, any software programs that might accompany this document are protected by copyright and can be used on...

  • Page 4

    38 10.2.2 receive fifo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 10.2.1 transmit fifo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 10.2 accessing the fifos . . . . . . . . . . . . . . . . . . . . . . . . ....

  • Page 5

    64 22.3.3 bad parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 22.3.2 insufficient number of command line arguments . . . . . . . . 63 22.3.1 resources not available . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 22.3 os/2 cl...

  • Page 6

    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 ...

  • Page 7

    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...

  • Page 8

    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.X environments. Table...

  • Page 9

    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.1 dos client driver installation the mpap-100 cl...

  • Page 10

    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. This number must be a three-digit h...

  • Page 11

    Is helpful if the user allows card services to select resources instead of specifying them on the command line..

  • Page 12

    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-100\mpap1cl.Sys example: attempt to configure an mpap-100 inserted into any socket with a base address of 300 hex and ...

  • Page 13

    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 will operate on any dos system using an intel 82365sl (pcic) or pcic-compatible pcmcia socket adapter including the...

  • Page 14

    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). In the descri...

  • Page 15

    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 pro...

  • Page 16

    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 ...

  • Page 17

    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. The "add new hardware wizard" utility was designed...

  • Page 18

    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. Click the "next" button. 4. W...

  • Page 19

    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..

  • Page 20

    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. This opens up the system properties...

  • Page 21

    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. 4....

  • Page 22

    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. Se...

  • Page 23

    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. C (o...

  • Page 24

    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-100\mpap100.Sys (300,5) example: configure the mpap-100 at base address...

  • Page 25

    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..

  • Page 26

    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 com...

  • Page 27

    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 b...

  • Page 28

    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). When using interrupts with the...

  • Page 29

    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. The scc can...

  • Page 30

    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. The register set of the scc includes 16 write registers and 9 read registers. These registers only occupy four address locations, which start at...

  • Page 31

    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. Mov dx, base ; load base address in al, dx ; write data in ax to buffer external/status interrupt informati...

  • Page 32

    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 wr12 clock mode and source control wr11 miscellaneous transmitter/receiver control bits, nrzi, nrz, fm...

  • Page 33

    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 s...

  • Page 34

    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. The rec...

  • Page 35

    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. With the implementati...

  • Page 36

    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. By using thes...

  • Page 37

    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. If the fi...

  • Page 38

    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. In addition to any other desired scc co...

  • Page 39

    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 ...

  • Page 40

    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. In each...

  • Page 41

    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. Resetting a fifo sets ...

  • Page 42

    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. For in...

  • Page 43

    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. If the external fifo ...

  • Page 44

    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. The address of the co...

  • Page 45

    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 ...

  • Page 46

    12 configuration register the configuration register is used to set the interrupt source and enable the interface between the scc and the external fifos. The address of this register is base+5. Table 10 details the bit definitions of the register. 0 rxsrc fifoen 0 ints0 ints1 0 1 bit 0 bit 1 bit 2 b...

  • Page 47

    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). The transmit data fifo is always used with scc channel a. The receive data fifo may be used with scc channel a...

  • Page 48

    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. Table 11 details the bit definitions of the register. The interrupt source in the configuration register (see page 41) must be ...

  • Page 49

    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. Txe t...

  • Page 50

    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. Tx_reset 0 0 0 rx_reset en_to en_p...

  • Page 51

    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. Character value (0-255) bit 0 ...

  • Page 52

    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. Counter value (0-255) bit 0 bit 1 bit 2 ...

  • Page 53

    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. See page 38 for details on the receiv...

  • Page 54

    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). It can receiv...

  • Page 55

    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) rxclk (dce) n/c txclk (dce) ring figure 2 --- mpap-100 output connector the testing signals the dte can...

  • Page 56

    * 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. Reg. Bit 4 rl rlbk x 21 dtr/reqa pin cd dtr x 20 n/c 19 comm. Reg. Bit 5 ll llbk x 18 rtxca pin dd rxclk (dce) x 17 n/c 16 trxca pin d...

  • Page 57

    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 ba - transmitted data connector notation: txd direction: to dce this signal transfers the data generated b...

  • Page 58

    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 cd - dte ready (data terminal ready) connector notation: dtr direction: to d...

  • Page 59

    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. Circu...

  • Page 60

    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: male d-25 connector transmit drivers: rs-232 compatible, 600 kbps typical maximum data rate receive b...

  • Page 61

    22 software troubleshooting this appendix discusses how to resolve some common problems sometimes encountered when using the mpap-100 configuration software. 22.1 dos client driver 22.1.1 generic "superclient" drivers many card and socket services packages include a generic client driver (or supercl...

  • Page 62

    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 client driver should be used to configure the ...

  • Page 63

    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..

  • Page 64

    Mpap-100 user's manual revision 2.22 march 2004 p/n 940-0090-222 quatech mpap-100 user's manual i.