ONE CHIP SOLUTION FROM PCM BUS TO
TRANSFORMER (CEPTSTANDARD)
ISDN PRIMARY ACCESS CONTROLLER
(COMPATIBLEWITHETSI,OPTION1 AND 2)
HDB3/BIN ENCODER AND DECODER ON
CHIP
MULTIFRAME STRUCTURE HANDLING
BUILTIN CRC4
EASY LINK TO ST5451/MK50H25/MK5027
LINK CONTROLLERS.
DATA RATE: 2048, 4096 AND 8192 Kb/s FOR
MULTIPLEXEDAPPLICATIONS
FOURLOOPBACKMODES FORTESTING
PSEUDO RANDOM SEQUENCE GENER-
ATOR AND ANALYZER FOR ON-LINE, OFFLINE AND AUTOTEST
CLOCKRECOVERY CIRCUITRYON CHIP
64 BYTE ELASTIC MEMORY FOR TIME
COMPENSATION AND AUTOMATIC FRAME
AND SUPERFRAMEALIGNMENT
32 ON CHIP REGISTERS FOR CONFIGURATIONS, TESTING, ALARMS, FAULT AND ERROR RATE CONTROL.
AUTO ADAPTATIVE DETECTION THRESHOLD
AUTOMATIC EQUALIZEROPTION
5V POWERSUPPLY
AMI OR HDB3 CODESELECTION
PARALLEL OR SERIAL MICROPROCESSOR
INTERFACEOPTION
BOTH µp AND STAND ALONE MODE AVAIL-
ABLE
DESCRIPTION
STLC5432, CMOS device, interfaces the multiplex system to the physical CEPT Transmission
link at 2048Kb/s. Furthermore, thanks to its flexibility, it is the optimum solution also for the ISDN
application as PRIMARY RATE CONTROLLER.
The receive circuit performances exceed CCITT
recommendation and the line driver outputs meet
the G.703 specifications.
STLC5432 is the real single chip solution that allows the best system flexibility and easy design.
STLC5432 can work either in 2048 or 4096 or
8192 Kbit/s systemsprogramming the CR4 register (when parallel microinterfaceselected).
STLC5432
TQFP44 (10 x 10)
ORDERING NUMBER: STLC5432Q
PIN CONNECTION (Topview)
P0
LI1
VT
P1
GNDA
GNDD
SA/RESET
DIN
A/D0
A/D1
A/D2
A/D3
INT
RCLI
BRDI
DOUT
LI2
1
2
3
4
5
6
7
8
9
10
11
RCLO
BRDO
AS/ALE
XTAL1
394041434442
17161513121422212018 19
XTAL2
VCCD2
DPI
VCCD1
PRELIMINARY DATA
VCCA
CS
LO1
LO2
34353638 37
33
BXDI
32
AL0
31
AL1
30
A/D7
29
A/D6
28
A/D5
27
A/D4
26
R/W/WR
25
LFSX
24
LFSR
23
LCLK
HCR
LCR
DS/RD
D93TL043D
BXDO
July 1996
1/46
STLC5432
PIN DESCRIPTION
NamePinTypeFunction
Positive power supply inputs for the digital (V
VCCD1
VCCD2
VCCA
GNDD
GNDA
LI1
LI2
18
17
34
1
44
40
42
VT41OPositive power supply output for fixing reference voltage to the receive transformer.
L01
L02
36
37
XTAL115IThe master clock input which requires either a parallel resonance crystal to be tied
XTAL216OThe output of the crystal oscillator, which should be connected to one end of the
HCR19OHigh clock received, bit clock. When the device has recovered the clock from the
LCR20OLow clock received, frame clock. When the device has recovered the clock from the
BRDO
RCLO
BRDI
RCLI
12
14
10
9
BXDO22OBinary TransmitData Output, 2048kbit/s oroutput clock at 64kHz.
BXDI33IThis binary signal can replace BXD internal signal to be encoded if SELEX bit (CR1
DOUT11OData Output. 30 B+D primary access data received from the line.Data can be shifted
DIN3IData Input : 30B+D primary access data to transmit tothe line.Data can be shifted in
I
I
microprocessor interface signals (V
I
connected together.
). They must be +5 Volts and must be directly
CCD2
) and analog (V
CCD1
) sections and for
CCA
IINegative power supply pins which must be connected together close to the device. All
digital and analog signals are referred to thesepins, which are normally at the system
ground.
I
Receive HDB3 signal differential inputs from the line transformer.
I
Typical value is 2.375V
OOTransmit HDB3 signal differential outputs to the line transformer.When used with an
appropriate transformer, the linesignal conforms to the outputspecifications in CCITT
with a nominal pulse amplitude of 3 volts for a 120Ω load on line side.
between this pin and XTAL2, or a clock input from a stable source. This clock does
not need to be synchronized to the system clock.
Crystal specifications = 32764 kHz ± 50 ppm parallel resonant; RS ≤ 20Ω loaded with
33pF to GND each side.
crystal if used.
HDB3 signal, HCR signal is synchronized to the remote circuit. The HCR frequency is
either 8192kHz if 8MCR bit of CR1 Register is put to 1 or 4096 kHz if 8MCR is set to
0.
HDB3 signal, LCR signal is synchronized to the remote entity.
The LCR frequency is 8 kHz if 8KCR bit is set to 1, or 4 kHz if 8KCR bit is set to 0.
When the remote clock is not recovered, HCR and LCR frequency are synchronized
to master clock (16384 kHz).
HCR and LCR can be used by the system inTerminal Mode.These two clocks can be
used by the transmit function of the device.
OOBinary Receive Data Output, 2048 kbit/s or 64kbit/s.
Receive Clock output, 2048 kHz or 64kHz.
After decoding, Binary Data and clock associated are provided for different
applications.
IIBinary Receive Data Input. 2048 kbit/s.
Receive Clock Input 2048 kHz.
Before encoding Binary Data is provided to different applications (Optical Interface for
instance). Local clock is associated to thisdata.
Register) is set to 1.
out from the tristate outputDOUT at the LCLK frequency on the rising edges during
all the time slots,except Time Slot Zero inaccordance withTSOE bit (CR1Register).
NB : If parallel micro-interface is selected, DOUT is at high impedance after Reset.
DOUT is at low impedance after writing CR4 register.
at the LCLK frequency on the falling edges during all the time slots,except Time Slot
Zero, in accordance with TSOE bit (CR1 Register).
2/46
STLC5432
PIN DESCRIPTION(continued)
NamePinTypeFunction
LCLK23ILocal Clock : this clock input determines the data shift rate on the two digital
LFSR24ILocal Frame Synchronization for the Receiver. This clock input defines the start of the
LFSX25ILocal Frame Synchronizationfor the Transmitter. This clock input defines the start of
AL0,
AL1
32
31
multiplexes. Thisclock frequencycan be indifferently2048, 4096, 8192or 16384kHz.
Data Out and Data In rate is always 2048 kbit/s when Serial Interface microprocessor:
an internal automatic mechanism divides by two the frequency if 4096 kHz.
frame on the digital multiplex Data (pin DOUT). This clock frequency can be
indifferently 8 kHz or a submultiple of 8 kHz.
the frame on the digital multiplex Data (pin DIN). This clock frequency can be
indifferently 8 kHz or a submultiple of 8 kHz.
If submultiple of 8 kHz, LFSX defines the start of even frame on DIN.The TSO of this
even frame will contain the Frame Alignment Signal(FAS) on the line.
OOAlarm 0 Output, alarm 1 Output. These pins are opendrain outputs which are
normally in high impedance state.
AL1AL0Alarm definitions
ZZFrame or Multiframerecovered,
0VoltZFrame or Multiframe recovered,
Z0VoltFrame and Multiframe lost, AIS
0Volt0VoltFrame and Multiframe lost, AIS
DPI38IDPI input: The internal DPLL is synchronizedeither by the signalapplied on DPI input
SA/RESET2IStand Alone : When this pin is connected to 5 Volts, the device works without
P0, P139, 43IProcessorinterface. These two input pins define the microprocessor interface
CS35IChip Select.A high level on this input selects the PRCD for a read write operation.
R/W/WR26IRead/Write/Write Data. Input.
DS/RD21IData Strobe/Read Data. Input.
A/D0toA/D74 to 7;
27 to 30
INT8OInterrupt Request. Thesignal is activated low when the PRCD requestsan interrupt. It
(if DPIS bit of CR5 register is =0) orby the 2MHz clock recovered from the line.
microprocessor. The configuration is given by the values per default of programmable
registers. BRDI and BXDI must not be used.
RESET: When this pin is put to 5 Volts during 100 ns at least every programmable
register is reset (value per default). When this pin is set at zero Volt, the type of
microprocessor is selected by P0, P1 pins.
33pF capacitors connected to
XTAL1 and XTAL2 pins on the
application schematic)
DYNAMIC CHARACTERISTICS
tpdLCLK high to DOUT valid
LCLK high to BXDO valid
XTAL1 high to HCR high or low
tpdzLCLK high to DOUT HZ150pF; 7mA50ns
tdHCR high to LCR high or low
RCLOhighto BDROhighorlow
tsAll data inputs to clock low10ns
thClock low to alldata inputs10ns
random output (50% of ones)40mA
random output (50% of ones)40mA
F = 100KHz, Vrms = 100V0.3µH
F = 100KHz, Vrms = 100mV0.2µH
20pF
150pF; 7mA
50pF; 1mA
150pF; 7mA
150pF; 7mA
50pF; 1mA
–2020ns
50ns
Ω
Ω
Ω
Ω
6/46
Figure 1: ReceiverDiagram
STLC5432
RCLODPILCRHCR
BRDO BRDI
1
DATA
64Kb/s
LP3
SIG
A
1
1
HDB3/BIN
DECODER
64 x 8
SELER
DOUT
1
B
MEMORY
RDS
-1
n
2
GENERATOR
A
B
-1
n
SAV
2
SGV
RXRD
ANALYZER
BIN/HDB3
DIAGRAM
TRANSMITTER
ENCODER
DIN
PULSE
SINGLE
D93TL046C
DATA
CLOCK
RECOVERY
1
DPLL
DPIS
1
ASP
1
LP1
A
S2/T2
2Mb/s
INTERFACE
ALARM
1
AIS
A
7/46
STLC5432
INTRODUCTION
This single chip CMOS Device interfaces the
physical multiplex of the application to the physical CEPT transmissionlink at 2048kb/s.
STLC5432 contains analog and digital functions
to implement line interface function and frame
synchronization. It meets pulse shape and jitter
specifications in accordance with CCITT Recommendations and CEPTstandards.
FUNCTIONAL DESCRIPTION
1. LINEINTERFACE
1.1 Receiver
The receive input signal should be derived via a
transformer of the same type used for the transmit direction. The suggested transformer is the
VAC L4097-X004 or equivalent for the 75 ohms
case and the VAC 4097-X012 or equivalent for
the 120 ohms case. The electrical models of the
transformers are summarized in the following table :
Wiring between the transformer and the circuit
should respect the application schematic given in
annex.(see fig4).
The internalfixed thresholdis set to 200 mV over
the common mode voltage VCM (VCM = 2.375 V
nominal) to insure the specified transmission
range with a good noise immunity.
Two options are provided for special applications
requiringimproved transmissionranges:
AUTO-ADAPTATIVETHRESHOLD:
Using the configuration register CR4 (AVT), a
peak amplitude detectorcircuit is connected to
the received signaland after digital processing,
an adaptative threshold value equal to 3/8 of
the peak value is obtainedat the output of a D
to A converterand used for data detection.
AUTOMATIC EQUALIZER: connecting two externalcapacitorsof100pFin seriesbetweenthe
transformerandthe circuitsinputs,and usingthe
configuration register CR4 (EQV), the circuit will
selectautomatically a pre-compensationfilter for
long line configuration (see application schematicon figure3 and4 givenin annex).
8/46
BIN/HDB3
ENCODER
1
SELEX
BXDI BXDO
RD RX
1
LP2
64KHz
CLOCK
1SIG
TM
DOUT
SGV
n
-1
2
GENERATOR
LP4
CRC4
1
1
RDS
1
D
1
SIG
ADAPTOR: WHEN
DATA IN CLOCK IS
64KHz, DATA
CLOCK AT 2048KHz
BXDI
TS
GENERATOR
TSO
1
AT
OUT
DIN
D93TL045B
STLC5432
Using bothoptions allow the reception of a signal
attenuatedup to 12dBat 1024kHz.
The Clock recovery is performed by a first PLL
that guaranties the CCITT I431 requirements for
the allowedJitter, see Figure 23, this clock, RCL,
is usedinternallyandas local clock.
A second DPLL starting from this RCL clock attenuate the Jitter,to fulfil the CCITT I431, see figure 8, this DPLL generate HCR, bit clock, and
LCR frame clock, practically without Jitter.
1.2 Transmitter
The line driver outputs are designed to drive the
suitable transformer mentioned in the previous
section. The transformerresults in a signal amplitude of 3 voltson the linewhich meet G.703 pulse
shape for a 120 ohm load (2.37 volt for a 75
ohms load).
A special test mode is provided to check the
pulse template according to the CCITT mask by
using the configurationregister CR3 (ASP).
When the ALS command is valid, consecutive
logical ”ones” are transmittedon theline.
When APS command is valid, consecutive 1, 0,
1... 1, 0,1, 0... are transmitted on the line.
2 CODING
2.1 HDB3/BINDECODING
The two constituents of the data signal are de-
coded and the binary Receive Data Signal (BRD)
is processedbythe next functions.
2.2 BIN/HDB3ENCODING
The binary transmit data signal (BXD) is encoded.
The entire data stream, including all the time
slots, is scanned for an occurence of four consecutive zeros.
Such occurence is replaced by the appropriate
HDB3 code.
3. BINARYINPUT-OUTPUT
STLC5432 can directly interface binary data
stream by means of the 6 dedicatedpins:
BRDO, RCLO,BRDI, RCLI,BXDOand BXDI.
This allows the use of STLC5432also for particular cases as for optical fiber or for different purposes. The functions of these 6 pins are defined
by the SIGbit (SIGR register).
3.1 SIG = 0
When the bit SIG = 0 the binary data are ex-
changed at 2048KHzand the 6 extrapins are defined hereafter.
3.1.1 Extrapinsfor receive data
The BRDOand RCLO output pins deliver respec-
tively BRD binary receive data at 2048kb/s and
the remoteclock recovered at 2048kHz.
Two BRDI and RCLI input pinscan receive external binary receive data at 2048kb/s and the receiveclockassociated at 2048kHz.
The SELERcommand replaces BRD internal signal with BRDI signal.
3.1.2 Extrapins for transmitdata
The transmit binary data output pin BXDO deliv-
ers transmitbinary data BXD.
Input pin BXDI can receive external binary trans-
mit data.
The SELEXcommand replaces BXD internal sig-
nal with BXDIsignal.
3.2 SIG = 1
When SIG = 1, a signaling channel at 64 kb/s is
implemented.
3.2.1 Extrapins for Receivedata
BRDO and RCLO output pins deliver respectively
receive data at 64kb/s selected by an internal
Time Slot Assigner and the receive clock associated at 64kHz. In this case, BRDI and RCLI are
not used.
3.2.2 Extrapins for TransmitData
Output BXDO delivers the 64kHz clock for an ex-
ternal application. This external entity delivers
data at 64kb/son the rise edge of the clock.
Input BXDIshifts data at 64 kb/s on the fall edge
of the 64kHzclock.
The same Time Slot Assigner is used by transmitter and receiver(See SIGR Register).
4 LOOPBACK
4.1 LOOPBACK1
When LP1 Command is valid (LP1 bit high, see
CRC3 register), output data signal replaces input
data signal. Then, the recoveryclock functionprovides the local clock. The loopbackis transparent
if AIS is at 0. If AISX is at 1, consecutive logical
”ones”are transmittedon theline.
4.2 LOOPBACK2
LP2 Command (LP2 bit high, CR3 register) re-
places BXD and XCLK signals (respectively Binary Transmit Data and transmit clock) with BRD
and RCLK (respectively Binary Receive data and
its clock recovered).
4.3 LOOPBACK3
LP3 Command (LP3 bit high, CR3 register) re-
places BRD and RCLK (respectively Binary Receive Data and its clock recovered) with BXD and
9/46
STLC5432
XCLK (respectively Transmit Data and its clock
associated). Frame and multiframe generated by
the transmitter of the circuitare processed by the
receiver of the circuit, without encoding and decoding.
4.4 LOOPBACK4
LP4 Command replaces Data in with Data out
near of DIN and DOUT pins (See LP4R register).
5 FRAME ALIGNMENT
Time slot 0 is used for the synchronization
(G.706). At softwareReset Frame and Multiframe
are lost and a new research of FASand MFAS is
launched.
5.1 LOSS OF FRAMEALIGNMENT
Frame alignment will be assumed to have been
lost :
– eitherwhen three consecutiveincorrect frame
alignmentsignals have been received,
– or when bit 2 in time slot 0 in odd frames has
been received with an error, i.e. at0, on three
consecutiveoccasions,
– or when 915 errored CRC blocks out of 1000
have been detected.
5.2 FRAME ALIGNMENT RECOVERY
Frame alignment will be assumed recovered
when the followingsequence is detected:
– Detection of the correct Frame AlignmentSig-
nal, FAS
– detectionof bit 2 of 32nd byte after FAS,at 1.
– detectionof the correct Frame Alignment sig-
nal in the 64th byte after the first FAS de-
tected.
5.3 MULTIFRAME ALIGNMENTRECOVERY
Multiframe Alignment will be assumed recovered
when at least two valid multiframe alignment signals MFAShave been detectedwithin 8 ms.
Table 1: CRC4 Multiframe StructureG.704
Sub
Multiframe
I
II
FAS:Frame AlignmentSignal in each even Time Slot.
MFAS:Multi Frame Alignment Signal 0 0 1 0 1 1
E1–E2:CRC4 error Indication bits
C1 to C4:Cyclic Redundancy Check 4 (CRC4) bits
A:Remote Alarm Indication
Sa4 to Sa8:Five bits in each odd Time Slot
Sa61 to Sa64: ETSI bits
Frame
0C10011011
101ASa4Sa5Sa61Sa7Sa8
2C2F A S
301ASa4Sa5Sa62Sa7Sa8
4C3F A S
511ASa4Sa5Sa63Sa7Sa8
6C4F A S
701ASa4Sa5Sa64Sa7Sa8
8C1F A S
5.3.1 Typical case
Remote entity transmits Frame Alignment Signal
(FAS) and MultiframeAlignment Signal(MFAS).
As soon as lost of Frame Alignment is occured
(LOF = 1), the local receiver recovers FAS from
254 up to 500µs after. As soon as FAS is recov-
ered (LOF= 0), thelocal receiver recoversMFAS
from 4 up to6ms after.
5.3.2 Old ExistingEquipmentCase
Remote entity transm its Frame Alignment Signal
(FAS)withoutMultiframe AlignmentSignal(MFAS ) .
As soon as lost of Frame Alignment is occured
(LOF=1), the local receiver recovers FAS from 254
up to 500µs after. Then LOF = 0, and 400msafter
thelocalreceiverindicatesthattheMultiframeAlignementSignalhasnotbeenrecovered(MFNR =1).
5.3.3 ParticularCase:SpuriousFrameAlignment
Signal
Local receiver receives true FAS and true MFAS
among several spuriousFAS.
Multiframe Alignment signal (MFR=1) is recovered
from 8 to 400ms after the Frame Alignmentsignal
is recovered (LOF=0). Then, this FAS is either a
spurious one (the ”Spurious Timeslot Zero” is carryingFASwithoutMFAS), ortrue FAS.
Anyway, when the Multiframe Alignmenthas been
recovered (MFR=1), the good Frame Alignment
Signal is taken into account and data are loaded
intothe Frame Memoryat thegood location.
SeeFig. 13synchronizationalgorithm.
5.3.4 WorstCase
Local receiver receives true FAS and true MFAS
among several spurious FAS and several spurious MFAS.
In this case, if the circuit has recovered a spurious FAS and MFAS, the CRC blocks will be detected with an high error rate. As soon as 915 errored CRC block within 1000 will be detcted, the
MFAS will be assumedas spuriousanda new research starts at the point just after the location of
the assumed spuriousFrame Alignement Signal.
5.4 TransmitterSIDE
The Frame Alignement Signal is transmitted continuously on the transmitterside, with bit 1 of TS0
at logical1.The MFASsignal is transmittedin accordance with NMF bit register (CR5 Register):if
NMF is programmed to ”1” Logic, no MFAS is
transmitted; if NMF is programmed to ”0” Logic
the MFAS signal is transmittedcontinuously.
Table 2.
LOFMFR MFNRRECEIVER STATE
100FAS or MFAShas been lost.
State: Research of FAS
000FAS has beenrecovered.
State: Research of MFAS
010FrameandMultiframerecovered
State: Good working.
001Frame recovered.
State: Good working without
multiframe received from
transmitting side.
6 Interfacingwith themicroprocessor
The device can work in one of the 3 following
modes:
– Parallel microprocessor InterfaceMode
– Serial microprocessorInterfaceMode
– Withoutmicroprocessor : StandAlone Mode.
The choiceis done by means of the SA/Reset,P0
and P1 pins.
6.1 ParallelMicroprocessorInterfaceMode
The microprocessor can read (or write) the regis-
ters of the STLC5432 using the fifteen parallel Interfacepins.
The use of TSO (Time Slot Zero) of DIN and
DOUT digital multiplex is defined by TSOE bit of
CR5 Register.
– If TSOE = 1, TSO on DIN multiplex Input is
used to transfer Sa4 to Sa8 bits to the line
and TSO on DOUT multiplexoutput isused to
transferSa4to Sa8bits fromthe line.
– If TSOE = 0, DOUT output is high impedance
during TSO, and DIN Input ignores data during TSO.
6.2 SerialMicroprocessor InterfaceMode
Fifteen parallel Interface pins are ignored, they
are tied to ground. In this mode, the time slots 0
of internal multiplexesare considered like a channel used by the devices and the control entity located in the system to communicate. This channel can be switched across a switching network
-or not- beforeits final destination.
The message is constituted by two bytes which
are transmitted on two consecutive Time Slots
Zero.
The bits of word are numbered 0 to 7, bit 0 is
transmittedfirst. Whenthe bit 7 ofa byte is 0,this
byte is the first word of the message.
The bit 6, of the first word, is R/W bit:
R/W = 1. Message to read a register whose address is designated by the following bits of the
word ( A 0/5).
11/46
STLC5432
R/W = 0. Message to write a register, addressed
by the bitsA0/5.
The bit 7 of following byte is 1 and the seven
D 0/6 bits are datato load into register.
To transfer one message,250µs are necessary.
Between two messages, the bits are 1 during
TS0. See fig.7 for details.
6.2.1 Reading of a register
The remote entity connected to the DIN and
DOUT multiplexes can request reading of a register if it transmits, during TSO, on DINthe address
bit A0/5,the R/Wbit at 1 and the last bit at0. The
following word, ending with 1, isnot takeninto account by the device. The device returns two
words during TSOof DOUT:
–The first word begins with 0, R/W bit is put to
1, the address bits of the register are transmitted.
–The second word begins with 1, then seven
databits of the registerare transmitted.
6.2.2 Writing of a register
The remote entity connected to the DIN and
DOUT multiplexes can request writing, then it
transmits the first bit at 0, thesecond bit at 0 and
the register address A 0/5 during TSO of DIN.
The following word begins with 1 and seven next
bits are Data to load into register. There is no acknowledge after writing. The writing messages
can be transmittedconsecutively.
6.3 Stand Alone Mode
Whatever the received frequency on LCLK pin
(2.048kHz or 4.096kHz), the device automatically
fits and always works at 2.048kHz.When SA pin
is at 1, the multiframe research is automatically
launched after each lost of frame and the device
provides the following alarmson DOUTduring the
Time Slot 0:
If LOF = 0, thenB = WER
LOFLoss of Frame
MFNRMultiFrame Not Recovered
ARABit Received
SKIPJump
F/SFast/Slow.
Bits definitions are the same than bits definitions of
ALR, CAR1 and CAR2 Registers. These bitsrepresent the curre nt stateof the line; DI Nis ignoredduringTime SlotZero.
7 RESET
During HardwareReset (Pin : SA/RESET):
– Alltheprogrammableregistersareconfigurated
withthe defaultvalue.
– Interrupts are not generated (INT PIN is high
impedance).
– The researchof Multiframeis alwaysactive.
AtSoftwareReset(addressing theResetregister):
– The registers are configuratedwith the default
value only.
AfterReset:
– The registers may be configurated with any
value.
8 INTERRUPT
All the bits of Alarm Registers generate an interrupt if they are not masked, exceptSLC (CAR2).
An alarm generates an interrupt if the mask bit
associated is 0. If a temporary event is detected
from the line. ALR Alarm Register, CAR1 and
CAR2 Complementary Alarm Registers can be
read after interruptor bypolling.
In this last case, these Alarm Registers can be
consideredlike particular statusregisters.
If a temporary event is detected from the line,
then the appropriate bit is put to one. After reading by the microprocessor, this bit is put to zero
until new event.
If a permanent state occurs, then the appropriate
bit is put to one. Afterreading by the microprocessor, this bit remains at one until disappearance of
the cause.
8.1 ParallelInterfaceMode
ALR Alarm Register, CAR1 and CAR2 Comple-
mentary Alarm Registers can be read after interrupt or by polling.
In this last case, these Alarm Registers can be
consideredlike particular statusregisters.
INT pin is put to 0 volt. The microprocessorreads
AlarmRegister.
For example, after reading the ALR and CAR1
registersthemicroprocessorcould act as follows:
– If SCbit (clock1 second)is 1, then the micro-
processorreads fault counter registers.
– If EXT1 bit (EXTENSION1) is 1, then the mi-
croprocessor reads Complementary Alarm
Register1.
– If TSOR (or Sa6R) bit of CAR1 is 1, the mi-
croprocessorreads TSORR (or Sa6RR) Register
12/46
STLC5432
8.2 Serial InterfaceMode
When an Alarm bit isput to 1 in ALR (Alarm Reg-
ister), this bit generates automatically the transmission of two bytesmessage onto DOUTduring
Time slot 0 with :
– The first bit of the first byte at 0; the second
bit is at 0 and after the address bits of Alarm
Register.
– Thedataof the ALR(Alarm Register) is the sec-
ondbyte.
NB : When TSOR or Sa6Rbit of the CAR1
(ComplementaryAlarm Register 1) is put to ”1”, it
generates a message in which there are address
and data of TSORR Register (if TSOR bit is not
masked), or address and data of Sa6RR register
(if Sa6R is not masked).
If the fouroccurencesto transmit a message are simultaneous,thepriorityorderis:
Priority1 :Transmissionof Alarm
Registerdataif an alarm
has beendetected.
Priority2 :Transmissionof Register
data afterreadingmessage
fromremoteentity.
Priority3 :Transmissionof TSORR
data afterloadingof this
register.
Priority4 :Transmissionof Sa6RR
data afterloadingof this
register.
8.3 Stand AloneMode
Interruptsare notgenerated.
AL0, AL1 pins indicate the current state of three
alarms : LOF, AIS, A bit received and DOUT pin
indicates the current state of nine alarms during
time-slotzero (SeePar. 6.3).