Multi-Tech Systems, Inc. makes no representations or warranties with respect to the contents hereof and
specifically disclaims any implied warranties of merchantability or fitness for any particular purpose.
Furthermore, Multi-Tech Systems, Inc. reserves the right to revise this publication and to make changes
from time to time in the content hereof without obligation of Multi-Tech Systems, Inc. to notify any person
or organization of such revisions or changes.
Revisions
Revision LevelDateDescription
A09/04/03First release.
Patents
This device covered by one or more of the following patents: 6,219,708; 6,031,867; 6,012,113; 6,009,082;
5,905,794; 5,864,560; 5,815,567; 5,815,503; 5,812,534; 5,809,068; 5,790,532; 5,764,628; 5,764,627;
5,754,589; 5,724,356; 5,673,268; 5,673,257; 5,644,594; 5,628,030; 5,619,508; 5,617,423; 5,600,649;
5,592,586; 5,577,041; 5,574,725; 5,559,793; 5,546,448; 5,546,395; 5,535,204; 5,500,859; 5,471,470;
5,463,616; 5,453,986; 5,452,289; 5,450,425; 5,355,365; 5,309,562; 5,301,274
Other Patents Pending.
Trademarks
Trademarks of Multi-Tech Systems, Inc. are SocketModem and the Multi-Tech logo.
Microsoft and Windows are registered trademarks or trademarks of Microsoft Corporation in the United
States and/or other countries. All other trademarks are owned by their respective companies.
World Headquarters
Multi-Tech Systems, Inc.
2205 Woodale Drive
Mounds View, Minnesota 55112
Phone: 763-785-3500 or 800-328-9717
Fax: 763-785-9874
Technical Support
CountryBy EmailBy Phone
France:support@multitech.fr(33) 1-64 61 09 81
India: support@multitechindia.com91 (124) 6340778
U.K.:support@multitech.co.uk(44) 118 959 7774
U.S. and Canada: oemsales@multitech.com(800) 972-2439
Rest of the World: oemsales@multitech.com(763) 717-5863
Internet Address: http://www.multitech.com
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 2
Table of Contents
Contents
Chapter 1 – Product Description and Specifications................................................................................ 5
Serial Pin Configurations ........................................................................................................................... 9
Result Codes ........................................................................................................................................... 83
Chapter 6 – Fax Class 1 and Class 1.0 Commands ................................................................................ 86
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 4
Chapter 1 – Product Description and Specifications
Chapter 1 – Product Description and
Specifications
Introduction
The Multi-Tech SocketModem creates communication-ready devices by integrating data functionality into
a single product design. The SocketModem is a space-efficient (1" × 2.5"), embedded modem that
provides V.92 or V.34/33.6K data communication. The complete, ready-to-integrate modem dramatically
reduces development time and costs for system designers. The SocketModem complies with telecom
requirements, can be shipped worldwide, and is globally configurable.
This guide provides the hardware, software, and troubleshooting information needed to effectively
integrate the SocketModem into your equipment. This guide also provides:
· commands that the developer can use to configure and control a data modem and
· Result codes that the modem issues in response to the commands.
Product Description
The MT5600SMI SocketModem is a standard 64-pin modem used for integrating data communications.
· It is a single-port 3.3V modem, which integrates the controller, DSP, and DAA in a 1" x 2.5" form
factor and communicates to a host controller via an asynchronous serial interface.
· It is available with an 8-bit parallel interface.
This Developer's Guide covers all of the MT5600SMI products:
ProductDescriptionRegion
MT5600SMI-32V.32bis Serial Data/Fax 5VGlobal
MT5600SMI-L32V.32bis Serial Data/Fax 3.3VGlobal
MT5600SMI-P32V.32bis Parallel Data/Fax 5VGlobal
MT5600SMI-34V.34 Serial Data/Fax 5VGlobal
MT5600SMI-L34V.34 Serial Data/Fax 3.3VGlobal
MT5600SMI-XL34 V.34 Serial Data/Fax 3.3VGlobal
MT5600SMI-P34V.34 Parallel Data/Fax 5VGlobal
MT5600SMI-PL34 V.34 Parallel Data/Fax 3.3VGlobal
MT5600SMI-92V.92 Serial Data/Fax 5VGlobal
MT5600SMI-L92V.92 Serial Data/Fax 3.3VGlobal
MT5600SMI-XL92 V.92 Serial Data/Fax 3.3VGlobal
MT5600SMI-P92V.92 Parallel Data/Fax 5VGlobal
MT5600SMI-PL92 V.92 Parallel Data/Fax 3.3VGlobal
How to Read the Product Codes in the Table Above:
32V.32bis/14.4K data rate
34V.34/33.6K data rate
92V.92/56K data rate
L3.3 volt power input (default is 5V)
PParallel interface (serial is default)
XExclude LED pinouts
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 5
Chapter 1 – Product Description and Specifications
Developer's Kit
A Developer's Kit is available. The serial kit allows you to plug in the SocketModem and use it as a serial
modem for testing, programming, and evaluation. The parallel kit turns the parallel module into an ISA
modem. Each kit includes one SocketModem, one development board with an RS-232 DB-25 connector,
wall power adapter, RJ-11 jack, and RS-232 cable.
Features
· Integrates the controller, data pump, and data access arrangement (DAA) in one module.
· V.92/56K, V.34/33.6K, or V.32bis/14.4Kdata rates
· Backward compatibility with lower speed data standards
· 3.3 Volt or 5 Volt power input options
· Serial or parallel interface
· V.17, V.21, V.27, V.29 Fax
· Fax Class 1 and 1.0
· V.22bis Fast Connect
· FastPOS (V.29)
· Voice send and receive functions
· LED pin output option
· Industry-standard error correction and data compression
· DTMF detection and distinctive ring
· Audio circuit outputs for audio call-progress monitoring
· Three-number storage for automatic dialing capabilities and non-volatile memory (NoVRAM) to
store user profiles
· Speaker interface for call progress monitoring
· Full-duplex data transmission over dial-up lines
· Line quality monitoring and retrain
· Line protection circuitry included
· Auto-dial, redial, and auto-answer
· Pulse or tone dial
· Call status display
· Extension pickup detection
· Caller ID detection
· Remote hang-up detection
· Digital PBX detection and protection
· 60-character command line buffering
· AT command compatibility
· Global approvals with a single module design
· Intelligent DAA technology detects line status
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 6
Chapter 1 – Product Description and Specifications
Technical Specifications
The SocketModem meets the following specifications:
Data FormatSerial or parallel interface
Data
Error CorrectionV.42 (LAP-M or MNP 2–4)
Data CompressionV.42bis, MNP 5
FaxV.17, V.29, V.27ter, V.21 ch.2
Modes of OperationFull duplex over dial-up lines; data mode, command mode, online command mode
2-bit and 4-bit ADPCM, 8-bit linear PCM, and 4-bit IMA coding
8 kHz sample rate
Concurrent DTMF, ring, and Caller ID detection
Typical: 117 mA (.58 W @ 5 V DC); Maximum: 118 mA (.61 W @ 5.25 V DC)
Operational
Temperature
Storage Temperature-10 to +85° C
0 to +70° C
Humidity Range: 20 to 90% (non-condensing)
Sources of Additional Information
For information on Multi-Tech modem installation, AT commands, S-Registers, and testing refer to the
applicable user manual that came with your Multi-Tech modem. Multi-Tech manuals and other resources
are on the Multi-Tech web page at http://www.multitech.com.
For additional Multi-Tech information, contact:
http://www.multitech.com for News, Products, Solutions, Support, Manuals and more.
ftp://ftp.multitech.com for Modem Firmware, Modem INFs, Utilities, etc.
oemsales@multitech.com for email technical support.
The Global Engineering Documents Web site manages a collection of more than one million documents
from over 460 organizations worldwide: http://global.ihs.com
Phone: 800-854-7179
Fax: 303-792-2192
ITU is the leading publisher of telecommunication technology, regulatory and standard information, with
over 4,000 titles in printed form, on CD-ROM and online at http://www.itu.int/publications/
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 7
Chapter 2 – Mechanical Specifications
Chapter 2 – Mechanical Specifications
Physical Dimensions
Figure 2–1. Maximum Component Height
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 8
Chapter 2 – Mechanical Specifications
Serial Pin Configurations
The serial interface use an 16-pin interface to provide an on-board DAA with tip and ring connections,
audio circuit for call-progress monitoring and serial interface via logic level signals.
Figure 2–2. Serial SocketModems Pins
Available with or without LED Pins
Pin Descriptions for Serial SocketModem Devices
Pin#Signal
Name
1TipI/O
2RingI/O
24–RESETI
26DGND
29DCDIND
30RXIND
I/O
Type
Description
Tip Signal from Telco. Tip connection to the phone line (RJ11 Pin 3).
SocketModem is Tip/Ring is polarity insensitive.
Ring Signal from Telco. Ring connection to the phone line (RJ11 Pin 4).
SocketModem is Tip/Ring is polarity insensitive.
Modem Reset (with weak pull-up). The active low –RESET input resets the
SocketModem logic and returns the AT command set to the original factory
default values or to "stored values" in NVRAM. –RESET is tied to VCC
through a 400ms time constant circuit for "Power-on-Reset" functionality. The
modem is ready to accept commands within 6.5 seconds of power-on or reset.
Reset must be asserted for a minimum of 300 ns.
Ground
DCD LED. Output from 74AC05 with 1500 Ohms pull-up.
RX LED. Output from 74AC05 with 1500 Ohms pull-up.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 9
Chapter 2 – Mechanical Specifications
Pin#Signal
Name
31DTRIND
32TXIND
33–RTSI
34–RXDO
35–TXDI
36–RIO
37–DSRO
38–CTSO
39–DCDO
40–DTRI
41DGND
61VCC
63AGND
64SPKR
I/O
Type
Description
DTR LED. Output from 74AC05 with 1500 Ohms pull-up.
TX LED. Output from 74AC05 with 1500 Ohms pull-up.
Request to Send. RTS signal is used for hardware flow control.
Received Data. Used to send data received from the telephone line and also
modem responses to the DTE. Modem response take priority over incoming
data. When no data is transmitted, the signal is held in mark condition.
Transmit Data. The DTE uses this line to send data to the modem for
transmission over the telephone line or to transmit commands to the modem.
The DTE should hold this circuit in the mark state when no data is being
transmitted or during intervals between characters.
Ring Indicate. –RI output ON (low) indicates the presence of an ON segment
of a ring signal on the telephone line.
The modem will not go off-hook when –RI is active; the modem waits for –RI
to go inactive before going off-hook.
Data Set Ready. –DSR indicates modem status to the DTE. –DSR OFF
(high) indicates that the DTE is to disregard all signals appearing on the
interchange circuits except Ring Indicator (–RI). It reflects the status of the
local data set, and does not indicate an actual link with any remote data
equipment.
Clear To Send. –CTS is controlled by the modem to indicate whether or not
the modem is ready to transmit data. –CTS ON, indicates to the DTE that
signals presented on TXD will be transmitted to the telephone line. –CTS OFF
indicates to the DTE that it should not transfer data across the interface on
TXD.
Data Carrier Detect. –DCD output is ON (low) when a carrier is detected on
the telephone line or OFF (high) when carrier is not detected.
Data Terminal Ready (Active Low). The –DTR input is turned ON (low) by
the DTE when the DTE is ready to transmit or receive data. –DTR ON
prepares the modem to be connected to the telephone line, and, once
connected, maintains the connection. –DTR OFF places the modem in the
disconnect state.
Ground.
3.3V DC Power.
Analog Ground. Analog ground is tied common with DGND on the
SocketModem. To minimize potential ground noise issues, connect audio
circuit return to AGND.
Speaker Output. SPKR is a single ended-output. SPKR is tied directly to the
CODEC. One side of a differential AC output coupled through a 6.8K ohm
resistor and capacitor.
The call progress speaker interface signal is:
· Digital speaker output (DSPKOUT); output
DSPKOUT is a square wave output in data mode used for call progress or
carrier monitoring. This output can be optionally connected to a low-cost onboard speaker, e.g., a sounducer, or to an analog speaker circuit.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 10
Chapter 2 – Mechanical Specifications
Parallel Pin Configurations
The parallel interface SocketModem uses a 22-pin interface to provide an on-board DAA with tip and ring
connections, audio circuit for call-progress monitoring, and parallel interface.
Figure 2–3. Parallel SocketModem Pins
Pin Descriptions for a Parallel SocketModem Device
Pin #Signal NameI/ODescription
1TipI/O
2RingI/O
24–RESETI
25A1
26DGNDGND
27D7O
29D2O
30INTO
31A0I
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 11
Telephone Line Interface – TIP
Telephone Line Interface – RING
Modem Reset (CMOS input with weak pull-up). The active low –RESET input
resets the SocketModem logic and returns the AT command set to the original
factory default values or to "stored values" in NVRAM.
The modem is ready to accept commands within 6.5 seconds of power-on or
reset. Reset must be asserted for a minimum of 300 ns.
Host Bus Address Line 1
Digital Ground
Host Bus Data Line 7
Host Bus Data Line 2
Host Bus Interrupt Line, Active High, Resets on Low
Host Bus Address Line 0
Pin #Signal NameI/ODescription
32–WTI
33–RDI
34A2I
35D4O
36D5O
37D0O
38D1O
39D3O
40–CSI
41D6O
61VCCPWR
63AGNDGND
Host Bus Write. When low, allows host to write to SocketModem.
Host Bus Read. When low, allows host to read from SocketModem.
Host Bus Address Line 2
Host Bus Data Line 4
Host Bus Data Line 5
Host Bus Data Line 0
Host Bus Data Line 1
Host Bus Data Line 3
Host Bus Chip Select; active low
Host Bus Data Line 6
3.3V or 5V Supply (depends upon model).
Analog Ground. This is tied common with DGND on the SocketModem. To
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 12
Chapter 3 – Electrical Characteristics
Chapter 3 – Electrical Characteristics
Handling Precautions
All electronic devices should be handled with certain precautions to avoid damage due to the
accumulation of static charge. Although input protection circuitry has been incorporated into the devices
to minimize the effect of this static buildup, proper precautions should be taken to avoid exposure to
electrostatic discharge during handling and mounting.
I/O Electrical Characteristics
3.3V Serial SocketModem
3.3V DC Characteristics(TA = 0°C to 70°C; VDD = 3.3 V ± 0.3 V) VDDMAX = 3.6 V
Supply voltage (Pin 61 = +3.3 V)VDD+3.13 to +3.47VDC
Operating ambient temperatureT
+5 V Configuration
Supply voltage (Pin 61 = +5 V)VDD+4.75 to +5.25VDC
Operating ambient temperature
A
T
A
0 to +70°C
0 to +70°C
Absolute Maximum Ratings
ParameterSymbolLimitsUnits
Supply voltage (Pin 61 = +3.3 V)VDD-0.5 to +4.0VDC
Supply voltage (Pin 61 = +5 V)
Input voltageV
Voltage applied to outputs in high impedance (Off) stateV
Storage temperatureT
VDD-0.5 to +7.0VDC
IN
OUT
STG
-0.5 to (VDD +0.5)VDC
+3.13 to +3.47
-40 to +80°C
VDC
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 14
Chapter 3 – Electrical Characteristics
Current and Power Requirements
Typ.
Mode
Normal Mode (Serial interface)1151160.380.41
Normal Mode (Serial interface)1171180.580.61
Normal Mode (Parallel interface)1171180.580.61
Test conditions:
For Pin 61 = +5 V, VDD = +5 V for typical values; VDD = +5.25 V for maximum values.
For Pin 61 = +3.3 V, VDD = +3.3 V for typical values; VDD = +3.47 V for maximum values.
Current (mA)
+3.3 V Configuration (VDD = +3.3 V)
+5 V Configuration (VDD = +5 V)
Max.
Current (mA)
Typ.
Power (mW)
Max.
Power (mW)
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 15
Chapter 3 – Electrical Characteristics
Parallel Host Bus Timing
Parallel Host Bus Timing Table
SymbolParameterMinMaxUnits
t
AS
t
AH
t
CS
t
CH
t
RD
t
DD
t
DRH
Address Setup5-ns
Address Hold10-ns
Chip Select Setup0-ns
Chip Select Hold10-ns
RD Strobe Width45-ns
Read Data Delay-25ns
Read Data Hold5-ns
WRITE (See Notes)
t
AS
t
AH
t
CS
t
CH
t
WT
t
DS
t
DWH
Address Setup5-ns
Address Hold15-ns
Chip Select Setup0-ns
Chip Select Hold10-ns
WT Strobe Width75-ns
Write Data Setup (see Note 4)-20ns
Write Data Hold (see Note 5)5-ns
Notes:
1. When the host executes consecutive Rx FIFO reads, a minimum delay of 2 times the internal CPU
clock cycle plus 15 ns (85.86 ns at 28.224 MHz) is required from the falling edge of RD to the falling
edge of the next Host Rx FIFO RD clock.
2. When the host executes consecutive Tx FIFO writes, a minimum delay of 2 times the internal CPU
clock cycle plus 15 ns (85.86 ns at 28.224 MHz) is required from the falling edge of WT to the
falling edge of the next Host Tx FIFO WT clock.
t
3.
RD' tWT
4.tDS is measured from the point at which both CS and WT are active.
t
5
.
DWH is measured from the point at which either CS and WT become active.
t
=
CYC
+ 15 ns.
6. Clock Frequency = 28.224 MHz clock.
READ (See Notes)
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 16
Parallel Host Bus - Read
Chapter 3 – Electrical Characteristics
Parallel Host Bus - Write
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 17
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
Chapter 4 – SocketModem Parallel
Interface – A Programmer’s
Description
SocketModem Parallel Interface
The modem supports a 16550A interface in parallel interface versions. The 16550A interface can operate
in FIFO mode or non-FIFO mode. Non-FIFO mode is the same as the 16450 interface operation. FIFO
mode’s unique operations are described in this chapter.
Overview
The modem emulates the 16450/16550A interface and includes both a 16-byte receiver data first-in firstout buffer (RX FIFO) and a 16-byte transmit data first-in first-out buffer (TX FIFO).
FIFO Mode Selected
When FIFO mode is selected in the FIFO Control Register (FCR0 = 1), both FIFOs are operative.
Furthermore, when FIFO mode is selected, DMA operation of the FIFO can also be selected (FCR3 = 1).
FIFO Mode Not Selected
When FIFO mode is not selected, operation is restricted to a 16450 interface operation.
Receive Data
Received Data is read by the host from the Receiver Buffer (RX Buffer). The RX Buffer corresponds to
the Receiver Buffer Register in a 16550A device. In FIFO mode, the RX FIFO operates transparently
behind the RX Buffer. Interface operation is described with reference to the RX Buffer in FIFO and nonFIFO modes.
Transmit Data
Transmit Data is loaded by the host into the Transmit Buffer (TX Buffer). The TX Buffer corresponds to
the Transmit Holding Register in a 16550A device. In FIFO mode, the TX FIFO operates transparently
behind the TX Buffer. Interface operation is described with reference to the TX Buffer in both FIFO and
non-FIFO modes.
Note
The parallel interface registers and the corresponding bit assignments are shown in Table 4–1.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 18
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
Table 4–1. Parallel Interface Registers
Register
No.
7Scratch Register (SCR)Scratch Register
6Modem Status Register
The IER enables five types of interrupts that can separately assert the HINT output signal (Table 4–
2.). A selected interrupt can be enabled by setting the corresponding enable bit to a 1, or disabled by
setting the corresponding enable bit to a 0. Disabling an interrupt in the IER prohibits setting the
corresponding indication in the IIR and assertion of HINT. Disabling all interrupts (resetting IER0 –
IER3 to a 0) inhibits setting of any Interrupt Identifier Register (IIR) bits and inhibits assertion of the
HINT output. All other system functions operate normally, including the setting of the Line Status
Register (LSR) and the Modem Status Register (MSR).
The IER enables five types of interrupts that can separately assert the HINT output signal. A selected
interrupt can be enabled by setting the corresponding enable bit to a 1, or disabled by setting the
corresponding enable bit to a 0. Disabling an interrupt in the IER prohibits setting the corresponding
indication in the IIR and assertion of HINT. Disabling all interrupts (resetting IER0 - IER3 to a 0)
inhibits setting of any Interrupt Identifier Register (IIR) bits and inhibits assertion of the HINT output.
All other system functions operate normally, including the setting of the Line Status Register (LSR)
and the Modem Status Register (MSR).
Bits 7-4Not used.
Always 0.
Bit 3Enable Modem Status Interrupt (EDSSI).
This bit, when a 1, enables assertion of the HINT output whenever the Delta CTS
(MSR0), Delta DSR (MSR1), Delta TER (MSR2), or Delta DCD (MSR3) bit in the
Modem Status Register (MSR) is a 1. This bit, when a 0, disables assertion of
HINT due to setting of any of these four MSR bits.
Bit 2Enable Receiver Line Status Interrupt (ELSI).
This bit, when a 1, enables assertion of the HINT output whenever the Overrun
Error (LSR1), Parity Error (LSR2), Framing Error (LSR3), or Break Interrupt
(LSR4) receiver status bit in the Line Status Register (LSR) changes state. This
bit, when a 0, disables assertion of HINT due to change of the receiver LSR bits
1-4.
Bit 1Enable Transmitter Holding Register Empty Interrupt (ETBEI).
This bit, when a 1, enables assertion of the HINT output when the Transmitter
Empty bit in the Line Status Register (LSR5) is a 1. This bit, when a 0, disables
assertion of HINT due to LSR5.
Bit 0Enable Receiver Data Available Interrupt (ERBFI) and Character Timeout in
FIFO Mode.
This bit, when a 1, enables assertion of the HINT output when the Receiver Data
Ready bit in the Line Status Register (LSR0) is a1 or character timeout occurs in
the FIFO mode. This bit, when a 0, disables assertion of HINT due to the LSR0
or character timeout.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 20
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
FCR – FIFO Control Register (Addr = 2, Write Only)
The FCR is a write-only register used to enable FIFO mode, clear the RX FIFO and TX FIFO, enable
DMA mode, and set the RX FIFO trigger level.
Bits 7-6 RX FIFO Trigger Level
FCR7 and FCR6 set the trigger level for the RX FIFO (Receiver Data Available) interrupt.
FCR7FCR6RX FIFO Trigger Level (Bytes)
0001
0104
1008
1114
Bits 5-4
Bit 3DMA Mode Select
Not used
When FIFO mode is selected (FCR0 = 1), FCR3 selects non-DMA operation (FCR3 = 0) or DMA
operation (FCR3 = 1). When FIFO mode is not selected (FCR0 = 0), this bit is not used (the
modem operates in non-DMA mode in 16450 operation).
DMA Operation in FIFO Mode
RXRDY will be asserted with the number of characters in the RX FIFO us equal to or greater
than the value in the RX FIFO Trigger Level (IIR0-IIR3 = 4h) or the received character
timeout (IIRO-IIR3 = Ch) has occurred. RXTDY will go inactive when there are no more
characters in the RX FIFO.
TXRDY will be asserted when there are one or more empty (unfilled) locations in the TX
FIFO. TXRDY will go inactive when the TX FIFO is completely full.
Non-DMA Operation in FIFO Mode
RXRDY will be asserted when there are one or more characters in the RX FIFO. RXRDY will
go inactive when there are no more characters in the RX FIFO.
TXRDY will be asserted when there are no characters in the TX FIFO. TXRDY will go
inactive when the character is loaded into the TX FIFO Buffer.
Bit 2TX FIFO Reset
When FCR2 is a 1, all bytes in the TX FIFO are cleared. This bit is cleared automatically by the
modem.
Bit 1RX FIFO Reset
When FCR1 is a 1, all bytes in the RX FIFO are cleared. This bit is cleared automatically by the
modem.
Bit 0FIFO Enable
When FCR0 is a 0, 16450 mode is selected and all bits are cleared in both FIFOs. When FCR0
is a 1, FIFO mode (16550A) is selected and both FIFOs are enabled. FCR0 must be a 1 when
other bits in the FCR are written or they will not be acted upon.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 21
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
IIR – Interrupt Identifier Register (Addr = 2)
The Interrupt Identifier Register (IIR) identifies the existence and type of up to five prioritized pending
interrupts. Four priority levels are set to assist interrupt processing in the host. The four levels, in
order of decreasing priority, are Highest: Receiver Line Status, 2: Receiver Data Available or
Receiver Character Timeout. 3: TX Buffer Empty, and 4: Modem Status.
When the IIR is accessed, the modem freezes all interrupts and indicates the highest priority interrupt
pending to the host. Any change occurring in interrupt conditions are not indicated until this access is
complete.
Bits 7-6FIFO Mode
These two bits copy FCR0.
Bits 5-4Not Used
Always 0.
Bits 3-1Highest Priority Pending Interrupt
These three bits identify the highest priority pending interrupt (Table 4-2). Bit 3 is applicable
only when FIFO mode is selected; otherwise, bit 3 is a 0.
Bit 0Interrupt Pending
When this bit is a 0, an interrupt is pending; IIR bits 1-3 can be used to determine the source
of the interrupt. When this bit is a 1, an interrupt is not pending.
Table 4–2. Interrupt Sources and Reset Control
Interrupt Identification RegisterInterrupt Set and Reset Functions
Bit 3
(Note 1)
Bit 2 Bit 1 Bit 0 Priority
Level
Interrupt TypeInterrupt SourceInterrupt Reset
Control
0001—NoneNone—
0110Highest Receiver Line
Status
01002Received Data
Available
11002Character Timeout
Indication
00103TX Buffer EmptyTX Buffer EmptyReading the IIR
00004Modem StatusDelta CTS (DCTS) (MSR0),
1
Overrun Error (OE) (LSR1),
Parity Error (PE) (LSR2),
Framing Error (FE) (LSR3),
or Break Interrupt (BI) (LSR4)
Received Data Available
(LSR0)
or RX FIFO Trigger Level
(FCR6-FCR7)
Reached
The RX FIFO contains at
least 1 character and no
characters have been
removed from or input to the
RX FIFO during the last 4
character times.
Delta DSR (DDST) (MSR1),
Trailing Edge Ring Indicator
(TERI) (MSR3), or Delta
DCD (DCD) (MSR4)
1
Reading the LSR
Reading the RX
Buffer or the RX
FIFO drops
below the
Trigger Level
Reading the RX
Buffer
or writing to the
TX Buffer
Reading the
MSR
Notes:
1. FIFO Mode only.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 22
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
LCR – Line Control Register (Addr = 3)
The Line Control Register (LCR) specifies the format of the asynchronous data communications
exchange.
Bit 7Divisor Latch Access Bit (DLAB)
This bit must be set to a 1 to access the Divisor Latch Registers during a read or write operation.
It must be reset to a 0 to access the Receiver Buffer, the Transmitter Buffer, or the Interrupt
Enable Register.
Bit 6Set Break
When bit 6 is a 1, the Transmit data is forced to the break condition, i.e., space (0) is sent. When
bit 6 is a 0, break is not sent. The Set Break bit acts only on the Transmit data and has no effect
on the serial in logic.
Bit 5Stick Parity
When Parity is enabled (LCR3 = 1) and stick parity is selected (LCR5 = 1), the parity bit is
transmitted and checked by the receiver as a 0 if even parity is selected (LCR4 – 1) or a 1 if odd
parity is selected (LCR4 = 0). When the stick parity is not selected (LCR3 = 0), parity is transmit
and checked as determined by the LCR3 and LCR4 bits.
Bit 4Even Parity Select (EPS)
When parity is enabled (LCR3 = 1) and stick parity is not selected (LCR5 = 0), the number of 1s
transmitted or checked by the receiver in the data word bits and parity bit is either even (LCR4 =
1) or odd (LCR4 = 0).
Bit 3Enable Parity (PEN)
When bit 3 is a 1, a parity bit is generated in the serial out (transmit) data stream and checked in
the serial in (receive) data stream as determined by the LCR4 and LCR5 bits. The parity bit is
located between the last data bit and the first stop bit.
Bit 2Number of Stop GBITS (STB)
This bit specifies the number of stop bits in each serial out character. If bit 2 is a 0, one stop bit is
generated regardless of word length. If bit 2 is a 1 and 5-bit word length is selected, one and
one-half stop bits are generated. If bit 2 is a 1 and 6-, 7-, or 8-bit word length is selected, two
stop bits are generated. The serial in logic checks the first stop bit only, regardless of the number
of stop bits selected.
Bit 1-0Word Length Select (WLS0 and WLS1)
These two bits specify the number of bits in each serial in or serial out character. The encoding
of bits 0 and 1 is:
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 23
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
MCR – Modem Control Register (Addr = 4)
The Modem Control Register (MCR) controls the interface with modem or data set.
Bit 7-5Not used
Always 0
Bit 4Local Loopback
When this bit is set to a 1, the diagnostic mode is selected and the following occurs:
1. Data written to the Transmit Buffer is looped back to the Receiver Buffer.
2. The DTS (MCR0), RTS (MCR1), Out1 (MCR2), and Out2 (MCR3) modem control register
bits are internally connected to the DSR (MSR5), CTS (MSR4), RI (MSR6), and DCD
(MSR7) modem status register bits, respectively.
Bit 3Output 2
When this bit is a 1, HINT is enabled. When this bit is a 0, HINT is in the high impedance state.
Bit 2Output 1
This bit is used in local loopback (see MCR4).
Bit 1Request to Send (RTS)
This bit controls the Request to Send (RTS) function. When this bit is a 1, RTS is on. When this
bit is a 0, RTS is off.
Bit 0Data Terminal Ready (DTR)
This bit controls the Data Terminal Ready (DTR) function. When this bit is a 1, DTR is on. When
this bit is a 0, DTR is off.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 24
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
LSR – Line Status Register (Addr = 5)
This 8-bit register provides status information to the host concerning data transfer.
Bit 7RX FIFO Error
In the 16450 mode, this bit is not used and is always 0.
In the FIFO mode, this bit is set if there are one or more characters in the RX FIFO with parity
error, framing error, or break indication detected. This bit is reset to a 0 when the host reads the
LSR and note of the above conditions exist in the RX FIFO.
Bit 6Transmitter Empty (TEMT)
This bit is set to a 1 whenever the TX Buffer (THR) and equivalent of the Transmitter Shift
Register (TRS) are both empty. It is reset to a 0 whenever either the THR or the equivalent of the
TSR contains a character.
In the FIFO mode, this bit is set to a 1 whenever the TX FIFO and the equivalent of the TSR are
both empty
Bit 5Transmitter Holding Register Empty (THRE) [TX Buffer Empty]
This bit, when set, indicates that the TX Buffer is empty and the modem can accept a new
character for transmission. In addition, this bit causes the modem to issue an interrupt to the host
when the Transmit Holding Register Empty Interrupt Enable bit (IIR1) is set to 1. The THRE bit is
set to a 1 when a character is transferred from the TX Buffer. The bit is reset to 0 when a byte is
written into the TX Buffer by the host.
In the FIFO mode, this bit is set when the TX FIFO is empty; it is cleared when at lease one byte
is in the TX FIFO.
Bit 4Break Interrupt (BI)
This bit is set to a 1 whenever the received data input is a space (logic 0) for longer than two full
word lengths plus 3 bits. The BI is reset when the host reads the LSR.
Bit 3Framing Error (FE)
This bit indicates that the received character did not have a valid stop bit. The FE bit is set to a 1
whenever the stop bit following the last data bit or parity bit is detected as a logic o (space). The
FE bit is reset to a 0 when the host reads the LSR.
In the FIFO mode, the error indication is associated with the particular character in the FIFO it
applies to. The FE bit set to a 1 when this character is loaded into the RX Buffer.
Bit 2Parity Error (PE)
This bit indicates that the received data character in the RX Buffer does not have the correct
even or odd parity, as selected by the Even Parity Select bit (LCR4) and the Stick Parity bit
(LCR5). The PE bit is reset to a 0 when the host reads the LSR.
In the FIFO mode, the error indication is associated with the particular character in the FIFO it
applies to. The PE bit set to a 1 when this character is loaded into the RX Buffer.
Bit 1Overrun Error (OE)
This bit is set to a 1 whenever received data is loaded into the RX Buffer before the host has
read the previous data from the RX Buffer. The OE is reset to a 0 when the host reads the LSR.
In the FIFO mode, if data continues to fill beyond the trigger level, an overrun condition will occur
only if the RX FIFO is full and the next character has been completely received.
Bit 0Receiver Data Ready (DR)
This bit is set to a 1 whenever a complete incoming character has been received and transferred
into the RX Buffer. The DR bit is reset to a 0 when the host reads the RX Buffer.
In the FIFO mode, the DR bit is set when the number of received data bytes in the RX FIFO
equals or exceeds the trigger level specified in the FCR0-FCR1.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 25
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
MSR – Modem Status Register (Addr = 6)
The Modem Status Register (MSR) reports current state and change information of the modem. Bits
4-7 supply current state, and bits 0-3 supply change information. The change bits are set to a 1
whenever a control input form the modem changes state from the last MSR read by the host. Bits 0-3
are reset to 0 when the host reads the MSR or upon reset.
Whenever bits 0, 1, 2, or 3 are set to a 1, a Modem Status Interrupt (IIR0-IIR3 = 0) is generated.
Bit 7Data Carrier Detect (DCD)
This bit indicates the logic state of the DCH# (RLSD#) output. If Loopback is selected (MCR4 =
1), this bit reflects the state of the Out2 bit in the MCR (MCR3).
Bit 6Ring Indicator (RI)
This bit indicates the logic state of the RI# output. If Loopback is selected (MCR4 = 1), this bit
reflects the state of the Out1 bit in the MCR (MCR2).
Bit 5Data Set Ready (DSR)
This bit indicates the logic state of the DSR# output. If Loopback is selected (MCR4 = 1), this bit
reflects the state of the DTR in the MCR (MCR0).
Bit 4Clear to Send (CTS)
This bit indicates the logic state of the CTS# output. If Loopback is selected (MCR4 = 1), this bit
reflects the state of the RTS bit in the MCR (MCR1).
Bit 3Delta Data Carrier Detect (DDCD)
This bit is set to a 1 when the DCD bit changes state since the host last read the MSR.
Bit 2Trailing Edge of Ring Indicator (TERI)
This bit is set to a 1 when the RI bit changes from a 1 to a 0 state since the host last read the
MSR.
Bit 1Delta Data Set Ready (DDSR)
This bit is set to a 1 when the DSR bit has changed since the host last read the MSR.
Bit 0Delta Clear to Send (DCTS)
This bit is set to a 1 when the CTS bit has changed since the MSR the host last read the MSR.
The RX Buffer (RBR) is a read-only register at location 0 (with DLAB = 0). Bit 0 is the least significant
bit of the data and is the first bit received.
The TX Buffer (THR) is a write-only register at address 0 when DLAB = 0. Bit 0 is the least significant
bit and the first bit sent.
Divisor Registers (Addr = 0 and 1, DLAB = 1)
The Divisor Latch LS (least significant byte) and Divisor Latch MS (most significant byte) are two
read-write registers at locations 0 and 1 when DLAB = 1, respectively.
The baud rate is selected by loading each divisor latch with the appropriate hex value.
Programmable values corresponding to the desired baud rate are listed in Table 4-3.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 26
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
SCR – Scratch Register (Addr = 7)
The Scratchpad Register is a read-write register at location 7. This register is not used by the modem
and can be used by the host for temporary storage.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 27
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
Receiver FIFO Interrupt Operation
Receiver Data Available Interrupt
When the FIFO mode is enabled (FCR0 = 1) and receiver interrupt (RX Data Available) is enabled
(IER0 = 1), receiver interrupt operation is as follows:
1.
The Receiver Data Available Flag (LSR0) is set as soon as a received data character is
available in the RX FIFO. LSR0 is cleared when RX FIFO is empty.
The Receiver Data Available Interrupt code (IIR0-IIR4 = 4h) is set whenever the number of
2.
received data bytes in the RX FIFO reaches the trigger level specified by FCR6-FCR7 bits. It
is cleared whenever the number of received data bytes in the RX FIFO drops below the
trigger level specified by FCR6-FCR7 bits.
The HINT interrupt is asserted whenever the number of received data bytes in the RX FIFO
3.
reaches the trigger level specified by FCR6-FCR7 bits. HINT interrupt is de-asserted when
the number of received data bytes in the RX FIFO drops below the trigger level specified by
FCR6-FCR7 bits.
Receiver Character Timeout Interrupts
When the FIFO mode is enabled (FCR0 = 1) and receiver interrupt (Receiver Data Available) is
enabled (IER0 = 1), receiver character timeout interrupt operation is as follows:
A Receiver character timeout interrupt code (IIR0-IIR3 = Ch) is set if at least one received
1.
character is in the RX FIFO, the most recent received serial character was longer than four
continuous character times ago (if 2 stop bits are specified, the second stop bit is included in
this time period), and the most recent host read of the RX FIFO was longer than four
continuous character times ago.
Transmitter FIFO Interrupt Operation
Transmitter Empty Interrupt
When the FIFO mode is enabled (FCR0 = 1) and transmitter interrupt (TX Buffer Empty) is enabled
(IER0 =1), transmitter interrupt operation is as follows:
1.
The TX Buffer Empty interrupt code (IIR0-IIR3 = 2h) will occur when the TX Buffer is empty. It
is cleared when the TX Buffer is written to (1 to 16 characters) or the IIR is read.
The TX Buffer Empty indications will be delayed 1 character time minus the last stop bit time
2.
whenever the following occur: THRE = 1 and there have not been at least two bytes at the
same time in the TX FIFO Buffer since the last setting of THRE was set. The first transmitter
interrupt after setting FCR0 will be immediate.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 28
Chapter 5 – AT Commands, S-Registers, and Result Codes
Chapter 5 – AT Commands, S-
Registers, and Result Codes
Introduction
The AT commands are used to control the operation of your modem. They are called AT commands
because the characters AT must precede each command to get the ATtention of the modem.
AT commands can be issued only when the modem is in command mode oronline command mode. The
modem is in command mode whenever it is not connected to another modem. The modem is indatamode whenever it is connected to another modem and ready to exchange data. Online command mode is
a temporary state in which you can issue commands to the modem while connected to another modem.
To put the modem into online command mode from data mode, you must issue an escape sequence
(+++) followed immediately by the AT characters and the command, e.g., +++ to hang up the modem. To
return to data mode from online command mode, you must issue the command ATO.
To send AT commands to the modem you must use a communications program, such as the
HyperTerminal applet in Windows 98/95 and NT 4.0, or some other available terminal program. You can
issue commands to the modem either directly, by typing them in the terminal window of the
communications program, or indirectly, by configuring the operating system or communications program
to send the commands automatically. Fortunately, communications programs make daily operation of
modems effortless by hiding the commands from the user. Most users, therefore, need to use AT
commands only when reconfiguring the modem, e.g., to turn autoanswer on or off.
The format for entering anAT command is ATXn, where X is the command, and n is the specific value for
the command, sometimes called the command parameter. The value is always a number. If the value is
zero, you can omit it from the command; thus, AT&W is equivalent to AT&W0. Most commands have a
default value, which is the value that is set at the factory. The default values are shown in the “AT
Command Summary” (See below).
You must press ENTER (depending on the terminal program it could be some other key) to send the
command to the modem. Any time the modem receives a command, it sends a response known as a
result code. The most common result codes are OK, ERROR, and the CONNECT messages that the
modem sends to the computer when it is connecting to another modem. See “Result Codes” at the end of
this chapter for a table of valid result codes.
You can issue several commands in one line, in what is called a command string. The command string
begins with AT and ends when you press ENTER. Spaces to separate the commands are optional; the
command interpreter ignores them. The most familiar command string is the initialization string, which is
used to configure the modem when it is turned on or reset, or when your communications software calls
another modem.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 29
Chapter 5 – AT Commands, S-Registers, and Result Codes
Data Commands
The modem will respond to the commands detailed below. Parameters applicable to each command are
listed with the command description.
Generic Modem Control Commands
Command:ZSoft Reset and Restore Profile
Description:Causes the modem to perform a soft reset and restore (recall) the
configuration profile. If no value is specified, zero is assumed.
Default:None
Values:Number corresponding to the selected profile:
Z0 Soft reset and restore stored profile 0.
Z1 Soft reset and restores stored profile 1.
Result Codes:OK
Otherwise ERROR
Command:+FCLASSSelect Active Service Class
Description:Selects the active service class (mode).
Default:0
Defined Values:+FCLASS=0 Select Data Mode (Section 3) (Default).
+FCLASS=1 Select Facsimile Class 1 Mode.
+FCLASS=1.0 Select Facsimile Class 1.0 Mode.
+FCLASS=8 Select Voice Mode.
+FCLASS=10 Reserved.
Result Codes:OK
Otherwise ERROR
Report Commands:+FCLASS? Reports Current or Selected Values
+FCLASS=?Reports Range of Parameters
Command:+VCIDCaller ID (CID)
Description:Controls the reporting and presentation of data associated with the Caller
ID services in the Incoming Call Line ID (ICLID) data format for the next
call. (U.S. only)
Default:0
Defined Values:+VCID0 Disable Caller ID reporting.
+VCID1 Enables Caller ID with formatted presentation to the DTE. The
modem presents the data items in a <Tag><Value> pair
format. The expected pairs are date, time, name, and caller
code (telephone number).
+VCID2 Enables Caller ID with unformatted presentation to the DTE.
Report Commands:+VCID?Reports the Mode
+VCID=?Reports Range of Parameters
Command:+VRIDReport Retrieved Caller ID (CID)
Description:Reports the data associated with the Caller ID services in the Incoming
Caller Line (ICLID) data format for the last received call. U.S. only
Default:None
Defined Values:+VRID0 Reports Caller ID with formatted presentation to the DTE. The
modem presents the data items in a <Tag><Value> pair
format. The expected pairs are date, time, name, and caller
code (telephone number).
+VRID1 Reports Caller ID with unformatted presentation to the DTE.
Report Commands:+VRID?Reports the Mode
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide 30
Loading...
+ 104 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.