Figure27 : Clocks received and deliveredby the
Figure28 : SynchronizationSignals receivedby the
Figure29 : GCI Synchro Signal delivered by the
Figure30 : V* SynchronizationSignal delivered by the
Figure31 : Dynamic Memory Read Signals from the
Figure32 : Dynamic Memory Write Signalsfrom the
Figure33 : Static MemoryRead Signals from the
Figure34 : Static MemoryWrite Signals from the
3XTAL2OCrystal 2. If the internal crystal oscillator is used, the second crystal pin isapplied
7VCXO INO4VCXO input signal. This signal is compared to clock A(or B) selected inside the
8VCXO OUTI3VCXO error signal. This pin delivers the result of the comparison.
10CLOCKAI3Input Clock A (4096kHz or 8192kHz)
11CLOCKBI3Input Clock B (4096kHz or 8192kHz)
12FRAMEAI3Clock A at 8kHz
13FRAMEBO8Clock B at 8kHz
9DCLKO8Data Clock issuedfrom Input Clock A (or B). This clock is delivered by the circuit
17FSCGO8Frame synchronization for GCI at 8kHz. This clockis issued from FRAME A (or B).
18FSCV*I3Frame synchronization for V Star at 8kHz
16FSO8Frame synchronization.This signal synchronizesDIN0/7 and DOUT0/7.
19PSSI3Programmable synchronization Signal. The PS bit of connection memory is read
at 4096kHz(or2048kHz). DOUT0/7 aretransmittedon the risingedge of thissignal.
DIN0/7 are sampled on the fallingedge of this signal.
in real time.
= 32000kHz can be applied to this input (or one pin
Min.
-6
< ∆f < +50.10-6.
9/83
Page 10
STLC5464
I - PIN INFORMATION(continued)
I.2 - Pin Description (continued)
Pin N°SymbolTypeFunction
TIMEDIVISION MULTIPLEXES (TDM)
20DIN0I1TDM0Data Input 0
21DIN1I1TDM1Data Input 1
22DIN2I1TDM2Data Input 2
23DIN3I1TDM3Data Input 3
24DIN4I1TDM4Data Input 4
25DIN5I1TDM5Data Input 5
26DIN6I1TDM6Data Input 6
27DIN7I1TDM7Data Input 7
28DIN8I1TDM8Data Input 8
31DOUT0O8DTTDM0 Data Output0
32DOUT1O8DTTDM1 Data Output1
33DOUT2O8DTTDM2 Data Output2
34DOUT3O8DTTDM3 Data Output3
35DOUT4O8DTTDM4 Data Output4
36DOUT5O8DTTDM5 Data Output5
37DOUT6O8DTTDM6 Data Output6
38DOUT7O8DTTDM7 Data Output7
39NDISI1DOUT 0/7 Not Disable. When this pin is at 0V, the Data Output 0/7 are at high
5CBO8DContention Bus for CSMA/CR
6ECI1Echo. Wired at VSS if not used.
BOUDARY SCAN
40NTRSTI4Reset for boundary scan
41TMSI2Mode Selection for boundary scan
42TDII2Input Data for boundary scan
43TDOO4Output Datafor boundary scan
44TCKI4Clock for boundary scan
MICROPROCESSOR INTERFACE
58MOD0I11 1 0 1
59MOD1I11 1 0 0
60MOD2I10 1 1 0
1NRESETI3CircuitReset
47NCS0I3Chip Select 0 : internal registers are selected
48NCS1I3Chip Select 1 : external memory isselected
49INT0O4Interrupt generated by HDLC, RxC/Ior RxMON. Active high.
50INT1O4Interrupt1.This pin goes to 5V when the selected clock A (or B) has disappeared ;
4WDOO4Watch Dog Output.This pingoes to5V during1ms when the microprocessor has not
250µs after resetthis pin goesto 5V also if clock A is not present.
reset the Watch Dog during the programmable time.
10/83
Page 11
I - PIN INFORMATION(continued)
I.2 - Pin Description (continued)
Pin N°SymbolTypeFunction
MICROPROCESSOR INTERFACE (continued)
51NLDSI3Lower Data Strobe (68000)
52NUDSI3Bus High Enable (Intel) / Upper Data Strobe(68000)
53NDTACKO8DData Transfer Acknowledge (68000)
54READYO8TData TransferAcknowledge (Intel)
55NAS/ALEI3Address Strobe(Motorola) / Addresss Latch Enable(Intel)
56R/W / NWRI3Read/Write (Motorola) /Write(Intel)
57NDS/NRDI3Data Strobe (Motorola)/Read Data(Intel)
63A0/AD0I/OAddress bit 0 (Motorola) / Address/Data bit 0 (Intel)
64A1/AD1I/OAddress bit 1 (Motorola) / Address/Data bit 1 (Intel)
65A2/AD2I/OAddress bit 2 (Motorola) / Address/Data bit 2 (Intel)
66A3/AD3I/OAddress bit 3 (Motorola) / Address/Data bit 3 (Intel)
67A4/AD4I/OAddress bit 4 (Motorola) / Address/Data bit 4 (Intel)
68A5/AD5I/OAddress bit 5 (Motorola) / Address/Data bit 5 (Intel)
69A6/AD6I/OAddress bit 6 (Motorola) / Address/Data bit 6 (Intel)
70A7/AD7I/OAddress bit 7 (Motorola) / Address/Data bit 7 (Intel)
71A8/AD8I/OAddress bit 8 (Motorola) / Address/Data bit 8 (Intel)
72A9/AD9I/OAddress bit 9 (Motorola) / Address/Data bit 9 (Intel)
75A10/AD10I/OAddress bit 10 (Motorola) / Address/Data bit 10 (Intel)
76A11/AD11I/OAddress bit 11 (Motorola) / Address/Data bit 11 (Intel)
77A12/AD12I/OAddress bit 12 (Motorola) / Address/Data bit 12 (Intel)
78A13/AD13I/OAddress bit 13 (Motorola) / Address/Data bit 13 (Intel)
79A14/AD14I/OAddress bit14 (Motorola) / Address/Data bit 14 (Intel)
80A15/AD15I/OAddress bit15 (Motorola) / Address/Data bit 15 (Intel)
81A16I1Address bit16 (Motorola) / Address bit 16 (Intel)
82A17I1Address bit17 (Motorola) / Address bit 17 (Intel)
83A18I1Address bit18 (Motorola) / Address bit 18 (Intel)
84A19I1Address bit19 (Motorola) / Address bit 19 (Intel)
85A20/ADM15I/OAddress bit 20 from µP (input) / Address bit 15 forSRAM (output)
86A21/ADM16I/OAddress bit 21 from µP (input) / Address bit 16 forSRAM (output)
87A22/ADM17I/OAddress bit 22 fromµP (input) / Addressbit 17 for SRAM (output)
88A23/ADM18I/OAddress bit 23 from µP (input) / Address bit 18 forSRAM (output)
91DOI/OData bit 0 for µP ifnot multiplexed (seeNote 1).
92D1I/OData bit 1forµP if not multiplexed
93D2I/OData bit 2for µP if not multiplexed
94D3I/OData bit 3for µP if not multiplexed
95D4I/OData bit 4forµP if not multiplexed
96D5I/OData bit 5for µP if not multiplexed
97D6I/OData bit 6for µP if not multiplexed
98D7I/OData bit 7forµP if not multiplexed
99D8I/OData bit 8for µP if not multiplexed
I - PIN INFORMATION(continued)
I.2 - Pin Description (continued)
Pin N°SymbolTypeFunction
MICROPROCESSOR INTERFACE (continued)
100D9I/OData bit 9for µP if not multiplexed
101D10I/OData bit 10for µP if not multiplexed
102D11I/OData bit 11forµP if not multiplexed
103D12I/OData bit 12for µP if not multiplexed
104D13I/OData bit 13for µP if not multiplexed
105D14I/OData bit 14forµP if not multiplexed
106D15I/OData bit 15for µP if not multiplexed
MEMORY INTERFACE
109TRII3Token Ring Input (foruse
110TROO4Token Ring Output (for use
111NWEO4TWrite Enable for memory circuits
112NOEO4TControl Output Enable for memory circuits
113NRAS0/NCE0O4TRow Address Strobe Bank0 / Chip Enable0 for SRAM
114NCAS0/NCE1O4TColumn Address StrobeBank 0 / Chip Enable1 for SRAM
115NRAS1/NCE2O4TRow Address Strobe Bank1 / Chip Enable2 for SRAM
116NCAS1/NCE3O4TColumn Address StrobeBank 1 / Chip Enable 3 for SRAM
117NRAS2/NCE4O4TRow Address Strobe Bank2 / Chip Enable4 for SRAM
118NCE5O4TChip Enable 5 for SRAM
119NRAS3/NCE6O4TRow Address Strobe Bank3 / Chip Enable6 for SRAM
120NCE7O4TChip Enable 7 for SRAM
123ADM0O8TAddress bit 0for SRAM and DRAM
124ADM1O8TAddress bit 1for SRAM and DRAM
125ADM2O8TAddress bit 2for SRAM and DRAM
126ADM3O8TAddress bit 3for SRAM and DRAM
127ADM4O8TAddress bit 4for SRAM and DRAM
128ADM5O8TAddress bit 5for SRAM and DRAM
129ADM6O8TAddress bit 6for SRAM and DRAM
130ADM7O8TAddress bit 7for SRAM and DRAM
131ADM8O8TAddress bit 8for SRAM and DRAM
132ADM9O8TAddress bit 9for SRAM and DRAM
135ADM10O8TAddress bit 10 for SRAM and DRAM
136ADM11O8TAddress bit 11 for SRAM only
137ADM12O8TAddress bit 12 for SRAM only
138ADM13O8TAddress bit 13 for SRAM only
139ADM14O8TAddress bit 14 for SRAM only
I - PIN INFORMATION(continued)
I.2 - Pin Description (continued)
Pin N°SymbolTypeFunction
MEMORY INTERFACE (continued)
140DM0I/OMemory Data bit 0
141DM1I/OMemory Data bit 1
142DM2I/OMemory Data bit 2
143DM3I/OMemory Data bit 3
144DM4I/OMemory Data bit 4
147DM5I/OMemory Data bit 5
148DM6I/OMemory Data bit 6
149DM7I/OMemory Data bit 7
150DM8I/OMemory Data bit 8
151DM9I/OMemory Data bit 9
152DM10I/OMemory Data bit 10
153DM11I/OMemory Data bit 11
154DM12I/OMemory Data bit 12
155DM13I/OMemory Data bit 13
156DM14I/OMemory Data bit 14
157DM15I/OMemory Data bit 15
160NTESTI2Test Control. When this pin is at 0V each output is high impedance except XTAL2 Pin.
Thetop levelfunctionalities of
Figure1 : GeneralBlock Diagram
DIN5
DIN4
DIN3
25 24 23 22 21 20
GCI1
GCI0
DIN6
26
DIN7
27
DIN8
28
VCX IN
7
8
2
3
4
COUNTER
XTAL
WATCHDOG
32 Rx HDLC
with Adress
Recognition
32 Rx DMAC
VCX OUT
XTAL1
XTAL2
WDO
Multi-HDLC
DIN2
DIN1
DIN0
D7
V10
TIME SLOT ASSIGNER FOR MULTIHDLC
16 Rx
appearon the general block diagram.
0
SWITCHING MATRIX
1
n x64 kb/s
2
3
4
5
6
Pseudo
Random
Sequence
7
Analyser
GCI CHANNELDEFINITION
C/I
16 Rx
MON
Sequence
Generator
16 Tx
Pseudo
Random
C/I
NDIS
39 31 32 33 34
0
1
2
3
4
5
6
7
16 Tx
MON
DOUT0
DOUT1
32 Tx HDLC
with CSMA CR
for Content.Bus
32 Tx DMAC
DOUT2
DOUT3
DOUT4
35
DOUT537DOUT6
36
GCI0
GCI1
Rx
C/IRxMONTxC/ITxMON
INTERRUPT
CONTROLLER
DOUT712FRAME A10CLOCK A13FRAME B11CLOCK B
38
V10
To
Internal
Circuit
CLOCK
SELECTION
18
FSCV*
17
FSCG
9
DCLK
16 FS
5CB
6EC
49 INT0
50 INT1
µP Bus
µP
INTERFACE
Internal Bus
BUS ARBITRATION
Thereare :
- The switching matrix,
- The time slot assigner,
- The 32 HDLC transmitters with associated DMA
controllers,
- The 32 HDLC receivers with associated DMA
controllers,
- The 16 Command/Indicateand MonitorChannel
transmitters belonging to two General Component Interfaces(GCI),
RAM
INTERFACE
RAM
Bus
STLC5464
- The 16 Command/Indicateand Monitor Channel
receivers belonging to two General Component
Interfaces(GCI),
- The memoryinterface,
- The microprocessor interface,
- The bus arbitration,
- The clock selection and time synchronization
function,
- The interruptcontroller,
- The watchdog,
5464-02.EPS
14/83
Page 15
III - FUNCTIONAL DESCRIPTION
III.1- The SwitchingMatrix N x 64 KBits/S
III.1.1 - Function Description
The matrix performs a non-blockingswitch of 256
time slots from 8 Input Time Division Multiplex
(TDM) at 2 Mbit/sto 8 output Time Division Multiplex.A TDM is composedof 32 TimeSlots (TS)at
64 kbit/s. The matrix is designed to switch a 64
kbit/s channel (Variable delay mode) or an hyperchannel of data (Sequence integrity mode).So, it
will both provide minimum throughput switching
delayfor voiceapplicationsandtimeslotsequence
integrity for data applications on a per channel
basis.
The requirements of theSequence Integrity(n*64
kbit/s)mode are the following:
Allthe time slotsof agiveninputframemust beput
out during a same output frame.
The time slots of an hyperchannel(concatenation
of TS in the same TDM) are not crossed together
at output in different frames.
In variable delay mode, the time slot is put out as
soon as possible. (The delay is two or three time
slots minimum between input and output).
For test facilities, any time slot of an OutputTDM
(OTDM) can be internally looped back into the
sameInput TDM number(ITDM) at thesame time
slotnumber.
A Pseudo Random Sequence Generator and a
Pseudo Random Sequence Analyzer are implemented in thematrix. They allowthe generationa
sequence on a channel or on a hyperchannel,to
analyse it and verify its integrity after several
switching in the matrix or some passing of the
sequenceacross different boards.
The Frame Signal (FS) synchronises ITDM and
OTDMbut a programmabledelay or advancecan
beintroducedseparatelyoneachITDMand OTDM
(a half bit time, a bittime or two bit times).
An additionalpin (PSS) permitsthe generationof
a programmable signal composed of 256 bits per
frameat abit rate of 2048 kbit/s.
STLC5464
An externalpin (NDIS) asserts a high impedance
on all the TDM outputs of the matrix when active
(duringthe initialization of theboard for example).
III.1.2 - Architecture of the Matrix
The matrix is essentially composed of buffer data
memoriesand a connection memory.
Thereceivedserialdatais firstconvertedtoparallel
byaserialto parallelconverterandstoredconsecutively in a 256 position Buffer Data Memory (see
Figure 2 onPage 16).
To satisfy the Sequence Integrity (n*64 kbit/s) requirements,the data memoryis built with an even
memory, an odd memory and an output memory.
Twoconsecutiveframesare storedalternatively in
theoddandevenmemory.Duringthe timeaninput
frame is stored, the one previouslystoredis transferred into the output memory according to the
connectionmemoryswitchingorders.Aframelater,
the outputmemoryis readand datais convertedto
serial and transferred to the outputTDM.
III.1.3 - ConnectionFunction
Twotypes of connectionsare offered:
- unidirectionalconnection and
- bidirectionalconnection.
Anunidirectionalconnectionmakesonlytheswitch
ofaninputtimeslotthroughan outputonewhereas
abidirectionalconnectionestablishesthelinkin the
other direction too. So a doubleconnectioncan be
achieved by a single command (see Figure 3 on
Page 17).
III.1.4 - LoopBack Function
Any time slot of an Output TDM can be internally
looped back on the timeslot which has the same
TDM numberand the same TS number
(OTDMi,TSj) ----> (ITDMi, TSj).
In the case of a bidirectional connection, only the
one specified by the microprocessoris concerned
by the loop back (see Figure 4 onPage 17).
15/83
Page 16
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure2 :SwitchingMatrixData Path
III - FUNCTIONAL DESCRIPTION(continued)
Figure3 :Unidirectionaland Bidirectional Connections
STLC5464
Figure4 : LoopBack
OTSy, OTDMq
DOWN STREAM
OTSy, OTDMq
DOWN STREAM
OTSy, OTDMq
DOWN STREAM
ITSy, ITDMq
UP STREAM
DATA
MEMORY
n x 64kb/s
Unidirectional Connection
DATA
MEMORY
n x 64kb/s
DATA
MEMORY
n x 64kb/s
Bidirectional Connection
OTSV
DATA
MEMORY
n x 64kb/s
ITSx,ITDMp
DOWN STREAM
ITSx,ITDMp
DOWN STREAM
OTSx, OTDMp
UP STREAM
DOWN STREAM
p, q = 0 to7
x, y = 0 to 31
ITSx,ITDMp
5464-04.EPS
ITSy, ITDMq
UP STREAM
Loopback per channel relevant if bidirectional connection has been done.
III.1.5 - Delay through the Matrix
III.1.5.1- VariableDelay Mode
In the variable delay mode, the delay through the
matrixdependsontherelativepositionsof theinput
and output time slots in the frame.
So,some limits are fixed:
- the maximumdelay is a frame+ 2time slots,
- the minimum delay is programmable.
Three time slotsifIMTD = 1, inthis case n = 2 in
the fo rmula he reafter or two time slots if
IMTD = 0, in this case n = 1 inthe sameformula
(see Paragraph ”Switching Matrix Configuration
Reg SMCR (0C)H” on Page60).
Allthe possibilitiescan be rankedin three cases :
a) If OTSy> ITSx+ n then the variable delay is :
OTSy- ITSxTime slots
DATA
MEMORY
n x 64kb/s
Loop
OTSx, OTDMp
UP STREAM
p, q = 0 to 7
x, y = 0 to 31
b) IfITSx<OTSy< ITSx+ n thenthevariabledelay
is :
OTSy - ITSx+ 32 Timeslots
c) OTSy < ITSxthenthe variable delay is :
32 - (ITSx- OTSy)Time slots.
N.B. Ruleb) andrule c) are identical.
For n = 1 and n =2, see Figure 5 on Page 18.
III.1.5.2- SequenceIntegrity Mode
In the sequenceintegrity mode (SI = 1, bit located
in theConnectionMemory),theinputtimeslotsare
put out 2 frames later (see Figure 6 on Page 19).
Inthiscase,thedelayis definedbya singleexpression :
ConstantDelay = (32 - ITSx)+ 32 + OTSy
So, the delay in sequence integrity mode varies
from 33 to 95 time slots.
5464-05.EPS
17/83
Page 18
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure5 :VariableDelay through the matrixwith ITDM = 1
1) Case : If OTSy > ITSx + 2, then Variable Dela y is : OTSy - ITSx TimeSlots
Frame nFrame n + 1
Inpu t
Frame
Output
Frame
2) Case : If ITSx≤OTSy≤ITSx + 2, then Variable Delay is : OTSy - ITSx + 32 TimeSlots
Inpu t
Frame
Output
Frame
ITS0ITS31 ITS0ITS31
OTS0OTS31
ITS0ITS31 ITS0ITS31
OTS0OTS31
ITSx ITSx+1 ITSx+2
y>x+2
Variable Delay
(OTSy - ITSx)
Frame nFrame n + 1
ITSx ITSx+1 ITSx+2
x≤y≤x+2
OTSy
Variable Delay : OTSy - ITSx + 32 TimeSlots
OTSy
ITSx
32 TimeS lots
OTSy
3) Case : If OTSy < ITSx, then Variable Delay is : 32 - (ITSx - OTSy) Tim eSlots
Frame nFrame n + 1
Inpu t
Frame
Output
Frame
ITS0ITS31 ITS0ITS31
OTS0OTS31
OTSy
ITSx
y<x
Variable Delay : 32 - (ITSx - OTSy) Time Slots
32 TimeSlots
18/83
ITSx
OTSy
5464-06.EPS
Page 19
III - FUNCTIONAL DESCRIPTION(continued)
Figure6 :VariableDelay through the matrixwith ITDM = 0
1) Case : If OTSy > ITSx + 1, then Variable Delay is : OTSy - ITSx TimeSlots
Frame nFrame n + 1
STLC5464
Input
Frame
Output
Frame
2) Case : If ITSx ≤ OTSy≤ ITSx+ 1, then Variable Delayis : OTSy - ITSx + 32 TimeSlots
Input
Frame
Output
Frame
ITS0ITS31 ITS0ITS31
OTS0OTS31
ITS0ITS31 ITS0ITS31
OTS0OTS31
ITSx ITSx+1 ITSx+2
y>x+1
Variable Delay
(OTSy - ITSx)
ITSx ITSx+1 ITSx+2
x
≤ y ≤ x+1
OTSy
Frame nFrame n + 1
OTSy
Variable Delay : OTSy - ITSx + 32 TimeSlots
32 TimeSlots
ITSx
OTSy
3) Case : If OTSy < ITSx, then Variable Delay is : 32 - (ITSx- OTSy) TimeSlots
Frame nFrame n + 1
Input
Frame
Output
Frame
ITS0ITS31 ITS0ITS31
OTS0OTS31
OTSy
ITSx
y<x
Variable Delay : 32 - (ITSx- OTSy)TimeSlots
32 TimeSlots
ITSx
OTSy
5464-07.EPS
19/83
Page 20
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure7 :ConstantDelay through the matrix with SI = 1
Cons tant Delay = (32 -ITSx) + 32 + OTSy
ITS0
ITS:
OTS :
FramenFramen+1Framen+2
ITS31ITS0ITS31ITS0ITS31
Min. Constant Delay = 33TS
1+
Input Time Slot
Output TimeSlot
32 TimeSlots+ 0= 33
0≤x≤31
0≤y≤31
OTS0OTS 31
TimeSlots
20/83
Max. ConstantDelay = 95 TimeSlots
32 - 0+ 32+ 31= 95
(32 - ITSx)
+32+OTSy=Constant
OTS 31
TimeSlots
Delay
5464-08.EPS
Page 21
III - FUNCTIONAL DESCRIPTION(continued)
III.1.6 - ConnectionMemory
III.1.6.1- Description
Theconnection memoryis composedof 256 locations addressed by the numberof OTDM and TS
(8x32).
Eachlocation permits :
- toconnecteachinputtimeslotto one outputtime
slot (If two or more output time slots are connected to the same input time slot number,there
is broadcasting).
- toselectthe variabledelaymodeorthesequence
integritymode for anytime slot.
- to loop back an outputtime slot.In thiscase the
contentsof aninputtimeslot(ITSx,ITDMp)is the
same as the output time slot (OTSx,OTDMp).
- to output the contents of the corresponding connection memory instead of the data which has
been stored in data memory.
- to output the sequence of the pseudo random
sequence generator on an output time slot: a
pseudo random sequencecan be insertedin one
or severaltime slots (hyperchannel)of thesame
Output TDM; this insertion must be enabled by
the microprocessor in the configuration register
of the matrix.
- todefinethe sourceof a sequenceby the pseudo
random sequence analyzer: a pseudo random
sequence can be extracted from one or several
time slots (hyperchannel)of thesame InputTDM
and routedto the analyzer;this extractioncanbe
enabled by the microprocessorin the configuration register of the matrix (SMCR).
- to assert a high impedance level on an output
time slot (disconnection).
The internal HDLC controller can run up to 32
channels in a conventional HDLC mode or in a
transparent (non-HDLC) mode (configurable per
channel).
Eachchannel bitrateis programmablefrom4kbit/s
to 64kbit/s.All the configurationsare alsopossible
from 32 channels (from 4 to 64 kbit/s) to one
channelat 2 Mbit/s.
Inreception,theHDLCtime slotscandirectlycome
from the input TDM DIN8 (direct HDLC Input) or
from any otherTDM inputafter switching towards
the output 7 of the matrix (configurable per time
slot).
In transmission,the HDLC frames are sent on the
output DOUT6 and on theoutput CB (with or without contention mechanism), or are switched towards the other TDM output via the input 7 of the
matrix (see Figure 8 on Page 22 and Paragraph
III.2.2on Page23).
III.2.1.1- Formatof the HDLC Frame
Theformatof anHDLCframeisthesameinreceive
and transmitdirectionand shownhere after.
III.2.1.2- Composition of an HDLC Frame
Opening Flag
Address Field (first byte)
Address Field (second byte)
Command Field (first byte)
Command Field (second byte)
Data (first byte)
III.1.6.2- Access to ConnectionMemory
Supposingthat theSwitchingMatrix Configuration
Register(SMCR) has been already written by the
microprocessor, it is possibleto accessto the connectionmemoryfrom microprocessor with the help
of two registers :
- ConnectionMemory Data Register(CMDR) and
- ConnectionMemory Address Register (CMAR).
III.1.6.3- Access to Data Memory
To extract the contents of the data memory it is
possibleto readthe data memory from microprocessorwith the help of the two registers :
- ConnectionMemory Data Register(CMDR) and
Data (optional)
Data (last byte)
FCS (first byte)
FCS (second byte)
Closing Flag
- OpeningFlag
- One or two bytes for address recognition(reception) and insertion(transmission)
III - FUNCTIONAL DESCRIPTION(continued)
Figure8 :HDLC and DMAControllerBlock Diagram
From Output 7
of the Matrix
From Output 6
of the Matrix
Direct HDLC Input
DIN 8
To Input 7 ofthe Matrix
TIME SLOT AS SIGNER
DOUT 6
Direct HDLC Output
Contention
Bus
P
µ
INTERFACE
32 Rx HDLC
32 ADDRES S
RECOGNITION
32 Rx FIFO’s
32 Rx DMAC32 Rx DMAC
32 CSMA-CR
32 Tx HDLC
32 Tx FIFO’s
Echo
RAM
INTERFACE
5464-09.EPS
22/83
Page 23
III - FUNCTIONAL DESCRIPTION(continued)
III.2.1.3- Descriptionand Functions of the
HDLCBytes
- FLAG
The binarysequence01111110marks thebeginning and the end of the HDLCFrame.
Note : In reception,three possibleflag configurations are allowed and correctlydetected :
- two normal consecutiveflags :
...0111111001111110...
- two consecutiveflags with a ”0” common :
...011111101111110...
- a global common flag : ...01111110...
this flag is the closing flag for the current frame
and theopening flagfor the nextframe
- ABORT
The binary sequence 1111111 marks an Abort
command.
Inreception,sevenconsecutive1’s,insidea message, are detected as an abort command and
generatesan interrupt to the host.
In transmit direction, an abort is sent upon command of the micro-processor. No ending flag is
expected after the abort command.
- BITSTUFFING AND UNSTUFFING
This operation is done to avoid the confusion of
a databyte with a flag.
In transmission, if fiveconsecutive1’s appear in
theserialstreambeingtransmitted,azero isautomaticallyinserted(bit stuffing)after hefifth ”1”.
In reception, if fiveconsecutive”1” followed by a
zero are received, the ”0” is assumed to have
been inserted and is automatically deleted (bit
unstuffing).
- FRAMECHECK SEQUENCE
TheFrameCheckSequenceiscalculatedaccordi ng
totherecommendationQ921oftheCCITT.
- ADDRESS RECOGNITION
In the frame, one or two bytes are transmittedto
indicate the destinationof the message.
Two types of addressesare possible :
- a specific destinationaddress
- a broadcast address.
In reception, the controller compares the receive
addressesto internalregisters,whichcontainthe
addressmessage.4bitsinthe receivecommand
register (HRCR) inform the receiver of which
registers,it hasto takeinto accountfor the comparison.The receiver compares thetwo address
bytes of the message to the specific board address and the broadcast address. Upon an address match, the address and the datafollowing
are writtento the data buffers;upon an address
mismatch,the frame is ignored.So, it authorizes
the filteringof the messages.Ifno comparisonis
STLC5464
specified, each frame is received whatever its
addressfield.
In Transmission, the controller sends the frame including the destinati on or broadcastaddresses .
III.2.2 - CSMA/CRCapability
An HDLC channel can come in and goout by any
TDM input on the matrix. For time constraints,
direct HDLC Accessis achievedby the input TDM
(DIN 8) and theoutputTDM (DOUT6).
Intransmission,a timeslotofaTDMcanbe shared
between different sources in Multi-point to point
configuration(differentsubscriber’s boards for example). The arbitration system is the CSMA/CR
(Carrier Sense Multiple access with Contention
Resolution).
The contention is resolved by a bus connectedto
the CB pin (ContentionBus).This bus is a 2Mbit/s
wire line commonto allthe potentialsources.
Multi-HDLC
If a
thedatato transmitis sentsimultaneouslyontheCB
lineandtheoutputTDM. Theresultofthe contention
isreadbackontheEcholine.Ifacollisionisdetected,
the transmission is stoppedimmediately. Acontentionona bitbasisisso achieved. Each message to
be sentwithCSMA/CRhas a priorityclass(PRI= 8,
10) indicatedby theTransmit Descriptor and some
rulesare implementedto arbitratethe accessto the
line. The CSMA/CR Algorithm is given. When a
requestto send a message occurs, the transmitterdetermines if thesharedchannelisfree.The
Multi-HDLC
consecutive ”1” are detected (C dependingon the
message’spriority), the
its message. Each bit sent is sampled back and
compared with the original value to send. If a bit is
different, the transmission is instantaneously
stopped (before the end of this bit time) and will
restartas soonasthe
channel is freewithout interruptingthe microprocessor.
After a successful transmission of a message, a
programmablepenaltyPEN(1or2) isappliedtothe
transmitter (see ParagraphHDLC Transmit CommandRegisteron Page65).It guaranteesthat the
same transmitterwill nottakethe busanothertime
before a transmitterwhich has to send a message
of same priority.
In case of a collision, the frame which has been
abortedis automaticallyretransmittedby theDMA
controller without warning the microprocessor of
this collision. The frame can be located in several
buffers in external memory. The collision can be
detectedfrom the second bit of theopeningframe
to thelast but one bitof the closingframe.
hasobtained the accessto the bus,
listens to the Echo line. If C or more
Multi-HDLC
Multi-HDLC
beginsto send
willdetectthatthe
23/83
Page 24
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
III.2.3 - TimeSlot AssignerMemory
Each HDLC channel is bidirectional and configurateby the Time Slot Assigner(TSA).
TheTSAis amemoryof 32 words(oneper physical
TimeSlot)whereall ofthe 32inputand outputtime
slots of the HDLC controllerscan be associated
to logical HDLC channels. Super channels are
created by assigning the same logical channel
numberto severalphysicaltime slots.
The following features are configurate for each
HDLC time slot :
- Time slot used or not
- Onelogicalchannel number
- Itssource : (DIN 8 or theoutput 7 of thematrix)
- Its bit rate and concerned bits (4kbit/s to
64kbit/s). 4kbit/s correspondto one bit transmitted each two frames. This bit mustbe present in
two consecutive frames in reception, and repeated twice in transmission.
- Itsdestination :
- direct output on DOUT6
- direct output on DOUT6and on the Contention
Bus(CB)
- on another OTDM via input7 of the matrix and
on theContentionBus (CB)
III.2.4 - Data Storage Structure
Dataassociatedwitheach Rx andTx HDLCchannelisstoredinexternalmemory;Thedatatransfers
between the HDLC controllers and memory are
ensuredby32 DMAC(DirectMemoryAccessController)in receptionand 32 DMAC in transmission.
The storage structure chosen in both directionsis
composed of one circular queue of buffers per
channel. In such a queue, each data buffer is
pointedto by a Descriptorlocatedinexternalmemory too. The main information contained in the
Descriptor is the address of the Data Buffer, its
length and the address of the next Descriptor; so
the descriptors can belinked together.
This structure allows to :
- Store receive frames of variable and unknown
length
- Readtransmitframes stored in external memory
by thehost
- Easilyperform the frame relay function.
III.2.4.1- Reception
At the initialization of the application, the host has
to prepare an Initialization Block memory, which
containsthe firstreceive buffer descriptoraddress
for eachchannel, and the receivecircularqueues.
At the opening of a receive channel, the DMA
controller reads the address of the first buffer descriptorcorrespondingtothischannelin the initialization Block. Then, the data transfer can occur
withoutinterventionof the processor(see Figure 9
on Page 25).
Anew HDLCframe always begins in a new buffer.
A long frame can be splitbetween severalbuffers
if thebuffersize is not sufficient.All the information
concerning the frame and its location in the
circular queue is included in the Receive Buffer
Descriptor:
- The ReceiveBufferAddress(RBA),
- The size of thereceive buffer (SOB),
- Thenumberof byteswrittenintothebuffer(NBR),
- The NextReceive DescriptorAddress (NRDA),
- The status concerningthe receive frame,
- The controlof the queue.
III.2.4.2- Transmission
In transmission, the data is managed by a similar
structure as in reception (see Figure 10 on
Page 25).
By thesame way, a frame can be split up between
consecutivetransmit buffers.
The main information contained in the Transmit
Descriptorare :
The principle of the frame relay is to transmit a
frame which has been received without treatment.
A new heading is just added. This will be easily
achieved,takingintoaccountthat the queue structure allows the transmission of a frame split between several buffers.
24/83
Page 25
III - FUNCTIONAL DESCRIPTION(continued)
Figure9 :Structureof the Receive Circular Queue
Initialization Block
up to 32 channels
RDA0
RDA1
RDA31
Initial Receive
Descriptor
NRDA
RBA
RECEIVE
DMA
CONTROLLER
Receive
Descriptor 2
NRDA
RBA
STLC5464
Receive
Buffer 1
Receive
Descriptorn
NRDA
RBA
Receive
Buffer n
One receive circular queue by channel
Figure10 : Structureof the TransmitCircular Queue
Initialization Block
up to 32 channels
TDA0
TDA1
TDA31
Initial Transmit
Descriptor
NTDA
TBA
Receive
Buffer 3
TRANSMIT
DMA
CONTROLLER
Receive
Buffer 2
Receive
Descriptor3
NRDA
RBA
Transmit
Descriptor 2
NTDA
TBA
5464-10.EPS
NTDA
TBA
Transmit
Descriptor n
Transmit
Buffer n
Transmit
Buffer 1
Transmit
Buffer 3
One transmit circular queue by channel
Transmit
Buffer 2
Transmit
Descriptor3
NTDA
TBA
5464-11.EPS
25/83
Page 26
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
III.2.5 - TransparentModes
Inthe transparentmode, the
data in a completely transparent manner without
performing any bit manipulationor Flag insertion.
Thetransparentmode is per byte function.
Two transparentmodes are offered :
- First mode : for the receive channels, the
Multi-HDLC
into theexternal memoryas specifiedin thecurrentreceivedescriptorwithouttakingintoaccount
the Fill CharacterRegister.
- Secondmode: theFillCharac t erRegister specifies
the”fill character ”whic hmustbetakeninto account.
Inreception,the”fillcharacter”willnotbetransferred
totheexternalmemory.Thedetectionof”Fillcharacter”marks the end ofa messageand generatesan
interruptifBINT=1(seeTransmitDescriptoronPage
As for the HDLC mode the correspondence
between the physical time slot and the logical
channel is fully defined in the Time Slot Assigner
memory(Time slot usedor notused,logical channel number,source, destination).
III.2.6 - Command of theHDLC Channels
The microprocessor is able to controleach HDLC
receive and transmit channel. Some of the commands are specific to the transmission or the receptionbut othersare identical.
III.2.6.1- Reception Control
Theconfigurationof the controlleroperatingmode
is: HDLC mode or Transparentmode.
The control of the controller: START, HALT, CONTINUE,ABORT.
- START : On a start command, the RxDMA controller reads the address of thefirst descriptor in
the initialization block memory and is ready to
receive a frame.
- HALT: For overloading reasons,the microprocessor can decide to halt the reception. The DMA
controllerfinishes transferof the currentframe to
externalmemory and stops. The channel can be
restartedon CONTINUE command.
- CONTINUE : The reception restarts in the next
descriptor.
- ABORT:On an abortcommand, the reception is
instantaneously stopped. The channel can be
restartedon a STARTor CONTINUE command.
Receptionof FLAG(01111110)or IDLE(11111111)
betweenFrames.
Address recognition. The microprocessor defines
continuously writes received bytes
Multi-HDLC
transmits
theaddressesthatthe Rx controllerhastotakeinto
account.
In transparent mode: ”fill character” register selected or not.
III.2.6.2- TransmissionControl
The configurationof the controlleroperatingmode
is : HDLC mode or Transparentmode.
The control of the controller : START,HALT,CONTINUE,ABORT.
- START:Ona startcommand,theTxDMAcontroller reads the addressof the first descriptor in the
initializationblockmemoryandtriesto transmitthe
firstframe if End Of Queueis not at ”1”.
- HALT: The transmitter finishes to send the currentframeand stops.Thechannel canbe restarted ona CONTINUE command.
- CONTINUE: if the CONTINUEcommand occurs
after HALTcommand, the HDLC Transmitter restarts by transmitting the next bufferassociated
to the next descriptor.
If the CONTINUE command occurs after an
ABORT command which has occurredduring a
frame,theHDLC transmitterrestartsby transmittingthe framewhich hasbeeneffectivelyaborted
by the microprocessor.
- ABORT:On an abortcommand,the transmission
of the current frame is instantaneouslystopped,
an ABORT sequence”1111111” is sent, followed
by IDLE or FLAG bytes. The channel can be
restartedon a STARTor CONTINUEcommand.
Transmission of FLAG (01111110) or IDLE
(111111111)between frames can be selected.
CRC can be generated or not. If the CRC is not
generated by the HDLC Controller, it mustbe located in the sharedmemory.
In transparentmode: ”fill character”register canbe
selectedor not.
III.3 - C/I and Monitor
III.3.1 - FunctionDescription
Multi-HDLC
The
links. The TDM DIN/DOUT 4 and 5 are internally
connected to the CI and Monitor receivers/transmitters.Sincethecontrollershandleupto 16CIand
16 Monitor channels simultaneously, the
can manage up to 16 level1 circuits.
HDLC
The
Multi-HDLC
monitor channels based on the following protocols :
- ISDN V* protocol
- ISDN GCI protocol
- Analog GCI protocol.
is ableto operateboth GCIandV*
Multi-
canbeused tosupporttheCI and
26/83
Page 27
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
III.3.2 - GCI and V* Protocol
ATDM can carry 8 GCI channels or V* channels.The monitor and S/C bytes always stand at thesame
positionin the TDM in both cases.
CGI Channel 0
TS0TS1TS2TS3TS28TS29TS30TS31
B1B2MONS/CB1B2MONS/C
CGI Channel 1 to Channel 6
CGI Channel 7
The GCI or V* channelsare composedof 4 bytes
and have both the same general structure.
B1B2MONS/C
B1,B2 : Bytes of data. Those bytes are not
affectedbythemonitorand CIprotocols.
MON: Mo nitor channel for opera tion and
maintenanceinformation.
S/C: Signallingand control information.
Only Monitor handshakes and S/C bytes are dif-
ferentin the threeprotocols :
ISDN V* S/C byte
DC/I 4 bitsTE
ISDN GCI S/C byte
DC/I 4 bitsAE
AnalogGCI S/C byte
C/I 6 bitsAE
CI : The Command/Indicate channel is used for
activation/deactivation of lines and control
functions.
D : These 2 bits carry the 16 kbit/s ISDN basic
accessD channel.
In GCI protocol, A and E are the handshakebits
and are used to controlthe transferof information
on monitor channels.TheE bit indicates the transfer of eachnew byte in one direction and the A bit
acknowledgesthis byte transferin the reverse direction.
InV*protocol,thereisn’tanyhandshakemode.The
transmitter has only to mark the validity of the
Monitorbyte by positioningthe E bit (Tis not used
and is forcedto”1”).
For more information about the GCI and V*, refer
to the General Interface Circuit Specification (issue1.0, march 1989) and the France Telecom
Specification about ISDN Basic Access second
generation(November 1990).
III.3.3 - Structureof the Treatment
GCI/V* TDM’s are connected to DIN 4 and DIN 5.
The D channels are switched through the matrix
towards the output 7 and the HDLC receiver. The
Monitorand S/C bytesare multiplexedand sent to
the CI and Monitor receivers (see Figure 11 on
Page 28).
In transmission, the S/C and Monitor bytes are
recombined by multiplexing the information providedbythe Monitor,C/I andtheHDLCTransmitter.
Likeinreception,theDchannelisswitchedthrough
the matrix.
III.3.4 - CIand Monitor Channel Configuration
Monitorchannel data is locatedin a timeslot ; the
CI and monitorhandshakebits are in the nexttime
slot.
Each channel can be defined independently. A
table with all the possible configurations is presentedhereafter (Table13).
Table13 : C/I and MON Channel Configuration
C/I validated or not
Monitor validated
or not
Note : A mix of V* and GCI monitoring can be performed for two
distinct channels in the same application.
CI For analog subscriber (6 bits)
CI For ISDN subscriber (4 bits)
Monitor V*
Monitor GCI
III.3.5- CI and Monitor Transmission/Reception
Command
The reception of C/I and Monitor messages are
managedby two interrupt queues.
In transmission, a transmit command register is
implementedfor each C/Iand monitorchannel(16
C/I transmit command registers and 16 Monitor
transmit command registers). Those registers are
accessible in read and write modes by the microprocessor.
27/83
Page 28
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure11 : D,C/I and Monitor ChannelPath
circuitcanbe controlledbysevera
typesof microprocessors(ST9,Intel/Motorola8 or
16 data bits interfaces) suchas :
- ST9family
- INTEL80C1888 bits
- INTEL80C18616 bits
- MOTOROLA68000 16 bits
During the initialization of the
Multi-HDLC
circuit,
themicroprocessorinterfaceisinformedof thetype
ofmicroprocessorthatisconnectedby polarisation
of three external pinsMOD 0/2).
TwochipSelect(CS0/1)pinsare provided.CS0will
select the internal registers and CS1 the external
memory.
0
16 Tx
C/I
1
2
3
4
5
6
7
D Cha nnels
to Rx HDLC
16 Tx
MON
SWITCHING
MATRIX
Internal Bus
Table14 : MicroprocessorInterfaceSelection
MOD2
MOD1
Pin
01180C188
11180C186
10068000
000Reserved
001ST9
Pin
MOD0
Pin
Microprocessor
III.4.2 - Definitionof the Interface for the different microprocessors
Thesignalsconnectedtothe microprocessorinterface are presentedon thefollowing figures for the
different microprocessor (see Figures 12, 13, 14,
15, 16 and 17 on Pages 29-30).
5464-12.EPS
28/83
Page 29
III - FUNCTIONAL DESCRIPTION(continued)
Figure12 :
Multi-HDLC
connectedto µP with multiplexedbuses
MULTI-HDLC
PST9
µ
IINTEL
MOTOROLA
8/16 BITS
Figure13 :
Multi-HDLC
Multiplex
Address /Data Bus
connectedto µP with non-multiplexedbuses
P
µ
INTERFACE
Internal Bus
BUS ARBITRATION
MULTI-HDLC
µP
IINTEL
MOTOROLA
8/16 BITS
Figure14 : MicroprocessorInterfacefor INTEL80C188
Address Bus
Data Bus
µP
INTERFACE
Internal Bus
BUS ARBITRATION
RAM
INTERFACE
RAM
INTERFACE
Address Bus
Data Bus
Address Bus
Data Bus
STLC5464
STATIC or
DYNAMIC RAM
(organize d
by 16 bits)
5464-13.EPS
STATIC or
DYNAMICRAM
(organized
by 16bits)
5464-14.EPS
INT0/1WDO
INTEL
80C188
ARDY
NWR
NRD
ALE
A8/19
AD0/7
Figure15 : MicroprocessorInterfacefor INTEL80C186
INT0/1WDO
NBHE
INTEL
80C186
ARDY
NWR
NRD
ALE
A16/19
AD0/15
NRESET
CS0/1
NRESET
CS0/1
P
µ
INTERFACE
P
µ
INTERFACE
5464-15.EPS
5464-16.EPS
29/83
Page 30
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure16 : MicroprocessorInterfacefor MOTOROLA68000
INT0/1WDO
NRESET
CS0/1
NDTACK
MOTOROLA
68000
Figure17 : MicroprocessorInterfacefor ST9
INT0/1WDO
R/NW
NUDS
NLDS
NAS
A1/23
AD0/15
NRESET
CS0/1
P
µ
INTERFACE
5464-15.EPS
ST9
WAIT
R/NW
NDS
NAS
A8/15
AD0/7
P
µ
INTERFACE
5464-19.EPS
30/83
Page 31
III - FUNCTIONAL DESCRIPTION(continued)
III.5- MemoryInterface
III.5.1 - Function Description
The memory interface allows the connection of
Static or Dynamic RAM. The memory space addressableinthetwo configurationsisnotthesame.
Inthe caseof dynamicmemory(DRAM),the memory interface will address up to 16 Megabytes.In
caseofstaticmemory(SRAM)only1Megabytewill
be addressed. The memory location is always organizedin 16 bits.
The memory is shared between the
Multi-HDLC
andthemicroprocessor.Theaccesstothe memory
is arbitrated by an internal function of the circuit:
the bus arbitration.
STLC5464
Example1: iftheapplicationrequires16bitmProcessorand 1 MegawordSharedmemorysize, three
capabilitiesare offered:
- 4 DRAM Circuits (256Kx16) or
- 4 DRAM Circuits (1Mx4) or
- 1 DRAM Circuit (1Mx16).
Example2 :if the applicationrequires8 bitmProc-
essorand 1 MegabyteSharedmemory size, three
capabilitiesare offered:
- 2 DRAM Circuits (256Kx16) or
- 8 SRAMCircuits (128Kx8)or
- 2 SRAMCircuits (512kx8).
Example3 : for small applicationsit is possible to
connect 2 SRAM Circuits (128Kx8) to obtain 256
Kilobytesshared memory.
III.5.2 - Choice of memoryversus microprocessorand capacityrequired
The memory interface depends on the memory
chips which are connected. As the memory chips
will be chosen versus the microprocessorand the
wanted memory space, the Table 22 presentsthe
differentconfigurations.
III.5.3 - MemoryCycle
For SRAM and DRAM, the different cycles are
programmable(see Paragraph”MemoryInterface
ConfigurationRegister MICR (32)H” on Page 71).
Each cycle is equal to : px 1/f
with f the frequencyof signalappliedto the Crystal
1 input and p selected by the user.
The SRAM space achieves 1 Mbyte max. It is
always organized in 16 bits. The structure of the
memoryplane is shownin the following figures.
Becauseof thedifferent chips usable, 19 address
wires and 8 NCE (Chip Enable) are necessary to
addressthe 1 Mbyte.TheNCEselectsthe Mostor
LeastSignificantByteversusthe valueof A0 delivered by theµP and the location of chip in the
memoryspace.
III.5.4.1- 18K x n SRAM
The Address bits delivered by the
Multi-HDLC
128Kx nSRAM circuits are :
ADM0/14 and ADM15/16 (17 bits) corresponding
withA1/17 deliveredby the µP.
Figure18 : 128K x 8 SRAM Circuit Memory
Organization
128K x 16
NCE 7
NCE 5
NCE 3
NCE 1
7
5
3
1
NCE 6
NCE 4
NCE 2
NCE 0
6
4
2
0
for
128K x 8
Figure19 : 512K x 8 SRAM CircuitMemory
Organization
512K x 16
512K x 8
NCE1
1
NCE0
DM8/15DM0/7
0
III.5.5 - DRAM Interface
In DRAM, thememoryspacecan achieveup to 16
megabytes organized by 16 bits. Eleven address
wires, four NRAS and two NCAS are needed to
select any byte in the memory. One NRAS signal
selects1 bankof 4andtheNCASsignalsselectthe
bytes concernedby the transfer (1 or 2selectinga
byte or a word). The DRAM memory interface is
then defined. The ”RAS only” refresh cycles will
refresh all memory locations. The refresh is programmable. The frequency of the refresh is fixed
by the memoryrequirements.
III.5.5.1- 256Kx n DRAM Signals
SignalsA20A19A0 or equiv.
NRAS311
NRAS210
NRAS101
NRAS000
NCAS11
NCAS00
The Address bits delivered by the
Multi-HDLC
for
256K x n DRAMcircuitsare :
ADM0/8(2 x9 = 18bits)correspondingwithA1/18
deliveredby theµP.
Figure 20 : 256Kx 16 DRAMCircuit Organization
CAS1CAS0
256K x 16
RAS3
7
6
5464-21.EPS
DM8/15DM0/7
III.5.4.2- 512K x n SRAM
SignalsA0 or equiv.
NCE11
NCE00
The Address bits delivered by the
Multi-HDLC
for
512Kx nSRAM circuits are :
ADM0/14 and ADM15/18 (19 bits) corresponding
withA1/19 deliveredby the µP.
32/83
5464-20.EPS
RAS2
RAS1
RAS0
ADM0/8, NWE, NOE a re connecte d to e a ch circuit.
5
3
1
DM8/15DM0/7
4
2
0
5464-22.EPS
Page 33
III - FUNCTIONAL DESCRIPTION(continued)
III.5.5.2- 1M x nDRAM Signals
STLC5464
Figure22 : 4Mx 16 DRAM CircuitOrganization
SignalsA22A20A0 or equiv.
NRAS311
NRAS210
NRAS101
NRAS000
NCAS11
NCAS00
The Address bits delivered by the
Multi-HDLC
for
1M x n DRAM circuits are :
ADM0/9(2x10 =18bits)correspondingwithA1/20
deliveredby theµP.
Figure21 : 1Mx 16 DRAM Circuit Organization
NCAS1NCAS0
1M x 16
NRAS3
NRAS2
NRAS1
NRAS0
ADM0/9, NWE, NOE are connected to e a c h circuit
7
5
3
1
DM8/15DM0/7
6
4
2
0
NCAS1NCAS0
4M x 16
NRAS1
NRAS0
ADM0/10, NWE, NOE a re connected to e a ch circuit
3
1
DM8/15DM0/7
2
0
III.6 - Bus Arbitration
The Bus arbitration function arbitrates the access
to the bus between different entities of thecircuit.
Those entities which can call for the bus are the
following:
- The receive DMAcontroller,
- The microprocessor,
- The transmit DMA controller,
- The Interrupt controller,
- The memory interfacefor refreshing the DRAM.
This list gives the memory access priorities per
default.
If the treatmentof morethan 32 HDLC channelsis
required by the application, it is possible to chain
several
Multi-HDLC
components.Thatis done with
two external pins (TRI, TRO) and a token ring
system.
The TRI, TRO signals are managed by the bus
arbitration function too. When a chip has finished
its tasks,it sendsa pulse of 30ns to thenext chip.
Figure 23 : Chainof n
5464-23.EPS
Multi-HDLC
Components
5464-24.EPS
III.5.5.3- 4M x nDRAM Signals
SignalsA23A0 or equiv.
NRAS11
NRAS00
NCAS11
NCAS00
The Address bits delivered by the
Multi-HDLC
for
4M x n DRAM circuits are :
ADM0/10 (2 x 11 = 22 bits) corresponding with
A1/22delivered by theµP.
TRI
P
µ
P BusRAMBus
µ
MHDLC 0
TRO
TRI
MHDLC 1
TRO
TRI
MHDLC n
TRO
RAM
5464-25.EPS
33/83
Page 34
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
III.7- Clock Selectionand TimeSynchronization
III.7.1 - Clock DistributionSelection
and Supervision
Two clock distributions are available : Clock at
4.096MHzor8.192MHzand asynchronizationsignal at 8kHz. The component has to select oneof
these two distributions and to check its integrity
(seeFigure25 andParagraph”GeneralConfigurationRegister GCR (02)H”on Page 57).
DCLK, FSCGCI and FSCV* are output on three
externalpins ofthe
selected between Clock A and Clock B. FSCGCI
and FSCV* are functions of the selected distribution and respect the GCI and V* frame synchronizationspecifications.
Thesupervisionof theclockdistributionconsists of
verifyingits availability. The detectionof the clock
absence is done in less than 250µs. In case the
clock is absent, an interrupt is generated with a
4kHz recurrence. Then the clock distribution is
switched by the microprocessor. This change of
clockoccurs on a falling edge of thenew selected
distribution.
Figure24 : MHDLCClock Generation
Multi-HDLC
. DCLKis the clock
Dependingon the applications,three different signals of synchronization (GCI, V* or Sy) can be
provided to the component. The clock A/B frequency can be a 4096 or 8192kHz clock. The
componentis informed of thesynchronizationand
clocksthat are connectedby software.Thetimings
of thedifferentsynchronizationare given Page38.
III.7.2 - VCXOFrequency Synchronization
An external VCXOcan be used to providea clock
to thetransmissioncomponents.Thisclock is controlled by the main clock distribution (Clock A or
ClockB at 4096kHz). As the clock of the transmission componentis 15360or 16384kHz,a configurable functionis necessary.
The VCXO frequencyis divided by P (30 or32) to
provide a common sub-multiple (512kHz) of the
reference frequency CLOCKA or CLOCKB
(4096kHz). The comparison of these two signals
gives an error signal which commands the VCXO.
Twoexternal pinsare needed to performthis function : VCXO-INand VCXO-OUT(seeFigure 26 on
Page 35).
REF. CLOCKRESETINT1
(CSD)
Clock Lack
Detection
from 250µs
HCLClock
Frame
Clock
CLOCK
ADAPTATION
SYN0SYN1
To the internal
FSCGCI
DCLK
MHDLC
FRAME A
CLOCKAFS CV*
CLOCK SELECTION
FRAME B
CLOCKB
SelectA or B
(SELB)
At RESET
FRAME A and CLOCK A
are selected
Supervision
Deactivation
AorB
Selected
(BSEL)
GENERAL CONFIGURATION REGISTER (GCR)
5464-26.EPS
34/83
Page 35
III - FUNCTIONAL DESCRIPTION(continued)
Figure25 : VCXOFrequencySynchronization
STLC5464
VCXO
f = 15360kHz
or 16384kHz
VCXO IN
iff = 153 60kHz, p = 30
iff = 163 84kHz, p = 32
7
4096kHz
III.8- InterruptController
III.8.1 - Description
Threeexternal pins are used to managethe interruptsgenerated by the
Multi-HDLC
. The interrupts
have three main sources :
- The operating interrupts generatedby the HDLC
receivers/transmitters, the CI receivers and the
monitor transmitters/receivers. INT0 Pin is reserved for this use.
- The interrupt generatedbyan abnormalworking of
theclockdistribution.INT1Pinisreservedforthisuse.
- The non-activity of the microprocessor (Watch-
dog). WDO Pin is reservedfor thisuse.
III.8.2 - Operating Interrupts (INT0 Pin)
Thereare five mainsourcesof operatinginterrupts
in the
Multi-HDLC
circuit:
- The HDLC receiver,
- The HDLC transmitter,
- The CI receiver,
- The Monitor receiver,
- The Monitor transmitter.
When an interrupt is generated by one of these
functions,the interrupt controller :
- Collectsall the informationabout the reasons of
this interrupt,
- Storesthem in externalmemory,
- Informs the microprocessor by positioning the
INT0 pin in the high level.
Threeinterruptqueuesarebuiltinexternalmemory
to store the informationabout the interrupts :
- Asinglequeuefor the HDLCreceiversandtrans-
mitters,
- Onefor the CI receivers,
- Onefor the monitor receivers.
The microprocessor takes the interrupts into ac-
count by reading the Interrupt Register (IR) of the
interruptcontroller.
LOW P ASS
FILTER
/p
OUX
/8
8
VCXO OUT
EVMMHDLCRef =
This register informs the microprocessor of the
interrupt source. The microprocessor will have informationabout the interruptsourceby readingthe
correspondinginterruptqueue (seeParagraph”InterruptRegister IR (38)
” on Page 74).
H
Onan overflowof the circularinterruptqueuesand
an overrun or underrun of the different FIFO, the
INT0 Pinis activatedand the originof theinterrupt
is storedin theInterruptRegister.
A16 bits register is associatedwith the Tx Monitor
interrupt. It informs the microprocessor of which
transmitterhas generatedthe interrupt (see Paragraph ”Transmit Monitor Interrupt Register TMIR
” on Page 71).
(30)
H
III.8.3 - TimeBase Interrupts (INT1 Pin)
The Time base interrupt is generated when an
absence or an abnormalworking of clock distribution is detected.The INT1 Pin is activated.
III.8.4 - EmergencyInterrupts (WDO Pin)
The WDO signal is activatedby an overflow of the
watchdogregister.
III.8.5 - InterruptQueues
There are three different interruptqueues :
- Tx and Rx HDLCinterruptqueue,
- Rx C/I interruptqueue,
- Rx Monitor interrupt queue.
Their length can be defined by software.
For debugging function,each interrupt word of the
CI interruptqueueand monitorinterruptqueuecan
befollowedbya timestampedword.Itiscomposed
of a counterwhich runs in therange of 250µs.The
counter is the same as the watchdog counter.
Consequently,thewatchdogfunctionisn’tavailable
at thesame time.
5464-27.EPS
35/83
Page 36
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure26 : TheThree CircularInterruptMemories
IBA
INITIALIZATION
BLOCK
IBA+ 254
IBA+ 256
HDLC (Tx a nd Rx)
INTERRUPTQUE UE
III.9- Watchdog
This functionis used to controlthe activity of the
application. It is composed of a counter which
counts down from an initial value loaded in the
Timerregister by the microprocessor.
If the microprocessor doesn’t reset this counter
before it is totally decremented, the external Pin
WDOis activated; this signal can be usedto reset
the microprocessorand all the application.
Theinitial timevalue of the counteris programmable from 0 to15s in incrementsof 0.25ms.
Atthe reset of the component,the counteris automaticallyinitialized by the value corresponding to
512ms which are indicated in the Timer register.
IBA+ 256
+ HDLC
Queue Size
MON (Rx)
INTERRUP TQUEUE
IBA+ 256
+ HDLC
Queue S ize
+ MON
Queue S ize
C/I (Rx)
INTERRUP TQUE UE
The microprocessormust put WDR (IDCR Register) to”1”to reset this counter and to confirmthat
the applicationstarted correctly.
In the reverse case,the WDOsignalcouldbeused
to reset the board a secondtime.
III.10 - Reset
There are two possibilities to resetthe circuit :
- by software,
- by hardware.
Each programmable register receives its default
value. After that, the default value of each data
registeris storedin the associatedmemory except
for Time slot Assigner memory.
5464-28.EPS
36/83
Page 37
STLC5464
IV- DC SPECIFICATIONS
AbsoluteMaximumRatings
SymbolParameterValueUnit
V
T
PowerDissipation
SymbolParameterTest ConditionsMin.Typ.Max.Unit
Recommended DC Operating Conditions
SymbolParameterTest ConditionsMin.Typ.Max.Unit
V
T
Note 1 : All the following specifications are valid only within these recommended operating conditions.
TTL Input DC ElectricalCharacteristics
SymbolParameterTest ConditionsMin.Typ.Max.Unit
V
V
I
VhystSchmittTrigger hysteresis0.40.71V
VT+Positive Trigger Voltage22.4V
VT-Negative Trigger Voltage0.60.8V
C
C
C
Note 2 : Excluding package
5V Power Supply Voltage-0.5, 6.5V
DD
Input or Output Voltage-0.5, V
Storage Temperature-55, +125°C
stg
PPower ConsumptionV
5V Power Supply Voltage4.755.25V
DD
Operating Temperature0+70°C
oper
Low Level Input Voltage0.8V
IL
High Level Input Voltage2.0V
IH
Low Level Input CurrentVI=0V1µA
I
IL
High Level InputVI=V
IH
Input Capacitance (see Note 2)f = 1MHz@ 0V24pF
IN
Output Capacitance4
OUT
Bidirextional I/O Capacitance48
I/O
= 5V400mW
DD
DD
+ 0.5V
DD
-1
A
µ
CMOSOutput DC ElectricalCharacteristics
SymbolParameterTest ConditionsMin.Typ.Max.Unit
V
V
Note 3 : X is the source/sink current under worstcase conditions and is reflected in thename of the I/O cell according to thedrive capability.
Low Level Output VoltageIOL= X mA (see Note 3)0.4V
OL
High Level Output VoltageIOH= -X mA (see Note 3) V
OH
X = 4 or 8mA.
-0.4V
DD5
Protection
SymbolParameterTest ConditionsMin.Typ.Max.Unit
VESDElectrostatic ProtectionC = 100pF, R = 1.5k
Ω
2000V
37/83
Page 38
STLC5464
V - CLOCKTIMING
V.1 - SynchronizationSignals deliveredby the system
For one of three different input synchronizations which is programmed, FSCG and FSCV* signals
deliveredby the
Figure27 :
CLOCK B
Multi-HDLC
are in accordancewith the figure hereafter.
Clocksreceivedand deliveredby the
Multi-HDLC
CLOCK A
1) Sy Mod e
Frame A(or B)
2) GCIMode
Frame A(or B)
3) V*Mode
Frame A(or B)
DIN 0/8, ECHO
DOUT 0/7, CB
if FS = FSCG
TDM0/7
delivered
FSCG
by the circuit
t5ht2t5l
4536701
Bit4Bit5Bit0Bit1Bit6Bit7Bit3
Time Slot 31Time S lot 0
t1
t4t3t4t3
t3
t4 CGI
delivered
FSCV*
by the circuit
The four Multiplex Configuration Registers are at zero (no delay).
SymbolParameterMin.Typ.Max.Unit
t1Clock Period if 4096kHz
Clock Period if 8192kHz
t2Delay between Clock A and Clock B- 600+60ns
t3Set uptime FrameA (orB)/CLOCK A(or B)10t1-10ns
t4
t4GCI
38/83
Hold time Frame A(or B)/CLOCK A(or B)10
t5Clock ratio t5h/t5l75100125%
239
120
10
244
122
125000 - (t1 - 10)
249
125
t1-10
5464-29.EPS
ns
ns
ns
Page 39
V - CLOCKTIMING (continued)
V.2 - TDM Synchronization
Figure28 : SynchronizationSignals receivedby the
CLOCK A (o r B)
STLC5464
Multi-HDLC
t2
DCLK de live red by
the Multi-HDLC
delivered by
FSCG
the Multi-HDLC
DOUT0/7, CB
Bit 7, Time S lot 31
DIN0/8
ECHO
The four Multiplex Configura tion Re gisters a re a tzero (no delay betwe en FS and Multiplexes).
t1
t3
t6
t4
t5
Bit 0, Time Slot 0
t7t7
t9
t8
SymbolParameterMin.Typ.Max.Unit
t1Clock Period if 4096kHz
Clock Period if 2048kHz
Id CLOCKA or B244
488
Id CLOCKA or Bns
ns
t2Delay between CLOCK A or B and DCLK (30pF)530ns
t3Set-up Time FS/DCLK20t1-20ns
t4Hold Time FS/DCLK20ns
t5Duration FS244125000-244ns
t6DCLK to Data 50pF
DCLK to Data 100pF
50
100
ns
t7Set-up Time Data/DCLK20ns
t7Hold Time Data/DCLK20ns
t8Set-up Echo/DCLK (rising edge)155ns
t9Hold Time Echo/DCLK (rising edge)205ns
5464-30.EPS
39/83
Page 40
STLC5464
V - CLOCKTIMING (continued)
V.3 - GCI Interface
Figure29 : GCISynchroSignal delivered by the
received by
FS
the Multi-HDLC
CH0CH1CH7
DIN4/5
DOUT4/5
Multi-HDLC
125µs
GCI Ch ann e l
DCLK de livered by
the Multi-HDLC
de live red by
FS CG
the Multi-HDLC
DOUT0/7, CB
if FSCG is connected to FS
DIN0/8
The four Multiplex Configuration Registers are at zero (no delay between FS and Multiplexes).
B1B2MOND C/I AE
t1
t3
t6
Bit 0, Time Slot 0
t3
t7t7
SymbolParameterMin.Typ.Max.Unit
t1Clock Period if 4096kHz
Clock Period if 2048kHz
CLOCKA/B Tmin244
488
CLOCKA/B Tmaxns
ns
t3DCLK to FSCG20ns
t5Duration FS244125000-244ns
t6DCLK to Data 50pF
DCLK to Data 100pF
50
100
ns
ns
t7Set-up Time Data/DCLK20ns
t7Hold Time Data/DCLK20ns
5464-31.EPS
40/83
Page 41
V - CLOCKTIMING (continued)
V.4 - V* Interface
Figure30 : V*SynchronizationSignaldelivered by the
FS re ceived by
the Multi-HDLC
CH0CH1CH7
DIN4/5
DOUT4/5
STLC5464
Multi-HDLC
125µs
GCI Cha nn e l
de livered by
DCLK
the Multi-HDLC
delivered by
FSCV*
the Multi-HDLC
DOUT0/7, CB
ifF SC G is con necte d to FS
DIN0/8
The four Multiple x Configuration Registers a re at zero (no delay be twee n FS and Multiplexes).
SymbolParameterMin.Typ.Max.Unit
t1Clock Period 4096kHz244ns
t3DCLK to FSCV*20ns
t5Duration FSCV*244ns
t6Clock to Data 50pF
Clock to Data 100pF
t7Set-up Time Data/DCLK20ns
t7Hold Time Data/DCLK20ns
t1Delay Ready / Chip Select (if t3 > t1), (30pF)030ns
t2Hold Time Chip Select /DataStrobe14ns
t3Delay Ready / NAS (if t1 > t3), (30pF)030ns
t4WidthNAS20ns
t5Set-up Time Address / NAS9ns
t6Hold Time Address / NAS9ns
t7Data Valid before Ready0ns
t8Data Valid after Data Strobe (30pF)0ns
t9Set-up Time R/W /NAS15ns
t10Hold Time R/W / Data Strobe15ns
t11Width NDS when immediate access50ns
t12Delay NDS / NCS5ns
t9
5464-37.EPS
46/83
Page 47
VII - MICROPROCESSORTIMING (continued)
Figure36 : ST9Write Cycle
NCS0/1
STLC5464
t1t2
READY
ALE
NAS/
t4
t3
t12
t11
NDS/NRD
t7
t8
AD0/7
A0/7
t6t5
D0/7
t10t9
R/W /
NWR
SymbolParameterMin.Typ.Max.Unit
t1Delay Ready / Chip Select (if t3 > t1), (30pF)030ns
t2Hold Time Chip Select / Data Strobe14ns
t3Delay Ready / NAS (if t1 > t3), (30pF)030ns
t4WidthNAS20ns
t5Set-up Time Address / NAS9ns
t6Hold Time Address / NAS9ns
t7Set-up Time Data / Data Strobe-15ns
t8Hold Time Data / Data Strobe15ns
t9Set-up Time R/W / NAS15ns
t10Hold Time R/W / Data Strobe15ns
t11Width NDS when immediate access50ns
t12Delay NDS / NCS5ns
t1Delay Ready / Chip Select (if t3 > t1), (30pF)020ns
t2Hold Time Chip Select / NRD10ns
t3Delay Ready / ALE (if t1 > t3),(30pF)020ns
t4WidthALE20ns
t5Set-up Time Address / ALE5ns
t6Hold Time Address / ALE5ns
t7Data Valid before Ready0ns
t8Data Valid after NRD (30pF)0ns
t12Delay NDS / NCS0ns
5464-39.EPS
48/83
Page 49
VII - MICROPROCESSORTIMING (continued)
Figure38 : 80C188Write Cycle
NCS0/1
READY
t3
STLC5464
t1t2
NAS/ALE
NDS/NRD
AD0/7
R/W / NWR
SymbolParameterMin.Typ.Max.Unit
t1Delay Ready / Chip Select (if t3 > t1), (30pF)020ns
t2Hold Time Chip Select / NWR10ns
t3Delay Ready / ALE (if t1 > t3),(30pF)020ns
t4WidthALE20ns
t5Set-up Time Address / ALE5ns
t6Hold Time Address / ALE5ns
t7Set-up Time Data / NWR-15ns
t8Hold Time Data / NWR15ns
Delay when immediate access
t2Hold Time Chip Select / NLDS-NUDS14ns
t3Delay NDTACK / NLDS-NUDS FallingEdge (ift1> t3), (30pF)
Delay when immediate access
t4Delay NDTACK / NLDS-NUDS Rising Edge030ns
t5Set-up Time Address / NAS9ns
t6Hold Time Address / NLDS-NUDS9ns
t7Data Valid before NDTACK FallingEdge (30pF)0ns
t8Data Valid after NLDS-NUDS Rising Edge (30pF)0ns
t12Delay NDS / NCS0ns
0
30
0
30
ns
ns
ns
ns
5464-43.EPS
52/83
Page 53
VII - MICROPROCESSORTIMING (continued)
Figure42 : 68000Write Cycle
NCS0/1
STLC5464
t1t2
NDTACK
ALE
NAS/
/NLDS
SIZE0
SIZE1/NUDS
A1/23
NWR
R/W /
t12
t3
t5
A1/23
t9
t4
t6
t10
D0/15
SymbolParameterMin.Typ.Max.Unit
t1Delay NDTACK / NCS0/1 (if t3 > t1), (30pF)
Delay when immediate access
t2Hold Time Chip Select / NLDS-NUDS14ns
t3Delay NDTACK / NLDS-NUDS FallingEdge (ift1> t3), (30pF)
Delay when immediate access
t4Delay NDTACK / NLDS-NUDS Rising Edgens
t5Set-up Time Address / NAS9ns
t6Hold Time Address / NLDS-NUDS9ns
t9Set-up Time Data / NLDS-NUDS15ns
t10Hold Time Data / NLDS-NUDS15ns
t12Delay NDS / NCS0ns
0
30
0
30
ns
ns
ns
ns
5464-44.EPS
53/83
Page 54
STLC5464
VII - MICROPROCESSORTIMING (continued)
VII.5- Token Ring Timing
Figure43 : TokenRing
MASTER CLOCK
(applied to XTAL1 Pin)
a
TRO
1/f
a
t
S
t
H
TRI
SymbolParameterMin.Typ.Max.Unit
1/ff : Masterclock frequency32.768MHz
aDelay between Masterclock RisingEdge and Edges of TRO Pulse
25ns
delivered by the MHDLC (10pF)
t
Set-up Time TRI/Masterclock Masterclock Falling Edge5ns
‘Not used’ bits (Nu)are accessible by the microprocessor but the use of these bitsby software is not
recommended.
‘Reserved’bits are not implemented in thecircuit. However,it is not recommendedto usethis address.
VIII.1 - Identification and Dynamic Command Register - IDCR (00)H
bit15bit8bit7bit 0
C15C14C13C12C11C10C9C8C7C6C5C4C3C2C1C0
Whenthis register is read by the microprocessor, the circuit code C0/15 is returned.Reset has no effect
on this register.
C0/3indicates the version.
C4/7indicates the revision.
C8/11indicates the foundry.
C12/15indicates the type.
Example: this code is (0010)H for thefirst sample.
Whenthis register is written by the microprocessorthen :
bit15bit8bit7bit 0
NuNuNuNuNuNuNuNuNuNuNuNuNuRSS WDRTL
TL: TOKENLAUNCH
WhenTLis set to1 by the microprocessor,thetoken pulse is launchedfrom theTROpin (Token
RingOutput pin). This pulse is providedto theTRI pin(Token Ring Input pin)of thenext circuit
in the applicationswhere several
Multi-HDLC
WDR: WATCHDOG RESET.
Whenthe bit 1 (WDR)of this registeris set to 1 by the microprocessor, thewatchdogcounter is
reset.
RSS: RESET SOFTWARE
Whenthe bit 2 (RSS)of this register is setto 1 by themicroprocessor,the circuitis reset(Same
actionas reset pin).
Afterwriting this register,the values of these three bits return to thedefaultvalue.
WDD = 1, the WatchDog is masked : WDO pin stays at ”0”.
WDD= 0, the WatchDog generatesan ”1”on WDO pin if the microprocessorhas not reset the
WatchDog during the duration programmed in Timer Register.
PMA: Priority Memory Access
PMA = 1, if the token ring has been launched it is captured and kept in order to authorize
memoryaccesses.
PMA= 0, memoryis accessibleonly if the token is present;after one memory access the token
is re-launched from TRO pin of thecurrent circuit to TRI pin ofthe next circuit.
TRD: TokenRing Disable
TRD = 1, if the token has been launched, the token ring is stoppedand destroyed ; memory
accessesare not possible.The token will not appear on TROpin.
TRD= 0,thetokenringisauthorized; whenthetokenwillbelaunched,it will appearonTROpin.
55/83
Page 56
STLC5464
VIII - INTERNALREGISTERS(continued)
TSV: TimeStampingValidated
TSV= 1,the timestampingcounterbecomesa freebinarycounterand countsdownfrom65535
to0 in step of 250ms(Total = 16384ms).So if anevent occurswhenthe counterindicatesAand
if the nextevent occurs when the counterindicatesB then : t = (A-B)x 250ms is thetime which
haspassedbetweenthetwoeventswhichhavebeenstoredinmemorybytheInterruptController
(forRx C/Iand RxMON CHANNELonly).
TSV = 0, the counter becomes a decimalcounter.TheTimer Registerand this decimal counter
constitutea WatchDog or aTimer.
EVM: EXTERNAL VCXO MODE
EVM=1,VCXOSynchronizationCounter is divided by 32.
EVM=0,VCXOSynchronizationCounter is divided by 30.
D7: HDLC connectedto MATRIX
D7 = 1, the transmit HDLC is connected to matrix input 7, theDIN7 signal isignored.
D7 = 0, the DIN7 signal is taken into accountby the matrix, the transmitHDLC is ignoredby the
matrix.
SYN0/1: SYNCHRONIZATION
SYN0/1 : these two bits define the signal applied on FRAMEA/Binputs. For more details, see
”Synchronizationsignals delivered by the system. 7.1.
SYN1SYN0Signal applied on FRAMEA/B inputs
00SYIinterface
01GCI Interface (the signaldefines the first bit of the frame)
10Vstar Interface (the signal defines thridbit of the frame)
11Not used
HCL: HIGH BIT CLOCK
This bit defines the signal appliedon CLOCKA/Binputs.
HCL= 1, bit clocksignal is at 8192kHz
HCL= 0, bit clock signal is at 4096kHz
CSD: Clock Supervision Deactivation
CSD= 1,the lack of selectedclock is notseen by the microprocessor; INT1 is masked.
CSD = 0, when the selected clock disappears the INT1 pin goes to 5V, 250ms after this
disappearance.
SELB : SELECT B
SELB= 1, FRAME B and CLOCK B must be selected.
SELB= 0, FRAMEA and CLOCKA must be selected.
BSEL : B SELECTED(this bit is read only)
BSEL= 1, FRAME B and CLOCK B areselected.
BSEL= 0, FRAME Aand CLOCK Aare selected.
SCL: SingleClock
This bit defines the signal deliveredby DCLKoutput pin.
SCL= 1, DataClock is at 2048kHz.
SCL= 0, DataClock is at 4096kHz.
AFAB : AdvancedFrame A/B Signal
AFAB= 1, the advanceof Frame A Signal and Frame BSignalis 0.5 bit timeversus the signal
frameA (orB) drawnin Figure27.
AFAB= 0,Frame ASignal and Frame B Signalare in accordancewith theclock timing
(see: Synchronizationsignals deliveredby the Figure 27).
56/83
Page 57
STLC5464
VIII - INTERNALREGISTERS(continued)
MBL: Memory Bus Low impedance
MBL= 1, theshared memory bus is atlow impedance betweentwo memory cycles.
ThememorybusincludesControlbits, Databits,Addressbits. One
Multi-HDLC
the sharedmemory.
MBL= 0, theshared memory bus is athigh impedancebetween two memorycycles.
Several Muti-HDLCs can be connected to the shared memory. One pull up resistor is
recommendedon each wire.
ST(i)0 : STEP0 for each Input Multiplex i(0 ≤ i ≤ 7), delayed or not.
ST(i)1 : STEP1 for each Input Multiplex i(0 ≤ i ≤ 7), delayed or not.
DEL(i); : DELAYEDMultiplex i(0 ≤ i ≤ 7).
DEL (i) ST (i) 1 ST (i) 2STEP for each Input Multiplex 0/7 delayed or not
X00Each received bit is sampled at 3/4 bit-time without delay.
101Each received bit is sampled with1/2 bit-timedelay.
110Each received bit is sampled with1 bit-timedelay.
111Each received bit is sampled with2 bit-timedelay.
001Each received bit is sampled with1/2 bit-timeadvance.
010Each received bit is sampled with1 bit-timeadvance
011Each received bit is sampled with2 bit-timeadvance.
First bit of the frame is definedby Frame synchronization Signal.
WhenIMTD = 0 (bitof SMCR),DEL = 1 is not taken into accountby the circuit.
LP(i): LOOPBACK0/7
LPi= 1,OutputMultiplex i isput insteadof InputMultiplexi (0 ≤ i≤ 7). LOOPBACKistransparent
or not in accordancewith OMVi (bit of OutputMultiplexConfigurationRegister).
LPi= 0,Normal case, Input Multiplex i(0≤i≤7)is taken into account.
N.B.If DIN4 and DIN5 are GCI Multiplexes : then ST(4)1 = ST(4)0 = 0 and ST(5)1 = ST(5)0= 0 normally.
ST(i)0 : STEP0 for each Output Multiplex i(0≤i≤7), delayed or not.
ST(i)1 : STEP1 for each Output Multiplex i(0 ≤ i ≤ 7),delayed or not.
DEL(i); : DELAYEDMultiplex i(0 ≤ i ≤ 7).
DEL (i) ST (i) 1 ST (i) 2STEP for each Output Multiplex 0/7 delayed or not
X00Each bit is transmitted on the rising edge of the double clock without delay.
Bit 0 is definedby Frame synchronizationSignal.
101Each bit is transmitted with 1/2 bit-time delay.
110Each bit is transmitted with 1 bit-time delay.
111Each bit is transmitted with 2 bit-time delay.
001Each bit is transmitted with 1/2 bit-time advance.
010Each bit is transmitted with 1 bit-time advance
011Each bit is transmitted with 2 bit-time advance.
WhenIMTD = 0 (bitof SMCR),DEL = 0 is not taken into accountby the circuit.
OMV(i): OutputMultiplex Validated0/7
OMVi=1, condition to haveDOUTi pin active (0 ≤ i≤ 7).
OMVi=0, DOUTipin is High Impedancecontinuously(0 ≤ i ≤ 7).
N.B.If DIN4 and DIN5 are GCI Multiplexes : then ST(4)1 = ST(4)0 = 0 and ST(5)1 = ST(5)0= 0 normally.
TS0 = 1, the DOUT0/3 and DOUT6/7 pins are tristate: ”0” is at low impedance,”1” is at low
impedanceand the third state is highimpedance.
TS0= 0,theDOUT0/3and DOUT6/7pins are open drain : ”0” is at lowimpedance,”1” is at high
impedance.
TS1: Tristate1
TS1 = 1, the DOUT4/5 pins are tristate : ”0” is at lowimpedance,”1” is at low impedanceand
the thirdstate is high impedance.
TS1 = 0, theDOUT4/5 pins are open drain : ”0” isat low impedance, ”1” isat high impedance.
SGV: PseudoRandom SequenceGenerator Validated
SGV= 1,PRS Generatoris validated.ThePseudo RandomSequenceis transmittedduring the
relatedtime slot(s).
SGV= 0, PRSGenerator is reset.”0”are transmittedduringthe relatedtime slot.
WhenSGC bit goes from 0 to 1, one bit of sequencetransmittedis corrupted.
Whenthe corrupted bit hasbeen transmitted,SGC bit goes from 1 to0 automatically.
58/83
Page 59
STLC5464
VIII - INTERNALREGISTERS(continued)
ME: MESSAGEENABLE
ME= 1 Thecontentsof ConnectionMemory is output on DOUT0/7continuously.
ME= 0 Thecontentsof ConnectionMemory acts as an addressfor the Data Memory.
Nu: Not used.
VIII.8 - ConnectionMemory Data Register- CMDR (0E)H
CONTROL REGISTER (CTLR)SOURCE REGISTER (SRCR)
bit15bit8bit7bit 0
NuPSPRSA PRSGINSOTSV LOOPSIIM2IM1IM0 ITS 4 ITS3 ITS 2 ITS 1 ITS 0
After reset (0000)
This 16 bit registeris constitutedby two registers:
SOURCEREGISTER(SRCR) and CONTROLREGISTER(CTLR) respectively 8 bits and 7 bits.
SOURCEREGISTER(SRCR) has twouse modes dependingon CM (part of CMAR).
CM= 1,access to connectionmemory (reador write)
- PRSG = 0,ITS 0/4and IM0/2 bits are definedhereafter :
ITS 0/4 : Input time slot0/4 defineITSxwith : 0≤x≤31;
IM0/2: Input Time Division Multiplex 0/2 define ITDMp with : 0≤ p ≤ 7.
- PRSG = 1,the PseudoRandom SequenceGeneratoris validated,SRCR is notsignificant.
CM= 0,access to datamemory(read only).SRC isthe data registerof thedata memory.
H
CONTROL REGISTER
(CTLR) defines each Output Time Slot OTSy of each Output TimeDivision Multi-
plex OTDMq :
SI: SEQUENCE INTEGRITY
SI = 1, the delay is always: (31 - ITSx)+ 32+ OTSy(constantdelay).
SI = 0, the delay is minimum to pass through the data memory(variable delay).
LOOP : LOOPBACK perchannelrelevantif twoconnectionshas been established(bidirectionalornot).
OTSV= 1, OTSyOTDMq is enabled.
OTSV= 0, OTSyOTDMq is High Impedance.
(OTSy: Output Timeslotwith0 ≤y ≤ 31;OTDMq: OutputTimeDivision Multiplexwith0 ≤ q≤ 7).
INS: INSERT
INS = 1 The transferfrom PRSGenerator or ConnectionMemory to DOUT0/7is validated.
INS = 0 The transferfrom DataMemory to DOUT0/7is validated.
PRSG : PseudoRandom Sequence Generator
This bit has effect only if INS= 1.
If PRSG = 1, PseudoRandom Sequence Generatordelivers eight bits belonging to the same
Sequence.Hyperchannelat n x 64 Kb/sis possible.
If PRSG= 0, ConnectionMemory delivers eight bits D0/7.
PRSA : Pseudo Random Sequence analyzer
If PRSA= 1, PRS analyzeris enabled during OTSy OTDMq and receivesdata :
INS = 0, data comes from Data Memory.
INS = 1 AND PRSG=1,Data comes from PRS Generator(Test Mode).
If PRSA= 0, PRS analyzeris disabled during OTSy OTDMq.
PS: ProgrammableSynchronization
If PS= 1,ProgrammableSynchronizationSignal Pin is at”1” duringthe bittime definedby OTSy
and OTDMq.
For OTSy and OTDMqwith y = q = 0, PSSpin is at ”1” during the first bit of the framedefined
by the Frame synchronizationSignal (FS).
If PS = 0, PSS Pin isat ”0” duringthe bittime defined by OTSyand OTDMq.
59/83
Page 60
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.9 - ConnectionMemory AddressRegister - CMAR(10)H
This16 bitregisterisconstitutedbytworegisters: DESTINATIONREGISTER(DSTR)and ACCESSMODE
REGISTER(AMR) respectively8 bits and 6 bits.
Remark:
It is mandatoryfor this specific register to write successively:
- first DSTR
- thenAMR
DESTINATION REGISTER
(DSTR)
WhenDSTR Register is writtenby the microprocessor, a memoryaccessis launched.DSTR has two use
modes dependingon CM (bit of CMAR).
CM= 1,access to connectionmemory (reador write) ;
WhenCM = 1,OTS0/4 andOM 0/2bits are defined hereafter :
OTS 0/4 : Output time slot 0/4define OTSy with : 0 ≤ y≤ 31,
OM0/2: Output Time DivisionMultiplex 0/2 define OTDMq with :0 ≤ q≤ 7.
- CAC= CACL= 0, DSTR is theAddressRegister of theConnectionMemory;
- CACor CACL= 1, DSTRis usedto indicatethe current addressforthe Connection Memory; its contents
is assignedto the outputs.
CM= 0,access to datamemory(read only) ;
- DSTRis the Address Register of the Data Memory; its contentsis assignedto theinputs.
ACCESSMODEREGISTER (AMR)
READ : READ MEMORY
READ = 1,Read Connection Memory (or Data Memory in accordancewith CM).
READ = 0,WriteConnectionMemory.
CM: CONNECTION MEMORY
CM = 1, Write or ReadConnectionMemory in accordancewith READ.
CM = 0, Read only Data Memory (READ = 0has no effect).
CAC: CYCLICALACCESS
CAC= 1
if Write ConnectionMemory, an automatic data write from ConnectionMemory Data Register
(CMDR) up to256 locationsof ConnectionMemoryoccurs. The firstaddressis indicated by the
registerDSTR, the last is(FF)H.
if Read Connection Memory, an automatic transfer of data from the location indicated by the
register (DSTR) into Connection Memory Data Register (CMDR) after reading by the
microprocessoroccurs. Thelast location is (FF)H.
CAC= 0,Write and ReadConnectionMemory in the normal way.
CACL : CYCLICALACCESSLIMITED
CACL= 1
If Write ConnectionMemory, an automatic data write from Connection Memory Data Register
(CMDR) up to32 locationsof ConnectionMemory occurs.The firstlocation isindicatedby OTS
0/4bitsof the register(DSTR) relatedto OTDMq as definedby OM0/2 occurs.The lastlocation
is q +1F(H).
If Read Connection Memory, an automatic transfer of data from Connection Memory into
Connection Memory Data Register (CMDR) after reading this last by the microprocessor
occurs.Thefirst location is indicated by OTS 0/4 bits of the register (DSTR) related to OTDMq
as definedby OM0/2. The last locationis q +1F(H).
CACL= 0, Write and Read Connection Memory in the normalway.
60/83
Page 61
STLC5464
VIII - INTERNALREGISTERS(continued)
TC: Transparent Connection
TC = 1,if READ = 0 :
CAC= 0 and CACL = 0. TheDSTR bits are taken into accountinsteadof SRCRbits. SRCR bits
are ignored (Destination and Source are identical). The contents of Input time slot i - Input
multiplexj is switched into Outputtime slot i - Outputmultiplex j.
CAC= 0 and CACL = 1. Up to 32 ”TransparentConnections”are set up.
CAC= 1 and CACL = 0. Up to 256 ”TransparentConnections”are set up.
TC = 0,Write and Read Connection Memoryin thenormal way.
This register is readonly.
Whenthis register is read by themicroprocessor, this register is reset(0000)
F0/15 : FAULT0/15
Numberof faults detected by the Pseudo Random Sequenceanalyzer if the analyzerhas been
validatedand has recoveredthe receive sequence.
Whenthe Fault CounterRegister reaches (FFFF)
READ = 1, Read Time slot AssignerMemory.
READ = 0, Write Time slotAssigner Memory.
TS0/4 : TIME SLOTS0/4
These five bits define one of 32 time slots in whicha channelis set-upor not.
HDI: HDLCINIT
HDI = 1, TSA Memory, Tx HDLC, Tx DMA, Rx HDLC, Rx DMA and GCI controllersare reset
within250ms. An automate writes data from Time slot AssignerData Register (TADR) (except
CH0/4 bits) into each TSA Memory location. If the microprocessor reads Time slot Assigner
MemoryafterHDLC INIT,CH0/4 bits ofTimeslot AssignerData Register areidentical to TS0/4
bitsof Time slot AssignerAddressRegister.
HDI = 0,Normal state.
N.B.Aftersoftware reset (bit 2 of IDCR Register) or pin reset the automate above-mentioned is working.
The automate is stopped when the microprocessor writes TAARRegister with HDI = 0.
61/83
Page 62
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.12- Time Slot AssignerData Register - TADR (16)H
bit15bit8bit7bit 0
V11V10V9V8V7V6V5V4V3V2V1CH4CH3CH2CH1CH0
After reset (0000)
CH0/4 : CHANNEL0/4
These five bits define one of 32 channels associated to TIME SLOT defined by the previous
Register(TAAR).
V1/8: VALIDATION
The logical channel CHxis constitutedby each subchannel 1 to 8 and validated by V1/8bit
V9: VALIDATIONSUBCHANNEL
V 9 = 1, eachV1/8 bit is takeninto account once every 250ms.
In transmit direction, data is transmittedconsecutivelyduring the time slot of thecurrent frame
and during the same time slot of the next frame.Id est.: the same data is transmitted in two
consecutiveframes.
In receive direction, HDLC controller fetchesdata during the timeslot of the currentframe and
ignoresdata during the sametime slot of thenext frame.
V 9 = 0, eachV1/8 bit is takeninto account once every 125ms.
V10: DIRECT MHDLCACCESS
If V10 = 1, the RxHDLCControllerreceives dataissuedfromDIN8 input during thecurrent time
slot (bits validated by V1/8) and DOUT6 output transmits data issued from the Tx HDLC
Controller.
If V10 = 0, the Rx HDLC Controllerreceives data issued from the matrix output 7 during the
currenttimeslot ;DOUT6 output deliversdata issued from the matrix output 6 during the same
currenttime slot.
N.B : If D7 = 1, (see ”General ConfigurationRegister GCR (02)H”) the Tx HDLC controller is
connectedto matrix input 7 continuouslyso the HDLC frames can be sent to anyDOUT (i.e.
DOUT0to DOUT7).
V11: VALIDATIONof CB pin
This bit is not taken into account if CSMA= 1 (HDLC TransmitCommand Register).
if CSMA= 0:
V11 = 1, Contention Bus pin is validated and Echo pin (which is an input) is not taken into
account.
V11= 0, ContentionBus pin is high impedanceduring the current time slot (This pin isan open
drainoutput).
VIII - INTERNALREGISTERS(continued)
C1/C0 : COMMAND BITS
C1 C0Commands Bits
00ABORT ;if this command occurs during the current frame, HDLC Controller transmits seven ”1”
immediately, afterwards HDLC Controller transmits ”1”or flag inaccordance with F bit, generates
an interrupt and waits new command such as START ornCONTINUE.
If this command occurs after transmitting a frame, HDLC Controller generates an interrupt and
waits a new command such as START or CONTINUE.
01START ; Tx DMA Controller is now going to transfer first frame from buffer related to initial
descriptor. The initial descriptor address is provided by the Initiate Block located in external
memory.
10CONTINUE ; Tx DMA Controller is now going to transfer next frame from buffer related to next
descriptor. The next descriptor address is provided by the previous descriptor from which the
related frame hadbeen already transmitted.
11HALT ; after transmitting frame, HDLC Controller transmits ”1” or flag in accordance with F bit,
generates an interruptand is waiting new command suchas START or CONTINUE.
P0/1: PROTOCOLBITS
P1 P0Transmission Mode
00HDLC
01Transparent Mode 1 (perbyte) ; the fill character defined in FCR Registeris taken into account.
10Transparent Mode2 (perbyte);the fillcharacter definedin FCR Register is not taken intoaccount.
11Reserved
STLC5464
F: Flag
F= 1 ; flagsare transmittedbetweenclosingflagof currentframeandopeningflagof nextframe.
F = 0 ; ”1” are transmittedbetween closing flag of currentframeand openingflag of next frame.
NCRC : CRCNOT TRANSMITTED
NCRC= 1,the CRC is not transmittedat the end ofthe frame.
NCR C =0,the CRC is transmittedat theend of theframe.
CSMA : CarrierSenseMultiple Access with ContentionResolution
CSMA= 1, CB output and the EchoBit are taken into account during this channel transmission
by theTx HDLC.
CSMA = 0, CB output and the Echo Bit are defined by V11 (see ” Time slot Assigner Data
RegisterTADR (16)H”).
PEN: CSMAPENALTY significant if CSMA= 1
PEN= 1, the penaltyvalue is 1; a transmitterwhich has transmitteda framecorrectlywill count
(PRI+1) logic one receivedfrom Echo pin before transmittingnext frame. (PRI, priority class 8
or 10 given by thebuffer descriptor related to theframe.
PEN= 0, the penaltyvalue is 2; a transmitterwhich has transmitteda framecorrectlywill count
(PRI+2) logic one receivedfrom Echo pin before transmittingnext frame. (PRI, priority class 8
or 10 given by thetransmit descriptorrelatedto theframe).
CF: Common flag
CF = 1, theclosingflag ofpreviousframe and openingflag of nextframe areidenticalif the next
frameis ready to betransmitted.
CF = 0,the closing flag of previousframe and openingflag ofnext frameare distinct.
63/83
Page 64
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.14- HDLCReceive Command Register - HRCR(1A)H
00ABORT ; if this command occurs during receiving a current frame, HDLC Controller stops the
reception, generates an interrupt and waits new command such as START orn CONTINUE.
If this command occurs after receiving a frame, HDLC Controller generates an interruptand waits
a new command such as START or CONTINUE.
01START ; Rx DMA Controller is now going to transfer first frame into buffer related to the initial
descriptor. The initial descriptor address is provided by the Initiate Block located in external
memory.
10CONTINUE ; Rx DMA Controller is now going to transfer next frame into buffer related to next
descriptor. The next descriptor address is provided by the previous descriptor from which the
related frame hadbeen already received.
11HALT ; after receiving frame, HDLC Controller stops the reception, generates an interrupt and
waits a new command such as START or CONTINUE.
H
P0/1: PROTOCOLBITS
P1 P0Transmission Mode
00HDLC
01Transparent Mode 1 (perbyte) ; the fill character defined in FCR Registeris taken into account.
10Transparent Mode2 (perbyte);the fillcharacter definedin FCR Register is not taken intoaccount.
11Reserved
CRC: CRCstored in externalmemory
CRC = 1, theCRC is stored at the end of the frame in externalmemory.
CRC = 0, theCRC is not stored into externalmemory.
AR10 : AddressRecognition10
AR10= 1, Firstbyte after opening flagof receivedframe is comparedto AF0/7 bits of AFRDR.
If the first byte received and AF0/7bits are notidenticalthe frame is ignored.
AR10= 0, Firstbyteafter openingflag of receivedframeis notcomparedtoAF0/7bitsof AFRDR
Register.
AR11 : AddressRecognition 11
AR11= 1, First byte after opening flag of received frame is comparedto all ”1”s.If thefirstbyte
receivedis not all ”1”s the frame is ignored.
AR11= 0, First byteafteropening flag of received frame is not compared to all ”1”s.
AR20 : AddressRecognition 20
Register. If the second byte received and AF8/15 bits are not identical the frame is ignored.
AR20= 0, Second byte after opening flag of receivedframe is not compared to AF8/15 bits of
AFRDRRegister.
64/83
Page 65
VIII - INTERNALREGISTERS(continued)
AR21 : AddressRecognition 21
AR21 = 1, Second byte after opening flag of received frame is compared to all ”1”s. If the
Secondbyte received is not all”1”s the frame is ignored.
AR21= 0, Secondbyte after opening flag of received frame is not comparedto all”1”s.
Second ByteFirst Byte
AR21 AR20 AR11 AR10
0000Each frame is received without condition.
0001Only value of the first received byte mustbe equal tothat of AF0/7 bits.
0010Only value of the first received byte mustbe equal toall ”1”s.
0011The value of the first received byte must be equal either to that of AF0/7 or
to all ”1”s.
0100Only value of the second received byte must be equal to that of AF8/15bits.
0101The value of the first received byte must be equal to that of AF0/7 bitsand
the value of the second receivedbyte must beequal to thatof AF8/15 bits.
0110The value of first received byte ismust be equal to all”1”s and the value of
second received byte must be equal to that of AF8/15 bits.
0111The value of the first received byte must be equal either to that of AF0/7 or
to all ”1”s and the value of the second received bytemust be equal to that
of AF8/15 bits.
1000Only the value of the second received byte must be equal to all ”1”s.
1001The value of the first received byte must be equal to that of AF0/7 bitsand
the value of the second receivedbyte must beequal to all”1”s.
1010The value ofthe first receivedbyte must be equal to all ”1”s and the value of
the second received byte must beequal to”1” also.
1011The value of the first received byte must be equal either to that of AF0/7 or
to ”1” and the valueof the second received byte must be equal toall ”1”s.
1100The value of the second received byte mustbe equal either to that of AF8/15
or to all ”1”s.
1101The value of the first received byte must be equal to that of AF0/7 bitsand
the value of the secondreceived byte must be equal either tothat of AF8/15
or to all ”1”s.
1110The value of the first received byte must be equal to ”1” and the valueof the
second received byte must be equal either to that of AF8/15 or to all ”1”s.
1111The value of the first received byte must be equal either to that of AF0/7 or
to ”1” and the value of the second received byte must be equaleither to that
of AF8/15 orto all ”1”s.
STLC5464
Conditions to Receive a Frame
VIII.15- Address Field RecognitionAddress Register- AFRAR(1C)H
bit15bit8bit7bit 0
CH4CH3CH2CH1 CHO READNuNureserved
After reset (0000)
H
Thewrite operation is lauched when AFRAR is written by the microprocessor.
READ : READ ADDRESSFIELD RECOGNITION MEMORY
READ=1,READ AFR MEMORY.
READ=0,WRITE AFR MEMORY.
CH0/4 : Thesefive bits define oneof 32 channels in reception
65/83
Page 66
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.16- Address Field RecognitionData Register - AFRDR (1E)H
AF0/7; Firstbyte received; AF8/15: Secondbyte received.
These two bytes are stored into Address Field RecognitionMemory when AFRARis writtenby
the microprocessor.
VIII.17- FillCharacter Register - FCR (20)H
bit15bit8bit7bit 0
reservedFC7FC6FC5FC4FC3FC2FC1FC0
After reset (0000)
FC0/7 : FILL CHARACTER (eightbits)
InTransparentModeM1,twomessagesareseparatedby FILLCHARACTERSandthedetection
of one FILLCHARACTERmarks the end of a message.
Whenthis bit is at 1,monitor channel xy is validated.
Whenthis bit is at 0,monitor channel xy is not validated.
Online toreset(ifnecessary)oneMONchannelwhichhadbeen selectedpreviouslyVMxymust
be putat 0 during125msbefore reselectingthis channel.Deselecting one MONchannelduring
125msresets this MON channel.
V*xy: VALIDATIONof V Starx,MULTIPLEX y
Whenthis bit is at 1,V Star protocolis validated if VMxy=1.
Whenthis bit is at 0,GCI Monitor protocol is validatedif VMxy=1.
Whenthis bit is at 1,Command/Indicatechannelxyis validated.
Whenthis bit is at 0,Command/Indicatechannelxyis not validated.
It is necessaryto let VCxyat ”0”during 125ms to initiate the Command/Indicatechannel.
ANAxy : ANALOGAPPLICATION
Whenthis bit is at 1,Primitive has 6 bitsif C/Ixy is validated.
Whenthis bit is at 0,Primitive has 4 bitsif C/Ixy is validated.
66/83
Page 67
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.19- GCIChannels DefinitionRegister 1 - GCIR1(24)H
CA0/2 : These bits defineone ofeight Command/IndicateChannels.
G0: Thisbit defines one oftwo GCI multiplexes.
G0 = 0, TDM4 is selected.
G0 = 1, TDM5 is selected.
C6/1: New Primitive to be transmitted
C6 is transmitted first if ANA = 1.
C4 is transmitted first if ANA = 0.
TheNew Primitiveis taken into account bythe transmitterafter writingbits 8 to 15 (if8 bit microprocessor).
Transmit Command/Indicate Register (after reading)
bit15bit8bit7bit 0
0G0CA2CA1CA0READNuNuPT1PT0C6C5C4C3C2C1
H
Whenthis register is read by themicroprocessor, these differentbits mean :
READ : READ C/I MEMORY
CA0/2 : These bits defineone ofeight Command/IndicateChannels.
G0: Thisbit defines one oftwo GCI multiplexes.
G0 = 0, TDM4 is selected.
G0 = 1, TDM5 is selected.
C6/1: Last Primitive transmitted.
PT0/1 : Status bits
P1P0Primitive Status
00Primitive has not been transmitted yet.
01Primitive has been transmitted once.
10Primitive has been transmitted twice.
11Primitive has been transmitted three times or more.
68/83
Page 69
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.23- TransmitMonitor Address Register - TMAR(2C)H
bit15bit8bit7bit 0
0G0MA2 MA1 MA0READNuNuNuNuTIVFABTLNOB0Nu
After reset (000F)
Whenthis register is written by the microprocessor, these different bits mean :
READ : READ MON MEMORY
MA0/2 :These bits define one of eight Monitor Channelif validated.
G0: Thisbit defines one oftwo GCI multiplexes.
G0 = 0, TDM4 is selected.
G0 = 1, TDM5 is selected.
NOB: NUMBER OF BYTE to be transmitted
NOB= 1,One byte to transmit.
NOB= 0,Twobytes to transmit.
L: Last byte
L= 1,the word (or the byte) located in the Transmit Monitor Data Register(TMDR) is the last.
L = 0, the word (or the byte) located in the Transmit Monitor Data Register (TMDR) is not the
last.
FABT : FABT= 1,the current message is abortedby the transmitter.
TIV: Timerinterrupt is Validated
TIV = 1, Time Out alarm generatesan interrupt when thetimer has expired.
TIV = 0, Time Out alarm is masked.
If 8 bitmicroprocessorthe Data (TMDR Register) is takeninto account bythe transmitterafterwriting bits
8 to 15 of this register.
H
Transmit MonitorAddress Register (after reading)
bit15bit8bit7bit 0
0G0MA2 MA1 MA0READNuNuNuNuTOABTLNOBT EXE IDLE
Whenthis register is read by themicroprocessor, these differentbits mean :
READ,MA0/2,G0 havesamedefinition as alreadydescribed for the write register cycle.
IDLE: When this bit isat ”1”,IDLE (all 1’s)is transmittedduring the channel validation.
EXE: EXECUTED
When this status bit is at ”1”,the commandwritten previously by the microprocessorhas been
executedand a new word can be storedin the Transmit Monitor Data Register (TMDR) by the
microprocessor.
Whenthis bit is at ”0”, the commandwrittenpreviouslyby the microprocessorhas not yet been
executed.
NOBT : NUMBEROF BYTE which has been transmitted.
NOBT= 1, the firstbyteis transmitting.
NOBT = 0,the secondbyte is transmitting, the first byte has been transmitted.
L: Last byte ; thisL bit is the L bit whichhas been writtenby the microprocessor.
ABT: ABORT
ABT=1,the remotereceiver has aborted the current message.
TO: TimeOut one millisecond
TO = 1, the remote receiver has not acknowledgedthe byte which has been transmitted one
millisecond ago.
69/83
Page 70
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.24- TransmitMonitor Data Register - TMDR (2E)H
bit15bit8bit7bit 0
M18M17M16M15M14M13M12M11M08M07M06M05M04M03M02M01
After reset (FFFF)
M08/01: FirstMonitor Byte to transmit.M08 bit is transmittedfirst.
M18/11: SecondMonitor Byte to transmitif NOB = 0 (bit of TMAR). M18 bit is transmitted first.
Whenthe microprocessorread this register,this registeris reset(0000)H.
MIxy: TransmitMonitor Channel x Interrupt, Multiplexy with :
0≤x≤7, 1 of 8 GCICHANNELS belonging to the same multiplex TDM4 or TDM5
y = 0, GCI CHANNELbelongs to the multiplex TDM4 and y= 1 toTDM5.
MIxy= 1 when:
- a word has been transmitted and pre-acknowledged by the Transmit Monitor Channel xy (In
this case the Transmit Monitor Data Register(TMDR) is available to transmita new word) or
- the message has been abortedby the remotereceive Monitor Channel or
REF= 1, DRAMREFRESH is validated,
REF= 0, DRAMREFRESH is not validated.
R,S,T : These three bits define the external RAM circuit organization(1word=2bytes)
The cycle duration is always15.625ms (512 periods of theclock applied on XTAL1pin).
TSRIf refresh
000 128K x 8 SRAM circuit (up to512K words)
001 512K x 8 SRAM circuit (up to512K words)
010 256K x 16 DRAM circuit (up to 1M word)512 cycles / 8ms
011 1M x 4 (or 16) bits DRAM circuit (up to 4M words)1024 cycles/ 16ms
100 4M x 4 (or 16) bits DRAM circuit (up to 8M words)2048 cycles/ 32ms
101 101 to 111 not used (this writting is forbidden)
The cycle duration is always15.625ms (512 periods of theclock applied on XTAL1Pin).
70/83
Page 71
VIII - INTERNALREGISTERS(continued)
U,V,W,Z : These four bits define the differentsignals delivered by the MHDLC.
FirstCase :
theexternal RAM circuit is DRAM (T = 1 or S = 1)
- U definesthe time Tu comprised between beginningof cycle and fallingedge of NRAS :
U =1, Tu = 60ns- U = 0, Tu= 30ns
- V defines the timeTv comprisedbetween falling edge of NRASand fallingedge of NCAS:
V = 1,Tv = 60ns - V = 0, Tv= 30ns
- W definesthe timeTw comprisedbetween falling edge of NCAS and rising edge of NCAS:
W = 1, Tw = 60ns - W = 0, Tw = 30ns
- Z defines the time Tz comprisedbetween risingedge of NCASand end of cycle :
Z = 1,Tz = 60ns - Z = 0, Tz= 30ns
Thetotal cycle is Tu + Tv+ Tw+ Tz.
Thedifferent output signals are highimpedanceduring15ns beforethe end of each cycle.
SecondCase :
theexternal RAM circuit is SRAM (T = 0 or S =0)
- U and Vdefinea part of write cycle for SRAM: the time Tuvcomprisedbetweenfalling edge
and rising edge of NCE. The total ofwrite cycle is : 15ns+Tuv+ 15ns.
VUTuv
0030ns
0160ns
1090ns
11120ns
- Wand Z definea partof readcyclefor SRAM: thetimeTwzcomprisedbetweenfallingedge
of NOE and rising edge of NOE.The totalof readcycle is : Twz +30ns
ZWTwz
0030ns
0160ns
1090ns
11120ns
N.B.The differentoutput signals are high impedance during 15ns before theend of eachcycle.On the outside of each (DRAM
or SRAM) cycle all the outputs are high impedance or not in accordance with MBL bit (see ”MBL : Memory Bus Low
impedance”).
STLC5464
Memory
bit15bit8bit7bit 0
P4E1 P4E0 P3E1 P3E0 P2E1 P2E0 P1E1 P1E0ZWVUTSRREF
After reset (E400)
H
P1E0/1 : PRIORITY 1 for entity defined by E0/1
P2E0/1 : PRIORITY 2 for entity defined by E0/1
P3E0/1 : PRIORITY 3 for entity defined by E0/1
P4E0/1 : PRIORITY 4 for entity defined by E0/1
PRIORITY5 is the last priority for DRAM Refresh if validated. DRAM Refreshobtains PRIORITY 0 (the
firstpriority) automatically when thefirst half cycle is spend without accessto memory.
The23 more significant bits define one of 8 Megawords.(One word comprises two bytes.)
Theleast significant bit defines one of two bytes when the microprocessorselects one byte.
, theRx DMAController hasthe PRIORITY1
H
the Microprocessor has the PRIORITY2
the Tx DMAControllerhas the PRIORITY 3
the InterruptControllerhas the PRIORITY4
the DRAMRefresh has the PRIORITY5
These two bits define the sizeof Command/IndicateInterruptQueue in externalmemory.
The location is IBA+ 256 +HDLC Queuesize + MonitorChannel Queue Size (see The Initiate
BlockAddress(IBA)).
MS0/2 : MonitorChannel Interrupt Queue Size
These three bits define the size of Monitor Channel Interrupt Queue in externalmemory.
The location is IBA+ 256 +HDLC Queuesize.
HS0/2 : HDLCInterrupt Queue Size
These three bits define the size of HDLC status Interrupt Queue in external memory for each
channel.
The location is IBA+256(see The Initiate Block Address(IBA))
HS2 HS1 HS0
000128 words000128 words0064 words
001256 words001256 words01128 words
010384 words010384 words10192 words
011512 words011512 words11256 words
100640 words100640 words
101768 words101768 words
110896 words110896 words
1111024 words1111024 words
HDLC
Queue Size
MS2 MS1 MS0
MON
Queue Size
CS1 CS0
C/I
Queue Size
72/83
Page 73
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.29- Interrupt Register - IR (38)H
bit15bit8bit7bit 0
NuNu SFCO PRSR TIMINT
FOV
This register is readonly.
Whenthis register is read by themicroprocessor, this register is reset(0000)
If not masked,each bit at ”1” generates ”1” on INT0pin.
HDLC: HDLC INTERRUPT
HDLC = 1, Tx HDLC or Rx HDLC has generated an interrupt The status is in the HDLC
queue.
C/IRX: Command/IndicateRx Interrupt
C/IRX = 1, Rx Commande/Indicatehas generatedan interrupt. The status is in the HDLC
queue.
MRX: Rx MONITOR CHANNEL INTERRUPT
MRX = 1, one Rx MONITORCHANNEL has generated an interrupt.Thestatusis intheRx
Monitor Channel queue.
MTX: Tx MONITORCHANNEL INTERRUPT
MTX= 1,one or severalTx MONITOR CHANNELS have generatedan interrupt. Transmit
MonitorInterruptRegister (TMIR)indicates the Tx MonitorChannels which have generated
this interrupt.
ICOV: INTERRUPT CIRCULAR OVERLOAD
ICOV= 1, Oneof three circular interrupt memories is completed.
RxFOV= 1,Rx DMACONTROLLERhasgeneratedan interrupt,itcannottransferdata from
Rx HDLC to externalmemory, itsfifo is completed.
TxFWAR: Tx DMA CONTROLLERFIFO WARNING
TxFWAR = 1, Tx DMA CONTROLLERhas generated an interrupt,its fifo is 3/4 completed.
TxFOV: Tx DMA CONTROLLERFIFO OVERLOAD
TxFOV= 1,Tx DMACONTROLLERhasgeneratedan interrupt,itcannottransferdata from
Tx HDLC to externalmemory, itsfifo is completed.
INTFWAR : INTERRUPT CONTROLLERFIFO WARNING
INTFWAR = 1, INTERRUPT CONTROLLER has generated an interrupt, its fifo is 3/4
completed.
INTFOV: INTERRUPT CONTROLLERFIFO OVERLOAD
INTFOV = 1, INTERRUPT CONTROLLER has generated an interrupt, it cannot transfer
status from DMAand GCI controllersto externalmemory, its internal fifois completed.
TIM: TIMER
TIM = 1, theprogrammabletimer has generatedan interrupt.
PRSR: PseudoRandom SequenceRecovered
PRSR= 1,thePseudo RandomSequencetransmittedby thegeneratorhas beenrecovered
by the analyzer.
SFCO: SequenceFault Counter Overload
SFCO= 1,the FaultCounter has reached the value FFFF(H).
INT
FWARTxFOVTxFWARRxFOVRxFWAR
After reset (0000)
H
ICOV MTX MRX C/IRX HDLC
.
H
73/83
Page 74
STLC5464
VIII - INTERNALREGISTERS(continued)
VIII.30- Interrupt Mask Register - IMR (3A)H
WhenIM0 =1, HDLCbit is masked.
WhenIM1 =1, C/IRX bit is masked.
WhenIM2 =1, MRXbit is masked.
WhenIM3 =1, MTXbit is masked.
WhenIM4 =1, ICOVbit is masked
WhenIM5 =1, RxFWAR bit is masked.
WhenIM6 =1, RxFOVbit is masked.
WhenIM7 =1, TxFWAR bit is masked.
WhenIM8 =1, TxFOV bit ismasked.
WhenIM9 =1, INTFWAR bit is masked.
WhenIM10 = 1, INTFOVbit is masked.
WhenIM11 = 1, TIMbit ismasked.
WhenIM12 = 1, PRSRbit ismasked.
WhenIM13 = 1, SFCObit is masked.
H
VIII.31- Time Register - TIMR (3C)H
bit15bit8bit7bit 0
S3S2S1S0MS9MS8MS7MS6MS5MS4MS3MS2MS1 MS0 MM1 MM0
0 to 5s0to 999ms0 to
After reset (0800)
id 512ms
H
3x0.25ms
Thisprogrammableregister indicates the time at the end of whichthe WatchDog deliverslogic ”1” on the
pinWDO (which is an output) but only if the microprocessordoes not reset the counterassigned (with the
help of WDR bit of IDCR Identificationand Dynamic Command Register) during the time defined by the
TimerRegister.
TheTimer Register and its counter can be usedas a time base by the microprocessor.An interrupt (TIM)
isgeneratedat eachperioddefinedby the Timer Registerif the microprocessordoesnot resetthe counter
withthe helpof WDR(bit of IDCR).
WhenTSV=1{Time Stamping Validated(GCR)} this programmable registeris not used.
VIII.32- TestRegister - TR(3E)H
bit15bit8bit7bit 0
T15/0 : Testbits 0/15
These bits are reserved for the test of thecircuitin production
74/83
Page 75
STLC5464
IX- EXTERNALREGISTERS
These registers are located in shared memory. Initiate Block Address Register (IBAR) gives the Initiate
BlockAddress(IBA) in sharedmemory(see RegisterIBAR(34)Hon Page73).
‘Not used’ bits (Nu) are accessible bythe microprocessorbut the use of thesebits by software is not
recommended.
IX.1- InitializationBlock in External Memory
Descriptor Address
ChannelAddressbit15bit8bit7bit0
T
CH 0
R
T
CH1
R
IBA+00Not usedTDA High
IBA+02Transmit Descriptor Address (TDA Low)
IBA+04Not usedRDA High
IBA+06Receive Descriptor Address (RDA Low)
IBA+08Not usedTDA High
IBA+10Transmit Descriptor Address (TDA Low)
IBA+12Not usedRDA High
IBA+14Receive Descriptor Address (RDA Low)
CH 2
to
CH30
T
CH 31
R
IBA+16
to
IBA+246
IBA+248Not usedTDA High
IBA+250Transmit Descriptor Address (TDA Low)
IBA+252Not usedRDA High
IBA+254Receive Descriptor Address (RDA Low)
WhenDirectMemoryAccessControllerreceivesStartfrom oneof 64channels,it readsinitializationblock
immediatelyto knowthe first addressof thefirst descriptor for this channel.
Bit 0 of Transmit Descriptor Address (TDA Low) andbit 0 of Receive Descriptor Address (RDALow), are
at ZERO mandatory. This Least Significant Bit is not used by DMAController, The sharedmemory is
alwaysa 16bit memory for theDMA Controller.
N.B. If severaldescriptorsare used to transmit one frame then before transmittingframe, DMA Controller
storesthe address of the first TransmitDescriptor Address into this InitializationBlock.
This receive descriptoris located in sharedmemory.The quantity of descriptorsis limitedbythe memory
sizeonly.
1514131211109876543210
RDA+00IBCEOQSize Of theBuffer (SOB)0
RDA+02Not usedRBA High (8 bits)
RDA+04Receive Buffer Address Low (16 bits)
RDA+06Not usedNRDA High (8 bits)
RDA+08Next Receive DescriptorAddress Low (16 bits)
RDA+10FRABTOVFFCRCNumber ofBytes Received (NBR)
The 5 first words locatedin sharedmemory to RDA+00 from RDA+08 are written by the microprocessor
and read bythe DMAConly. The 6th word locatedin sharedmemoryin RDA+10is writtenby the DMAC
only during the frame reception and read by themicroprocessor.
SOB: Size Of the Buffer associatedto descriptor up to 2048words (1 word = 2 bytes).
If SOB= 0, DMAC goes to next descriptor.
RBA: Receive Buffer Address. LSBof RBALow is at Zeromandatory.
RDA: ReceiveDescriptorAddress.
NRDA : NextReceive Descriptor Address.LSB of NRDALow is at Zero mandatory.
NBR: Numberof Bytes Received (up to 4096).
IX.2.1 - Bits written by theMicroprocessoronly
IBC: Interruptif thebufferhas been completed.
IBC=1,the DMAC generatesan interrupt if thebufferhas beencompleted.
EOQ: End Of Queue.
EOQ=1,the DMACstops immediately its reception generatesan interrupt(HDLC =1 in IR) and
waits a command from the HRCR (HDLC Receive Command Register).
EOQ=0,the DMACcontinues.
IX.2.2 - Bits written by theRx DMAC only
FRABTOVFFCRCDefinition
1000The frame has been received without error. The end of frame is in this buffer.
1001The frame has been received with false CRC.
0000If NBR is different to 0, the buffer related to this descriptor is completed.The end
0000If NBR is equal to 0, the Rx DMAC is receiving a frame.
0100ABORT. The received frame has been aborted by the remote transmitter or the
0110OVERFLOW of FIFO. The received frame has been aborted.
0101The received framehad notan integerof bytes.
of frame is not in this buffer.
local microprocessor.
IX.2.3 - Receive Buffer
Eachreceivebuffer is defined by its receive descriptor.
Themaximum size of thebuffer is 2048words (1 word=2 bytes)
The 5 first words locatedin shared memory to TDA+00 from TDA+08 are written by the microprocessor
and read by the DMAC only.The 6th word located in sharedmemory in TDA+10is written by the DMAC
only during the frame reception and read by themicroprocessor.
NBT: Numberof Bytes to be transmitted(up to4096).
TBA: Transmit BufferAddress. LSB of TBALow is at Zero mandatory.
TDA: TransmitDescriptorAddress.
NTDA : Next Transmit DescriptorAddress.LSB of NTDALow is at Zero mandatory.
IX.3.1 - Bits written by theMicroprocessoronly
BINT: Interruptat the end of theframe or whenthe bufferis becomeempty.
BINT= 1,
if EOF = 1 the DMAC generatesan interruptwhen the frame has been transmitted ;
if EOF = 0 the DMAC generatesan interruptwhen the buffer is become empty.
BINT= 0,the DMACdoes not generatean interrupt during the transmission of the frame.
BOF: BeginningOf Frame
BOF=1,thetransmitbufferassociatedtothistransmitdescriptorcontainsthebeginningofframe.
BOF= 0,thetransmitbufferassociatedtothis transmitdescriptordoesnot containthe beginning
of frame.
EOF: End Of Frame
EOF= 1,thetransmit buffer associated to this transmit descriptorcontainsthe end of frame.
EOF = 0,the transmit bufferassociatedto thistransmit descriptor does not contain the end of
frame.
EOQ: End Of Queue
EOQ = 1, the DMAC stops immediately its transmission, generates an interrupt(HDLC = 1 in
IR) and waitsa commandfrom theHTCR (HDLC Transmit CommandRegister).
EOQ= 0, the DMACcontinues.
CRCC : CRC Corrupted
CRCC= 1,atthe endof this frame the CRC will be corruptedby theTx HDLC Controller.
PRI: Priority Class 8 or 10
PRI = 1, if CSMA/CR is validatedfor thischannel, the priority class is 8.
PRI = 0, if CSMA/CR is validatedfor thischannel the priority class is 10.
(seeRegister CSMA)
77/83
Page 78
STLC5464
IX- EXTERNALREGISTERS(continued)
IX.3.2 - Bits written by theRx DMAC only
CFT: Framecorrectly transmitted
CFT = 1, theFramehas been correctly transmitted.
CFT = 0, theFramehas not beencorrectly transmitted.
ABT: FrameTransmittingAborted
ABT= 1,the frame hasbeen abortedby the microprocessorduring the transmission.
ABT= 0,the microprocessor has not aborted the frameduring the transmission.
UND: Underrun
UND = 1, thetransmit FIFO has notbeen fed correctlyduring the transmission.
UND = 0, thetransmit FIFO has beenfed correctlyduring the transmission.
IX.3.3 - TransmitBuffer
Eachtransmitbuffer is defined by its transmitdescriptor.
Themaximum size of thebuffer is 2048words (1 word=2 bytes)
150
TBAFirst Wordto Transmit
TBA + x ;
NBT is odd : x = NBT- 1
NBT is even : x = NBT- 2
Last Word to Transmit
IX.4- Receive& TransmitHDLC FrameInterrupt
bit15bit8bit7bit 0
NS0TxA4A3A2A1A0000CFT/CFR BE/BF HALT EOQ RRLF/ERF
Thisword is locatedin theHDLC interruptqueue ; IQSRRegisterindicates the size of this HDLC interrupt
queuelocated in the externalmemory.
NS: NewStatus.
Before writing the features of event in the external memory the Interrupt Controller reads the
NS bit :
if NS = 0, the Interrupt Controller puts this bit at ‘1’when it writes the statusword of theframe
whichhas been transmitted or received.
if NS = 1, the Interrupt Controller puts ICOVbit at ‘1’ to generate an interrupt(IR Register).
Whenthe microprocessorhasread thestatus word,it putsthis bit at ‘0’ to acknowledgethenew
status.This location becomes free for the InterruptController.
The Transmit DMA Controller (or the Receive DMA Controller) has encountered the current
Descriptorwith EOQ at ”1”. DMAControlleris waiting ”Continue”from microprocessor.
HALT : TheTransmitDMAControllerhasreceivedHALTfromthemicroprocessor;itiswaiting”Continue”
frommicroprocessor.
BE: BufferEmpty
If BINTbit of TransmitDescriptoris at ‘1’, the Transmit DMAController puts BE at ”1” when the
bufferhas beenemptied.
CFT: CorrectlyFrameTransmitted
Aframe has been transmitted.This status is provided only if BINTbit of Transmit Descriptor is
at ‘1’. CFT is located in the lastdescriptor if severaldescriptors are used to define a frame.
78/83
Page 79
STLC5464
IX- EXTERNALREGISTERS(continued)
Receiver
Tx: Tx = 0, Receiver
A4/0: Rx HDLC Channel 0 to 31
ERF: Errordetected on ReceivedFrame
An error such as CRC not correct,Abort, Overflow has been detected.
EOQ: End of Queue
The receive DMA Controller has encounteredthe current receive Descriptor with EOQ at ”1”.
DMAController is waiting ”Continue”from microprocessor.
HALT : The Receive DMAController has received HALT or ABORT(on the outsideof frame)from the
microprocessor; it is waiting”Continue” from the microprocessor.
BE: BufferFilled
If IBC bit of ReceiverDescriptor is at ‘1’,the Receive DMAController puts BF at”1” when it has
filledthe current bufferwith data from the received frame.
CFR: Correctly FrameReceived
Areceiveframeisended witha correctCRC.Theend oftheframeislocatedinthelastdescriptor
if severalDescriptors.
This word is located in the Command/Indicate interrupt queue ; IQSR Register indicates the size of this
interruptqueuelocated in the external memory.
NS: NewStatus.
Before writing the features of event in the external memory the Interrupt Controller reads the
NS bit :
if NS = 0, the InterruptControllerputs this bit at ‘1’ when it writes the new primitive whichhas
been received.
if NS = 1, the Interrupt Controller puts ICOVbit at ‘1’ to generate an interrupt(IR Register).
Whenthe microprocessorhasread thestatus word,it putsthis bit at ‘0’ to acknowledgethenew
status.This location becomes free for the InterruptController.
G0: G0= 0, GCI 0 correspondingto DIN4input and DOUT4 output.
G0 = 1, GCI 1 correspondingto DIN5 input and DOUT5 output.
A2/0: COMMAND/INDICATEChannel 0 to 7 beingowned by GCI 0 or GCI 1
C6/1: New Primitive received twice consecutively
Thesetwo wordsare located in the Command/Indicateinterrupt queue ; IQSRRegisterindicatesthe size
of this interrupt queue located in the external memory.
NS: NewStatus.
Before writing the features of event in the external memory the Interrupt Controller reads the
NS bit :
if NS = 0, the InterruptControllerputs this bit at ‘1’ when it writes the new primitive whichhas
been received.
if NS = 1, the Interrupt Controller puts ICOVbit at ‘1’ to generate an interrupt(IR Register).
Whenthe microprocessorhasread thestatus word,it putsthis bit at ‘0’ to acknowledgethenew
status.This location becomes free for the InterruptController.
G0: G0= 0, GCI 0 correspondingto DIN4input and DOUT4 output.
G0 = 1, GCI 1 correspondingto DIN5 input and DOUT5 output.
A2/0: COMMAND/INDICATEChannel 0 to 7 beingowned by GCI 0 or GCI 1
C6/1: New Primitive received twice consecutively
T15/0 : Binary counter valuewhen a new primitive is occurred.
TSV: Time Stamping not Validated(bit of GCR Register)
bit15bit8bit7bit 0
NSG0A2A1A0ODDAFL
M18M17M16M15M14M13M12M11M8M7M6M5M4M3M2M1
Thesetwo words are transferredinto the Monitor interruptqueue ; IQSR Registerindicatesthe size of this
interruptqueuelocated in the external memory.
NS: NewStatus.
Before writing the features of event in the external memory the Interrupt Controller reads the
NS bit :
if NS = 0,the InterruptControllerstores two new bytes M1/8 and M11/18then puts NS bitat ‘1’
when it writes the status of these two byteswhich has beenreceived.
if NS = 1, the Interrupt Controller puts ICOVbit at ‘1’ to generate an interrupt(IR Register).
G0: G0= 0, GCI 0 correspondingto DIN4input and DOUT4 output.
G0 = 1, GCI 1 correspondingto DIN5 input and DOUT5 output.
L: Last byte
L= 0,the followingword and the previousword does not containsthe Last byte of message.
F: First byte
F=1, the following word containsthe Firstbyte of message.
F=0, the following word does not containthe First byte of message.
A: Abort
A=1, Receivedmessage has been aborted.
80/83
Page 81
STLC5464
IX- EXTERNALREGISTERS(continued)
ODD: Odd byte number
ODD= 1, onebyte has been written in the following word.
ODD= 0, twobytes havebeen written in the following word.
In case of V*protocol ODD,A,F,Lbits are respectively1,0,1,1.
M1/8: New Byte received twiceconsecutivelyif GCIProtocolhas been validated.
Bytereceivedonce if V*Protocolhas been validated.
M11/18 : Nextnew Bytereceived twiceconsecutivelyif GCI Protocol has been validated.
This byte is at”1” in case of V*protocol.
IX.6.2 - Receive MonitorInterrupt when TSV = 1
TSV: Time Stamping Validated(bit of GCR Register)
bit15bit8bit7bit 0
NSG0A2A1A0ODDAFL
M18M17M16M15M14M13M12M11M8M7M6M5M4M3M2M1
T15T14T13T12T11T10T9T8T7T6T5T4T3T2T1T0
0000000000000000
These four words are located in the Monitor interrupt queue ; IQSR Register indicates the size of this
interruptqueuelocated in the external memory.
NS: NewStatus.
Before writing the features of event in the external memory the Interrupt Controller reads the
NS bit :
if NS = 0,the InterruptControllerstores two new bytes M1/8 and M11/18then puts NS bitat ‘1’
when it writes the status of these two byteswhich has beenreceived.
if NS = 1, the Interrupt Controller puts ICOVbit at ‘1’ to generate an interrupt(IR Register).
G0: G0= 0, GCI 0 correspondingto DIN4input and DOUT4 output.
G0 = 1, GCI 1 correspondingto DIN5 input and DOUT5 output.
L: Last byte
L= 1,the followingword contains the Last byte ofmessage.
L= 0,the Last byteof message is not the following word.
F: First byte
F=1, the following word containsthe Firstbyte of message.
F=0, the First byte of messageis notthe following word.
A: Abort
A=1, Receivedmessage has been aborted.
ODD: Odd byte number
ODD= 1, onebyte has been written in the following word.
ODD= 0, twobytes havebeen written in the following word.
M1/8: New Byte received twiceconsecutivelyif GCIProtocolhas been validated.
Bytereceivedonce if V*Protocolhas been validated.
M11/18 : Nextnew Bytereceived twiceconsecutivelyif GCI Protocol has been validated.
This byte is at”1” in case of V*protocol.
T15/0 : Binary counter valuewhen a new primitive is occurred.
Informationfurnishedis believed to be accurate and reliable.However, SGS-THOMSONMicroelectronics assumes no responsibility
for theconsequences of use of such information nor for any infringement of patents or other rights of third parties which may result
from itsuse. No licence is grantedby implication orotherwise underany patent or patent rights of SGS-THOMSON Microelectronics.
Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all
informationpreviouslysupplied.SGS-THOMSON Microelectronics products are notauthorized for useas criticalcomponents inlife
support devices or systems without express written approval of SGS-THOMSON Microelectronics.
1997 SGS-THOMSON Microelectronics - All Rights Reserved
Purchase of I
2
C Patent. Rights to use these components in a I2C system,is granted provided that the system conforms to
I
2
C Components of SGS-THOMSON Microelectronics, conveys a license under the Philips
2
the I
C Standard Specifications as defined by Philips.
SGS-THOMSON Microelectronics GROUP OF COMPANIES
Australia - Brazil - Canada - China - France - Germany - Hong Kong - Italy - Japan - Korea - Malaysia - Malta- Morocco
The Netherlands - Singapore - Spain - Sweden - Switzerland - Taiwan - Thailand - UnitedKingdom - U.S.A.
83/83
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.