Quatech MPAP-100 user manual Example 3 Write data into the transmit buffer of channel A

Page 31
Example 3: Write data into the transmit buffer of channel A.

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

 

 

RR0

Transmit, Receive buffer statuses and external status

 

 

RR1

Special Receive Condition status, residue codes, error

 

conditions

 

RR2

Modified Channel B interrupt vector and Unmodified

 

Channel A interrupt vector

RR3

Interrupt Pending bits

RR6

LSB of frame byte count register

RR7

MSB of frame byte count and FIFO status register

RR8

Receive buffer

RR10

Miscellaneous status parameters

 

 

RR12

Lower byte of baud rate time constant

RR13

Upper byte of baud rate time constant

RR15

External/Status interrupt information

Table 3 --- SCC read register description

The SCC can perform three basic forms of I/O operations: polling, interrupts, and block transfer. Polling transfers data, without interrupts, by reading the status of RR0 and then reading or writing data to the SCC buffers via CPU port accesses. Interrupts on the SCC can be sourced from the receiver, the transmitter, or External/Status conditions. At the event of an interrupt, Status can be determined, then data can be written to or read from the SCC via CPU port accesses. Further information on this subject is found on page 23. For block transfer mode, DMA transfers are used, so this type of operation is not supported on the MPAP-100.

The SCC incorporates additional circuitry supporting serial communications. This circuitry includes clocking options, baud rate generator (BRG), data encoding, and internal loopback. The SCC may be programmed to select one of several sources to provide the transmit and receive clocks. These clocks can be programmed in WR11 to come from the RTxC pin, the TRxC pin, the output of the BRG, or the transmit output of the DPLL. The MPAP-100 uses the TRxC pin for its clock-on-transmit and the RTxC pin for its clock-on-receive. Programming of the clocks should be done before enabling the receiver, transmitter, BRG, or DPLL.

WR0

Command Register, Register Pointer, CRC initialization, and resets for various modes

