FULL IMPLEMENTATION OF THE V.17,
V.33, V.29 AND V.27ter HANDSHAKES
-
AUTODIAL AND AUTOANSWER CAPABILITY
-
PROGRAMMABLETONE DETECTIONAND
FSK V.21 FLAG PATTERN DETECTION
DURING HIGH SPEED RECEPTION
-
PROGRAMMABLE CALL PROGRESS AND
CALL WAITING TONE DETECTORS INCLUDINGDTMF
-
PROGRAMMABLE CLASS DETECTION
CAPABILITY
-
WIDE DYNAMIC RANGE (>48dB)
-
A-LAWVOICEPCM MODE
ST75C520
PRELIMINARY DATA
DESCRIPTION
The SGS-THOMSONMicroelectronicsST75C520
chip is a highly integrated modem engine, which
can operate with all currently used FAX group III
standardsupto14400bps.FullV.21, V.23and Bell
103 full duplexmodem standards are implemented.
PQFP64
(Plastic Quad Flat Pack)
ORDER CODE : ST75C520 PQFP
.
VERSATILEINTERFACES :
-
PARALLEL 64 x 8-BIT DUAL PORT RAM
-
SYNCHRONOUS/HDLC PARALLEL DATA
HANDLING
-
HDLC FRAMING SUPPORT
-
V.24 INTERFACE
-
FULL OPERATING STATUS REAL TIME
MONITORING
-
FULL DIAGNOSTIC CAPABILITY
-
DUAL 8-BIT DAC FOR CONSTELLATION
DISPLAY
June 1995
This isadvance informationon a new productnow in developmentor undergoing evaluation. Detailsare subjectto change without notice.
The exchangeswith the control processor proceed through a 64 BytesDUALport RAM shared between
the ST75C520 and the Host. The signalsassociatedwiththis interfaceare:
Pin NameTypeDescription
SD0..SD7I/OSystem Data Bus. 8-bit data bus used forasynchronous exchanges between the ST75C520
SA0..SA6ISystem Address Bus. 7-bit address bus for dual port RAM.
SDS (SRD)ISystem Data Strobe. Active low. Synchronizes allthe exchanges. In Motorolamode initiates
SR/W (SWR)ISystem Read/Write. In Motorola mode defines the type of exchange read/write. In Intel
SCSISystem Chip Select. Active low.
SDTACKODSystem Bus Data Acknowledge. Active low. Open drain.
SINTRODSystem Interrupt Request.Active low. This signal is asserted by the ST75C520 and
RESETIReset. Active low.
RINGIRing Detect Signal. Active low.
INT/MOTISelect Intel/Motorola Interface.
and the Host through the dualport RAM. High impedance when exchanges are not active.
the exchange, activelow. InIntelmode initiates a read exchange, activelow.
mode initiates awrite exchange, active low.
negated by thehost. Open drain.
75C52001.EPS
3/45
ST75C520
I.3 - AnalogInterface
Pin
Name
TXA1OTransmit Analog Output 1
TXA2OTransmit Analog Output2.OutputsTXA1andTXA2 provideanalogsignalswithmaximum peaktopeak
RXA1IReceive AnalogInput 1
RXA2IReceive AnalogInput 2. The analog differential input peak to peak signal must beless than 2 x V
V
V
V
I.4 - V.24 Interface
Pin NameTypeDescription
RTSIRequest to Send. Active low.
CLKOData Bit Clock. Fallingedge coïncides with DATA change.
CTSOClear to Send. Active low.
RxDOReceive Data
TxDITransmit Data sampled withrising edge of CLK
CDOCarrier Detect. Active low.
TypeDescription
amplitude 2xV
V
REF=VREFP-VREFN
, and must befollowedby an external continous-time twopole smoothingfilter (where
REF
).
must be preceded by an external continous-time single pole anti-aliasing filter. This filter must be as
close as possibleto the RXA1 and RXA2 Pins (where V
CM
REFN
REFP
I/OAnalog CommonVoltage (nominal +2.5V). This input must be decoupled with respect to AGND.
IAnalog Negative Reference (nominal VCM- 1.25V). This input must be decoupled with respect to VCM.
IAnalog Positive Reference (nominalVCM+1.25V). This input must be decoupled with respect to VCM.
REF=VREFP-VREFN
REF
).
.It
I.5 - Miscellaneous
Pin NameTypeDescription
XTALOInternal Oscillator Output. Left open if not used.
EXTALIInternalOscillator Input, or External Clock
EYEXOConstellation X analog coordinate
EYEYOConstellation Y analog coordinate
TEST1To be left open
TEST2To be left open
Note : The nominal external clock frequency of the ST75C520 is 29.4912MHz with a precision better than ± 5.10
-5
I.6 - BoundaryScanInterface
Aset of 13 signals arededicated for Testingthe ST75C520 Component. Thesesignals can be used in a
developmentphase,associatedwith the SGS-THOMSONST18932 BoundaryScanDevelopment Tools,
to Debug the applicationHardware and Software.If not used all input signals must be grounded and all
output signals left open.
Pin NameTypeDescription
SCINIScan Data Input
SCCLKIScan Clock
SCOUTOScan Data Output
BOSIBegin of Scan Control
EOSIEnd of Scan
MC0..MC2IMode Control
HALTIStop ST75C520 Execution
MCIOMulticycle Instruction
RDYSOReady to Scan Flag
EBSIEnable Boundary Scan. Active low (mustbe set low in normal mode).
CLKOUTOInternalST75C520 Clock (XTAL frequency divided by 2)
4/45
ST75C520
I.7 - PowerSupply
SymbolParameter
V
DD
GNDDigital Ground (Pin8, 24, 40). To be connected to AGNDT and AGNDR (see below).
AV
DD
AGNDTAnalog Transmit Ground (Pin 64). To be connected to GND (see below).
AGNDRAnalog Receive Ground (Pin59). To be connected to GND (see below).
AGNDTand AGNDRmust be connectedtogetherascloseas possibleto the chip.
GNDand AGNDRboardplansshould be separated,then connectedtogether as closeas possible to the
chip, at a single point. Similarly V
singlepoint.
II - BLOCK DIAGRAMS
II.1 - Functional Block Diagram
Digital +5V (Pin 9, 25, 41). To be connected to AVDD(see below).
Analog +5V(Pin 62). To be connected to VDD(see below).
and AVDDmust ne connected as close as possible to the chip, at a
DD
RXD
TXD
CLK
151614
ST75C520
HDLC
TX
MUX
V.17, V.29, V.27
FAX TRANSMITTER
TX
ANALOG
1
TXA2
2
TXA1
SD [0..7]
(26 to 33)
SINTR
DUAL RAM
INTERFACE
HDLC
RX
HANDSHAKE AND
38
STATUS REPORT
RTS
RING
DETECTOR
V.24
INTERFACE
13111210
CD
CTS
RING
V.17, V.29, V.27
FAX RECEIVER
TONE
DETECTOR
V.21 FLAG
DETECTOR
DPLL
RX
ANALOG
60
RXA1
RXA2
61
75C52002.EPS
5/45
ST75C520
II.2 - HardwareBlockDiagram
XTAL
55
EXTAL
56
BOUNDARYSCAN
(42 to51 - 53-54)
EBS
RESET
SA [0..6]
(17 to 23)
SD [0..7]
(26 to 33)
SDS (SDR)
SR/W (SWR)
SCS
SDTACK
SINTR
12
3
52
7
8
34
35
36
37
38
39INT/MOT
11 12 13 14 10
DSPCORE
DUAL
PORT
RAM
64 x8
V.24INTERFACE
CD
CTS
RTS
ST18932
CLK
PROGRAM ROM 8Kx 32
RAM
2K x 16
S
S
CROM
S
8K x16
I
O
16 157 6 5 4
TXD
RXD
RING
E
Y
E
EYEX
EYEY
P
A
G
E
TEST1
TEST2
FIFO
8x16
FIFO
8x16
IIRFIR
DPLL AND CONTROL
FIR
8-24
40
IIRFIR
DD
DV
DGND
9-25
41
59 62 64
DD
AV
AGNDR
ST75C520
AGNDT
TXA2
1
TXA1
2
58
V
REFP
63
V
CM
57
V
REFN
60
RXA1
61
RXA2
75C52003.EPS
III - ELECTRICALSPECIFICATIONS
Unless otherwisenoted,electrical characteristicsare specifiedovertheoperatingrange.Typicalvalue are
given for V
= +5V andt
DD
amb
=25°C.
III.1 - MaximumRatings (referencedto GND)
SymbolParameterValueUnit
V
DD
V
I,VIN
I
I,IIN
I
O
I
OUT
T
oper
T
stg
P
tot
Stresses above those hereby listed maycause damage to thedevice. The ratingsarestress related onlyand functional operation ofthe device
at conditions beyond those indicated inthe operational sections of the specificationsis not implied. Exposure to maximumrating conditions for
extended periods may affect device reliability. Standard MOS circuits handling procedure should be used to avoid possible damage to the
device.
DC Supply Voltage-0.3 to 7.0V
Digital or Analog Input Voltage-0.3 to(VDD+ 0.3)V
Digital or Analog Input Current±
Digital Output Current±
Analog Output Current±
1
20
10
mA
mA
mA
Operating Temperature0, + 70°C
Storage Temperature (plastic)- 40, + 125°C
Maximum Power Dissipation1000mW
III.2 - DC Characteristics
V
= 5.0V ± 5%, GND=0V,T
DD
=0 to 70°C(unlessotherwisespecified).
amb
III.2.1 - PowerSupply and Common Mode Voltage
SymbolParameterMin.Typ.Max.Unit
V
I
DD
I
DD-lp
V
DD
CM
SupplyVoltage4.7555.25V
SupplyCurrent (internal oscillator)75100mA
SupplyCurrent in Low Power Mode1mA
Common Mode VoltageVDD/2 -5%VDD/2VDD/2 + 5%V
Differential Reference VoltageInput = V
Input Common Mode Offset,v = (RXA1+RXA2)/2 - V
ILmax
DD
REFP-VREFN
CM
Differential Input Voltage RXA1 - RXA22 x V
Output Common Mode Voltage Offset = (TXA1+TXA2)/2 - V
CM
Differential Output Voltage TXA1 - TXA22 x V
-15µ
15µ
2.402.502.60V
-300300mV
REF
-200200mV
REF
V
V
kΩ
kΩ
µA
A
A
A
PP
PP
7/45
ST75C520
III.3 - AC ElectricalCharacteristics
III.3.1 - Dual PortRAM Host Timing
NSCS
SA[0..6]
SR/NW
NSDS
Motorola modeIntel mode
SD[0..7]
NSDTACK
WRITE-CYCLE TIMING
Valid Address
174
8
35105
Valid Data
IN
26 26
11
READ-CYCLE TIMING
Valid Address
194
12
Valid Data
OUT
NSINTR
SR/NW (= NWRITE)
NSDS (= NREAD)
NumberDescriptionMin.Typ.Max.Unit
1Address and Control Set-up Time5ns
2SDTACK Acknowledge20ns
3Data Set-up Time10ns
4Address and Control Hold Time0ns
5Data HoldTime5ns
6SDTACK Hold Time0ns
7Write Enable Low State45ns
8Access Inhibition High State (see Note)70ns
9Read Enable Low State45ns
10Read Data Access35ns
11SINTR Clear Delay50ns
12Data Valid to Tristate15ns
Note : A minimum delay of70nsis required only fromthe rizing edge ofNWRITE tothefallingedge ofthe nextselected NREAD orNWRITE.
75C52004.EPS
8/45
III.3.2 - SerialV.24 Interface Timing
CLK
ST75C520
12
TXD
Valid Data In
3
RXD
Valid Data Out
4
NumberDescriptionMin.Typ.Max.Unit
1TXD to CLK Set-up Time30ns
2TXD to CLK Hold Time10ns
3RXD Validto CLK Delay Time100ns
4RXD Validto CLK HoldTime0ns
75C52005.EPS
9/45
ST75C520
IV - FUNCTIONALDESCRIPTION
IV.1 - SystemArchitecture
The chip allows the design of a complete FAX
data-pumpwithout any externalcomponent.Aversatiledual port RAM allows an easy interfacewith
mostmicro-controllers.
IV.2 - Operation
IV.2.1- Modes
Themodemimplementationisfullycompatiblewith
FAX modulation recommendations. The modulation can be either TrellisCoded Modulation(TCM)
as in V.17 14400, 12000, 9600, 7200bps rates,
Quadrature Amplitude Modulation (QAM) as in
V.29 9600, 7200, 4800 and V.27ter 4800 and
2400bps. Other modes of operation include tone
and DTMF detection or generation, or speech
mode.
IV.2.2- TransmitterDescription
The signalpulses are shaped in a dedicatedfilter
further combined with a compromise transmit
equalizersuitedfortransmissionoverstronglydistortedlines. 3 different compromise equalizersare
availableand can be selectedby software.
IV.2.3- ReceiverDescription
The receiver section handlescomplex signals and
usesa fractionally spaced complex equalizer. It is
able to copewithdistantmodemtiming drifts up to
-4
asspecifiedinthe ITU-T recommendations.It
10
alsocompensateforfrequencydriftup to 10Hzand
for phase jitter at multiple and simultaneous frequencies.
IV.2.4- ToneGeneratorDescription
Fourtonescanbesimultaneouslygeneratedbythe
ST75C520. The tones are determined by their
frequenciesandbytheoutputamplitudelevel.Aset
of specific commandsare also available for DTMF
generation(using two of the four generatorsavailable).
IV.2.5- ToneDetectorDescription
Sixteen tones can be simultaneouslydetected by
the ST75C520.Eachofthe tonesto bedetectedis
defined by the coefficientsof a 4th order programmableIIR. Detectionthresholds are also programmablefrom-45dBmupto-10dBm.DTMFdetection
isalsoavailableand isperformedbya specificfilter
section (that requires no programming).
IV.2.6- DTMF Detector Description
A DTMF Detector is included in the ST75C520, it
allowsdetectionofvalidDTMFDigits.AvalidDTMF
Digit is defined as a dual Tone with a total power
higher than -35dBm,a durationhigher than 40ms
and a differentialamplitudewithin 8dB(negativeor
positive).
IV.2.7- VoiceMode
The ST75C520 voice mode allows the implementation of enhanced telephone functions like answering machines. The incoming samples
(9600Hz), received from the line are PCM A-law
coded and writen into the dual port RAM. The
outpoing samples are decompressed using the
same A-law and output to the telephoneline.
The voice mode is entered using a CONF command, it canbe either transmit voice from thedual
RAM Tx bufferto the telephoneline,receivevoice
from the telephone line to the dual RAM buffer,or
both of these functions simultaneously. The format
of thesignal isA-law codedwithout complementation of the even bits. The buffer mechanism, between thehostmicro-controler andtheST75C520,
is identicaltothemechanismusedforparalleldata
exchanges except that it starts immediately after
CONF command, the size of the transmit and
received buffer,are and must be 8 bytes, there is
no needfor aXMITcommand, andifan overrunor
underrunconditionoccursno error willbe reported
to thehost processor.
IV.2.8- Analog Loop Back Test Mode
In any transmission standard and serial data format, the ST75C520can be configured for analog
loop backtest.
IV.2.9- Low Power Mode
Sleepstatecan beattainedby a SLEEPcommand.
Activating the reset signal will wake up the datapump. Whenin sleep mode, the dual port RAM is
unavailableand theclocksare disabled.
Whenenteringthe lowpowermode,theST75C520
stops its oscillator, all the peripherals of the DSP
core are stopped in order to reduce the power
consumption.Thedual RAM is made inacessible.
The ST75C520 can be awakened by a hardware
reset.
There is a maximum time of 20ms to restart the
oscillator after waking up and an additional 5ms
after the interrupt to be able to accept any command coming from the host.
10/45
ST75C520
IV.2.10- Reset
After a hardware reset, or an INIT command, the
ST75C520 clears all its internal memories, clears
thewhole dual RAMand startsto initialize thedelta
sigma analog converters.As soon as theseinitializations are completed, the ST75C520 clears the
dual RAM address 0 (COMSYS), generates an
interrupt IT6 (command acknoledge) and is programmed to send and receive tones, the bit clock
and the sample clock areprogrammedto 9600Hz.
The total duration of the reset sequence is about
5ms. After that time the ST75C520 is ready to
executecommands sentby the host micro-controller.Thedurationoftheresetsignalshouldbegreater
than700ns.
IV.3 - Modem Interface
IV.3.1- AnalogInterface
Themodemdesigner must provideaproperhybrid
interface to the ST75C520. An example of hybrid
design is given in paragraphs XII and XIII. The
inputs and outputs of the MAFE are differential,
achieving thus a better noise immunity. The D/A
converter output amplifier includes a single pole
low-passfilter, its cut-off frequencyis :
- 3dB # 19200Hz.
F
c
Continuous-timefiltering of the analog differential
output is necessaryusingan off-chip amplifierand
a fewexternalpassivecomponents.
IV.3.2- Host Interface
The host interface is seen by the micro as a 64x8
RAM, with additional registers accessiblethrough
an 8-bit address space.Aselection Pin(INT/MOT)
allowstoconfigurethehostbusfor eitherINTELor
MOTOROLAtypecontrolsignals.
V.1.1- Mapping
V.1.1.1- CommandArea
The command area is located from $00 to $04.
Address $00 holds the commandbyte COMSYS,
and the next four locations hold the parameters
COMPAR[0..3]. The command parameters must
be entered before the command word is issued.
Once the command has been entered, the command byte is reset and an acknowledge report is
issued. A new command should not be issued
beforetheacknowledgecounterCOMACKisincremented.
V.1.1.2- ReportArea
The report area is located from address $05 to
address $07.Location$05holdsthe acknowledge
counter COMACK. Each time a command is acknowledged, the report bytes COMREP[0..1] (if
any) are written by the ST75C520 into locations
$06 and $07, and the content of COMACK is
incremented.This counterallowsthe ST75C520to
accurately monitor the command processing.
V.1.1.3- StatusArea
Thestatusareaislocatedfromaddress$08to$0A.
The error status word SYSERR is located at address$08. Thiserror statusword isupdated each
time anerrorconditionoccurs.Anoptionalinterruption IT0 may additionally be triggered in the case
of an error condition. Locations$09 and $0A hold
the generalstatusbytes STATUS[0..1]. The meaning of the bitsdepends on the mode of operation,
and is described in Chapter VII. The third byte at
address $0B holds the Quality Monitor byte
STAQUA.
V - USER INTERFACE
V.1 - Dual PortRam Description
ThedualportRAMisthestandardinterfacebetween
the controller and the ST75C520, for either commandsordata.Thismemoryis addressedthrougha
7-bitaddressbus.Thelocationsfrom$00 to$3Fare
RAMlocations,while locationsfrom $40 to$50 are
controlregistersdedicatedtotheinterrupt handling.
The user can program (through the DOSR command) the three locations STAOPT[0..2] of the
OptionalStatusArea ($0C to $0E) for the real time
monitoring of threearbitrarymemorylocations.
V.1.1.5- DataBuffer Area
The data area is made of four 8-bytebuffers. Two
are dedicated to transmission and the two others
to reception.Eachof thefour buffers is attached to
a status byte. the meaning of the status byte depends on the selected format of transmission.
Within each buffer, D0 represents the first bit in
time.
11/45
ST75C520
V.1.2- Interruptions
The ST75C520 can generate 5 interrupts for the
controller.The interrupthandlingis made withaset
of registers located from $40 to $50.
The interruptions generated by the ST75C520
come from several different sources. Once the
ST75C520 raises an interrupt, a signal is sent to
the controller. The controller has then to process
the interrupt and clear it.The interrupt source can
be examined in the Interrupt Source Register
ITSRCR located at $50. According to this status
byte,theinterruptsourcecanbedetermined.Then,
writing azero at oneof thememorylocation$40to
$46 (Reset Interrupt Registers ITREST[0..6]) will
reset the corresponding interrupt (and thus acknowledgeit). These sources of interruptions can
be masked globally or individually using the Interrupt Mask Register ITMASKlocatedat $4F.
The interrupt sources are :
- IT0 : Error/Warning
This signifies that an error has occurredand the
error code is available in the error status byte
SYSERR.This byte can be selectivelycleared by
the CSE command.
- IT2 : Tx Buffer
Each time the ST75C520 frees a buffer, this
interruptis generated.
- IT3 : Rx Buffer
Each time the ST75C520 has filled a buffer, this
interrupt is generated.
- IT4 : StatusByte
This signifies that the status byte has changed
and must be checked by the controller.
- IT6 : Command Acknowledge
ThissignifiesthattheST75C520hasreadthelast
command entered by the host, incrementedthe
command counter COMACK, and is ready for a
new command.
The Command Set has the following attractive
features :
- userfriendlywitheasyto remembermnemonics,
- possibilityof straightforwardexpansionwithnew
commands to suit specific customer requirements,
- easyupgradeofexisting software usingprevious
modem based SGS-THOMSONproducts.
The command set has been designed to provide
the necessaryfunctionalcontrolon theST75C520.
Eachcommandisclassified accordingtoitssyntax
and the presence/absenceof parameters. In the
case of a parametriccommand,parameters must
first be written into the dual port RAM before the
commandisissued. Acknowledgeand errorreport
isissued for eachcommand entered.
Setallparameterstotheirdefault values
and wait for commands of the control
processor. Non parametriccommand.
IDTIdentify. Returntheproductidentification
code.Non parametric command.
SLEEPTurntolow power mode, the ST75C520
entersthelowpowermode and stopsits
crystal oscillator to reduce power
consumption.In this mode allthe clocks
are stopped and the du al RAM is
unreachable.
HSHKHandshake. B egins the handshake
sequence. The modem engine
generates all the sequences defined in
the ITU-T recommendations. A status
reportindicatesto thecontrol processor
the state of the handshake. This
commandonly applies to modes where
a handshake sequence is defined. A
CONFcommandmusthavebeenissued
priortotheuseofHSHK. Nonparametric
command.
STOPFAX Sto p. Stop FAX Half-duplex
transmitter. Nonparametriccommand.
SYNCFAX Synchronize. Start/Stop of FAX
Half-duplex receiver. Par ametric
command.
CSEClear StatusError. Selectivelyclearsthe
Error status byte SYSERR. Parametric
command.
SETGN Set Gain. This command sets theglobal
gain factor,whichisused for thetransmit
samples.Parametriccommand.
V.2.1.2- Data CommunicationCommands
XMITTransmit Data. Start/stop the
transmission of data in parallel mode.
After a XMIT command, the ST75C520
sends the data containedin its dualport
RAM.
SERIAL Select Serial or Parallel Mode. This
command selects the data source, i.e.
either parallel or serial. The parallel
mode uses a part of the dual port RAM
as a doublebuffer.Theserialmodeuses
the serial synchronous I/O. Parametric
command.
FORMSelectstheTransmissionFormat(onlyin
parallel mode). This command
configures the data interface for both
receiverandtransmitteraccordingtothe
selected data format. Parametric
command (HDLC or synchronous). In
serial mode, format is always
synchronous.
write an arbitrary 16-bit value into the
writa ble me mo r y locatio n curren t ly
specified by a parameter. Parametric
command.
MRMemoryRead.Thiscommandallowsthe
controller to read any of the ERAM or
CROM (ST75C520 memory spaces)
loca tion without int errupting t he
processor. Parametriccommand.
CRComplex Read. This command allows
the controller to read at the same time
the real and imaginarypartofacomplex
value stored in a double ERAM or
CROM location. This feature is very
interesting for eye pattern software
control and for equalization monitoring.
This command insures that the real and
imaginary parts are sampled in the
memory at the same time (integrity).
Parametric command.
14/45
ST75C520
V.2.1.4- Configuration Control Commands
CONFConfigure.Thiscommandconfiguresthe
modemenginefordatatransmissionand
handshakeprocedures(ifany) in any of
the supported modes. Thetransmission
parametersaresetto theirdefaultvalues
and can be modified with the MODC
command.Parametriccommand.
MODCModify Configuration. This command
allows modification of some of the
parameters which have been set up by
theCONFcommand.It canalsobeused
to alter the mode of operations (short
train).Parametriccommand.
DOSRDefine Optional Status Report. This
commandallows the modificationof the
optional status report located in the
status area of the dual port RAM. One
canthusselectaparticularparameterto
be mo nitor ed during al l modes of
operation.Parametriccommand.
DSITDefine Status Interrupt. This command
allows the programming of the status
word bitthatwillgeneratean Interruptto
the controller.Parametriccommand.
disables the tone generator(s).
Parametriccommand.
IV.2.1.6-Tone Detection Commands
TDRCRead Tone Detector Coefficient. Read
one To ne Detector Coefficient.
Parametriccommand.
TDWCWrite Tone Detector Coefficient. Write
one To ne Detector Coefficient.
Parametriccommand.
TDRWRead Tone Detector Wiring. Read one
Tone Detector Wiring connection.
Parametriccommand.
TDWWWrite Tone Detector Wiring. Write one
Tone Detector Wiring connection.
Parametriccommand.
TDZClear ToneDetector Cell. Clear internal
variables of a Tone Detect or Cell.
Parametriccommand.
V.2.1.5- Tone GenerationCommands
TONESelect Tone. Programs the tone
generator(s) for the desired default
tone(s). Additional mnemonics provide
quick programming of DTMF tones or
other currently used tones. Parametric
command.
V.2.1.7- MiscellaneousCommands
CALLCall a Subroutine.Call asubroutinewith
one Parameter.Parametriccommand.
JSRCall a Low Level Subroutine. Call an
internal subroutine with one parameter.
Parametriccommand.
15/45
ST75C520
V.3 - Command Set Short Form
CCI Command
MnemonicValueDescription
XMIT0x01Transmit Data
SETGN0x02Set Transmit Gain
SLEEP0x03Power Down the ST75C520
HSHK0x04Start Handshake
INIT0x06Initialize (Software Master RESET)
SERIAL0x07Enable/disable Data Serial Mode
CSE0x08Clear Error Status Word
FORM0x09Define Parallel Data Format
DOSR0x0ADefine Optional Status Report
TONE0x0CGenerate PredefinedTones
TGEN0x0DEnable Tone Generator
DEFT0x0EDefine Arbitrary Tone
The ST75C520 has a dedicated status reporting
area located in its dual port RAM. This allow a
continuousmonitoringof the status variables without interruptingthe ST75C520.
The first statusbyte gives the error status. Issuing
of an error status can also be flagged by a maskable interruptfor the controller. Thesignification of
the error codes are given in Chapter VII.
The secondand thirdstatusbytesgivethegeneral
status of the modem. These status include for
example the ITU-T circuit status and other items
describedinappendix. Thesetwo status can generate, when a change occurs, an interrupt to the
controller ; each bit of the two byte word can be
maskedindependently.
The forth byte gives in real time a measure of the
receptionquality.Thisinformationmay be used by
the controller to monitorthe qualityof the received
bits.
Three other locations are dedicated for custom
status reporting. The controller can program the
ST75C520for a real time monitoring of any of its
internalRAM location.High byteor low byte of any
word can thus be monitored.
V.4.2- Reports
The ST75C520 features an acknowledge and report facility. The acknowledge of a command is
monitored by a counter COMACK located in the
dual portRAM. Each time a commandisreadfrom
the command area, the ST75C520will increment
this counter. For instance, when a MR (Memory
Read) command is issued, the data is first written
in the report area, and the counter is incremented
afterwards. This way of processing insures data
integrity and gives additional synchronization between the controller and the data pump.
V.5 - Data Exchanges
The ST75C520 accepts many kinds of data exchange : the default mode uses the synchronous
serialexchange.OthermodesincludeHDLCframing support and synchronousparallel exchanges.
Detaileddescriptionof the DataBufferExchanges
modesis available in the paragraph IX.
V.5.1- Synchronous Parallel Mode
The data exchanges are made through the dual
port RAM andarebyte synchronousoriented.The
double buffer facilities of the ST75C520 allow an
efficientbufferingof the data.
V.5.1.1- Transmit
Thecontrollermustfirstfillatleastthefi r s tbufferof data
(TxBuffer0) withthebitsto be transmi t ted.In orderto
performthisoperation,thecontrollermustfirst check
the Tx Buffer0 statusword DTTBS0.If this bufferis
empty, the controllerfills thedatabufferlocations(up
to 64 bits ) ,andthenwritesinDTT BS0thenumberof
bytescontainedin thebuffer. The controllercan then
either proc eed with the second buffer or initiate the
transmi ssio nwi t haXMI Tcommand.
The ST75C520 copies the contents of the data
buffer and then clears the buffer status word in
order tomakeitagainavailable,thengeneratesan
IT2 interrupt. The numberof bytesspecifiedbythe
status word is then queued for transmission. The
process goeson withthe two buffers untilan XMIT
commandstops the transmission. After the finishing XMITcommand has beenissued,the last buffers areemptiedby theST75C520.
Errorsoccurwhenbothbuffersareemptywhilethe
transmit bit queue is also empty.Erroris signalled
with an IT0 interruptionto the controller.
V.5.1.2- Receive
The controllershouldtakecareof releasingthe Rx
buffers before the Data Carrier Detect goes true.
This ismadebywriting zeroin the RxBufferStatus
0 and 1. The ST75C520 then fills the first buffer,
and oncefilledsetsthe statuswordwiththe number
of bytesreceived and thengeneratesan IT3 interrupt. It then takes control of the secondbufferand
operatesthe same way. The controllermustcheck
the statusof thebuffersandempty them. Oncethe
data read, the controller must release the used
buffer and wait for thenext buffer to be filled.
Error occurs when both buffers are declared full,
and incomingbits continue to arrive from the line.
Error is signaledby an IT0interrupt.
V.5.2- HDLC Parallel Mode
This mode implementspartof the High Level Data
Link Control formats and procedures. It is well
suited for error correcting protocols like ECM or
FAXT4/T30recommendations.Itsupportstheflagging generation,16-bitFrameCheckSequence,as
well as the Zero insertion/deletionmechanism.
V.5.3- Serial Exchanges
The other mode of operationfordataexchangesis
the Serial Synchronous Mode. In this mode, the
data I/O is made through the V.24interface (page
4). Even when using the parallelmode described
above, the received bits are available on the
ST75C520 RxD Pin. See paragraph VII.2.1 table
for clockvalues.
17/45
ST75C520
VI - COMMANDSET DESCRIPTION
TheappendixAcontainsthedescriptionofthecompletecommandset.Commandsarepresentedaccording
to thefollowingform :
COMMANDCommand Name MeaningCOMMAND
OpcodeHexadecimaldigit
XXXXXXXX
SynopsisShort descriptionof thefunctionsperformedby the command.
Parameters
FieldBytePos.ValueDefinition
NameXb..a
xx *
Explanation of the parameter
Default value
FieldName of the addressed bit field.
ByteIndex (or addressin thedual port RAM) of theparameter byte (from 1 to 4).
Pos.Bit fieldpositioninside the parameter byte.Can either be a singleposition (from 0 to 7, 0
being LSB) or a range.
ValuePossible values for the bit (resp. bit field). Range means all values are allowed. A star
meansa defaultvalue.Valuesareexpressedeitherunder theformof a bit string,or under
hexadecimalformat.
CALLCall aSubroutineCALL
Opcode:19
00011001
SynopsisCALLallowsto executea part of the ST75C520firmware with a specificargument.
Parameters
FieldBytePos.ValueDefinition
C_ADDR_L17..0Low byte of thecall address
C_ADDR_H27..0High byte ofthe call address
C_DATA_L37..0Low byte of the argument
C_DATA_H47..0High byte of the argument
18/45
ST75C520
CONFConfigure for OperationsCONF
Opcode20
00100000
SynopsisCONF allows the complete definition of the ST75C520 operation, including the mode of
SynopsisCR allows the reading of a complex parameter. The parameter specifies the parameter
address (for the real part : the imaginarypart is next location). CR returns the high byte
value of bothreal and imaginarypart of theaddressedcomplexparameter.
Parameters
FieldBytePos.ValueDefinition
CR_ADDR_L17..0Low byte of the 16-bit address
CR_ADDR_H27..0High byte of the 16-bit address
CSEClear Error StatusCSE
Opcode:08
00001000
SynopsisCSE is used to clear the ST75C520 error status SYSERR byte. It is also used as an
acknowledgeto the error conditionhandler.Fordetails,pleaserefer to the corresponding
appendix.
SynopsisDOSR specifies the address of the RAM variables to be monitored in the 3 locations
STAOPT[0..2]of the dual portRAM. It alsospecifiestheassignmentwithinthe 3locations.
Parameters
20/45
FieldBytePos.ValueDefinition
STA_OPT_ASS11..00..2Index of the STAOPT destination
STA_OPT_ADL27..0Low byte of source address
STA_OPT_ADH33..0High byte of source address
STA_OPT_HL370
1
Select low byte of source
Select high byteof source
ST75C520
DSITDefine Status InterruptDSIT
Opcode:13
00010011
SynopsisDSITspecifiesthebit mask used with theSTATUS[0] and STATUS[1] byte to generatean
interruptIT4 tocontroller.Each time a bit changehappensin the statuswords, assuming
the correspondingbit mask will be set, an interrupt will be generated.
Parameters
Notes :The default ITStatusis 0x3F forSTATUS[0]and 0xFF for STATUS[1].
FieldBytePos.ValueDefinition
STA_IT_MSK017..0Status[0] bit mask pattern
STA_IT_MSK127..0Status[1] bit mask pattern
FORMSelectTransmissionFormatFORM
Opcode:09
00001001
SynopsisFORM defines the typeof transmissionused. This format is valid only in the paralleldata
mode. The default format,unless specified, is synchronous.
Parameters
Notes :1.This format is only valid for the transmiter.
FieldBytePos.ValueDefinition
X_SYNC11..000*
01
10
11
Synchronous format
Transmit continous ”1”
HDLC framing
Transmit continous ”0”
(1)
(1)
HSHKHandshakeHSHK
Opcode:04
00000100
SynopsisHSHK is used to command the ST75C520 to begin the transmit handshake sequence
processing.Theprogress of thehandshakeis reported to the controlprocessor.
SynopsisINIT forcesthe ST75C520 to reset all parameters to their default conditions and restart
operations.
ParameterNonparametriccommand.
Notes :This command makes a software resetofthe ST75C520 and socannot have the regularhandshake protocol. Itdoes
not increment the COMACK, neithergeneratean Interrupt.
21/45
ST75C520
JSRCall a Low Level SubroutineJSR
Opcode:18
00011000
SynopsisJSR allows to executea partof the ST75C520 firmware with a specificargument.
Parameters
FieldBytePos.ValueDefinition
C_ADDR_L17..0Low byte of thecall address
C_ADDR_H27..0High byte of the call address
C_DATA_L37..0Low byte of theargument
C_DATA_H47..0High byte ofthe argument
MODCModify ConfigurationMODC
Opcode:21
00100001
SynopsisMODCallowsmodificationof the configurationfor special purpose.Thiscommandhasno
effect while in data mode, the parameters are just sampled when starting to transmit or
receive.The valueoftheseparametersare notaffectedwhensendinga CONFcommand.
Parameters
Notes :1. Shorttrain sequence mustbe preceded by at leastone normal training sequence.
FieldBytePos.ValueDefinition
MODC_SH160*
1
MODC_FPT23..200*
01
10
Normal training sequence
Short training
No echo protection tone
Long echo protection tone (180ms)
Short echo protection tone (30ms)
(1)
sequence
MRMemoryReadMR
Opcode:10
00010000
SynopsisMR allows the reading of a 16-bit parameter. The parameter specifies the parameter
address.
Parameters
FieldBytePos.ValueDefinition
MR_ADDR_L17..0Low byte of the16-bit address
MR_ADDR_H27..0High byte ofthe 16-bit address
MWMemory WriteMW
Opcode:12
00010010
SynopsisMWallows the writingof a 16-bitparameter.Theparameterspecifies the address as well
as the valueto betransferred.
Parameters
22/45
FieldBytePos.ValueDefinition
MW_ADDR_L17..0Low byte of the16-bit address
MW_ADDR_H27..0High byte of the 16-bit address
MW_VALUE_L37..0Low byte of the16-bit value
MW_VALUE_H47..0High byte ofthe 16-bit value
ST75C520
SERIALSelect Serial or Parallel ModeSERIAL
Opcode:07
00000111
SynopsisSERIALdefinesthe data path, i.e.either serial or parallel.
Parameters
Notes :The received Bits alwaysgo to the output pin RXD,even when the RX_SDATAbit is set.
FieldBytePos.ValueDefinition
TX_SDATA100*
1
RX_SDATA110*
1
Use serial link for Tx Data
Use parallel link for Tx Data
Use only serial link forRx Data
Use also parallel link for Rx Data
SETGN
Set Output Gain
SETGN
Opcode:02
00000010
SynopsisSETGNis a commandwhichsets the scaling factor of the transmit samples. It isusedfor
setting the output level or for setting the level of the tone generators.The gain value is
given in the form ofa 2’s complement16-bitvalue.
Parameters
FieldBytePos.ValueDefinition
GAIN_L17..0range FF*Low byte of the 16-bitgain value
GAIN_H27..0range 7F*High byte ofthe 16-bit gain value
Example
Gain (dB)Gain (Hex)Gain (dB)Gain (Hex)Gain (dB)Gain (Hex)
07FFF-547FA-10287A
-17214-64026-112413
-265AC-7392C-122026
-35A9D-832F5-131CA7
-450C3-92D6A-14198A
SLEEPTurn to SleepModeSLEEP
Opcode:03
00000011
SynopsisSLEEPis used to force the ST75C520to turn to low powermode.
ParameterNonparametriccommand.
Notes :Whenreceiving this command the ST75C520 will stop processing and socannothave theregular handshake protocol.
It does not increment the COMACK, neither generate an Interrupt.
STOPFAX Stop TransmitterSTOP
Opcode:25
00100101
SynopsisSTOP is used, in FAX Modes, to force the ST75C520 to turn off the transmitter in
accordancewith the correspondingITU-T V.33/V.17/V.29/V.27recommendation.
ParameterNonparametriccommand.
Notes :When receiving this command theST75C520 will stop sending regular Data. In parallel mode this command must be
preceded bya XMIT Stop command. Inparallelmodethe ST75C520 willwaituntil all thetransmit buffers are sentbefore
starting the Stop sequence.
23/45
ST75C520
SYNCFAX Synchronizethe ReceiverSYNC
Opcode:26
00100110
SynopsisSYNC is used, in FAX Modes, to force the ST75C520 to Start/Stop the receiver in
accordance with the correspondingITU-TV.33/V.17/V.29/V.27recommendation.Assoon
as the ST75C520receives the SYNC Startcommanditsets its receiver to detectthe FAX
synchronizationsignal.This command is the equivalentHSHK commandfor the receiver.
Parameters
FieldBytePos.ValueDefinition
RX_SYNC100*
1
Stop receiver
Start receiversynchronization
TDRCTone Detector Read CoefficientTDRC
Opcode:1A
00011010
SynopsisTDRC Read one Coefficient of the selected Tone Detector Cell.
Parameters
FieldBytePos.ValueDefinition
TD_CELL13..00..FTone detectorcell number
TD_C_ADDR27..00..B
10
20
Other
Biquad coefficient
Energy coefficient
Static level
Reserved
The commandansweris : Low Byte of CoefficientfollowedbyHigh Byte ofCoefficient.
TDRWTone DetectorRead WiringTDRW
Opcode:1B
00011011
SynopsisTDRC Read Wiring of the selectedTone DetectorCell.
Parameters
FieldBytePos.ValueDefinition
TD_CELL13..00..FTone detectorcell number
TD_W_ADDR200
1
Other
Biquad and energy input
Comparator inputs
Reserved
The commandansweris:
a) IfTD_W_ADDR=0 :
- FirstByteis theNode Number of the Signal connectedto BiquadraticFilter input.
- SecondByte istheNode Number of theSignalconnectedto theEnergyestimatorinput.
b) if TD_W_ADDR = 1 :
- FirstByteis theNode Number of the Signal connectedto Comparator Negativeinput.
SynopsisTDWCWriteone Coefficient of the selectedTone DetectorCell.
Parameters
FieldBytePos.ValueDefinition
TD_CELL13..00..FTone detectorcell number
TD_C_ADDR27..00..B
10
20
Other
TD_COEFL37..0Low byte of coefficient
TD_COEFH47..0High byte of coefficient
Biquad coefficient
Energy coefficient
Static level
Reserved
TDWWTone Detector Write WiringTDWW
Opcode:1D
00011101
SynopsisTDRC Write Wiring of the selected ToneDetector Cell.
Parameters
Parameters
FieldBytePos.ValueDefinition
TD_CELL13..00..FTone detectorcell number
TD_W_ADDR200
1
Other
Biquad and energy input
Comparator inputs
Reserved
If TD_W_ADDR= 0 (SelectBiquad and Energy Inputs)
FieldBytePos.ValueDefinition
TD_W_ERN30..3FEnergy estimator signal input
TD_W_BIQ40..3FBiquad filter signal input
If TD_W_ADDR= 1 (SelectComparatorInputs)
Parameters
FieldBytePos.ValueDefinition
TD_W_CN30..3FNegative comparator signal input
TD_W_CP40..3FPositive comparator signal input
TDZToneDetector Clear CellTDZ
Opcode:1E
00011110
SynopsisTDZ Clears all internal variables of one Tonedetector cell including Filter local variables
and energy estimator.This commandmustbe sent after changingcoefficientsof a cell to
avoid instability.
Parameters
FieldBytePos.ValueDefinition
TD_CELL13..00..FTone detectorcell number
25/45
ST75C520
TGENEnable/disableTone GeneratorsTGEN
Opcode:0D
00001101
SynopsisTGENcauses the ST75C520toenable or disablethe four tone generators.
Parameters
FieldBytePos.ValueDefinition
TONE_0_ENA100*
1
TONE_1_ENA110*
1
TONE_2_ENA120*
1
TONE_3_ENA130*
1
Generator #0disabled
Generator #0enabled
Generator #1disabled
Generator #1enabled
Generator #2disabled
Generator #2enabled
Generator #3disabled
Generator #3enabled
TONEPredefinedTonesTONE
Opcode:0C
00001100
SynopsisTONEprogramsthetonegeneratorsforthepredefinedtones.Thetone generators#0 and
eventually #1 are reprogrammed with this command. Eventually the tone generator#0
and #1 are enabled.Using a valuenot in the followingtable willdisabletonegenerator#0
and #1.
Parameters
FieldBytePos.ValueDefinition
TONE_SELECT15..00
A
B
C
D
E
F
10
11
12
13
DTMF 0 (941 & 1336Hz)
1
DTMF 1 (697 & 1209Hz)
2
DTMF 2 (697 & 1336Hz)
3
DTMF 3 (697 & 1477Hz)
4
DTMF 4 (770 & 1209Hz)
5
DTMF 5 (770 & 1336Hz)
6
DTMF 6 (770 & 1477Hz)
7
DTMF 7 (852 & 1209Hz)
8
DTMF 8 (852 & 1336Hz)
9
DTMF 9 (852 & 1477Hz)
DTMF A (697 & 1633Hz)
DTMF B (770 & 1633Hz)
DTMF C (852 & 1633Hz)
DTMF D (941 & 1633Hz)
DTMF * (941 & 1209Hz)
DTMF # (941 & 1477Hz)
Answer tone (2100Hz)
Tone (1650Hz)
Answer tone (2225Hz)
Tone (1300Hz)
XMITStart/stopTransmissionXMIT
Opcode:01
00000001
SynopsisXMITstartor stopthetransmission oftheParallelTransmitData. This commandworkonly
if the Parallel Transmit Data modehas been selected with a SERIAL command.
Parameters
26/45
FieldBytePos.ValueDefinition
TX_START100*
Stop transmission
1
Start transmission
ST75C520
VII - STATUS DESCRIPTION
This appendix is dedicated to the ST75C520 reportingfeatures.inthe following sectionsthe command acknowledge process and the report and
status definitionsare explained.
VII.1 - Command Acknowledge and Report
VII.1.1 - Command AcknowledgeProcess
(see Figure 1)
The ST75C520 features an acknowledge process
basedon a counter COMACK. On power-on reset
(or INIT command),thiscounter’svalueissetto 0.
Each timea commandis successfullyexecutedby
the ST75C520, the acknowledge counter COMACK is incremented.Thisallowsa precise monitoring of the command entered and avoids
commandcollision.
Figure 1 : CommandAcknowledge Process
BEGIN
YesNo
COMSYS = 0
In the case of a memory reading command (CR,
TDRC, TDRW, IDT or MR) once the command
enteredisexecuted,thereportareais filledandthe
acknowledge counter is incremented afterwards.
This insures that the controller will read the value
correspondingto its request.
Furthermore,theST75C520resets thevalueof the
COMSYS register once the command has been
read. The interruption IT6 is raised just after the
counteris incremented.
VII.1.2 - ReportsSpecification
The report section of the Dual Port RAM is dedicatedtomemoryreading.InresponsetoaCR,MR,
TDRC, TDRW, IDT commands, the value read is
transferred to the reportregisters COMREP[0..1].
COMMAND EXIST
NoYes
CLEAR
ANSWER
EXECUTE
COMMAND
COPY ANSWER
INTO
COMREP
INCREMENT
COMACK
CLEAR
COMSYS
ASSERT
INTERRUPT
IT6
END
SET SY SERR
ERR_IPRM
ASSERT
INTERRUPT
IT0
SET SYSERR
ERR_IOCD
ASSERT
INTERRUPT
IT0
75C52006.EPS
27/45
ST75C520
VII.1.3 - CR Command
Issuinga CR commandcausesthe ST75C520todump a specificmemorylocationincomplexmode. This
instructionis particularlyuseful for equalizerstateanalysis or for softwareeye-patterndisplay. The report
areahas thismeaning :
RP7RP6RP5RP4RP3RP2RP1RP0COMREP[0]
IP7IP6IP5IP4IP3IP2IP1IP0COMREP[1]
RP0..RP7isthe MSB part of the16-bitvalueof the real part and IP0..IP7isthe MSB part of theimaginary
part.The CR commandinsuresthattherealandimaginarypartof the desiredcomplexvaluearesampled
internallyat the same time. The address given in the parameter fieldof CRis the addressof the real part.
VII.1.4 - MR/TDRC/TDRW/IDT Commands
The report issued by the MR/TDRC/TDRW/IDT commands follow the same rules as for CR. The report
meaningis :
D7D6D5D4D3D2D1D0COMREP[0]
D15D14D13D12D11D10D9D8COMREP[1]
D0..D15 is the16-bit value required by the MR/TDRC command.
In the case of IDT, D15..D12 containsthe product identification (2 for ST75C520),D11..D8 contains the
hardwarerevisionidentificationandD7..D0 contains the softwarerevision identification.
VII.2 - Modem Status
VII.2.1 - Modem Status Description
The Status of ST75C520is divided into 4 fields:
- The error status byte SYSERR that provides information about error. This status can trigger an IT0
interrupt,
- The general status byte STATUS[0] and STATUS[1] that contains all the modemsignals. These status
bytes can trigger an IT4interrupt,
- Thequality status STAQUA, that contains the quality of the receivedtransmission,
- The optional status bytes STAOP[0], STAOP[1] and STAOP[2], that contains additional information
regardingthe ST75C520operatingmode. Thisdefaultinformationcan be changedto monitoranyinternal
variablesusingthe DOSRcommand.
Notes : 1. The tonedetectors outputsare update 800times by second.
2. This baud rate defines also, the maximum command rate. Each baud time the ST75C520 looks at the COMSYS location
(addesss $00) to see if a command have been sentby the host processor. If the content of this location is different from zero the
ST75C520 execute the command.
(2)
(Hz)CLK (Hz)
(1)
4800
28/45
ST75C520
Startingat theadddress$08 the status areahave the followingformat :
The error statuschangeseach time an error occurs. When the ST75C520signalsan error by setting one
of the SYSERRbit,itgeneratesan interrupt IT0. These bitscan onlybeclearedbythehostcontroler using
the CSE command.
The meaning of the different bits of theSYSERRbyteis discribedbelow:
SYSERR
FieldPos.Meaning when set
ERR_TX0Transmit buffer underflow. Loss of synchronisation between thehost and ST75C520
ERR_RX1Receive buffer overflow. Loss of synchronisation between the host and ST75C520 receive
ERR_IOCD3Incorrect CCI command
ERR_IPRM4Incorrect parameter for the CCI command
ERR_RTK7Real time kernel error. ST75C520 not able to perform allits tasks withinthe baud period
transmit data buffermanagment.
data buffer managment.
(transmit orreceive samples lost).
Bit
VII.2.3 - Modem GeneralStatus
Themodemgeneralstatus wordiscomposedof two bytes STATUS[0]andSTATUS[1].Anybitchange can
generatean IT4interrupt. Usingthe DSITcommand allowsthe selectionof the correspondingbit that will
generate an interrupt each time they will change. The default pattern is $3F for STATUS[0] and $FF for
STATUS[1].
The differentbits havethe following meaning :
STATUS[0]
FieldPos.Meaning when set
STA_1090CCITT circuit109 (carrier detect).Indicates that valid data are received. When 0 the output
STA_1071CCITT circuit107 (data set ready). Valid only in modemmode.
STA_1062CCITT circuit106 (clear tosend). Indicates that the training sequence has been completed
STA_RING3Ring detected. A ring signal (from 15Hz to 68Hz) is presentat the RING pin. Valid only in
STA_CPT04Call progresstone detector #0.Low pass filter 650Hz. Valid only in tones modes.
STA_CPT106Signal infilter #0 is highterthan #1. Validonly in tonesmodes.
STA_109F7Fast Carrier Detect. Valid only in modem mode.
data RxD are clamped to constant mark. Valid only in modem mode.
and that any data at TxD pin (serial mode) or in the transmit buffer (parallel mode) will be
transmitted. validonly in modem mode.
tones modes. The precise frequency can be readin the optionalstatus byte STAOP2. The
detection time is 1 period of the ring signal. The detection lost time in 20ms after the last
transition on the ring signal.
29/45
ST75C520
STATUS[1]
FieldPos.Meaning
STA_H0Transmit synchronisationin progress. Valid only in modem mode.
STA_CCITT2CCITT 2100Hz versus2225Hz answer tone detect. Valid if STA_AT is set.Valid only in
STA_AT3Answer tone (either 2100Hz or 2225Hz) detected. Validonly in tones modes.
STA_HR4Receive synchronisationin progress. Valid only in modem mode.
STA_FLAG6V.21 channel 2 flag detect. Valid only in FAX modem mode and tone mode.
STA_DTMF7DTMF digit detect. The digit itself is available in the optional status byte STAOP2. Valid
VII.2.4 - Quality Status
The qualitybyte STAQUAmonitors an evaluation of the line quality. It is updated once per baud and its
value rangesfrom127(perfectquality)to 0 (terrible quality).Thisvalueisautomaticalyadjustedaccording
to the current receiving mode. Refer to the following chart to convert the value into its Bit Error Rate
equivalence.
VII.2.5 - Optional Status
Accordingto the operatingmode of the ST75C520the optionalstatus is displayingdifferentinformations.
The optional status are automaticallyreprogrammedafter each CONF command with the addressof the
variablestomonitoraccordingwiththeoperatingmodeselected(CONF_OPER).AftertheCONFcommand
the user mustoverwritethis default programming by using the DOSRcommand.
tones modes.
only inDTMF receive mode.
BER
-2
1e
-3
1e
-4
1e
-5
1e
-6
1e
-7
1e
-8
1e
-9
1e
0316395127
STAQUA
75C52020.EPS
VII.2.6 - Default Optional Status in Tone Mode
Whilein tone mode the format of the STAOPword is as follows :
Add.Name
$0CSTAOP0TDT7TDT6TDT5TDT4TDT3TDT2TDT1TDT0
$0DSTAOP1TDT15TDT14TDT13TDT12TDT11TDT10TDT9TDT8
$0ESTAOP2RING_PERIOD
Notes : 1. RING_PERIOD is valid when thebit3of the STATUS[0](STA_RING) goes high. This value is updated ateach fallingedge of
30/45
the RING signal. The RING_PERIOD value must bedivided by 2400 to obtain the period in seconds.
2. TDTx is the output of the tonedetector x.
76543210
Bit
(1)
ST75C520
VII.2.7 - Default Optional Status in DTMF Receiver Mode
Whilein DTMF receivermode the formatof the STAOPword is as follows :
Add.Name
$0CSTAOP0TDT7
$0DSTAOP1TDT15
76543210
(1)
(1)
TDT6
TDT14
(1)
(1)
TDT5
TDT13
(1)
TDT4
(1)
TDT12
$0ESTAOP2DTMF_DIGIT
Notes : 1. These cells are usedby theDTMF detector.
2. DTMF_DIGIT is valid when the bit 7 of STATUS[1](STA_DTMF) goes high. This value remains unchanged until anewDTMF
digit is detected.
VII.2.8 - Default Optional Status in ModemMode
Whilein modem mode the format of the STAOPword is as follows :
Add.Name
$0CSTAOP0xxxSPEED
$0DSTAOP1Not used
$0ESTAOP2PNSUCsPRDETsPNDETsSCR1sPRsPNsP2sP1s
Notes : 1. SPVALis active in V.33 receiveronly atthe same time astherisingtransitionof theSCR1ssignal. WentSPVALis set, it
indicates that the SPEED bits contain the data speed information.
2. SPEED is valid in V.33receiver only. It can have 2 values, afterthe SCR1s signal goeshigh : 1000 for14400bps and0111 for
12000bps.
3. The STAOP2bit reflects theprogression ofthe synchronization. The STAOP2bits have thefollowing meaning:
NamePositionDescriptionTxRx
P1s0Unmodulated carrier sequence. Optional,used for echo protection.X
SCR1s4Continuous scrambled1 sequenceXX
PNDETs5Turned on after PN sequence detectionX
PRDETs6Turned on after PR sequence detection (V.33 and V.17 only)X
PNSUCs7Turned onafter succesfull trainingof the receive equalizer.When on at
7654321 0
the end of thesynchronization, the transmition BER is statisticaly
bellow 10ppm.
Notes : 1. In the case of V.29 or V.27,PRs and PRDETsbits are not active.
2. PNSUCs indicates the quality of the Rx signal that willgive a berof approximationof 1e
3. After sending the command SYNC0, all bitsare reset.
4. When using long echo protection tone,otherwise 0.
5. When using short echo protection tone, otherwise 0.
6. STA-106 is setatthe end ofT6 and resetat the beginningof T10.
7. After sending the command SYNC1, this bit is set.
-5
.
75C52022.EPS
33/45
ST75C520
VIII - TONEDETECTORS
VIII.1- Overview
The general purpose TS75C520 tone detectors
block is a powerful module that covers a lot of
applications:
- callprogresstone detection,fullyprogrammable
for allcountries,
- DTMF detection,
- FAX, voice,data automatic detection,
- callwaitingdetection,whileinvoiceordatamode.
VIII.2- Description
Thetonedetectorblockisasetof16identicalCells.
Each cell is composed of a Double Biquadratic
Filter,a Powerestimatorsection, a Staticleveland
a Levelcomparator.
Figure 2 : BiquadraticIIR Filter
C0C5
INOUTC6
2
EachBiquadraticFilter, PowerEstimatorandStatic
Level can beprogrammedusinga complete set of
Commands(TDRC,TDRW,TDWC,TDWW,TDZ).
The wiring between the differentCells canbe defined by the user, using the associatedCommand
allowing a wide range of applications.
The 16 ComparatorOutputsgive,onabaudbasis,
the information into two 8 bits words TONEDET0
(for cells number 0 to7) and TONEDET1 (forcells
number8toF). TheseTONEDET variablescanbe
accessed using a MR command or, more easily,
monitored on a baud basisusing the DOSRcommand.
VIII.2.1 - BiquadraticFilters
Each Biquadratic Filter is a doubleregular section
that can performany Transfer functionwith 4Poles
and 4Zeros. This routineisrun on a samplebasis.
CB
2
-1
Z
C1
C2
-1
Z
C3
-1
Z
C4
C7
C8
-1
Z
C9
-1
Z
CA
The corresponding transferfunction is :
C0 ⋅
=
C5 + 2 ⋅
1 ± 2 ⋅ C1 ⋅ z
Out
Input
Note : All coefficientsare coded on16bits 2’s complement inthe range+1, -1(Q15). To avoid thepossibility of overflowtheuser must check
that the internal node mustnot be higher that 0.5 (inQ15 representation).
C3⋅ z
±1
+ 2 ⋅ C4 ⋅ z
±1
±2 ⋅ C2 ⋅ z
±2
±2
CB+ 2⋅ C9⋅ z
⋅ C6 ⋅
1 ± 2 ⋅ C7 ⋅ z±1± 2 ⋅ C8 ⋅ z
±1
+ 2⋅ CA ⋅ z
±2
±1
⋅ z
±2
75C52007.EPS
34/45
ST75C520
VIII.2.2 - PowerEstimation
The Power estimationCell is needed to measure
the amplitude of the differenttones. It is run on a
samplebasis.
Figure3 : PowerEstimator
IN
ABS(.)P1
+
-1
Z
OUT
-1
Z
The correspondingtransferfunctionis :
Out = |Input|⋅z
±1
⋅
P1
±(1±P1) ⋅ z
1
±1
VIII.2.3 - Static Level
A single Threshold level is associated with each
Cell.Itcanbeusetocomparethe outputof aPower
Estimationwithan AbsoluteValue.
VIII.2.4 - Comparator
The Comparator computes, on a baud basis, the
differenceof the signalonits PositiveandNegative
Inputs. If the result is Higher that zero it sets the
correspondingbit into the TONEDET[0..1]word; if
not it clear this bit.
VIII.2.5- Wiring
The user must specifythe connection(wiring) betweentheinput/outputof theFilter, theinput/output
of the Power estimator, the output of the static
levelsand thetwo inputs of the Comparators.
Theoutput signalshave an absolute address:
Node Address
Signal
Name
75C52008.EPS
Ground00Signal alwaysequal to 0000
RxSig01Receive signal from the
RxSig202Receive signal multipliedby 2
RxSig403Receive signal multipliedby 4
Theuserwillspecifytheinputsofthefilters, Power
andComparator.At leastoneinputmustcomefrom
the RxSig (node 01, 02 or 03). It is mandatory to
connectall unusedcellinputstotheGroundsignal
(node 00).
35/45
ST75C520
Figure4 : ToneDetectorWiringAddress(first half)
GROUND
RX SIGNAL
2
2
@00
@01
@02
@03
BIQUADRATIC
FILTER
#0
BIQUADRATIC
FILTER
#1
BIQUADRATIC
FILTER
#2
BIQUADRATIC
FILTER
#3
BIQUADRATIC
FILTER
#4
BIQUADRATIC
FILTER
#5
@10
@11
@12
@13
@14
@15
POWER
#0
LEVEL #0
POWER
#1
LEVEL #1
POWER
#2
LEVEL #2
POWER
#3
LEVEL #3
POWER
#4
LEVEL #4
POWER
#5
LEVEL #5
@20
@30
@21
@31
@22
@32
@23
@33
@24
@34
@25
@35
COMP.
#0
COMP.
#1
COMP.
#2
COMP.
#3
COMP.
#4
COMP.
#5
D0
D1
D2
D3
D4
D5
D6
D7
TONEDET0
BIQUADRATIC
FILTER
#6
BIQUADRATIC
FILTER
#7
@16
@17
POWER
#6
LEVEL #6
POWER
#7
LEVEL #7
@26
@36
@27
@37
COMP.
#6
COMP.
#7
75C52009.EPS
36/45
Figure5 : ToneDetectorWiringAddress(second half)
ST75C520
BIQUADRATIC
FILTER
#8
BIQUADRATIC
FILTER
#9
BIQUADRATIC
FILTER
#A
BIQU ADRATIC
FILTER
#B
BIQUADRATIC
FILTER
#C
BIQUADRATIC
FILTER
#D
@18
@19
@1A
@1B
@1C
@1D
POW E R
#8
LEVEL#8
POWER
#9
LEVEL#9
POWER
#A
LEVEL#A
POWER
#B
LEVEL #B
POWER
#C
LEVEL#C
POWER
#D
LEVEL#D
@28
@38
@29
@39
@2A
@3A
@2B
@3B
@2C
@3C
@2D
@3D
COMP.
#8
COMP.
#9
COMP.
#A
COMP.
#B
COMP.
#C
COMP.
#D
D0
D1
D2
D3
D4
D5
D6
D7
TONEDET1
BIQUADRATIC
FILTER
#E
BIQUADRATIC
FILTER
#F
@1E
@1F
POWER
#E
LEVEL#E
POWER
#F
LEVEL#F
@2E
@3E
@2F
@3F
COMP.
#E
COMP.
#F
75C52010.EPS
37/45
ST75C520
VIII.3- Example
Hereunderis an exampleof programmingasingle
Tone detection (using Cell #3) and a complex differential tonedetection (using Cell #4 and #5).
Bit 3 of the TONEDET variable will be triggered
eachtimetheenergyofthatfilteredsignalishigher
than Static Level number 3.
Figure6 : WiringExample
Bit 4 of the TONEDETvariablewillbeoneachtime
a receive signal has an energy higher than the
Static Level number 4. Bit 5 will be on only when
the Filtered(Filter section4 and 5) receivedsignal
higher than the energy of the wide-band signal
number 4 ; this preventstriggeringon noise.
GROUND
RX SIGNAL
2
2
@00
@01
@02
@03
BIQUADRATIC
FILTER
#3
BIQUADRATIC
FILTER
#4
BIQUADRATIC
FILTER
#5
@13
@14
@15
POWER
#3
LEVEL #3
POWER
#4
LEVEL #4
POWER
#5
LEVEL #5
@23
@33
@24
@34
@25
@35
Program Cell #3 :
TDWW03001301
Connect Received signal to Filterand Filter to Energy.
TDWW03013323
Connect Level to ComparatorNeg Input and Energyto Pos Input.
Program Cell #4 and #5 :
TDWW04000101
Connect Received Signal to Filter andEnergy.
TDWW04013424
Connect Level to ComparatorNeg Input and Energyto Pos Input.
TDWW05001514
Connect Filter#4Output to Filter and Filterto Energy.
TDWW05012425
COMP.
#3
COMP.
#4
COMP.
#5
D3
D4
D5
TONEDET0
75C52011.EPS
Connect Wide-bandEnergyto NegInput and Energy to Pos Input.
The first partis orientedtowards a functionaldescription of the buffer operation,while thesecondsection
is more oriented towardsthemanagement of the buffers.
38/45
ST75C520
IX.2 - ReceiveOperations Overview
Figure7 describes the receivedata flow.
The ST75C520 can handle the following types of
format for thedata :
- parallelsynchronousmode: 8-bit words aresynchronously available in the receive buffers. The
buffer status holds the number of valid bytes
received,
- parallelHDLCframing mode : 8-bit data is available in the receive buffers. Framing information
(like flags, CRC, additional ”0”) is interpretedby
the ST75C520 and reported when necessary in
the receive buffer status (CRC error, aborted
frame, framing error, etc). This feature greatly
eases the implementationofprotocolsas wellas
FAXdata management.
Eachtime the receivedeframerhas filledupanew
buffer,itsetsthe correspondingflag withtheproper
statusthen generates the IT3 interrupt.The availabilityof the buffersistestedjustbeforestartingto
Figure 7 : RxBufferSchematics
DATA
RECEIVER
STATUS
FORMAT
fill them. Thisfurther meansthatthe hostmustnot
perform anybufferoperationon the data part while
the statusremains0.
IX.3 - Transmit OperationsOverview
Figure 8 describes the transmit data flow. The
followingmodes are available:
- parallelsynchronousmode: 8-bit words are synchronously read from the transmit buffers. The
transmit status buffer holds the number of valid
bytes to be transmitted(up to 8 per buffer),
- parallel HDLC framing mode : 8-bit data is received from the transmit buffers. Framing information (frame open, frame close, frame abort,
number of byte per buffer) is carriedbythetransmit buffer s tatus and processed by the
ST75C520. CRC, padding and other operations
are automaticallyhandled by the ST75C520.
Eachtime thetransmitframerhasemptieda buffer,
the IT2interruptis raised.
ERROR R X
(SYSERR)
IT3
RECEIVER
DATA
Figure 8 : TxBuffer Schematics
TRAN SMITTER
STATUS
TRAN SMITTER
DATA
SERIAL
MU X
RECEIVE
DEFRAMER
DATA
FO RMA T
TRANSMITTER
FRAMER
RX BUFFER
STA TU S
RX DATA
BUFFER
SERIAL
OUT
TX BUFFER
STATUS
TX DATA
BUFFER
SERIAL
IN
RXD
RXC LK
75C52012.EPS
ERROR TX
(SYSERR)
IT2
TXD
TXCLK
75C52013.EPS
39/45
ST75C520
IX.4 - BufferStatusand Format Description
The following section describes the meaning and
useof thebuffer status words.
IX.4.1 - TransmitBuffer
The transmit buffer status words are DTTBS0 and
DTTBS1 (see the Host Interface Summary sec-
tion in the main document) and are more likely to
beseenascontrolwords.Thesewordsmustbeset
by the host and are reset by the ST75C520. The
data buffer exchanges are synchronized through
these statuswords, (see Buffer Status and format
description)animpropersettingwill triggertheerror
Err_TxintheerrorstatusSYSERR.Avalueof0for
DTTBS0orDTTBS1meansthatthecorresponding
buffers are empty : this value is written by the
ST75C520. The unused bits of DTTBSx must be
set to0 by the host.
In FSK Mode, when working in the parallel data
mode, the transmitter expands each bit to the
nominalbaud time (1200Hz/300Hz/75Hz).
IX.4.2 - SynchronousMode
FieldPos.Val.Description
BUFF_LENG3..01..8Number of valid
bytes in the buffer
IX.4.3 - HDLC FramingMode
FieldPos.Val.Description
BUFF_LENG3..01..8Number of valid
bytes in the buffer
BUFF_SFRM401Data stream
Start of frame
BUFF_EFRM501Data stream
End of frame
BUFF_FRAB601Normal process
Abortframe (no
data in buffer)
IX.5 Receive Buffer
The receive buffer status words are DTRBS0 and
DTRBS1 (see the Host InterfaceSummary section inthe main document).Theseflags are set by
the ST75C520andmust bereset by thehost. The
data buffer exchanges are synchronized through
these status words, an improper resetting will trigger the error Err_Rx in the errorstatusSYSERR.A
value of 0for DTRBS0or DTRBS1meansthatthe
correspondingbuffersare empty : this value must
be writtenby the host.
In FSK or V.21Channel 2 Mode, when workingin
the parallel data mode, the receiver extract each
bitusingthenominalbaudrate
(1200Hz/300Hz/75Hz).
IX.5.1 - SynchronousMode
FieldPos.Val.Description
BUFF_LENG3..01..8Number ofvalid
bytes inthe buffer
IX.5.2 - HDLC Framing Mode
FieldPos.Val.Description
BUFF_LENG3..01..8Number ofvalid
BUFF_ERRS5..400
BUFF_SFRM601Data stream
BUFF_EFRM701Data stream
bytes inthe buffer
No error
01
CRC error
10
Non byte-aligned
frame
11
Aborted frame
Start of frame
End of frame
IX.6 -Data Buffer Management
Figure 9 shows the general flow chart for transmit
data buffer management.In thetransmitpath, the
data buffer exchanges should always begin with
the filling of buffer 0, then with the update of the
buffer 0 status word. The initiation of the data
exchanges is initiated then with the XMIT command.
40/45
Figure9 : Buffer OperationsSynchronization
Tx MAIN PROGRAMINTERRUPT ROUTINE
BEGININTERRUPT
N
106 ON
Y
FILL BUFFER#0
NEED TO
TRANSMIT
Y
FILL BUFFER
#IBUFF
ST75C520
N
UPDATESTATUS
BUFFER#0
IBUFF =1
XMITON
ENABLE IT2
NY
106 OFF or
ERROR TX
DISABLEIT2
XMIT OFF
CSEERRTX
(only if ERR)
Rx MAINPROGRAMINTERRUPT ROUTINE
N
109 ON
Y
WRITE $00IN
DATA STATUS
BUFFER #0AND #1
IBUFF= 0
ENABLE IT3
UPDATE STATUS
BUFFER #IBUFF
CLEAR IT2
TOGGLEIBUFF
RETURN
INTERRUPTBEGIN
READ BUFFER
#IBUFF
WRITE$00
IN DATASTATUS
BUFFER #IBUFF
CLEARIT3
TOGGLE IBUFF
RETURN
YN
109 ON
DISABLEIT3
CSEERRRX
(only if ERR)
75C52025.EPS /75C52014.EPS
41/45
ST75C520
X - DEFAULT CALL PROGRESSTONE DETECTORS
Figure 10 : Call ProgressTone Detector Band1
Figure11 : CallProgress Tone DetectorBand2
XI - DEFAULT ANSWER TONE DETECTORS
Figure12 : 2100HzAnswerTone Detector
75C52015.TIF
Figure13 : 2225HzAnswerTone Detector
75C52017.TIF
75C52016.TIF
XII - ELECTRICALSCHEMATICS
Oscillator
Whenusingathird harmoniccrystal oscillatorinseriesresonancemode(R
we recommend the following schematic :
EXTALXTA L
5655
29.4912MHz
33pF
5pF
(opt ional)
1µH
10nF
<40Ω,C0=6pF,Pe=0.1mW),
S
75C52018.TIF
75C52023.EPS
42/45
XII - ELECTRICALSCHEMATICS (continued)
Figure 14
22kΩ
220pF
13.2kΩ
TXA1
22kΩ
4
2
3
1
8
TL072
40k
320Ω
ST75C520
Ω
20kΩ
8
3
2
4
TL072
1.2kΩ
1
15kΩ
RXA2
2.2nF
680pF
TL072
TXA2
V
V
REFP
V
REFN
8
13.2kΩ
CM
22kΩ
22k
100nF
100nF
5
6
4
Ω
AGNDAGNDAGND
220pF
10µF
10µF
100nF
220Ω
7
40kΩ
AV
DD
1kΩ
1k
1kΩ
1kΩ
XIII - PCB DESIGN GUIDELINES
Performancesof the FAX modem depends on the
ST75C520 intrinsic performances and on the
proper PC board layout. All aspects of the proper
engineering practices, for PC board design, are
beyondthe scope of this paragraph.
Werecommend the following points:
- in a 4-layerPC board :
Separated digital ground and analog ground,
connected together at one point, as close as
possibleto theST75C520,
- in a 2-layerPC board :
Provide a ground grid in all space around and
82kΩ
20k
Ω
15k
Ω
2.2nF
TRANSFORMER
Ω
10µF
TL072
4
6
5
7
8
1.2kΩ
under componentson both sidesofthebandand
connect to avoid smallislands,
- both AGNDR and AGNDT must be connected
with very low impedance to a single point, (see
Chapter I.7, PowerSupply),
Information furnished isbelieved to be accurate and reliable. However,SGS-THOMSON Microelectronics assumes no responsibility
for the consequences ofuse of such information norfor any infringement ofpatentsor other rights ofthird parties which may result
from itsuse. No licence isgranted by implicationor otherwiseunder anypatent or patent rightsofSGS-THOMSON Microelectronics.
Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all
information previously supplied.SGS-THOMSON Microelectronics products arenot authorized for useascritical components in life
support devices or systems without express written approval of SGS-THOMSON Microelectronics.