![](http://datasheet.mmic.net.cn/Silicon-Laboratories-Inc/SI2400-BS_datasheet_102083/SI2400-BS_31.png)
Si2400
Rev. 1.3
31
This command causes the modem to echo the chip
revision for the Si2400 device.
0 = Revision A
1 = Revision B
2 = Revision C, etc.
M
Speaker On/Off Options
These options are used to control AOUT for use with a
call progress monitor speaker.
M0
Speaker always off.
M1
Speaker on until carrier established. The modem sets
SF4[3:2] (ARL) = 11b and SF4[1:0] (ATL) = 11b after a
connection is established.
M2
Speaker always on.
M3
Speaker on after last digit dialed, off at carrier detect.
O
Return to Online Mode
This command returns the modem to the online mode. It
is frequently used after an escape sequence to resume
communication with the remote modem.
RO
Turn-Around
This command initiates a V.23 “direct turnaround”
sequence and returns online.
6.4. S-Register Control
S-registers control Si2400 configuration and provide
status information. Therefore, writing to and reading
from S-registers is central to the operation of the
modem. There are two fundamental methods for writing
to and reading from Si2400 S-Registers. The first and
most common method uses the ATSR=N and ATSR?
commands.
These
commands
are
used
by
communication software packages and are universally
supported by modem chips. The second method uses
the ATw##, ATr#, ATm#, and ATq# commands and is
designed
to
reduce
data
flow
and
streamline
performance in embedded systems. When ATSR
commands are used, each character of the two
character hexadecimal values for both R and N are sent
to the AT command parser for decoding and action
immediately instead of waiting for a <CR>. Additionally,
a carriage return, <CR>, is required to terminate the
ATSR?
command
(not
ATSR=N).
When
the
#
commands are used, # is the single character ASCII
equivalent of the two character hexadecimal S-Register
address or value and no carriage return is required for
any of the # commands. Further explanations and
examples are given below.
6.4.1. ATSR Commands
The ATSR commands are generally used to write to or
read from S-registers. The address, R, and the value, N,
must be written into the AT command as a two character
hexadecimal value between 00 and FF. An S-Register is
written with the command “ATSR=N”. The hexadecimal
address and value parameters appearing on the
terminal or PC screen are actually transmitted to the
modem as the hexadecimal equivalents of each
character. Likewise, the value N stored in S-register R is
read back to the terminal with the ATSR? command as
two hexadecimal characters. For example, read the
value of S35 after the Si2400 has been reset.
6.4.2. # Commands
The # commands offer several performance and
convenience advantages for embedded applications
over the more traditional ATSR-style commands. The #
parameter is entered as the ASCII equivalent of a
hexadecimal value representing the S-register address
or content. This parameter is sent to the modem as the
hexadecimal equivalent of the ASCII value. The #
commands offer a more rapid method for reading and
writing S-Registers since fewer characters are sent to or
received from the modem.
6.4.3. w## Write S-Register
This command is analogous to the ATSR=N command.
From a terminal, the first # following w is the ASCII
equivalent of the hexadecimal address of the S-Register
and the second # is the ASCII equivalent of the
hexadecimal value of the S-Register. For example, write
the value 58h to S34.
6.4.4. r# Command Read S-Register
This command is analogous to the ATSR? command.
From a terminal, the # following r is the ASCII
equivalent of the hexadecimal address of the S-
Register. The modem will echo the register contents as
the ASCII equivalent of the hexadecimal value of the
contents. This command executes immediately and
does not require a carriage return. Modem result codes
Terminal
Entry
Sent to Modem Response Display
ATS35?<CR>
41 54 53 33 35
3F 0D
41 32
A2
Terminal
Entry
Sent to Modem
(hex)
Response Display
ATw4X
41 54 77 34 58
—