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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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