Image 31
Contents QUATECH, INC MPAP-100 RS-232 PCMCIA SYNCHRONOUS ADAPTERUsers Manual for PCMCIA Card Standard compatible machinesSynchronous Communications Adapter WARRANTY INFORMATIONMPAP-100 PRODUCT DESCRIPTION Single Channel PCMCIA RS-232-DCopyright 2001 Quatech, Inc Table of Contents 5.2.1 Tying a configuration to a particular socket5.3 OS/2 Client Driver Configuration Examples 5.4 Monitoring The Status Of PCMCIA Cards22.1.4 Older Versions of Card and Socket Services Table of Contents10.3.1 Using channel A for both transmit and receive Accessing the SCC while FIFOs are enabled1.1 System Requirements 1 Introduction2 Hardware Installation 3 DOS / Windows 3.x Software Installation 3.1 MPAP-100 Client Driver for DOS 3.1.1 DOS client driver installationDEVICE=drive\path\MPAP1CL.SYS S#,B#,I#,C ... S#,B#,I#,C 3.1.3 Hot Swapping 3.1.2 Auto Fallback configurationPage DEVICE=C\MPAP-100\MPAP1CL.SYS s0,b300,i5 3.2 DOS Client Driver examplesDEVICE=C\MPAP-100\MPAP1CL.SYS DEVICE=C\MPAP-100\MPAP1CL.SYS b300,c3.3.2 Hot Swapping is not supported 3.3 MPAP-100 Enabler for DOS3.3.1 DOS Enabler Installation 3.3.3 Configuring a cardMPAP1EN S#,B#,I#,W#,C MPAP1EN S#,R,W# 3.3.4 Releasing a cards configurationMPAP1EN.EXE s0,r 3.4 DOS Enabler ExamplesMPAP1EN.EXE s0,b300,i5,c MPAP1EN.EXE s1,b300,i3,wd84.1 Using the Add New Hardware Wizard 4 Windows 95/98 InstallationPage Page 4.2 Viewing Resources with Device Manager 4.3 Configuration Options DEVICE=drive\path\MPAP100.SYS addr,irq,C ... addr,irq,C 5 OS/2 Software Installation5.2 OS/2 Client Driver Installation 5.1 System Requirements5.2.3 Hot Swapping 5.2.2 Auto Fallback configurationDEVICE=C\MPAP-100\MPAP100.SYS 300,5 5.5 Installing OS/2 PCMCIA SupportPage 6 Using the MPAP-100 with Syncdrive 7 Addressing 8 Interrupts Asynchronous Communications 9 SCC General InformationSDLC/HDLC Bit Synchronous Communications Byte-oriented Synchronous Communications9.1 Accessing the registers Example 3 Write data into the transmit buffer of channel A Interrupt vector Master interrupt control and resetcoding, CRC reset Interrupt control, Wait/DMA request controlClockFrequency TimeConst 2 BaudRate ClockMode 9.2 Baud Rate Generator Programming9.3 SCC Data Encoding Methods 9.4 Support for SCC Channel B9.4.3 Extra handshaking for channel A 9.4.1 Receive data and clock signals9.4.4 Other signals are not used 9.4.2 Extra clock support for channel A9.5.1 Register Pointer Bits 9.5 SCC Incompatibility Warnings9.5.2 Software Interrupt Acknowledge 10.2.1 Transmit FIFO 10.2 Accessing the FIFOs10 FIFO Operation 10.1 Enabling and disabling the FIFOs10.2.2 Receive FIFO 10.3 SCC configuration for FIFO operationRegister 10.3.2 Using channel B for receive 10.4.1 Interrupt status 10.4 FIFO status and control10.4.4 Controlling the FIFOs 10.4.2 Resetting the FIFOs10.5 Accessing the SCC while FIFOs are enabled 10.4.3 Reading current FIFO statusPage 10.7 Receive FIFO timeout SWSYNC 11 Communications RegisterBit 2 TCKEN --- Transmit Clock Source RCKEN --- Receive Clock SourceBits 1-0 Reserved, always External Data FIFOs Present --- Reserved, always 12 Configuration RegisterINTS1, INTS0 --- Interrupt Source and Enable Bits FIFOEN --- External data FIFO enableRXSRC --- Receive FIFO DMA Source 13 Interrupt Status Register 14 FIFO Status Register 15 FIFO Control Register Bits 7-0 Receive Pattern CharacterThis is 16 Receive Pattern Character RegisterBits 7-0 Receive Pattern Count 17 Receive Pattern Count RegisterBit 6 Reserved, always Bits 5-0 Timeout Interval 18 Receive FIFO Timeout RegisterBit 7 X16MODE --- Clock Mode 19 External Connections 19.2 RING pin 19.1 SYNCA pin19.3 Null-modem cables CIRCUIT CB - CLEAR TO SEND 20 DTE Interface SignalsCIRCUIT AB - SIGNAL GROUND CIRCUIT BB - RECEIVED DATACIRCUIT CF - RECEIVED LINE SIGNAL DETECT CARRIER DETECT CIRCUIT CC - DCE READY DATA SET READY CONNECTOR NOTATION DSRCIRCUIT CD - DTE READY DATA TERMINAL READY CONNECTOR NOTATION DTR CIRCUIT CE - RING INDICATOR CONNECTOR NOTATION RINGCIRCUIT TM - TEST MODE 21 Specifications 22.1 DOS Client Driver 22.1.1 Generic SuperClient Drivers 22 Software Troubleshooting22.1.3 Multiple Configuration Attempts 22.2 DOS Enabler22.3 OS/2 Client Driver 22.3.1 Resources Not Available 22.2.1 With Card and Socket Services22.2.2 Socket Numbers 22.2.3 Memory range exclusionPage MPAP-100 Users Manual Revision March P/N