ST75C530 and ST75C540 are two super-integrated devices including DSP, Modem and Audio
Analog Front Ends and memories for Telephony,
Modemand FAXapplications.
These devices can be used for classical applicationsover POTSlines or over Internet.
The super integration technology allows a significant cost reduction on bill of materials for equipment like High-End phones, INTERNET phones,
phone-Fax,INTERNET FAX, ...
The devices are used with a host processor
througha Dual Port RAM allowing the use of any
kind of microcontroller(RISC, CISC,General Purpose 8-bitµC, ...).
The embedded software includes :
- handsetwith listeninggroup capability,
- fullduplex handsfree,
- voicecoder/decoderat 4.8Kbpsforstaticanswering machine applications and ADPCM 16Kbps,
24Kbps and 32Kbps for high quality message
recording,
- Tone and DTMF generators,
- Tone and DTMF detectors,
- FAX up to 14.4Kbps,
- Data-Modemup to 14.4Kbps(ST75C540 only).
The DSPsofware is extensively user configurable
allowing specific functions to be supported like
Caller Identifier (CLID) and Second Call Waiting
Identifier(SCWID).
The DSP software includes a transparent mode
allowing the host controller to access directly the
modem Analog Front End and the Audio AFE
through the dual Port RAM.This is very useful for
hostprocessingmodem solutions (orsoft modem)
wherethe modulationandthedemodulation(V.34,
V.90)are done by the applicationmain processor.
In transparentmode, the embedded DSP can be
used simultaneouslywith the same samples.
Thetransparentmode for audioAFEis providedto
play audio filesor to recordvoice and/oraudio.
TQFP80 (14 x14 x 1.4mm)
(Full Thin Plastic Quad Flat Pack)
ORDER CODE : ST75C530FP-A
ST75C540FP-A
February 1999
1/84
Page 2
ST75C530- ST75C540
CONTENTSPage
IDETAILED FEATURES .................................................4
- Transparentmode allowingdirect transferof Modem AFE and audio AFE samples to and from
host processor for soft Modem applicationsand
sound files playing
DGND3
GIO01
GIO00
RING
RELAY1
RELAY0
RGND
INT/MOT
SINTR
SCS
DD1
DV
SD0
SD1
SD2
26 27 28 29 30 31 32 33 34 35 3621 22 23 24 25
SD3
SD4
SD5
SD6
SD7
DD2
DV
DGND2
SR/W
SDS
SA0
37 38 39 40
SA1
SA2
SA3
SA4
SA5
SA6
75C53001.EPS
5/84
Page 6
ST75C530- ST75C540
II - PIN DESCRIPTION(continued)
II.2 -Host Interface
Theexchangeswiththecontrolprocessor proceedthrougha 128 x8 DUALport RAMsharedbetween the
ST75C530/540and the Host. The signals associatedwith thisinterfaceare :
Pin NameTypeDescription
SD0..SD7I/OSystem Data Bus. 8-bit data bus used for asynchronous exchanges between the
SA0..SA6ISystem Address Bus. 7-bit address bus for dual port RAM, IO and interruptregisters.
SDS (SRD)ISystem DataStrobe. In Motorola mode SDS initiates the exchange, active low. InIntel mode
SR/W (SWR)ISystem Read/Write.In Motorola mode SR/W defines the type ofexchange read/write. In Intel
SCSISystem Chip Select. Active low.
SINTRODSystem InterruptRequest. Opendrain. Activelow.Thissignal isasserted by theST75C530/540
RESETIReset. Active low.
INT/MOTISelect Intelor MotorolaInterface
II.3 -AnalogInterface
Pin NameTypeDescription
TxA1OTransmit Analog Output 1
TxA2OTransmit Analog Output 2
RxAIReceive Analog Input
SPK1POSpeaker Output 1, (differential positive), must be connected through Amplifier to the
SPK1NOSpeaker Output 1, (differentialnegative)
SPK2POSpeaker Output 2, (differentialpositive), must be connected through Amplifier to the Handset
ST75C530/540 and the Host through the dual port RAM. High impedance when exchanges
are not active.
SRD initiates a read exchange,active low.
mode SWR initiates a write exchange, active low.
and negated by the host.
loudspeaker.
loudspeaker.
I/OAnalogCommon Voltage (nominal+2.5V).Thisinput must bedecoupled withrespect toAGND.
IAnalog Negative Reference (nominal 1.25V). This input must be decoupled with respect to
IAnalog Positive Reference (nominal 3.75V). This inputmust be decoupled with respect to VCM.
.
V
CM
II.4 -General Purpose IO and Relay
Pin NameTypeDescription
GIO[0,7]I/OGeneral Purpose I/OPins, can be independently selected as input or output.
GIO[10,17]I/OGeneral Purpose I/OPins, can be independently selected as input or output.
RELAY0,
RELAY1
RINGIRing detectsignal. Activelow.If the ST75C530/540 is inlow powermode,alow levelwill awake
RGNDPWRRelay Digital Ground. To connect to GND.
6/84
ODRelay Outputs, Open Drain, Active Low. Can sink -10mAto RGND.
the chip. Thisinput is a Schmidt’s trigger.
Page 7
ST75C530- ST75C540
II - PIN DESCRIPTION(continued)
II.5 -Miscellaneous
Pin NameTypeDescription
EYEXOConstellation X analog coordinate
EYEYOConstellation Y analog coordinate
XTALOInternal Oscillator Output. Left open if not used.
EXTALIInternal OscillatorInput, orExternal Clock Input.
XPLLIReserved for future use, must beconnected to digital ground.
CLKOUTOOutput Clock, EXTAL/2(not availablein low power mode).
TEST0ITest pin for normal operation, must be connected todigital ground.
Note : Thenominal frequency of the crystal oscillator is 44.2368MHz witha precision betterthan ± 100ppm.
TAdrlSPK1N/SPK1P,
TAroutOutput Impedance100
TAmacMaximum AC DifferentialOutput = 0dBr5V
TAdcDC Reference Voltage2.5V
TAovDC Offset Voltage-200200mV
TAdisDistortion at -6dBr1%
TAinIdle Noise-81dBr
).
PP
MIC2,
MIC3
SPK2N/SPK2P,
SPK3N/SPK3P
1kHz sinwave (equivalent to 2.5VPP).
RMS
Input Impedance100kΩ
)-5050mV
CM
Minimum Differential Load10kΩ
1kHzsinwave
RMS
PP
Ω
PP
11/84
Page 12
ST75C530- ST75C540
IV- ELECTRICALSPECIFICATIONS (continued)
IV.6 - AC ElectricalCharacteristics
WRITE CYCLEREAD CYCLE
SCS
SA[0..6]
SR/W
SDS
Motorola mode
WR
RD
Intel mode
SD[0..7]
SINTR
GIO(out),
RELAY
GIO(in)
132
67
8
9
5
142
11
10
1314
12
OUTIN
75C53004.EPS
NumberDescriptionMin.Typ.Max.Unit
1Address and Control Set-up Time5ns
2Address and Control Hold Time20ns
3Write Enable Low State45ns
4Read Enable Low State45ns
5Access Inhibition High State70ns
6Data Set-up Time10ns
7Data Hold Time5ns
8GIO Output, Relay, SINTR Clear Delay50ns
9GIO Output Hold Time0ns
10Read Data Access Time35ns
11Data Valid to Tristate Time15ns
12Data Hold Time5ns
13GIO Input Delay Time40ns
14GIO Input Hold Time0ns
12/84
Page 13
V - FUNCTIONALDESCRIPTION
V.1 - System Architecture
Thechipallowsthe designofa completeFAX,Data
Modem, Hands-Free Telephone and Answering
Machinesystem.A versatile dual port RAM allows
an easy interfacewith most micro-controllers.
The signal pulses are shapedin a dedicated filter
further combined with a compromise transmit
equalizersuited fortransmissionover stronglydistortedlines.3 differentcompromiseequalizersare
availableand can be selectedby software.
V.3.2 - Modem Receiver Description
Thereceiver section handlescomplex signals and
uses a fractionallyspacedcomplex equalizer. It is
able to copewith distant modem timing driftsup to
-4
asspecified in the ITU-Trecommendations.It
10
also compensatesfor frequency drift up to 10Hz
and for phase jitter at multiple and simultaneous
frequencies.
V.3.3 - Tone GeneratorDescription
Fourtonescanbesimultaneouslygeneratedby the
ST75C530/540. These tones are determined by
theirfrequenciesandbytheoutputamplitudelevel.
A set of specific commandsare also available for
DTMFgeneration.Anyof the4 tonegeneratorscan
be output independentlyeither on the Audio DAC
or the line DAC.
V.3.4 - Tone DetectorDescription
During TONE (respectively TONECID) Mode sixteen (respectively eight) tones can be simultaneouslydetected by the ST75C530/540.Each of the
tonesto be detectedis defined by the coefficients
ofa 4th orderprogrammableIIR. Detectionthresholdsare programmablefrom -51dBmupto -6dBm.
These primary detectors can detect tone up to
3.3kHz(sampling rate 7.2kHz in all modes). They
also have a programmable internalwiring feature
(seeChapter IX).
Inallmodes,exceptHandset(HANDSET)andFull
Duplex V.32bis/V.32/V.22bis/V.22 (Modem)
modes, 4 additional tone detectors (each of them
being a 4th order programmable IIR) are concurrently running. In Handset mode only 2 additional
tone detectorsare available. Detection thresholds
areprogrammablefrom-51dBmup to-6dBm.This
secondary programmable detector can detect
tones up to 1.8kHz by default set-up with a sam-
ST75C530- ST75C540
pling rate at 4.8kHz. But this 4 additional tone
detectorscan also detect tonesup to 3.3kHz with
a samplingrate at 9.6kHz. In order to avoid wrong
detectgion,relativedetectgionis also provided.
V.3.5- V.21Channel2 FlagDetectorDescription
InalltheReceiveFAXModes,includingV.21Channel 2 Mode, the ST75C530/540 processes a V.21
Flag“7E” detector,eitherin the idle state,the train
sequenceor the data mode. The detection timeis
3 consecutive flags to detect and 1 byte to loose
the detection.
V.3.6 - HDLC Description
In all FAXModes (MODEM), including V.21 Channel 2 Mode, and also Full Duplex
V.32bis/V.32/V.22bis/V.22 (Modem) modes, a
HDLC framing and deframing is supported by the
ST75C530/540. The number of transmitted flags
canbe programmed.
V.3.7 - UART Description
In Full Duplex V.32bis/V.32/V.22bis/V.22 Modem
ModesandTONECIDV.23receivemode,aparallel
UART is performed by the ST75C530/540. This
UARTmanagethe Break signaleitherat thetransmit and the receive bit stream. The Data format
supportedare7 and 8 bit of Data;even, odd orno
Parity,1 or 2 stop bits.
V.3.8 - DTMF Detector Description
ADTMF Detectoris includedin theST75C530/540,
it allows detection of valid DTMF Digits. A valid
DTMF Digit is defined as a dual tone with a total
powerhigher than -43dBm,a durationhigher than
40msanda differentialamplitudewithin±8dB.This
DTMF Detector is enabled in all modes except in
Fax Modem,Data Modem and Handset modes. It
is also enabledin V.21 Channel 2 ReceiveMode.
The DTMF thresholds and duration can be
changed from they default value by overwriting
DSP’s RAM locations. In the default setup, this
detectoris compliantwith the NET4standard.The
frequencydeviationcan bechangedby overwriting
the default DTMF’s filterscoefficients.
V.3.9 - Ring Detector
This detector detects RING signal from 15Hz to
68Hz, it can be programmed to expand the minimum and maximum detection frequency up to
12Hz(formin)and 144Hz (formax). The detection
time is equal to one period of the ring signal, and
theloosetimeto the minimum between oneperiod
of the ring signal and the inverse of the minimum
frequency.
Theassociated STA_RINGstatus is asFigure 1.
13/84
Page 14
ST75C530- ST75C540
V - FUNCTIONALDESCRIPTION (continued)
Figure1
RING
T1
STA_RING
1/Fmax prog. < T1< 1/Fmin prog.
T2 < 1/Fmaxprog.
T3
1/Fmin prog.
≈
T2T3
75C53005.EPS
V.3.10 - VOCODER Description
The Vocoder mode allows the implementation of
an answering machine function. In the CODER
mode the received samples from one of the two
analog inputs, Line or Audio, are compressedby
the ST75C530/540and written into the dual port
RAM Vocoder Buffer (VOCxxx). At the same time
the ST75C530/540 is looking for an incoming
DTMFtone and 4 different programmabletones.
In the DECODER mode thecompressedsamples
are read from the dual port RAM, decompressed
and transmitted to one of the two analog output,
Line or Micx. The ST75C530/540 synthesises an
estimation of its echo and subtracts it from the
received signal. At the same time the
ST75C530/540 is looking for an incoming DTMF
tone and 4 differenttones.
Twoalgorithmsof voicecoding are implemented:
- Low bitrate speech coder (4800bps or 5300bps
with forwarderrorcorrection).
- ADPCM (STproprietaryalgorithm)at 32, 24 and
16Kbps.
If the low bit rate coder algorithm is selected the
ST75C530/540has the capability to slow down or
speed up the DECODER flow up to
±50%. This
Figure2
functionallows a quick message listening if speed
up is used,or at the opposite if slowdown is used,
an enhancementof the voice intelligibility.
V.3.11- VoiceActivity Detector (VAD)
In CODER Mode, for both of the Voice Coding
algorithms, a Voice Activity Detector is implemented while coding by the ST75C530/540. The
STA_109 bit and STA_109Fbit reflect thestate of
the VAD.After the CONF command the VADis on
(assume voice). The default time-out to detect silenceis2 secondsandtheset-uptimeto detectthe
voiceis 15ms. This VADinformationis alsocopied
into the Receive Buffer Status Word MSB (VOCSTA bit7). This detector is fully programmable in
levelsensitivity(down to -60dBm),hysteresis, and
variouscriteria.
An optional silence suppressor is implemented in
the Coder section to suppress long silence in the
incoming message. When enabled (CONF_SUPSILequal1) if a long silenceis detected(STA_109
equal0) theST75C530/540stopsgeneratingBuffer Interrupts.After that if a voiceis againdetected
theST75C530/540will resume the BufferInterrupt
mechanism.
14/84
Rx Signal
STA_109
(or VOCSTA bit 7)
Interrupt (IT1)
2s
75C53006.EPS
Page 15
V - FUNCTIONALDESCRIPTION (continued)
V.3.12 - TelephonyFunctions
ST75C530/540 telephony software provides both
handset and handsfree modes. ST75C530/540is
connected to the phone line through a D.A.A.,
handset and loudspeaker are connected to
ST75C530/540through amplifiers.
Though the D.A.A. hasto comply withmodem/fax
regulationsin most of the applications,the microphone and the earphone amplifier gains will be
adjustedin compliance with the telephony regula-
Figure3 : Handset/HandsfreeMode Operation
ST75C530- ST75C540
tions.Thesoftwareimplementedin ST75C530/540
allows functionssuch as softclipping,AGC in both
modes,andfullduplexmodein handsfree(seeFigure 3).
V.3.12.1 - HandsetMode
In handsetmode, all the attenuations(_SPKGAIN,
_TXGAIN, _MIKGAIN) are f rom 0dB to -inf
(32768steps).AGC andsoftclipping functions can
beenabledanddisabledbysoftware(seeFigure4).
_MIKGAIN=7FFF,_TXGAIN=7FFF, AGC disabled
see Figure 3, V
see Figure 3, V
= -21dBV
V
MIC2
= -9dBV
V
MIC2
= -21dBV60dB
= -9dBV
MIC2
= -9dBV
MIC2
Rx Characteristics
SymbolParameterTest ConditionsMin.Typ. Max.Unit
GrxReceive Gain_SPKGAIN=7FFF,AGC disabled, V
NrxReceive noise-79dBmp
MrxMuteV
DtxReceive distortion
(SPK2 output)
= dBV60dB
RXA
_SPKGAIN=7FFF,AGC Disabled,V
= -16 dBV6dB
RXA
= -16dBV2%
RXA
18
8
2.5Vpp
2%
dB
dB
AGC
The line current information is coming from the
D.A.A.onDP_RINGpin (frequencycoded information using by example a TS555 general purpose
timer).The AGChas a 6dBdepth. Theattenuation
table can be loaded to comply with each country
regulation.Thedefault table has the followingval-
Figure 5 : SoftclippingStatic Gain
Tx Softclipping and Distortion
(mV
10
)D(%)
RMS
4
VTxA1-TxA2(V
RMS
)
Distortion
ues. The value of the AGC gainis applied to both
Txand Rx path(see Table1).
3
The address of the table is given in the register
10
@_TABLE.
The table length is 53. The AGC is enabled using
CONF or MODC command (see paragraph ”VII COMMANDSETDESCRIPTION”.
Oncethe AGCisrunning,it ispossibletofreezethe
10
2
AGC gain with the register AGC_FRZ.
Softclipping
Thesoftclippingintroducesa 12dBgainand has a
18dBdepth.
The sof tclipp ing value is half digital range
(4000 Hex) (see Figure 5).
10
V
MICX
10
(mV
2
)
RMS
10
Table 1 : AGCGain versus PeriodInformation
Period (ms)<91010.811.614.513.314.115.516.617.518.319.120>20
Table Index<13131415161718192021222324>24
Gain (dB)00.71.52.233.444.54.85.15.45.65.86
12
10
8
6
4
2
0
3
75C53009.EPS
16/84
Page 17
ST75C530- ST75C540
V - FUNCTIONALDESCRIPTION (continued)
V.3.12.2- HandsfreeMode
The handsfree uses a MIC1 and a SPK1 as microphone and loudspeaker interface (see Figure 6).
Figure6 : HandsfreeMode: Full Duplex
GrxReceive Gain_SPKGAIN=7FFF, AGC disabled, V
MrxMute60dB
DtxReceive distortion
_SPKGAIN=7FFF, AGC disabled, V
(SPK1 output)
= -33dBV24dB
RXA
= -33dBV2%
RXA
75C53010.EPS
AGC
TheAGC hasthe samebehaviorasin Handsetmode.Furthermore,the maximumgainadded by AGCcan
be fixed by using the RX_GAINMAXand TX_GAINMAXregisters.
Softclipping
SeeFigure 7.
SystemStability
ParameterTest ConditionsMin. Typ. Max. Unit
Loop attenuation in Rx RxA to TxA1-TxA2Speaker gain is12dB, Mike gain is14dB20dB
Loop attenuation in Tx MICx to SPK1P-SPK1N Analogique sidetonenot used
20dB
(see DAA schematics)
It is possible to add some gain switching in the Tx and Rx path (to reduce the gain of the loop) by using
the GAIN_RCV and GAIN_XMTregisters.
17/84
Page 18
ST75C530- ST75C540
V - FUNCTIONALDESCRIPTION (continued)
Figure7 : SPK1Distortion versusRxA
Rx Softclippingand Distortion
(mV
10
10
10
Figure8 : Speakerand LineTxPower Spectrums
Fxd Y O
Note : Acoustic echo from speaker to microphone input with no
)D (%)
RMS
3
2
VSPK1 (V
RMS
)
Distortion
2
10
(mV
V
MIC2
POWER SPEC1
POWER SPEC2
0.0
0.0
dBm
RMS
V2
dB
RMS
Vv2
-80.0
-80.0
local speech. Receiving speechon line input.
64Avg
64Avg
Speaker Output
Line Tx
)
RMS
0%Ovlp
0%Ovlp
Hz5k
Ftop
Ftop
10
12
10
8
6
4
2
0
3
V.3.13 - Low Power Mode
Sleepstatecanbeattainedby aSLEEPcommand.
Whenin sleepmode,thedualportRAMis unavailable and the clocksare disabled.
When entering the low power mode, the
ST75C530/540stopsits oscillator,all theperipheralsof theDSPcore arestoppedin orderto reduce
the power consumption. The dual port RAM is
madeinaccessible.
The ST75C530/540can be awakenedby a hardware reset,a RINGsignal or a dummywrite atany
locationin the dual portRAM.
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 commandcoming from the host.
V.3.14 - Reset
After a hardware reset, or an INIT command, the
ST75C530/540 clears all its internal memories,
clearsthe wholedual port RAM andstarts to initialize the delta sigma analog converters.As soon as
75C53011.EPS
these init ializations are complete d, t he
ST75C530/540 generates an interrupt IT6 (commandacknoledge)andis programmedtosendand
receivetones,thesampleclockare programmedto
9600Hz.Thetotal durationofthe resetsequenceis
about 5ms. After that time the ST75C530/540 is
readytoexecutecommandssentbythehostmicrocontroller.Thedurationoftheresetsignalshouldbe
greaterthan700ns.
V.4- Modem Interface
V.4.1 - AnalogInterface
Referto BlockDiagram on page 7.
V.4.2 - General I/O and Relay Interface
16 pins are dedicatedto the generalI/O port. Two
75C53012.EPS
arededicatedto Relaydriver.Theequivalentschematic is as follows: seeFigure 9.
Figure9
IODIR0[x]
IODATA0[x]
IODATA0[x]
18/84
(write)
(read)
GIO0[x]
QD
IORELAY[y]
(write)
QD
RELAY[y]
N
IORELAY[y]
(read)
RGND
75C53013.EPS
Page 19
V - FUNCTIONALDESCRIPTION (continued)
V.4.3 - Crystal
The crystal frequency must be 44.2368MHz for
ST75C530and 49.152MHzfor ST75C540withan
accuracybetterthat±100 ppm. When using a third
harmoniccrystal the schematicmust beas follow:
seeFigure 10.
TheFigure 11is a blockdiagramdesignedtoallow
transmission of fax signals up to +0dBmand sine
waveup to +6dBmon the telephoneline. It allows
receptionoffaxsignalsupto0dBmandsinewaves
upto +6dBm.Figure12isablockdiagramdesigned
ST75C530- ST75C540
to allow transmission of Modem signal up to 10dBmand receptionup to -10dBm.TheOPAmps
are +12/0V powered. With this application schematictheoutofbandtransmitspectrum(from4kHz
to 50kHz) is below-72dBm.
Figures13and14areexamplesofapplicationschematicswhichrespectsgainvalue(respectivelyforfax
and voice application and for Modem application)
andtheminimumdifferentialloadonTxA1andTxA2.
V.4.5 - Host Interface
Thehost interface is seen by the microas a 128x8
RAM, withadditional registers accessiblethrough
an8-bit address space. Aselection Pin (INT/MOT)
allowsto configurethe hostbus foreither INTELor
MOTOROLAtype control signals.
Figure 11
Figure 12
75C53014.EPS
TxA1
TxA2
RxA
V
CM
TxA1
TxA2
RxA
V
CM
2.2nF
2.2nF
+8dB
-10dB
0dB
0dB
600
Ω
-1/2
600Ω1:1
-1/2
1:1
Line
75C53015.EPS
Line
75C53016.EPS
19/84
Page 20
ST75C530- ST75C540
V - FUNCTIONALDESCRIPTION (continued)
Figure13 : FaxMode
56.2kΩ 1%
270pF
18.2kΩ 1%
TxA1
TxA2
470nF
470nF
18.2kΩ1%
470pF
+12V
GND
47.5kΩ
560Ω
470nF
30kΩ 1%
1:1 *
22nF
RxA
VCM
Figure14 : DataMode
470nF
TxA1
TxA2
470nF
RxA
VCM
1.2kΩ
2.2nF
18.2kΩ 1%
18.2kΩ 1%
470pF
1.2kΩ
2.2nF
+6V+6V
+6V+6V
+12V
GND
10kΩ 1%
24kΩ 1%
270pF
GND
47.5kΩ
+12V
GND
+12V
6.21kΩ 1%
+6V
24.3kΩ 1% 470nF
560Ω
470nF
30kΩ 1%
6.21kΩ 1%
+6V
24.3kΩ 1%
470nF
+6V +6V
* Insertion loss = 2.5dB between 0 and 3.4kHz
+6V +6V
+6V470nF
1:1 *
22nF
+6V470nF
75C53017.EPS
20/84
33kΩ 1%
* Insertion loss = 2.5dB between 0and 3.4kHz
75C53018.EPS
Page 21
VI- USER INTERFACE
VI.1- Dual Port Ram Description
The dual port RAM is the standard interface between the hostcontroller and the ST75C530/540,
for either commandsor data. This memory is addressedthrougha7-bitaddressbus. The locations
from$00 to $3Fare RAM location,while locations
from $40 to $60 are control registers dedicatedto
the interrupt handling and the generalIO port and
Relayoutput.
The command area is located from $00 to $04.
Address $00 holds the command byte COMSYS,
and the next four locations hold the parameters
COMPAR[0..3].Thecommandparametersmustbe
enteredbeforethecommandwordis issued.Once
thecommandhasbeenentered,thecommandbyte
isresetandanacknowledgereportisissued.Anew
command shouldnot be issuedbeforetheacknowledgecounterCOMACK is incremented.
VI.1.1.2- Report Area
The report area is located from address $05 to
address$07. Location$05holdstheacknowledge
counter COMACK. Each time a command is acknowledged, the report bytes COMREP[0..1] (if
any) are written by the ST75C530/540 into locations$06 and$07, and the content ofCOMACKis
incremented. This counter allows the
ST75C530/540 to accurately monitor the commandprocessing.
VI.1.1.3- Status Area
Thestatusareaislocatedfromaddress$08to$0B.
TheerrorstatuswordSYSERRislocatedat address
$08.Thiserrorstatuswordisupdatedeachtime an
errorconditionoccurs. An optionalinterruptionIT0
mayadditionallybetriggeredinthe caseofanerror
condition. Locations$09 and $0A hold the general
statusbytesSTATUS[0..1].Themeaning ofthebits
dependsonthemodeof operation,andisdescribed
inChapter VIII.The thirdbyteat address$0B holds
theQualityMonitorbyte STAQUA.
ST75C530- ST75C540
VI.1.1.4- OptionalStatus Area
The user can program (through the DOSR command) the four locations STAOPT[0..3]of the Optional Status Area ($0C to $0F) for the real time
monitoring of fourarbitrary memory locations.
VI.1.1.5- Data Buffer Area
The data area is made of four 8-byte buffers
(see ParagraphVI.1.3“Host InterfaceSummary”).
Two are dedicated to transmission and the two
others to reception. Each of the four buffers is
attachedto astatusbyte.the meaningof thestatus
byte depends on the selected format of transmission. Within eachbuffer,D0 representsthe firstbit
in time.
VI.1.1.6- VOCODERBuffer Area
(VOCODERMode)
Thisareais made ofa 18+2byte buffer.Thisbuffer
contains the VOCODER frame. The first 18 bytes
VOCDATAcontain the coded frame and the other
2 bytes VOCCORR the Error corrections bit (only
valid in low bit ratemode).
In theReceiveMode (CODER)the ST75C530/540
codesthe received samplesand writes the correspondingbytes in thebuffer.If thelow bitratemode
is selected,the ST75C530/540computesthe Error
corrections2 bytesand writesthem in the buffer.
In the Transmit Mode (DECODER) the
ST75C530/540reads the 18codedbytes decodes
themand sendsthe signaltothe analogoutput.In
the low bit rate mode if the Error Correction is
enabled, prior the decoding, the ST75C530/540
reads the 2 Error Correction Bytes and, if any,
correctsthe first 18 bytes.
A mechanism of flags to share the buffer access
betweentheST75C530/540and thehostcontroller
is controlledby the VOCSTAbyte :
- In CODER mode, when the ST75C530/540 has
finis-hed writing the VOCDATA and VOCCORR
bytes, it writes$14 in VOCSTAand generate an
InterruptIT1. The host must read the Data buffer
then clear the VOCSTAbyte.
- In DECODER mode, the host must feed the
VOCDATAand, optionaly,the VOCCORRbytes,
then write $14 (if lowbit rate) or$12 (if ADPCM)
in VOCSTA. The ST75C530/540 will read the
VOCDATA and VOCCORR bytes, clear the
VOCSTA and generate an Interrupt IT1. A silence frame can be generated, in either low bit
rate or ADPCM mode, by writing 00 in all the
VOCDATAbuffer, including the Error Correction
Bytes VOCCORR.
21/84
Page 22
ST75C530- ST75C540
VI - USER INTERFACE (continued)
VI.1.1.7- InterruptControlArea
Theinterrupt area, that start afterthe address$40
controls the behaviour of the Interrupts mechanism. Register ITSRCR definesthe source of the
interrupt,the registerITMASK allowsindependent
enabling or disabling of any of the interrupt’s
source, registers ITREST0 to ITREST6 reset the
correspondinginterrupt source.
Theseregistersarenotaffectedby aINITcommand,
theyareonlyresetedbya Hardware RESETsignal.
VI.1.1.8- GeneralIO and RelayOutput Area
A set of 5 registers is directly accessible by the
controller to program the General IO pins and
Relay Outputs (see Paragraph VI.1.3 “Host Interface Summary”). Two registers IODIR0 and IODIR1 define the type of the IO pin, either Input or
Output (0 = input, 1 = output), and two registers
IODATA0and IODATA1 define the IO pin signals.
The fifth registerdefines the Relay output signals.
Theseregistersarenotaffectedby aINITcommand,
theyareonlyresetedbya Hardware RESETsignal.
The general IO are setup as input after the power
up or an hardware RESET. The relay output are
openafter powerup or an hardware RESET.
VI.1.2- Interruptions
The ST75C530/540 can generate 7 interruptsfor
the controller. The interrupt handling is made with
a setof registerslocatedfrom $40 to $5F.
The interruptions generated by the ST75C530/540
come from several sources. Once the
ST75C530/540raisesan interrupt,a signal(SINTR)
is sent to the controller. The controller has thento
processtheinterruptandclearit.Theinterruptsource
can be examined in the interrupt source register
ITSRCR located a $50. According to the ITSRCR
bits, the interrupt source can be determined. Then
writing a zero at one of the memorylocation$40 to
$46 (Reset InterruptRegister ITRES[0..6]) will reset the correspondinginterrupt (and thus acknowledgeit).The sourceoftheinterruptcanbe masked
globally or individually using the Interrupt Mast
register ITMASK located at $4F.
Theinterrupt sources are :
- IT0 : Error
This signifiesthat an error has occurred and the
error code is available in the error status byte
SYSERR.Thisbytecanbe selectivelyclearedby
the CSE command.
- IT1 : VOCODERBuffer
Each time the ST75C530/540 have coded a
frame (CODER Mode) or decodeda frame (DECODERMode) this interrupt is generated.
- IT2 : TxBuffer
Each timethe ST75530/C540freesa databuffer,
this interruptis generated.
- IT3 : Rx Buffer
Each time the ST75C530/540 has filled a data
buffer,this interrupt is generated.
- IT4 : StatusByte
This signifies that the status byte has changed
and must be checkedby thecontroller.
- IT5 : Low Power Mode
TheST75C530/540hasbeenawakenedfromthe
low power mode by a low level on theRING pin
or a dummywrite issued bythe host.
- IT6 : CommandAcknowledge
This signifies that the ST75C530/540 has read
the last command entered by the host, incremented the command counter COMACK, and is
readyfora new command.
Note: Interrupt registers are clearedaftera Hardware RESET. These registers are not affectedby
a INIT Command.
22/84
Page 23
VI- USER INTERFACE(continued)
Figure15 : FunctionalSchematic
ST75C530- ST75C540
ITREST 0
(write only)
ITREST 1
(write only)
ITREST 2
(write only)
ITREST 3
(write only)
ITREST 4
(write only)
ITREST 5
(write only)
ITREST 6
(write only)
R
Q
S
IT0 : Error
R
Q
S
IT1 : VOCODER
R
Q
S
Buffer
IT2 : Tx Buffer
R
Q
S
IT3 : Rx Buffer
R
Q
S
IT4 : Status
R
Q
S
IT5 : Low Power
R
Q
S
IT6 : Command
SINTR
(open drain)
ITSRCR
(read only)
ITMASK
(read write)
0123456
01234567
75C53019.EPS
23/84
Page 24
ST75C530- ST75C540
VI - USER INTERFACE (continued)
VI.1.3- Host Interface Summary
$60I/O Direction 01IODIR0
$61I/O Direction 11IODIR1
$62I/O Data 01IODATA0
$63I/O Data 11IODATA1
$64I/O Relay Register1IORELAY
Note : Registers which address is higheror equal to $40 are not affectedby a INIT Command or a Low Power wake-up. They are reseted
only by a HardwareRESET.
24/84
Page 25
VI - USER INTERFACE (continued)
VI.2 - CommandSet
The Command Set has the following attractive
features:
- user friendlywith easyto remembermnemonics,
- possibility of straightforwardexpansionwith new
commands to suit specific customer requirements,
- easy upgrade of existingsoftwareusingprevious
modembased SGS-THOMSONproducts.
Thecommandsethasbeendesignedtoprovidethe
necessaryfunctionalcontrolon theST75C530/540.
Eachcommand is classifiedaccordingto its syntax
and the presence/absence of parameters. In the
case of a parametriccommand, parameters must
first be written into the dual port RAM before the
command isissued.Acknowledgeand errorreport
isissuedfor each commandentered.
Setall parameterstotheirdefaultvalues
and wait for commands of the control
processor.Non parametric command.
IDTIdentify.Returnthe productidentification
code. Non parametriccommand.
SLEEPTurn to low power mode, the
ST75C530/540 enters the low power
mode and stops its crystal oscillator to
reducepowerconsumption.Inthismode
all the clocks are stopped and the dual
RAM is unreachable.
HSHKHandshake. Begins the handshake
sequence.Themodemenginegenerates
all the sequences defined in the ITU-T
recommendations. A status report
indicatesto thecontrolprocessorthestate
of the handshake. This command only
applies to modes where a handshake
sequence is defined.A CONFcommand
musthavebeen issuedpriorto theuseof
HSHK. Nonparametriccommand.
STOPFAX Sto p. Stop FAX Half-duplex
transmitter.Non parametric command.
RTRARetrain. Begin a retrain sequence in
V.32bis/V.32 or V.22bis modes as
describedintheITU-T
recommendations(ST75C540only).
ST75C530- ST75C540
SYNCFAXSynchronize.Start/StopofFAXHalf-
duplexreceiver. Parametriccommand.
CSEClea rStatu sEr r o r.Selectivelyclear stheError
VI.2.1.2- Data CommunicationCommands
XMITTransmit Data. Start/stop the
transmission of data. After a XMIT
command,theST75C530/540sendsthe
data contained in its dual port RAM.
FORMSelects the Transmission Format. This
command configures the data interface
for both re ceiver and transmitte r
according to the selected data format.
Parametric command (HDLC, UART or
synchronous).
VI.2.1.3- MemoryHandlingCommands
MWI
MWLO
MW
MRI
MRLO
MR
CRComplex Read. This command allows
MemoryWrite Indirect
MemoryWrite Low Word
MemoryWrite.This commandis usedto
write an arbitrary 16-bit value into the
writable memory lo cation currently
specified by a parameter. Parametric
command.
MemoryRead Indirect
MemoryRead Low Word
MemoryRead.Thiscommandallowsthe
controller to read any of the ERAM or
CROM (ST75C530/540 memory
spaces)locationwithout interrupting the
processor. Parametric command.
the controller to read at the same time
the realand imaginary partof acomplex
valuestoredinadoubleERAMor
CROM location. This feature is very
interesting for eye pattern software
control and for equalization monitoring.
This commandinsures that the real and
imaginary parts are sampled in the
memory at the same time (integrity).
Parametric command.
25/84
Page 26
ST75C530- ST75C540
VI - USER INTERFACE (continued)
VI.2.1.4- Configuration Control Commands
ASELSelect the Analo g path option, like
modemengine fordatatransmissionand
handshakeprocedures (if any) in any of
the supported modes. The transmission
parametersare set totheirdefaultvalues
and can be modified with the MODC
command.Parametric command.
MODC Modify Configuration. This command
allows mod ification of some of th e
parameters which have been set up by
theCONF command.It canalso be used
to alter the mode of operations (short
train).Parametriccommand.
DOSRDefine Optional Status Report. This
command allows the modification of the
optionalstatusreportlocatedinthestatus
areaof the dualport RAM. One can thus
select a particular parameter to be
monitoredduring all modes of operation.
Parametriccommand.
DSITDefine Status Interrupt. This command
allows the programming of the status
word bit that will generate an Interrupt to
thecontroller.Parametric command.
VI.2.1.5- Tone Generation Commands
TONESelectTone .Progr amsthetonegenerator ( s)
for the desired default tone(s ) . Additi onal
mnemonics provide quick progra m m i ng of
DTMF tonesor other currently used tones.
Parametriccommand.
DEFTDefine Tone. Programs the tone
generator(s)for arbitrary tone synthesis.
Parametriccommand.
TGENTone Generator Control. Enabl es or
disables the tone generator(s).
Parametriccommand.
VI.2.1.6- Tone Detection Commands
TDRCRead Tone Detector Coefficient. Read
one Tone Detect or Coefficient.
Parametriccommand.
TDWC Write Tone Detector Coefficient. Write
one Tone Detect or Coefficient.
Parametriccommand.
TDRW Read Tone Detector Wiring. Read one
Tone Detector Wiring connection.
Parametriccommand.
TDWW Write Tone Detector Wiring. Write one
Tone Detector Wiring connection.
Parametriccommand.
TDZClear Tone Detector Cell. Clear internal
variable s of a Ton e Det ect or Ce ll.
Parametriccommand.
VI.2.1.7- MiscellaneousCommands
CALLCall a Subroutine. Call a subroutinewith
one Parameter.Parametriccommand.
JSRCall a Low Level Subroutine. Call an
internal subroutine with one parameter.
Parametriccommand.
VI.3- CommandSet Short Form
CCI Command
MnemonicValueDescription
XMIT0x01Transmit Data
SETGN0x02Set Transmit Gain
SLEEP0x03Power DowntheST75C530/540
HSHK0x04FAX Start Transmitter
RTRA*0x05Retrain(V.32bis/V.32andV.22bis)
INIT0x06Initialize (Software Reset)
CSE0x08Clear Error StatusWord
FORM0x09Define Data Format
DOSR0x0ADefine Optional StatusReport
ASEL0x0BSelect the Analog Path Options
TONE0x0CGenerate Predefined Tones
TGEN0x0DEnable Tone Generator
VI - USER INTERFACE (continued)
VI.4 - Status - Reports
VI.4.1- Status
TheST75C530/540has a dedicatedstatusreporting area located in its dual port RAM. This allowa
continuousmonitoring of the status variableswithout interrupting the ST75C530/540.
The first statusbyte givesthe error status. Issuing
of an error status can also be flagged by a maskable interruptfor the controller.The significationof
the error codesare given in Chapter VIII.
Thesecond and thirdstatusbytesgivethegeneral
status of the modem. These status include for
example the ITU-T circuit status and other items
described in Chapter VIII “STATUS DESCRIPTION”. These two status can generate, when a
changeoccurs,an interruptto the controller; each
bit of the two byte word can be masked independently.
The forth byte gives in real time a measure of the
receptionquality.Thisinformationmaybeusedbythe
controllertomonitorthequalityofthereceivedbits.
Four other locations are dedicated for custom
status reporting. The controller can program the
ST75C530/540for a realtime monitoringof any of
its internalRAM location. High byte or low byte of
anyword can thusbe monitored.
VI.4.2- Reports
TheST75C530/540featuresan acknowledgeand
report facility. The acknowledge of a command is
monitored by a counter COMACK located in the
dualportRAM. Eachtime a commandisreadfrom
the commandarea, the ST75C530/540will incrementthiscounter.For instance, whena MR(Memory Read) command is issued, the data is first
writtenin the report area,and thecounteris incrementedafterwards.Thiswayofprocessinginsures
dataintegrity andgives additionalsynchronization
betweenthe controllerand the data pump.
VI.5 - Data Exchanges
The ST75C530/540 accepts many kinds of data
exchange:thedefaultmode usesthesynchronous
parallel exchange. Other modes include HDLC
framingsupport andUART.Detaileddescription of
the Data Buffer Exchanges modes is available in
the paragraph X.
VI.5.1- SynchronousParallel Mode
The data exchanges are made through the dual
portRAM andarebyte synchronousoriented.The
double buffer facilitiesof the ST75C530/540allow
an efficient bufferingof thedata.
ST75C530- ST75C540
VI.5.1.1- Transmit
The controller must first fill at least the first buffer
ofdata (Tx Buffer 0) withthe bits to be transmitted.
In order to perform this operation, the controller
must first check the Tx Buffer 0 status word
DTTBS0. If this buffer is empty, the controllerfills
the data buffer locations(up to 64 bits), and then
writesin DTTBS0the numberof bytescontainedin
the buffer.The controller can then either proceed
with the second buffer or initiate the transmission
witha XMITcommand.
TheST75C530/540copiesthe contentsof thedata
buffer and then clears the buffer status word in
orderto makeit againavailable,then generatesan
IT2interrupt. Thenumber of bytesspecifiedby the
status word is then queued for transmission. The
processgoes on withthetwobuffersuntil an XMIT
commandstops the transmission. After the finishingXMIT command has beenissued, thelastbuffers are emptiedby the ST75C530/540.
Errorsoccurwhenboth buffersare emptywhilethe
transmitbit queueis also empty. Error is signalled
withan IT0interruption to the controller.
VI.5.1.2- Receive
Thecontroller shouldtake careof releasingthe Rx
buffers before the Data Carrier Detect goes true.
Thisismadeby writingzeroin the Rx BufferStatus
0 and 1. The ST75C530/540 then fills the first
buffer,andonce filled sets the statusword withthe
number of bytes received and then generatesan
IT3 interrupt. It then takes control of the second
buffer and operatesthe same way.The controller
must check the status of the buffers and empty
them. Once the data read, the controller must
releasethe used bufferand wait forthe nextbuffer
to be filled.
Error occurs when both buffers are declared full,
and incomingbits continue to arrive from the line.
Erroris signaledby an IT0 interrupt.
VI.5.2 - HDLCParallel Mode
Thismodeimplementspart ofthe High Level Data
Link Control formats and procedures. It is well
suited for error correcting protocols like ECM or
FAXT4/T30recommendations.Itsupportstheflagginggeneration,16-bitFrameCheckSequence,as
well as the Zeroinsertion/deletionmechanism.
VI.5.3 - UARTParallel Mode
This mode implementa 7 or 8 bitdata format,it is
well suited forCaller ID or Minitel applications.
27/84
Page 28
ST75C530- ST75C540
VII - COMMAND SET DESCRIPTION
Commandsare presentedaccording to the followingform :
COMMANDCommand Name MeaningCOMMAND
OpcodeHexadecimaldigit
XXXXXXXX
SynopsisShortdescription of the functionsperformedby the command.
Parameters
FieldBytePos.ValueDefinition
NameXb..a
Explanation of the parameter
xx *
Default value
FieldName of the addressedbit field.
ByteIndex (or addressin the dualport RAM)of the parameterbyte (from1 to4).
Pos.Bit field position inside the parameter byte. Can either be a single position (from 0 to 7, 0
value.V al uesareexpressedei therundertheformofabitstrin g,orunderhexadeci malformat.
ASELASEL
Opcode:0B
00001011
SynopsisSelect the analog path options. This command select the Attenuation/Muteof the outputs
TxA1/TxA2 and SPK1/SPK2/SPK3.This command selectalso the sourceof the Mic signal
MIC1/MIC2/MIC2and the source of theLine Signal RxA/MIC3.
Parameters
FieldBytePos.ValueDefinition
ASEL_ASPK117..40000*
0001
0010
1010
1011
Other
ASEL_MICSEL21..000*
ASEL_LINESEL220*1Select RxA as line input
ASEL_ESPK1230*1SPK1output muted
ASEL_ESPK2240*1SPK2output muted
ASEL_ESPK3250*1SPK3output muted
ASEL_MTXA270*1TxA output normal
Select Rx input as MIC3
Select Mic3 as line input
SPK1output normal
SPK2output normal
SPK3output normal
TxA output muted
CALLCall aSubroutineCALL
Opcode:19
00011001
SynopsisCALLallows to executea part of theST75C530/540firmware with aspecificargument.
Parameters
This instruction can be used with SGS-THOMSON Microelectronics Application Laboratory Support for
specialapplicationsdevelopmentor debuggingneeds.Contact your local representative.
28/84
FieldBytePos.ValueDefinition
C_ADDR_L17..0Low byte of the call address
C_ADDR_H27..0High byte of the call address
C_DATA_L37..0Low byte of the argument
C_DATA_H47..0High byte of the argument
operation(Tone, FAXTransmit,Voice Transmit,Voice Receive, DTMFReceiver,...) and the
Modem or VocoderParameters (Standard, speed, ...). Accordingwith the 4 first bits of the
CONFParameterthe ST75C530/540is putinto the following mode of operation.
(4)
Detectors
Yes
No
Yes
No
Yes
No
No
No
Yes
Yes
No
No
No
No
No
No
Yes
Yes
No
No
No
No
No
Yes
Yes
Yes
Yes
Yes
No
No
No
No
(5)
(4)
Answ
Yes
No
No
Yes
No
No
No
No
(6)
CONF_
OPER
0000*
0001
0010
0100
1000
1001
1100
HANDSET/HANDSFREE
1111
Other
Notes :1.This mode includes V.23/Bell202 FSK Demodulatorand UART.
2.This primary ToneDetectors allows Detectionof signalup to 3.3kHz. (SamplingRate 7.2kHz).
In the HANDSET/HANDSFREE mode (CONF_OPER equals C), the parameters have the
followingmeaning:
FieldBytePos.ValueDefinition
CONF_OPER13..01100Define HANDSET/HANDSFREE mode
CONF_INHINI3601Init all telephony parameters
CONF_HFREE3701Handset mode
CONF_LEC4001Line echocanceller enabled
CONF_AEC4101Audio echocanceller enabled
CONF_FULLD4201Full duplexmode enabled
CONF_SOFTRx4301Softclipping enabled on Rx
CONF_AGC4401AGC active
CONF_SOFTTx4501Softclipping enabled on Tx
Line echocanceller enabled
Disable initof telephony parameters
Handsfree mode
Line echocanceller disabled
Audio echocanceller disabled
Half duplexmode enabled
Softclipping disabled on Tx
AGC frozen
Softclipping disabled on Rx
31/84
Page 32
ST75C530- ST75C540
VII - COMMAND SET DESCRIPTION (continued)
CRComplexReadCR
Opcode:11
00010001
SynopsisCRallowsthereadin gofacompl exparameter .Thepara m eterspecifiestheparam et e raddr ess(for
thereal part : the imaginarypart is nextlocation).CRreturnsthe highbyte val ueof bothrealand
imagi narypartoftheaddress edcomplexparam eter(seeChapterVIII“STA TUSDES C RIPT ION”) .
Parameters
FieldBytePos.ValueDefinition
CR_ADDR_L17..0Low byte of the16-bit address
CR_ADDR_H27..0High byteof the 16-bit address
CSEClear Error StatusCSE
Opcode:08
00001000
SynopsisCSE is used to clear the ST75C530/540error status SYSERR byte. It is also used as an
acknowledgeto the error condition handler.
Parameters
FieldBytePos.ValueDefinition
ERR_MASK17..0Error mask. See report appendix for detailed meaning
DEFTDefine Arbitrary ToneDEFT
Opcode:0E
00001110
SynopsisDEFTprograms one ofthefour tone generatorforarbitrary tone generation.The parameter
is thefrequencyof the generatedtone expressed in Hertz between0 and 3600Hz.
Parameters
FieldBytePos.ValueDefinition
TONE_GEN_SL11..0Index of thetone generator (3..0)
TONE_FREQ_L27..0Low byte of the frequency
TONE_FREQ_H37..0Highbyte of the frequency (internally masked with 0F)
SynopsisDOSR specifies the address of the RAM variables to be monitored in the 4 locations
STAOPT[0..3]of thedual portRAM. It also specifiesthe assignmentwithin the 4 locations.
Parameters
32/84
FieldBytePos.ValueDefinition
STA_OPT_ASS11..00..3Index of the STAOPT destination
STA_OPT_ADL27..0Low byteof source address
STA_OPT_ADH33..0High byte of source address
STA_OPT_HL3701Select low byte of source
Select high byte of source
Page 33
ST75C530- ST75C540
VII - COMMAND SET DESCRIPTION (continued)
DSITDefine Status InterruptDSIT
Opcode:13
00010011
SynopsisDSITspecifies the bit maskused with the STATUS[0]and STATUS[1] byte to generate an
interrupt IT4 to controller. Each time a bit change happens in the status words, assuming
the correspondingbit maskwill be set, an interruptwill be generated.
Parameters
Note :Thedefault IT Status is 0x3F for STATUS[0]and 0xFF for STATUS[1].
SynopsisINITforces the ST75C530/540to reset allparameters to their defaultconditionsand restart
operations.
ParameterNon parametriccommand.
Note :This command makes a software reset of the ST75C530/540and so cannothave theregular handshake protocol. It
does not increment the COMACK,neither generate anInterrupt.
JSRCall a Low LevelSubroutineJSR
Opcode:18
00011000
SynopsisJSRallows to executea part of the ST75C530/540firmwarewith a specific argument.
Parameters
This instruction can be used with SGS-THOMSON Microelectronics Application Laboratory Support for
specialapplicationsdevelopmentor debuggingneeds.Contact your local representative.
FieldBytePos.ValueDefinition
C_ADDR_L17..0Low byte of the call address
C_ADDR_H27..0High byte of the call address
C_DATA_L37..0Low byte of theargument
C_DATA_H47..0High byte of the argument
34/84
Page 35
ST75C530- ST75C540
VII - COMMAND SET DESCRIPTION (continued)
MODCModify ConfigurationMODC
Opcode:21
00100001
SynopsisMODCallows the modificationof the parametersdefined by the CONFcommand.
Parameters
FieldBytePos.ValueDefinition
MODC_SDM1001Normal data mode
MODC_DV21F1101Normal V.21ch2
MODC_DDTMF1201Normal DTMF detector
MODC_DTDT41301Normal secondary tone detector
MODC_DTDT161401Normal primary tone detector
MODC_SH160*1Normal training sequence
MODC_FS170*1Secondary tone detector sampling frequency is 4.8kHz
2. Short train sequence must be preceded by at least one successful long train sequence at the same data rate. For
V.17a successful long train at anydata ratemustpreceded the shorttrain.
3. Only coder or decoder can be enabled at thesametime.
4. Only when sendingV.17,V.33,V.29or V.27ter.
5. French MinitelApplication(TVR : TeletelVitesse Rapide).
6. ST75C540 only
01
10
01
10
1
1
1
0001
0010
0011
1111
1110
1101
0111
Other
Short datamode (e.g. TVR) (5)
Disable V.21ch2flag detector
Disable DTMF detector
Disable secondary tone detector
(1)
(1)
(1)
(1)
Disable primarytone detector
Short trainingsequence
(2)
Secondary tone detector sampling frequency is 9.6kHz
No guard tone
1800Hz guard tone (V.22bis/V.22)
550Hz guardtone (V.22bis/V.22)
No echo protection tone
Long echo protection tone (180ms)
Short echoprotection tone (30ms)
(4)
(4)
Answer mode : generate answer tone for handshake
Originate mode : wait answertone for handshake
Answer mode : do not generate answer
Originate mode : do notwait answer tone
Cut answer tone whenreceiving AA (V.32bis, V.32)
Continue answer tone when receiving AA.
Enable V.32bis/V.32 autoretrain on quality.
Disable V.32bis/V.32autoretrain on quality.
Low bitratedecoder voice frame duration 30ms(nominal)
Low bit rate decoder voice frame duration 35ms (+16%)
Low bit rate decoder voice frame duration 40ms (+33%)
Low bit rate decoder voice frame duration 45ms (+50%)
Low bit rate decoder voice frame duration 25ms (-16%)
Low bit rate decoder voice frame duration 20ms (-33%)
Low bit rate decoder voice frame duration 15ms (-50%)
Low bit rate decoder pause
Reserved
Low bit rate coder enabled
(3)
Line echocanceller disabled
Audio echocanceller disabled
(3)
Half duplexmode enabled
Softclipping disabled on Rx
AGC frozen
Softclipping disabled on Tx
SynopsisMRIallows the reading of a 16-bitparameter.The parameterspecifiesan indirectaddress.
Refer to the “RAM Mapping Application Note” (delivered on request according to revision
number).The advantageto use MRI insteadof MR is that theIndirect Address is constant
overthe differentrelease of the product.
MR or MRI Absolute Adress minus 1. This command must be preceded by a MR or MRI
command. This command does not have any parameter. The double word reading is
executedby the MR or MRIprevious command.
MWMemoryWriteMW
Opcode:12
00010010
SynopsisMW allows the writing of a 16-bit parameter.The parameterspecifies the address as well
asthe valuetobetran sf er re d.Refertothe“RAMMappingApplicat ionNote”(delive r edonrequest
accordingtorevisionnumber).TheadvantagetouseMWIinsteadofMWisthattheIndirectAddress
isconstantoverthe differentreleaseof theproduct.
Parameters
FieldBytePos.ValueDefinition
MWI_IADDR17..0Indirect address
MWI_IVALUE_L27..0Low byteof the 16-bit value
MWI_IVALUE_H37..0High byte of the 16-bit value
MWLOMemoryWrite LowWordMWLO
Opcode:2B
00101011
SynopsisMWLOallows the writing of a 16-bitparameter at the addressdefined by the followingMW
or MW Absolute Address minus 1. This command must be followed by a MW or MWI
command.Thedouble word writing is executedby the MW or MWI following command.
Parameters
FieldBytePos.ValueDefinition
MWLO_VALUE_L17..0Low byte of the 16-bit value
MWLO_VALUE_H27..0High byte of the 16-bit value
RTRA (ST75C540only)RetrainRTRA
Opcode:02A
00000101
SynopsisRTRAis usedto force the ST75C530/540to initiatea retrainsequenceor a rate negotiation.
If MODC_NOQUAbit is set, the ST75C530/540will initiate a transmissionat themaximum
speeddefined bythe RTRAparameter,otherwiseit willfoundthe bestreliablespeed based
on the qualityof theline (within the RTRA allowed speed).
SynopsisSETGN is a command which sets the scalingfactor of the transmitsamples. It is used for
settingthe outputlevel orforsettingthelevelof thetone generators.Thegainvalueisgiven
in the form of a 2’s complement 16-bitvalue.
Parameter
FieldBytePos.ValueDefinition
GAIN_L17..0range FF*Low byte ofthe 16-bit gain value
GAIN_H27..0range 7F* High byte of the 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
The multiplication factor is : 10
(-1/20)
= 0.89125 for 1dB step.
SLEEPTurnto SleepModeSLEEP
Opcode:03
00000011
SynopsisSLEEPis used to force the ST75C530/540to turnto low powermode.
ParameterNon parametriccommand.
Note :Whenreceiving this commandthe ST75C530/540will stopprocessing and socannot havethe regular 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 ST75C530/540 to turn off the transmitter in
accordancewith the correspondingITU-TV.33/V.17/V.29/V.27recommendation.
ParameterNon parametriccommand.
Note :When receiving this command the ST75C530/540 will stop sending regular Data. This command must bepreceded by a
XMIT Stop command. The ST75C530/540will wait until all the transmitbuffers are sent before starting the Stopsequence.
SYNCFAX Synchronize the ReceiverSYNC
Opcode:26
00100110
SynopsisSYNC is used, in FAX Modes, to force the ST75C530/540 to Start/Stop the receiver in
accordancewith the correspondingITU-TV.33/V.17/V.29/V.27recommendation.Assoon as
the ST75C530/540receivesthe SYNC Startcommand itsets its receiverto detectthe FAX
synchronizationsignal.This command isthe equivalent HSHK commandfor the receiver.
Parameters
38/84
FieldBytePos.ValueDefinition
RX_SYNC100*1Stop receiver
Start receiver synchronization
Page 39
ST75C530- ST75C540
VII - COMMAND SET DESCRIPTION (continued)
TDRCTone Detector Read CoefficientTDRC
Opcode:1A
00011010
SynopsisTDRCRead one Coefficient of the selected Tone DetectorCell.
Parameters
FieldBytePos.ValueDefinition
TD_CELL14..00..13Tone detector cell number
TD_C_ADDR27..00..B
30
40
Biquad coefficient
10
Energy coefficient
20
Static level
(1)
Energy coefficient for relative comparison
(1)
Gain forrelative comparison
The command answer is : Low Byte of Coefficient followed byHigh Byteof Coefficient.
Note 1 :Value 30 and40 ofbyte 2 areavailable only for secondary tone detector.
TDRWTone Detector Read WiringTDRW
Opcode:1B
00011011
SynopsisTDRWRead Wiring of the selectedTone DetectorCell.
Parameters
FieldBytePos.ValueDefinition
TD_CELL14..00..13Tone detector cell number
For primary tonedetector
TD_W_ADDR200
Other
Biquad and energy input
1
Comparator inputs
Reserved
The command answer is :
a) If TD_W_ADDR = 0 :
- FirstByteis the Node Number of the Signalconnected to BiquadraticFilter input.
- SecondByte is the Node Number of the Signal connectedto the Energy estimatorinput.
b) ifTD_W_ADDR= 1 :
- FirstByteis the Node Number of the Signalconnected to ComparatorNegative input.
- SecondByte is theNode Numberof theSignal connectedtotheComparatorPositiveinput.
For secondarytone detectorTD_W_ADDR is not defined.
- First byteis 00 if relativecomparisonis not mandatory,
First byte is 01 if relativecomparison is mandatory.
- Second byte is for the configurationof the secondarytone detector:
C0 configuration1+1 of secondarytone detectors,
E0 configuration1+1+2,
F0 configuration1+1+1.
39/84
Page 40
ST75C530- ST75C540
VII - COMMAND SET DESCRIPTION (continued)
TDWCTone Detector Write CoefficientTDWC
Opcode:1C
00011100
SynopsisTDWCWrite one Coefficientof the selected ToneDetectorCell.
Parameters
Note 1 :Value 30 and40 ofbyte 2 areavailable only for secondary tone detector.
FieldBytePos.ValueDefinition
TD_CELL14..00..13Tone detector cell number
TD_C_ADDR27..00..B
30
40
TD_COEFL37..0Low byte of coefficient
TD_COEFH47..0High byte of coefficient
Biquad coefficient
10
Energy coefficient
20
Static level
(1)
Energy coefficient for relative comparison
(1)
Gain forrelative comparison
TDWWTone Detector Write WiringTDWW
Opcode:1D
00011101
SynopsisTDWWWrite Wiring of the selectedTone DetectorCell.
Parameters
FieldBytePos.ValueDefinition
TD_CELL14..00..13Tone detector cell number
For Primary Tone Detector
FieldBytePos.ValueDefinition
TD_W_ADDR200
Other
Biquad and energy input
1
Comparator inputs
Reserved
If TD_W_ADDR = 0 (Select Biquad and Energy Inputs)
FieldBytePos.ValueDefinition
TD_W_ERN30..3FEnergy estimator signalinput
TD_W_BIQ40..3FBiquad filter signal input
40/84
If TD_W_ADDR = 1 (SelectComparator Inputs)
FieldBytePos.ValueDefinition
TD_W_CN30..3FNegative comparator signal input
TD_W_CP40..3FPositive comparator signal input
For SecondaryTone Detector
FieldBytePos.ValueDefinition
TD_4DIFF27..000
other
TD_4_CONF37..00Mandatory
TD_4_CONF247..0C0
other
Relative comparison not enable
01
Relative comparison enable
Reserved
1+1 configuration
E0
1+1+2 configuration
F0
1+1+1+1 configuration
Reserved
Page 41
ST75C530- ST75C540
VII - COMMAND SET DESCRIPTION (continued)
TDZTone DetectorClear CellTDZ
Opcode:1E
00011110
SynopsisTDZClears all internalvariablesofone Tonedetectorcell including Filterlocalvariablesand
energyestimator.This command must be sent after changingcoefficientsof a cell to avoid
instability.
Parameters
FieldBytePos.ValueDefinition
TD_CELL14..00..13Tone detector cell number
TGENEnable/DisableTone GeneratorsTGEN
Opcode:0D
00001101
SynopsisEnable or disable one of the four tone generator, define the output of the tone generator
eitherLine or Audio.
Parameters
FieldBytePos.ValueDefinition
TONE_0_ENA100*1Generator #0 disabled
Generator #0 enabled
TONE_1_ENA110*1Generator #1 disabled
Generator #1 enabled
TONE_2_ENA120*1Generator #2 disabled
Generator #2 enabled
TONE_3_ENA130*1Generator #3 disabled
Generator #3 enabled
TONE_0_OUT140*1Generator #0 output toline
Generator #0 output toaudio
TONE_1_OUT150*1Generator #1 output toline
Generator #1 output toaudio
TONE_2_OUT160*1Generator #2 output toline
Generator #2 output toaudio
TONE_3_OUT170*1Generator #3 output toline
Generator #3 output toaudio
41/84
Page 42
ST75C530- ST75C540
VII - COMMAND SET DESCRIPTION (continued)
TONEPredefinedTonesTONE
Opcode:0C
00001100
SynopsisTONE programs the tone generator for the predifined tones. The tone generator #0 and
eventualy#1 are reprogrammed with this command. The tonegenerator #0 and eventualy
the #1 are enabled.Using a value not in the following table will disable tone generator #0
and #1.
Parameters
FieldBytePos.ValueDefinition
TONE_SELECT15..00
TONE_OUT1701Output on line
DTMF digit0
1
DTMF digit1
2
DTMF digit2
3
DTMF digit3
4
DTMF digit4
5
DTMF digit5
6
DTMF digit6
7
DTMF digit7
8
DTMF digit8
9
DTMF digit9
A
DTMF digitA
B
DTMF digitB
C
DTMF digitC
D
DTMF digitD
E
DTMF digit*
F
DTMF digit#
10
Answer tone 2100Hz
11
Tone 1650Hz
12
Tone 2225Hz
13
Tone 1300Hz
14
Tone 1100Hz
Output on audio
XMITStart/stopTransmissionXMIT
Opcode:01
00000001
SynopsisXMITstart or stop thetransmissionof the TransmitData.
Parameters
42/84
FieldBytePos.ValueDefinition
TX_START100*1Stop transmission
Start transmission
Page 43
VIII - STATUSDESCRIPTION
This appendix is dedicated to the ST75C530/540
reporting features. In the following sections the
command acknowledge process and the report
and status definitionsare explained.
VIII.1 - CommandAcknowledge and Report
VIII.1.1- Command AcknowledgeProcess
The ST75C530/540 features an acknowledge
processbased ona counterCOMACK.On poweronreset(or INITcommand),this counter’svalueis
set to 0. Each time a command is successfully
executedby the ST75C530/540,the acknowledge
counter COMACK is incremented. This allows a
precise monitoring of the command entered and
avoidscommandcollision.
Figure16 : CommandAcknowledgeProcess
BEGIN
ST75C530- ST75C540
In the case of a memory reading command (CR,
TDRC, TDRW, IDT or MR) once the command
enteredisexecuted,the reportarea isfilledandthe
acknowledge counter is incremented afterwards.
This insures that the controller will read the value
correspondingto itsrequest.
Furthermore,the ST75C530/540 resetsthe value
of the COMSYS register and the interruption IT6
is raised.
VIII.1.2- Reports Specification
The report section of the Dual Port RAM is dedicatedtomemoryreading.In responsetoaCR,MR,
MRI, MRLO, TDRC, TDRW, IDT commands, the
value read is transferred to the report registers
COMREP[0..1].
YesNo
COMSYS = 0
CLEAR
ANSWER
EXECUTE
COMMAND
COPY ANSWER
INTO
COMREP
INCREMENT
COMACK
CLEAR
COMSYS
ASSERT
INTERRUPT
IT6
SET SYSERR
ERR_IPRM
ASSERT
INTERRUPT
IT0
COMMANDEXIST
NoYes
SET SYSERR
ERR_IOCD
ASSERT
INTERRUPT
IT0
END
75C53020.EPS
43/84
Page 44
ST75C530- ST75C540
VIII - STATUSDESCRIPTION (continued)
VIII.1.3- CR Command
Issuinga CR commandcauses theST75C530/540to dumpa specificmemory location in complexmode.
This instruction is particularly useful for equalizerstate analysis or for softwareeye-pattern display. The
reportarea has this meaning:
RP7RP6RP5RP4RP3RP2RP1RP0COMREP[0]
IP7IP6IP5IP4IP3IP2IP1IP0COMREP[1]
RP0..RP7is the MSB partof the 16-bitvalue of thereal part andIP0..IP7is the MSBpart of the imaginary
part.TheCR commandinsures that the realand imaginary part of the desired complexvalueare sampled
internallyat the same time. The address given in theparameter field of CR is theaddress of the real part.
VIII.1.4- MR/TDRC/TDRW/IDT/MRI/MRLO Commands
The report issued by the MR/TDRC/TDRW/IDT/MRI/MRLO commands follow the same rules as for CR.
Thereport meaningis :
D7D6D5D4D3D2D1D0COMREP[0]
D15D14D13D12D11D10D9D8COMREP[1]
D0..D15is the 16-bit valuerequested by the command.
InthecaseofIDT,D15..D12containstheproductidentification(3forST75C530,7forST75C5540),D11..D8
- 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 modem signals. These status
bytes cantrigger an IT4 interrupt,
- The quality status STAQUA,that containsthe quality of thereceivedtransmission,
- The optional status bytes STAOP[0], STAOP[1], STAOP[2] and STAOP[3], that contains additional
information regarding the ST75C530/540operating mode. This default informationcan be changed to
monitor any internal variables using the DOSRcommand.
Notes: 1. In thismode the tone detectorsoutputs are update 800 times by second.
2. This baud rate defines also, the maximum command rate. Each baud time the ST75C530/540 looks at the COMSYS location
(Address $00) to see ifa command have been sentby the host processor.If the contentof this location is differentfrom zero the
ST75C530/540 execute the command.
(2)
(Hz)
(1)
44/84
Page 45
ST75C530- ST75C540
VIII - STATUSDESCRIPTION (continued)
Startingat the adddress$08 the statusarea have the following format:
Add.
$0C STAOP0Depend on operating mode (see below)
$0D STAOP1
Theerror statuschangeseach time an erroroccurs. When the ST75C530/540signals an error by setting
one of the SYSERR bit,it generatesan interrupt IT0. These bits canonly be cleared by the host controler
using the CSE command.
Themeaning of the differentbits of theSYSERRbyte is discribed below :
SYSERR
FieldPos.Meaning when set
ERR_TX0Transmitbufferunderflow.Loss of synchronisationbetween thehostandST75C530/540 transmit
ERR_RX1Receive buffer overflow. Loss of synchronisation between the host and ST75C530/540 receive
ERR_VOCO2Vocoder buffer underflow (Decoder) or overflow (Coder). Lost of synchronisation between the
ERR_IOCD3Incorrect command
ERR_IPRM4Incorrect parameter for the command
ERR_RTK7Real time kernel error. ST75C530/540 not able to perform all its tasks within the baud period
data buffer managment.
data buffer managment.
Host and ST75C530/540 VOCODER Buffer management.
(transmit or receive samples lost).
Bit
STA_VAD
STA_ATSTA_CCITT STA-TIMSTA_H
45/84
Page 46
ST75C530- ST75C540
VIII - STATUSDESCRIPTION(continued)
VIII.2.3- ModemGeneral Status
Themodem generalstatuswordiscomposedof twobytes STATUS[0]andSTATUS[1].Anybit changecan
generatean IT4interrupt. Using the DSIT command allows the selectionof the corresponding bit that will
generate an interrupt each time they will change. The default pattern is $3F for STATUS[0] and $FF for
STATUS[1].
The different bits have the following meaning :
STATUS[0]
FieldPos.Meaning when set
STA_109
STA_VAD
STA_1071CCITT Circuit 107(Data Set Ready). Valid only in FAX & DATA MODEM modes.
STA_1062CCITT Circuit 106 (Clear To Send). Indicates that the training sequence has been completed
STA_RING3Ring Detected. A valid ring signal is present at the Ring pin. Valid only in Tones modes. The
STA_CPT04In TONE and TONECID modes STA_CPT0: Call progress tone detector #0. Low pass filter
STA_CPT15In TONE and TONECID modes STA_CPT1: Call progress tone detector #1. High pass filter
STA_CPT106In TONE and TONECID modes STA_CPT10: Signal in Filter #0 is higher than #1.
STA_109F7In FAX MODEM mode, V.22bismode* and TONECID mode STA_109F: Fast Carrier Detect.
that validdata arereceived.
In CODER and DECODER modes : VAD: Voice Activity Detected
and that any data in the Transmit Buffer will betransmitted. Validonly in FAX& DATA MODEM
modes.
precise frequency can be read in the optional status byte STAOP2.
650Hz.
600Hz.
STATUS[1]
FieldPos.Meaning
STA_H0Transmit synchronisation in progress. Valid only in FAX & DATA MODEM modes.
STA_TIM*1Handshake timeout. Valid only in Data Modem mode.
STA_CCITT2CCITT 2100Hz versus 2225Hz answer tone detect. Valid if STA_AT is set. Valid only in Tone
STA_AT3Answer tone (either2100Hz or 2225Hz) detected. Valid only in Tone mode.
STA_HR
STA_RTRN*
STA_RENEG*5Remote rate negotiation detected, valid only inV.32bis/V.32/V.22bis Data Modem modes.
STA_FLAG
STA_CLR*
STA_DTMF7DTMF digit detect. The digititself is available in the optional status byte STAOP3.
STA_RTRN : Remote retrain detec, valid only in V.32bis/V.32/V.22bis Data Modem modes.
6STA_FLAG : V.21channel 2 flag detect. Valid only in FAXModem mode and Tone mode.
STA_CLR : Remote clear down detected V.32bis/V.32Data Modem modes.
46/84
Page 47
ST75C530- ST75C540
VIII - STATUSDESCRIPTION(continued)
VIII.2.4- QualityStatus
Thequality bytesSTAQUAand STAQUASmonitoran evaluationof theline quality.Theyare updated once
perbaud andtheir value rangesfrom127(perfect quality)to 0 (terriblequality). This value is automaticaly
adjusted according to the current receiving mode. Refer to the following chart to convert the value of
STAQUA into its Bit Error Rate equivalence. Thetime constantfor STAQUA is 100ms. The slow quality
byte(available on STAOP1in Fax and Datamode exceptFSK)STAQUASgivesthe equivalentqualitywith
a 1 seconde time constant.
BER
-2
1e
-3
1e
-4
1e
-5
1e
-6
1e
-7
1e
-8
1e
-9
1e
0316395127
VIII.2.5- OptionalStatus
Accordingto the operating mode of the ST75C530/540the optional status is displayingdifferent informations.
The optionalstatus are automaticallyreprogrammed after each CONF command with the address of the
variablesto monitoraccordingwiththeoperatingmode selected(CONF_OPER).AftertheCONFcommand
the user must overwrite this default programming by usingthe DOSR command.In order to change the
default set-up please refer to the “RAM Mapping application note” (delivered on request according to
revisionnumber)to obtainthe addressesof the DSP Internal variables.
STAQUA
75C53021.EPS
VIII.2.5.1- DefaultOptional Status in All modes Except MODEM
Whilein Tone modethe formatof theSTAOPword is as follows :
SCR1s4Continuous scrambled 1 sequence
PNDETs5Turned on after PN sequencedetection
PRDETs6Turned on after PR sequencedetection (V.33 and V.17 only)
PNSUCs7Turned on after succesfull trainingof the receive equalizer. When on at the endof the
synchronization, thetransmition BER is statisticaly bellow 10ppm.
Bit
(2)(5)
(1)(5)
SPVAL
(4)
48/84
Page 49
VIII - STATUSDESCRIPTION(continued)
Withthe followingtiming:
3. TheSTAOP2Bit reflects the progression of theSynchronisation.
4. Onlyvalid in V.21Channel 2 Receive mode.
5. SPVALis active in V.32bis/V.32/V.22bis/V.22 at the end of the training sequence and at least 8 baud before entering Data mode.
SPVALand SPEED are also updated with each retrain andrate negotiation.
6. TheSPAOP1bitsreflect the progression of the synchronization in Datamodes.
51/84
Page 52
ST75C530- ST75C540
VIII - STATUSDESCRIPTION(continued)
The STAOP2Bits have the followingmeaningsin Data Modemmode :
HSHK_PHA(R)Handshake progression counter contains information about the progress of the
hadshakeinV.32and V.22bismodes.This 8-bit valueis availablein STAOP2in modem
mode.It can be readto examinethe progressioof thehandshakeandit containsnormal
valuesand errorvalues asbelow :
AUTOBAUD ORIG MODE
EventHSHK_PHA Value
Wait Answer Tone
Wait End Answer Tone
Not Autobaud and Waiting
USC1
Autobaud Waiting AC or USC1
AUTOBAUD ANSW MODE
EventHSHK_PHA Value
Waiting HSK Command
Generating Answer Tone
Generating Silence
V.32 ORIG MODE
EVENTHSHK_PHA Normal ValueHSHK_PHA ErrorValue
AC_DET
AC/CA DET
CA/AC DET
NO AC DET
S_DET
SB_DET
R1_DET
S_DET
SB_DET
R3_DET
E_DET
DATA_MODE
V.32 ANSW MODE
EVENTHSHK_PHA Normal ValueHSHK_PHA ErrorValue
AA_DET
AA/CC DET
NO CC DET
S_DET
SB_DET2
SB_DET
R2_DET
E_DET
DATA_MODE
V.22bis ORIG MODE
EVENTHSHK_PHA Normal Value
HSHK
USC1_DET
SCR1_DET
S1_DET
DATA_MODE
V.22bis ANSW MODE
EVENTHSHK_PHA Normal Value
HSHK
SCR1_DET
S1_DET
DATA_MODE
$20
$21
$22
$23
$24
$25
$26
$27
$28
$29
$2A
$30
$40
$41
$42
$43
$44
$45
$46
$47
$50
$01
$02
$03
$04
$10
$11
$12
$1
$2
$B for RTN, $C for RTN
$4
$5
$6
$7
$8
$9, $D noR5 det after RRN
$A
$8 for RTN, $9 forRRN
$1
$2
$3
$4
$5
$6, $A if noR det after RRN
$7
$60
$61
$62
$63
$70
$80
$82
$83
$90
52/84
Page 53
IX - TONE DETECTORS
IX.1 - Overview
The general purpose ST75C530/540 tone detectors block is a powerfulmodulethat coversa lotof
applications:
- call progress tone detection,fullyprogrammable
for all countries,
- FAX, voice, data automatic detection,
- call waiting detection, while in vocoder or data
mode.
IX.2 - Description
The primary tone detector block is a set of 16
identicalCells. Eachcell is composedof a Double
Biquadratic Filter, a Power estimator section, a
Static level and a Level comparator.
EachBiquadraticFilter,PowerEstimatorandStatic
Levelcan be programmedusing a completeset of
commands(TDRC,TDRW, TDWC, TDWW, TDZ).
The wiring between the differentCells can be defined by the user,using the associated command
allowinga widerange of applications.
Thesamplingfrequencyis 7200Hz,allowingdetectionof signalslessthan3300Hz.Thelevelofdetectionis programmablefrom-6dBmdown to -51dBm.
The16 ComparatorOutputsgive, onabaud basis,
the information into two 8 bits words TONEDET0
(for cells number 0 to 7) and TONEDET1 (for cells
number 8 to F). These TONEDET variables can be
accessed using a MRI command or, more easily,
Figure17 : BiquadraticIIR Filter
ST75C530- ST75C540
monitored on a baud basis using the DOSR command.
The secondarytone detector have been addedto
theST75C530/540.Thefilterstructureis thesame
as the primarytone detector.
Thesampling rate is 4800Hzallowingdetection of
signallessthan1800Hzby defaultprogrammingor
with a MODC command, the sampling rate is
9600Hz allowing detection of signal less than
3300Hz. The level of detection is programmable
from-6dBm down to -51dBm. In order to increase
thereliabilityof thedetection,usingaTDWW command,2comparisonsare provided,onewitha fixed
level(absolute)orwiththereceivesignal (relative).
The 4 secondary tone detectors are initialiazed
each time entering the tone mode. However the
previous coefficient values could be kept using a
CONFcommand.
ThecommandTDRC, TDWC,TDWW,TDRW,TDZ
with the TD_CELLparameter of 0x10, 0x11, 0x12
or 0x13 can be used to program these filters.
IX.2.1 - BiquadraticFilters
Each BiquadraticFilter is adouble regular section
thatcan performany Transferfunctionwith 4 Poles
and 4 Zeros.
This routine is run on a sample basis.
C0C5
INOUTC6
2
-1
Z
C1
C2
C3
-1
Z
C4
C7
C8
CB
2
-1
Z
C9
-1
Z
CA
-1
Z
Thecorrespondingtransferfunction is :
−
Out
Input
Note : Allcoefficients arecoded on 16 bits 2’s complement in the range +1,-1 (Q15). To avoid the possibility of overflow the user must check
that the internal node must not be higherthat 0.5(in Q15 representation).
= C0 ⋅
C5+2⋅C3⋅z
1−2⋅C1⋅z
1
+2⋅C4⋅
−
1
−2⋅C2⋅
−
2
z
−
2
z
CB+2⋅C9⋅z
⋅ C6 ⋅
1−2⋅C7⋅z
−
1
+2⋅CA⋅
−
1
−2⋅C8⋅
−
2
z
−1
⋅ z
−
2
z
53/84
75C53024.EPS
Page 54
ST75C530- ST75C540
IX - TONE DETECTORS (continued)
IX.2.2- PowerEstimation
The Power estimation Cell is needed to measure
the amplitude of the different tones. It is run on a
samplebasis.
Figure18 : PowerEstimator
IN
ABS(.)P1
+
-1
Z
Thecorrespondingtransferfunction is :
Out
= |Input|⋅
−
1
z
⋅
1 −
(1− P1) ⋅ z
P1
IX.2.3 - Static Level
A single Threshold level is associated with each
Cell.It canbe usetocomparetheoutputof a Power
Estimationwith an AbsoluteValue.
IX.2.4 - Comparator
The Comparator computes, on a baud basis, the
differenceof thesignal on itsPositiveandNegative
Inputs. If the result is Higher that zero it sets the
OUT
-1
Z
−1
correspondingbitinto the TONEDET[0..1]word; if
not it clear thisbit.
IX.2.5- Wiring
The user must specify the connection(wiring) betweenthe input/outputof theFilter,theinput/output
of the Power estimator, the output of the static
levels and the twoinputs of the Comparators.
The outputsignalshave an absoluteaddress:
Node Address
Signal
Name
75C53025.EPS
Ground00Signal always equal to 0000
RxSig01Receive signal from the
RxSig202Receive signal multiplied by 2
RxSig403Receive signal multiplied by 4
Theuser will specifytheinputs of thefilters,Power
andComparator.At leastoneinputmustcomefrom
the RxSig (node 01, 02 or 03). It is mandatory to
connectallunusedcell inputs to the Groundsignal
(node00).
Hereunderis an exampleof programming a single
Tone detection (using Cell #3) and a complexdifferentialtone detection (using Cell #4 and #5).
Bit 3 of the TONEDET variable will be triggered
eachtime the energyof thatfilteredsignalis higher
thanStatic Level number3.
Figure22 : WiringExample
ST75C530- ST75C540
Bit4 of theTONEDETvariablewillbe oneachtime
a receive signal has an energy higher than the
Static Level number 4. Bit 5 will be on onlywhen
the Filtered(Filtersection 4 and5) receivedsignal
higher than the energy of the wide-band signal
number4 ; this prevents triggering on noise.
GROUND
Rx SIGNAL
2
2
@01
@02
@03
@00
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
COMP.
#3
COMP.
#4
COMP.
#5
ProgramCell #3 :
TDWW03001301
ConnectReceived signal to Filter andFilter to Energy.
TDWW03013323
ConnectLevel to ComparatorNeg Input andEnergy toPos Input.
ProgramCell #4 and#5 :
TDWW04000101
ConnectReceived SignaltoFilter and Energy.
TDWW04013424
ConnectLevel to ComparatorNeg Input andEnergy toPos Input.
TDWW05001514
ConnectFilter#4 Output to Filter andFilter to Energy.
TDWW05012425
D3
D4
D5
TONEDET0
75C53031.EPS
ConnectWide-band Energyto Neg Inputand Energy to Pos Input.
59/84
Page 60
ST75C530- ST75C540
X - PARALLELDATA EXCHANGE
X.1 - Overview
While transmiting (respectively receiving) data to
(from) the telephone line data are exchangedbetween the host and the ST75C530/540.
Twototaly independent channels are provived for
transmit and receive data. Even while using half
duplex modes of operation, the transmitted data
comes from the transmit buffers and the receive
dataarrives in the receivebuffers.
IT2
Twoindependent interrupts,
IT3
(forreceive)areavailablefor synchronizingthe
ST75C530/540 and the host. An additional
interruptwillsignaltheerrorsinthesynchronization
mechanism.
The equivalent data flow is as follows (see Figure 20).
TheST75C530/540has a buit-inHDLC capability.
This feature automatically performs HDLC framing/deframing, CRC generation/detectionand “0”
insertion/deletion. The ST75C530/540 have also
UARTcapability,the format of data is selected by
the
FORM
commanddescribed bellow.
X.2 - TransmitBuffers
Twoidentical buffersareprovidedto exchangethe
data bet ween the host in terface an d the
ST75C530/540.When the hostis writingdata into
a buffer, the ST75C530/540 is transmitting the
other one. After that, both the host and the
ST75C530/540switch to usethe other buffer. This
mechanism, called “Double-Buffering”, ensures
that the host has the maximum time to fill one
buffer.
The DUAL Ram area associated withthe transmit
buffersis as followingtable.
Figure23
(for transmit) and
IT0
NameAddressDescription
DTTBS0$2EBuffer 0 Status Byte
DTTBS0 [0]$2FBuffer 0 Data Byte 0
DTTBS0 [1]$30Buffer0 Data Byte 1
DTTBS0 [2]$31Buffer0 Data Byte 2
DTTBS0 [3]$32Buffer0 Data Byte 3
DTTBS0 [4]$33Buffer0 Data Byte 4
DTTBS0 [5]$34Buffer0 Data Byte 5
DTTBS0 [6]$35Buffer0 Data Byte 6
DTTBS0 [7]$36Buffer0 Data Byte 7
DTTBS1$37Buffer1 Status Byte
DTTBS1 [0]$38Buffer1 Data Byte 0
DTTBS1 [1]$39Buffer1 Data Byte 1
DTTBS1 [2]$3ABuffer 1 Data Byte 2
DTTBS1 [3]$3BBuffer 1 Data Byte 3
DTTBS1 [4]$3CBuffer 1 Data Byte 4
DTTBS1 [5]$3DBuffer 1 Data Byte 5
DTTBS1 [6]$3EBuffer 1 Data Byte 6
DTTBS1 [7]$3FBuffer 1 Data Byte 7
Bit 0 (LSB)of the Buffer 0 DataByte0 is thefirst in
time to be transmited.
Accordingto the Data Format, theStatus byte of a
bufferhas differentmeanings. However a value of
0 signals to the host that a buffer is empty. This
valueis set by the ST75C530/540each time ithas
emptied the buffer.After having used one buffer,
the host must select the other buffer for the next
operation.The host must start with the Buffer0 as
soon as the
XMIT 1
the
ST_106
commandis sent.
A mechanism of interruption (
signalgoes on and BEFORE
IT2
for Transmit) is
associatedwith the data buffer managment.Each
time a buffer is emptied by the ST75C530/540 it
generatesan interrupt.
60/84
IT2
Tx
BUFFERS
HOST INTERFACE
BUFFERS
Rx
IT3
Tx
Rx
HDLC
UART
HDLC
UART
MODUL.
Telephone
Line
H
DEMOD.
Control
Data
75C53032.EPS
Page 61
X - PARALLELDATA EXCHANGE(continued)
X.3 - ReceiveBuffers
Symetrically two identical buffers are provided to
exchangereceive data between the
ST75C530/540and the host processor.While the
ST75C530/540is filling one of the bufferswith the
receivebits,the host processoris readingtheother
buffer.As soon as the host has emptied a buffer it
freesit by writing 0 in thebuffer status byte.
The DUAL Ram area associated with the receive
buffersis as following table.
NameAddressDescription
DTRBS0$1CBuffer 0 Status Byte
DTRBS0 [0]$1DBuffer 0 Data Byte 0
DTRBS0 [1]$1EBuffer 0 Data Byte 1
DTRBS0 [2]$1FBuffer0 Data Byte 2
DTRBS0 [3]$20Buffer 0 Data Byte 3
DTRBS0 [4]$21Buffer 0 Data Byte 4
DTRBS0 [5]$22Buffer 0 Data Byte 5
DTRBS0 [6]$23Buffer 0 Data Byte 6
DTRBS0 [7]$24Buffer 0 Data Byte 7
DTRBS1$25Buffer 1 Status Byte
DTRBS1 [0]$26Buffer 1 Data Byte 0
DTRBS1 [1]$27Buffer 1 Data Byte 1
DTRBS1 [2]$28Buffer 1 Data Byte 2
DTRBS1 [3]$29Buffer 1 Data Byte 3
DTRBS1 [4]$2ABuffer 1 Data Byte 4
DTRBS1 [5]$2BBuffer 1 Data Byte 5
DTRBS1 [6]$2CBuffer 1 Data Byte 6
DTRBS1 [7]$2DBuffer 1 Data Byte 7
The Bit 0 (LSB) of the Buffer 0 Data Byte 0 is the
firstreceived bit in time (the oldest).
Accordingto the Data Format, theStatusbyte ofa
bufferhas different meaning. Howevera valueof 0
signalstotheST75C530/540thatabufferisempty.
This value is set by the Host each time it has
emptied the buffer.After having used one buffer,
the host must select the other buffer for the next
operation.The Hostmust start withthe Buffer 0 as
soon as the
STA_109
A mechanism of interruption (
signalgoes.
IT3
for Receive) is
associatedwith the DataBuffermanagment.Each
time a bufferis filledby the ST75C530/540it generatesan interrupt.
ST75C530- ST75C540
X.4 - Interruption
TwoInterrupt signals are provided in orderto syn-
IT2
chronize the Data Buffer Exchanges.
ciatedwiththe TransmitBuffermechanismand
with the Receive Buffer mechanism.
In order to enable these interrupts,the Host processor must set the bit 2 (for
IT3
) of the
the Bit 7 of the
ITMASK
ITMASK
Registerto 1. It must also set
IT2
) and the bit 3 (for
register to 1 in order to
globallyenable alltheselectedsourcesof interruption.
Whenan Interruptoccurs(low level on
the user must read the
ITSRCR
Registerto determinethe sourceof the interrupt,either
the bit 2 is 1) or
IT3
for Rx (if thebit 3 is1).
Once the Interrupt has been serviced, the host
mustacknowledgeit by writinga $00 valueinto the
register
) isequal
to64-bit if the number of Data Bytesis setto 8. The
Hosthasthefull64bitstime to servetheinterrupt:
Bit Rate (bps)Interrupt Time (ms)
14400
12000
9600
7200
4800
2400
1200
300
75
4.4
5.3
6.6
8.8
13.3
26.6
53.3
213.3
853.3
X.6.2 - HDLC Mode
The HDLC Format can be used for T.30 or ECM
implementations
X.6.2.1- HDLC Transmit
TheHDLC Transmitterperformsthefollowingtasks:
- Flag generation(7E) while in inter-frame.
- Flag generation(7E) at the beginingof a frame.
- Zero insertion(after5 consecutive“1”).
- CRC16 computation.
- CRC16 transmission at the end of a frame.
ST75C530- ST75C540
- Flaggeneration(7E) at the end of a frame.
- Abort frame.
- Programmablenumber of Startingflags.
- Programmablenumber of Interframe flags.
- Programmablenumber of Endingflags.
The BufferStatus Byte
DTTBSx
type, and the numberof DataBytes to transmit.
X.6.2.2 - HDLC Receive
The HDLC Receiverperforms thefollowingtasks:
- Flagrecognition.
- Openingflag recognition.
- Zerodeletion.
- CRC16 computation.
- CRC16 check ; error CRC16 detection.
- Closing flag recognition.
- Abort frame detection.
- Received CRC.
TheBufferStatusByte
DTRBSx
type,thenumberofDataBytesand theerrorreport
if any.The errors detected are :
- CRC16 Error : Wrong CRCreceived.
- Non byte-al l i gnedfram e: The number of Da ta bi ts
betweenthebegin i ngoftheframeandtheendofthe
frame(after“zero”deletion)is nota byte-multiple.
- Aborted frame : More that 6 consecutive“1” received.
X.6.3 - UART Mode
In the UART mode the buffers contains only one
Characterto transmitor received.The worse case
ofinterruptrate isobtainedwiththe lowercharacter
bit length(7bit of data,no parityand 1stopbit) and
is providedin the following table.
The
the Parallel Dataprocess.
When
continuous“1”.WhenontheST75C530/540transmitsData inaccordancewith the
and starts to managethe DataBuffer.
This command can be sent at any time, while in
DataMode (seeTable below).
XI.1.2- FORM Command
The
redefine the current format. The effect will take
place only when
Here is a formalexampleshowing the relationship
between
ure 26).
XI.1.3- STOPCommand
The
Figure26
Command works like a CTS signal for
XMIT
is off, the ST75C530/540 transmits
FORM
FORM
STOP
Command can be sent at any time to
XMIT
is on.
XMIT
, and
FORM
Commands(see Fig-
command is used, at the end of the
command
transmission, to stop sending the carrier on the
telephoneline.
Prior to the
STOP
stop the parallel transmition with a
command the user must have
XMIT off
command.
Whenthecurrentdata bufferwillbe totalytransmitted,and that nomorebufferswillbe available,that
is to said both
DTTBF0
and
DTTBF1
will be $00
(equivalentto an Underruncondition).
XI.1.4 - Timing
Here are regular sequences to stop properly the
transmition (see Figure 27).
FieldByte Pos. ValueDefinition
TX_START100 *1(Off) Send
continuous “1”
(On) Send Data
according with the
Formatdefined in the
In FSK Full duplex Mode the parallel mode assumesthat the Bit time durationis the nominalBit
rate.
Establisha V.29transmition and sendthe very first
Buffer(see Figure 29).
Figure 28
Eachbit elementfrom the Transmit buffer ismaintainedduring thefull bit time.
TheNominal bit clock is definedas follows :
FSK Standard Nominal Transmit Bit Rate(Hz) (1)
V.21300
Bell 103300
V.23 Originate75
V.23 Answer1200
Note 1 : The accuracy of the Bit clock is given by the
ST75C530/540 oscillator, and must betterthan 100ppm.
BEGIN
READBIT IN
INTERNALBUFFER
INTERNALBUFFER
EMPTY
Yes
SELECTNEXT DUAL
RAM BUFFERX
ST75C530- ST75C540
No
RETURN
XI.2- Modem Flow Chart
When Data Mode, each time the ST75C530/540
need a bit to transmit it executes the following
routine (see Figure 28). Where x starts with the
value 0 and togglethereafterbetween1 and 0.
XI.3- Host Flow Chart
Here after are Flowcharts to :
- Establisha V.29transmission
- Send Synchronouscontinuous “$AA, $55, $AA,
$55,...”sequence.ThemanagmentoftheBuffers
are done under Interrupt.
- Stop properlythe transmition.
Figure29
CONF 0F 08 00 01
HSHK
FORM 00 (opt)
FILL FIRST BUFFER
Select V.29 9600bps
Start V.29sequence
Format synchronous
Fill the first buffer # 0
DTTBSx= 0
No
MOVEDTTBFx DATA
TO INTERNALBUFFER
CLEARDTTBSx
RAISE IT2 INTERRUPT
RETURN
Subroutine :
FILL FIRST BUFFER
WRITEAA, 55 ...
INTO DTTBF [0..7]
WRITE08 INTO DTTBFS0
Yes
SIGNALERROR
INTO ERR_TX
RAISEIT0 INTERRUPT
SELECTDUAL
RAM BUFFERx = 0
RETURN
75C53037.EPS
STA_106 = 1
Yes
XMIT 1
No
Wait until end
of training
Start totransmit
the firstbuffer
SELECTNEXT BUFFER
IBUF = 1
Tx_COMPLETED= FALSE
ENABLE IT2
ITMASK = 0 x 84
RET
75C53038.EPS
65/84
Page 66
ST75C530- ST75C540
XI- TRANSMITTING DATAIN PARALLEL MODE (continued)
Theseflowchartsshowtwo CPUvariableslabeled
IBUF and Tx_Completed, they are necessary for
the understandingof the mechanism, but there is
differentmanners to implementit. Thesetwo variables have the following meanning :
- IBUF: Thisisthenumberof theDUALRAMBuffer
currently in use by the Host processor. It starts
with 0 andthen alternate1, 0, 1, 0, ...
- Tx_Completed : This is a Flagto dialogwith the
interrupt process in order to stop properly the
transmition.
The other Buffers are sent under interrupt control
(refer to the interrupt flow chart, Figure30).
To stop properly the transmition, without loss of
Data(see Figure31).
Figure30
DTTBSx
place of the regular Buffer.
- Thiscondition cannotappend in UARTmode.
When an underflow conditionoccur the host must
will be transmitted, the ST75C530/540 will send
8 consecutive“1” and wait for the next buffer.
XI.6.2 - Status Word Format
data bytes contained into the DUAL Ram buffer
packedinside an HDLC frame.The mechanismis
as follows :
- While the Host has no frameto transmit, that is:
as long as
DTTBSx
equals $00, the
FieldPos. ValueDefinition
BUFF_LENG 3 .. 00
ST75C530/540transmitsthe HDLC Flag $7E.
- When the Hostwantsto sendsome data,it feeds
the buffer with some data bytes to transmit (between 1 and 8) and set the
the
DTTBSx
status buffer. At that time the
BUFF_SFRM
ST75C530/540 start sending data contained in
the Buffer, computin the CRC and performing
bit in
BUFF_SFRM401Data stream.
“zero intertion”if needed.
- When the host wants to send additional data
(within the same frame) it feeds the buffers just
BUFF_EFRM501Data stream.
likein synchronousmode. If an Underflowcondition occurs, the ST75C530/540 will abort the
framebysending8 consecutive“1”,andtheHost
must restartthe whole parallelinitialization.
BUFF_FRAB601Data stream.
- When the host wants to closea frame,it set the
BUFF_EFRM
bit in the
DTTBSx
statusbuffer.At
that time the ST75C530/540 will send the contents of the buffer, then send the CRC and an
HDLC closingflag $7E.
Other70Reserved, must be 0.
Notes : 1. A buffer can have
- If theHost,wantstoabort a frame(while sending
a frame)itsetthe
BUFF_FRAB
bitinthe
DTTBSx
statusbuffer.Atthattime,assoonasthelastbuffer
ST75C530- ST75C540
DTTBSx in HDLC Mode
Buffer empty.
1
1 Byte to transmit
DTTBFx[0]
(
2
2 Bytes to transmit
DTTBFx[0]
(
..
8
other
in the same
transmittedis short (between 1 and 8 Bytes long).
2. An ending frame (with
least ONE byteof data totransmit.
DTTBSx
DTTBFx[1]
..
8 Bytes to transmit
DTTBFx[0 .. 7]
(
Not allowed.
Start of frame : the buffer
is a beginning of frame.
End of frame : the buffer
will be followed by the
transmission of the CRC
and closing flag.
Abort frame :
8 consecutive “1” will be
transmitted (whatever
Aset ofglobalvariablesallowsthe programmation
of the number of flags (7E) generated by the
ST75C530/540:
- _NHFBF : Numberof flagsbefore the firstframe.
- _NHFCF : Numberof flags betweenframes.
- _NHFST : Number of flags after the last frame.
The default value for all these variables is 0, the
programming range is from 0 to 7FFF (32767).
These varaibales must be modifiedwith a MW or
MWIcommand (see Figure36).
XI.7- UART Mode Description
In UART mode the ST75C530/540 transmits the
data Character contained into the DUAL Ram
buffe.The mechanism isasfollows:
- While theHost has no characterto transmit, that
is: as long as
DTTBSx
equals $00, the
ST75C530/540transmitscontinuous“1”.
- Whenthe Hostwantstosendachacarter,it feeds
the bufferwith the character to transmit.
- The ST75C530/540 start to send a stop bit (“0”)
then thecharactercontainedintheBuffer,computing the parity. It send the parity bit,if needed,and
the stop bits (1 or 2 according with the
FORM
XMIT 0
_NHFCF
7E..7E 7ECRC
Time to fill the
IT
Tx
DATA
Time
to fill the
Buffer 0
IT
Tx
STOP
_NHFST
7E 7E..7E
command).
- If the user wants to senda breaksignal, he has
toset the
BUFF_UBRK
ing Status Word (
bitwithinthe correspond-
DTTBSx
). A break signal is
defined as a totalynull characterwith all stopbits
duration maintainedto “0” (e.g: if format is 7 bit,
even parity and 2 stop bit, break is a ”0” durring
10 bit). Multiple continuous breaks (“0” continuous signal) can be send by using consecutive
bufferswith
BUFF_UBRK
set to 1.
XI.7.1 - Status Word Format
DTTBSx in UART Mode
FieldPos. ValueDefinition
BUFF_LENG 3 .. 00
BUFF_UBRK601Normal character.
Other70Reserved, must be 0.
Buffer empty.
1
1 character to transmit
(
other
DTTBFx[0]
Not allowed.
Break signal : a complete
“0” character withall stop
bits equalto ”0”.
75C53045.EPS
).
69/84
Page 70
ST75C530- ST75C540
XII - RECEIVINGIN PARALLELMODE
Figure 37
DEMODULATED
SIGNAL
SAMPLETIME
RECEIVEBIT
0100 100101
75C53046.EPS
XII.1- Description
When the STA_109 (CD) signal goes on, the
ST75C530/540 will write received data into the
DUALRAMbuffer DTRBS0 at first.
XII.1.1- Initialization
The host processor must enable the IT3 receive
interruptfirst.
Thenit mustemptythetwo DTRBS0 and DTRBS1
registersby writting $00 at theselocations.
As soon as the first IT3 interruptappears, the host
must proceedwith the DTRBS0buffer.
XII.1.2- Loss of Carrier
Each time a loss of carrier appears the
ST75C530/540 stops updating the Data buffer. If
the carrier reappers the host must proceed again
withthe initialisationsequence.
XII.1.3- FSKSynchronization
The FSK Full Duplex demodulator uses an algorithm based on the transitionsof the received signal. The synchronization mechanism is adjusted
with each signal transiton in order to sample the
demodulated signal at the middle of the bit
(seeFigure 37).
XII.2- Modem Flow Chart
When in parallel data mode, each time the
ST75C530/540 has receive some bit of data it
executesthefollowing routine (see Figure 38).
The received bits are read by an interrupt routine
(SeeFigure 40).
Figure 40These flowchartsshow one CPU variable labeled
EXECUTE_IT_RECEIVE
READDTRBS1
EXTRACTBUFF_LENG
Subroutine :
CLEAR FIRSTBUFFER
WRITE 00 INTO DTRBFS0
WRITE 00 INTO DTRBFS1
SELECT NEXT BUFFER
IBUF = 0
ENABLE IT3
ITMASK =0 x 88
RET
IBUF = 1
Yes
(1)(1)
No
READDTRBS0
EXTRACTBUFF_LENG
75C53048.EPS
XII.4- Error Detection
Error occurs when the ST75C530/540 has receivedsomebits andthatthebuffer
DTRBSx
isnot
empty, thisconditionis called “Overflow”.
This error is signaled in the bit
SYSERR
cleartheerrora
byte, and generatesan interrupt
CSE02
commandmustbe issued.
ERR_RX
of the
IT0
.
To
AnOverflow conditionoccurs when :
- In synchronous mode: the host processor “forgets” to empty thecurrent
DTRBSx
buffer.
- In HDLC mode: when, while inside a frame, the
host processors “forgets” to empty the current
DTRBSx
buffer.
- In UARTmode, thiscannot happen.
Whenan Overflowcondition occurs the host must
restartthe whole parallelinitialisation.
BUFF_LENGTIMES(2)
READDTRBF1DATA
WRITE00 INTO DTRBS1
IBUF = 0
Notes : 1. At that step the host can check that the corresponding
DTRBSx
an error.
2. Thismeans read
buffer
DTRBFx[BUFF_LENG - 1]
BUFF_LENG
lost appears in themiddle of thebuffer.
buffer is full(different from $00), otherwise it is
DTRBFx
isalways 8bytes, exceptwhena
BUFF_LENGTIMES (2)
READDTRBF0 DATA
WRITE00 INTO DTRBS0
IBUF= 1
RETURN
BUFF_LENG
starting from location
bytes, insidetheReceive
. In synchronous mode, the
DTRBFx[0]
STA_109
71/84
75C53049.EPS
to
Page 72
ST75C530- ST75C540
XII - RECEIVINGIN PARALLELMODE (continued)
XII.5- SynchronousMode
XII.5.1- Description
In synchronous mode the ST75C530/540 writes
thereceivedbit into theDUALRAM Buffer without
any modification. It starts with the Bit 0 of the
DTRBF0[0]
XII.5.2- Status Word Format
ThereceiveStatusByte
the same followingmeaning(See Table below).
The BUFF_LENGis always 8 except when a lost
of carrier (
This status byte is set by the ST75C530/540,just
beforegeneratingthe
XII.6- HDLC Mode
XII.6.1- Description
In HDLC mode the ST75C530/540extracts from
the received HDLC frame the Data information
only. It reports, troughthe DUALRam buffer,only
data information and frame validity. The mechanismis as follows:
- As long as the ST75C530/540receivescontinuous HDLCFlag $7E, nothing happens. Note that
the ST75C530/540allows zero sharing between
adjacent flags.
- When the ST75C530/540 receivessomedata, it
removes inserted “zero” if needed, and starts to
compute the CRC. As soon as its internal buffer
isfull,theST75C530/540writesthereceiveddata
into the
BUFF_SFRM
- When receiving additional data, the
ST75C530/540 feeds the buffer just like in synchronousmode.
- When the ST75C530/540receivesa closingflag
(which canbe shared with the following opening
flag) it compares the receivedCRC with itsinternal computation. It writes the contents of the
received last data into the
BUFF_EFRM
the
in the
Reported errors are :
• CRC error (lowest priority): the receivedCRC
is notequal to thecomputed CRC.Some bits,
byte.
STA_109
DTRBFx
DTRBSx
DTRBS0orDTRBS1
goingto 0) happens.
IT3
interrupt.
buffer and sets the
insidethe
DTRBSx
DTRBFx
statusbyte.
buffer,sets
bitand reportsany frameerror
registerviathe
BUFF_ERRS
have
bits.
insidethe frame, are erroneous.
•
Non Byte-Alignedframe (middle priority): the
received data bit count (after deletion of the
“zero inserted”), between the opening andthe
closingflag, is not a multipleof 8.
• Abortedframe(highestpriority):the framewas
abortedwith at least7 consecutive“1”
- An abortframecan be alsodetected,while inthe
interframemode,if insteadof receiving$7Eflag,
theST75C530/540receivemorethan 7consecutive “1”. In this case only one Aborted frame is
signaled, event if the”1” conditionis maintained.
DTRBSx in Synchronous Mode
FieldPos. ValueDefinition
BUFF_LENG 3 .. 00
Other
Other7.. 40Not used.
Buffer empty.
1
1 Byte received
DTRBFx[0]
2
..
8
(
2 Bytes received
DTRBFx[0]
(
DTRBFx[1]
..
8 Bytes received
DTRBFx[0 .. 7]
(
Not used.
).
and
).
).
XII.6.2 - Status Word Format
DTRBSx in HDLC Mode
FieldPos. ValueDefinition
BUFF_LENG 3 .. 00
BUFF_ERRS 5 .. 40 0
BUFF_SFRM601Data stream.
BUFF_EFRM701Data stream.
Buffer empty.
1
1 Byte received
DTRBFx[0]
2
..
8
other
01
10
11
(
2 Bytes received
DTRBFx[0]
(
DTRBFx[1]
..
8 Bytes received
DTRBFx[0 .. 7]
(
Not allowed.
No error.
CRC error.
Non Byte-Alignedframe.
Aborted frame.
Start of frame : thebuffer
is a beginning of frame.
End of frame : the buffer
is a closing frame.
).
and
).
).
72/84
Page 73
XII - RECEIVINGIN PARALLELMODE (continued)
XII.6.3- SingleShort frame
Figure 41
ST75C530- ST75C540
RECEIVED
DATA
BUFF_ERRS
BUFF_SFRM
BUFF_EFRM
BUFF_LENG
(BUFF_DATA)
XII.6.4- Long Frame
Figure42
RECEIVED
DATA
BUFF_ERRS
BUFF_SFRM
BUFF_EFRM
$7ED0CRCD1D2D3
0628
$7E
D0D1D2D3
$7ECRCCRCCRC$7E$7E$7E
00
D0D1D2
CRC $7E
(1)
75C53050.EPS
BUFF_LENG
(BUFF_DATA)
Note : 1. Iferror occurs during the reception, it is signaled in this last buffer.
08
D0
8
D1D2D3
XII.6.5- AbortedFrame
Figure43
RECEIVED
DATA
BUFF_ERRS
BUFF_SFRM
BUFF_EFRM
BUFF_LENG
(BUFF_DATA)
$7E
D0
D1D2D3
ABORT
8
D0D1D3
5
$7E
11
8x
x
08
75C53051.EPS
D4
0
D5
8
75C53052.EPS
73/84
Page 74
ST75C530- ST75C540
XII - RECEIVINGIN PARALLELMODE (continued)
XII.7- UART Mode
XII.7.1- Description
InUART modethe ST75C530/540extractsfrom the
received Characters the Datainformation only. It reports,troughtheDUALRambuffer,onlydatainformation charactervalidity.The mechanismisas follows :
- As long as the ST75C530/540receivescontinuous “1”nothing happens.
- When the ST75C530/540 receives the start bit
(“0”)itstartstocomputetheparity.Assoonasthe
number of data bit (definedby the FORM command) is received,the ST75C530/540writesthe
received character into the DTRBFx buffer and
update the receiveStatus wordDTRBSx.
- The Reportederrors are :
• Parityerror(lowestpriority):thereceivedparity
is not equalto the computedparity.Some bits,
insidethe character,are erroneous.
•
Stop bit error(middle priority): the bitafter the
parity was not a stop bit (“1”). Note that if the
two stop bit format was selected,only the first
stop bit will be checked.
The ST75C530/540 can receive (or transmit)
coded voice from (to) the telephone line or the
audiointerface. Thereceivingmodeis theCODER
modewhile thetransmitis the DECODER mode.
TwoformatsofVoicecompressionare provided:Low
bitrateandADPCM.Inall theformatsandspeedthe
managementof the CodedVoiceis exac tlythesame.
In any format a frame of all data equal to zero will
besynthesised(DECODER)as aframeof silence.
XIII.2 - VocoderBuffer
A buffer area is reserved in the DUAL ram to
exchange Voice between the ST75C530/540 and
theHostprocessor.Thisareaisusedeitherforrecording (CODER) or playing back (DECO D ER) the voice
signal.
The DUAL Ram area associated with the VOCODERis as follows:
NameAddressDescription
VOCSTA$1CVocoder Buffer Status
VOCDATA$1D..$2E Vocoder Buffer Data
VOCCORR$2F..$30Vocoder Buffer Corrector
This mode is entered with the CONF DECODER
command.
If the ADPCMor Low bit rate withouterror correction mode (CONF_ERCOR= 0) are selected,the
userneedstofeed the vocoderbufferwith18bytes
of voice data, then set the VOCSTA byte with a
value different from zero.
In the low bitratewith error mode(CONF_ERCOR
=1), theuser needstofeedthevocoderbufferwith
20 bytesof voice data, then set theVOCSTAbyte
with a valuedifferent fromzero.
Once the ST75C530/540 have read the buffer, it
clearstheVOCSTAbyteandraisetheIT1interrupt.
The IT1interrupt rate is as follows :
Asilencecan begeneratedby writingzeroto allthe
VOCDATA bytes (an d VOCCORR bytes if
CONF_ERCOR = 1). The duration of the silence
will bethe same as the otherframes of signal.
As the buffercontains always a completenumber
of samples representing the same duration, it is
easy to randomly advance forward/backwardin a
message.
If the user does not feed the Buffer within the
Interrupt time, the ST75C530/540 will signal this
errorbyrisingtheERR_VOCOintheSYSERRbyte
and rising the IT0 Interrupt. In this case the previous frame will be re-transmited.
74/84
Page 75
XIII - VOCODER DATAEXCHANGE (continued)
XIII.4 - Receive(CODER)
This function can be enteredeither by :
- TheCONFCODERCommand.Thiscorresponds
to the “Normal AnsweringMachine” function.
- The MODC Command with MODC_COD = 1, in
the HANDSET Mode. This corresponds, in the
HANDSET mode to the “Conversation Recording” function. This reduced sub-mode does not
allow ADPCMformat and does not performVAD
(VoiceActivityDetector).
Once thisfunction isselected, theST75C530/540
startsto codethe voicesignal, writes one frameof
compressedvoice into the VOCDATA bytes (if the
lowbit ratemodeisselected,computesalwaysthe
Correctorbytes and writesthemin the VOCCORR
bytes)thenwritestheVOCSTAbyteandgenerates
the IT1 interrupt.
TheIT1 interruptrate is as follows:
Mode
ADPCM 32Kpbs4.536
ADPCM 24Kpbs648
ADPCM 16Kpbs972
Low Bit Rate (with and
without error correction)
Interrupt
Time
(ms)
Number of Voice
Samples
in the Buffer
(8kHz sampling)
30240
ST75C530- ST75C540
Note that the VOCCORR are always computed,
whateverthe value of CONF_ERCOR.
The user must readthe VOCDATA(and optionally
the VOCCORR)bytesand clear theVOCSTAbyte
(writing$00).
If the userdoes not clearthe VOCSTAbytewithin
the interrupt time, the ST75C530/540 will signal
thiserrorbyrising the ERR_VOCOin theSYSERR
byte and rising the IT0 Interrupt. In this case the
currentframe is lost.
If theCONF_SUPSILbit is 1 in theCONF CODER
command, the interrupts IT1 appears only when
the VADhas detecteda voicedsignal.
VOC
_VAD
VOC
_NUM
_VAD
VOC
_NUM
70
4..0 10100 (20 decimal) Number
70
4..0 10010 (18 decimal) Number
VADUnvoicedSignal.
1
VAD VoiceSignal.
of VOCDATA Bytes
VADUnvoicedSignal.
1
VAD VoiceSignal.
of VOCDATA Bytes
75/84
Page 76
ST75C530- ST75C540
XIV - TRANSPARENT MODE DATA EXCHANGE
The mode uses the DPR locations to exchange
samplesbetweenthe hostand the AFE’s.To allow
maximuminterrupt latency, the DSPuses internal
buffers to store samples and updates the DPR
buffers when internal buffers are ready.The DPR
buffersarebidirectional,thusdoublingthe effective
DPRcapacity.
The transfer mechanism isdepicted below :
1. At baud rate (every 4 samples at 9.6kHz), the
DSP transfers4 samples from theModem AFE
totheinternalreceivebuffer,aftersendingthem
througha high-passfilter witha transferfunction
H(z) = (z-1)/ (z-0.875) used to remove all DC
components from the signal, and transfers
4samplesfromtheInternaltransmitbuffertothe
Modem AFE. This comes from the currently
implemented internal scheduling. The same
operationis performed for the voiceAFE.
2. After 3 bauds, the internal receive buffer is full
(the internal transmit buffer is also empty), the
DPR buffer is copied to the internal transmit
buffer,then the internal receivebufferis copied
intotheDPR.
3. Ahost interruptis generated: during servicing,
the host reads the DPR sample buffer then
writesit with new transmittedsamples.
XIV.1- Samplebuffers
The mode uses the DPR locations to exchange
samplesbetweenthehostand theAFE’s; sinceno
data transfer (HDLC, UART) occurs in this mode,
the full 0x10 .. 0x3F DPR locations are available.
The Modem sample buffer (MODEMDPR) uses
locations 0x10 to 0x27 (24 bytes) to exchange
12 MAFE samples. The audio sample buffer
(AUDIODPR) uses locations 0x28 to 0x3F to exchange 12 VAFE samples. Samples are represented in 16-bit linear data format, byte order is
little-Endian(Intel-like,LSByteatlowaddress),and
consecutive locations correspond to consecutive
samplesin time. Example : locations(0x10, 0x11)
correspond to the first sample (LSB, MSB) receivedfrom the line AFE.
XIV.2- Interrupts
The DSP signalevents to thehost usingthe interrupt mailbox (ITREST[0..6], ITMASK, ITSRCR).
IT2 is set by the DSP whenever the DPR buffers
are ready. This interrupt source can be masked
through IT MASK, and a cknowledg e d u sing
ITSRCR[0..6]. The host interrupt service routine
shouldread receivedsamples from theDPR,write
transmitted samples to the DPR, then acknowledgeby clearingtheIT2 flag. Theinterruptlatency
is approximately equal to the interrupt period, i.e.
T = 1/800 = 1.25ms. Overrun and underrun conditions may occur if the host interrupt latency exceeds the previous value. Since this situation is
unrecoverable,no specificaction is taken. Nevertheless, for debug purposes the user can detect
thisconditionby probingthe interrupt line(SINTR),
andtriggeron a pulsewidth greaterthan themaximumallowed latency.
76/84
Page 77
XV - DEFAULTCALL PROGRESS TONE DETECTORS
Figure44 : CallProgressTone DetectorBand 1
dB
0
-10
no detection
detection
Figure 45 : CallProgressToneDetectorBand 2
-8
ST75C530- ST75C540
dB
0
no detection
detection
-20
step = 10Hz
referencelevel = 0dB
-30
-40
f (Hz)
-50
02004006008001000
XVI - DEFAULTANSWER TONE DETECTORS
Figure46 : 2100HzAnswer ToneDetector
dB
0
-10
-20
-30
-40
no detection
detection
-50
200020402080212021602200
step = 10Hz
referencelevel = 0dB
f (Hz)
-16
step = 100Hz
-24
reference level = 0dB
-32
-40
75C53053.EPS
07201440216028803600
Figure 47 : 440HzTone Detector
dB
0
-10
-20
-30
-40
-50
200320440560680800
75C53055.EPS
step = 10Hz
referencelevel = 0dB
f (Hz)
75C53054.EPS
no detection
detection
f (Hz)
75C53056.EPS
77/84
Page 78
ST75C530- ST75C540
XVII - ELECTRICAL SCHEMATICS
Figure48
C15
10µF
CC
V
100nF
C12 (1)
GIO11
6162636465666768697071727374757677787980
GIO12
GIO13
GIO14
GIO15
GIO16
GIO17
CLKOUT
XPLL
DGND5
DD
DV
5
XTALL
EXTALL
TEST0
RESET
SPK3N
SPK3P
SPK2N
SPK2P
DDA
AV
100nF
C13 (1)
605958575655545352
DD4
DV
GIO10SPK1N
GIO07
DGND4
GIO06
GIO05
GIO04
51
5049484746
DD3
DV
GIO02
GIO03
DGND3
ST75C530
4544434241
RING
GIO00
GIO01
RELAY0
RELAY1
ST75C540
RGND
SINTR
INT/MOT
SCS
DD2
DD1
SA6
SA5
SA4
SA3
SA2
SA1
SA0
SDS
SR/W
DV
DGND2
SD7
SD6
SD5
SD4
SD3
SD2
SD1
SD0
DV
Performancesof the FAXmodem dependson the
ST75C530/540intrinsic performancesand on the
properPC board layout.
Allaspectsof the properengineeringpractices,for
PC board design, are beyond the scope of this
paragraph.
Werecommendthe following points :
- in a 4-layerPC board : Separated digital ground
and analog ground, connected together at one
point,as closeaspossible to theST75C530/540,
- in a 2-layerPC board: Providea groundgrid in all
spacearoundandundercomponentsonbothsides
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the
consequences of use of such information nor for any infringement of patents or other rights of thirdparties whichmay result from
its use. No licence is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications
mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information
previouslysupplied.STMicroelectronicsproductsare notauthorizedfor use ascriticalcomponentsin lifesupport devicesor systems
without express written approval of STMicroelectronics.
Purchase of I
Rights to use these components in a I
Australia - Brazil- Canada- China - France - Germany - Italy - Japan - Korea - Malaysia - Malta- Mexico - Morocco -The Netherlands
Singapore - Spain- Sweden - Switzerland- Taiwan - Thailand - United Kingdom - U.S.A.
The ST logois a registeredtrademark of STMicroelectronics
1999 STMicroelectronics - All Rights Reserved
2
C Components of STMicroelectronics,conveys a licenseunder the PhilipsI2C Patent.
2
C StandardSpecifications as defined by Philips.
the I
2
C system,is granted providedthat thesystem conformsto
STMicroelectronics GROUP OF COMPANIES
http://www.st.com
o
(Min.), 7o(Max.)
84/84
PM-1S.EPS
1S.TBL
Loading...
+ 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.