nMeets CCITT Rec.G704
nInterface to route selectable between
HDB3 and fibre optical
nHDB3 outputs switchable between fully
bauded and half bauded format
nError checking via CRC4 procedure
nInsertion and extraction of alarms and
facility signals
nSelectable system - clock (4096 kHz/
8192 kHz)
nSelectable Interface mode (2048/4096
kBit/s) to system internal highway
nProgrammable offsets for receive and
transmit data
nTwo frame receive buffer for receive
route clock wander and jitter
compensation
nSlip detection and direction indication
nExtended HDB3 error detection
SA9101
PCM FRAME ALIGNER
nError counters for code errors
(switchable to "Si zeros counter"), frame
errors and CRC4 errors
nSub-multiframe assigned CRC Error
indication with possibility of automatic
insertion in Si-bit position of outgoing
multiframe.
nSimplified data transfer between
SA9101 and controller, supported by
data stacks for receive and transmit
signalling data, selectable interruptsources and DMA facilities.
nDouble frame marker for serial data
extraction support
nRepeated transmission of signalling
data, if not updated.
nThree transparent modes for timeslot 0
in transmit direction
nTransparent mode for receive direction
nHDB3 error indication
nIdle channel data insertion selectable
for any timeslot
nChannel loopback capabilities, test and
diagnostic capabilities
nParity checks
DESCRIPTION:
The SA9101 (Frame Alignment unit for PCM30 Systems) is a C-MOS device which
implements the interface to PCM30 Transmission Systems.
In the receive direction, the device performs HDB3 decoding, Frame alignment
(selectable between doubleframe and CRC-Multiframe) and extraction of signalling
data.
Wander absorption between the PCM carrier and the system internal highway is
performed using an internal 2 frame memory. The incoming data stream is monitored
and
M71-1797PDS039-SA9101-001 REV.A 09-09-94
1/40
Page 2
SA9101
Description (Cont.)
status and error conditions are reported through the µP interface. In the transmit
direction, Frame (and Multiframe) alignment, signalling data insertion and HDB3 coding
is performed.
If Multiframe format is enabled, CRC4 extraction and checking are carried out in the
receive direction and CRC4 data is inserted in the transmit direction.
Stacks for transmit and receive signalling data with DMA capability as well as maskable
interrupt sources simplify interfacing to microcontrollers.
Alarm simulation capabilities and selectable channel-loopback, support system
diagnostics.
Different transparent modes for timeslot 0 in transmit direction simplify system test and
data transmission through the system.
Advanced algorithms for synchronisation of doubleframe and CRC4 multiframe format
data, and monitoring of frame and doubleframe formats minimise loss of data.
Control Registers allow different control settings through the µP interface.
Advanced C-MOS Technology ensures low power consumption and high reliability.
The device is upwards compatible with the Siemens ACFA (PEB 2035 V4.1) in PCM30
mode.
PIN CONNECTIONS
2/40
Package: DIP/DIC - 40Package: PLCC - 44
sames
Page 3
Block Diagram
SA9101
sames
3/40
Page 4
SA9101
ELECTRICAL CHARACTERISTICS
Absolute Maximum Ratings*
ParametersSymbolMinMaxUnit
Supply VoltageV
Voltage on any I/O pinV
Current on any I/O pinI
Storage TemperatureT
Operating TemperatureT
Package Power DissipationP
*Stress above those listed under "Absolute Maximum Ratings" may cause permanent damage
to the device. This a stress rating only. Functional operation of the device at these or any other
condition above those indicated in the operational sections of this specification, is not implied.
Exposure to Absolute Maximum Ratings for extended periods may affect device reliability.
DC Operational Characteristics
= 5V, T = 10°C..+70°C
V
DD
Parameter Symbol Min.Max. Unit Remarks
Supply VoltageV
Supply Current (dynamic)I
Standby CurrentI
Inputs
High VoltageV
Low VoltageV
Leakage CurrentI
Input ACKNQ
Pullup Current-I
Outputs
High VoltageV
Low VoltageV
Bidirects
Input High VoltageV
Input Low VoltageV
Tristate CurrentI
Output High VoltageV
Output Low VoltageV
Double Frame Marker
COSI2327Carrier out of Service
DRAI2731Receive Data in Plus
DRBI2630Receive Data in Minus
DROO24Receive Data Out
DXAO3842Transmit Data Out Plus
DXBO3943Transmit Data Out Minus
DXII3034Transmit Data In
D[7-0]B14-716-9Data Bus
OPINI2933Receive Optical Interface Data
OPOUTO68Transmit Optical Interface Data
RCAS/RREQO3539Receive TS16 Signal/Receive DMA
S34380V Ground
WRQI2125Write Enable
XCHPARO3337Transmit Channel Parity
XRCLKO3741Transmit Route Clock
XTOMO13Test Data Output Minus
XTOPO4044Test Data Output Plus
sames
5/40
Page 6
SA9101
DESCRIPTION OF INTERFACES
Fibre Optical Interface
The fibre optical interface is enabled via the microprocessor interface.
SignalPinInput/Output/BidirectFunction
OPIN29IOptical Fibre In
Unipolar Input Signal at 2048 kbps
Input polarity sense is programmable
via CR8B3. Latching of data is
performed with the falling edge of
RCLK if optical interface is selected
via CR1B2. (See Fig. 6 Line Interface
Timing.)
OPOUT6OOptical Fibre Out
Unipolar Output Signal at 2048 kbps
The output's active polarity is
programmable via CR6B7. Data is
clocked out on the rising edge of
XRCLK. Data duty cycle is 100%.
(See Fig. 6 Line Interface Timing.)
RCLK25IRoute Clock
This clock, derived from the incoming
data by the line interface circuit (eg.
IPAT (PEB2235)), is necessary for
clocking received data into the SA9101.
XRCLK37OTransmit Route Clock
This 2048kHz clock is generated from
the Station Clock, SCLK. (See Fig. 5
System Interface Timing and Fig. 6
Line Interface Timing.)
PCM30 Interface
SignalP i nInput/Output/BidirectFunction
DRA27,IData Receive +/DRB26IHDB3 coded PCM Signal
DXA38,OData transmit +/DXB39OHDB3 coded PCM Signal
RCLK25IRoute Clock f = 2.048 MHz
XRCLK37OTransmit route clock
Frequency:8 kHz
Duration: 488 ns
If loss of synchronisation, the line frame
pulse is inhibited
SYPQ28ISynchronous Pulse
Defines start of frame for System internal
data, together with the programmed offset
values of transmit and receive counter.
Pulse width: >244 ns
Period:Multiples of 125µs
DIU Controller
SignalPinInput/Output/BidirectFunction
D0 - D77 - 14BBidirectional 8 bit data-bus
A0 - A316 - 19 IAddress lines for SA9101 internal
registers
CEQ22 IChip enable input
WR Q21 IWrite enable input
RDQ20 IRead enable input
COS23 ICarrier out of service input.
SA9101 sends AIS to PCM30 interface
if input is at “1”
XREQ36OTransmit DMA interrupt request
Timeslot channels 0 - 31 to/from PCM30 interface.
Bit rate 2048 kbit/s or 4096 kbit/s selectable via microprocessor interface.
CAS Processing
SignalPinInput/Output/BidirectFunction
DRO2OData Receive Out
DXI30 IData Transmit In
RCAS35OReceive CAS, active high marks
reception of channel 16
TCAS36OTransmit CAS, active high marks
transmission of channel 16
Test/Supervision
SignalPinI nput/Output/BidirectFunction
CHPAR4OReceive Channel parity
Appears according to the related
channel (timeslot)
DFPAR3ODoubleframe Parity
During a current double-frame, the
parity of the previous double-frame
appears on DFPAR
XTOP40,OHDB3-coded PCM (+), PCM (-) signal
XTOM1Ofor HDB3 diagnostic loop
RESQ31IReset (Output Disable)
Asynchronous reset signal (active low),
resets the internal circuit and switches
all outputs to high impedance state -
must be held low for minimum of 2µs
XCHPAR33ITransmit channel parity
8/40
sames
Page 9
SA9101
FUNCTIONAL DESCRIPTION
Receive path
Receive Link Interface
For data input, two different data types, with selectable input active polarity sense, are
supported:
-Dual rail data (PCM[+], PCM[-]) at ports DRA, DRB received from a Line Interface
Unit.
-Unipolar data at port OPIN (PCM 30) received from a fibre optical Interface.
Latching of data is carried out using the falling edge of the Receive route Clock
(RCLK, 2048 kHz) recovered from the PCM receive data stream. Dual rail data is
subsequently converted into a single rail, unipolar bit stream. The HDB3 line code
is used along with Double Violation Detection or Extended Code Violation Detection
(selectable). These errors increment the Code Violation Counter.
When using the unipolar input mode, the decoder is by-passed and no code violation
will be detected.
Additionally, the receive Link Interface comprises the alarm detection for AIS (Alarm
Indication Signal: unframed bit stream with constant logical ‘one’) and NOS (No
Signal: Input signal with insufficient bit rate or insufficient density of ones).
The single rail bit stream is then processed by the Receiver.
Receiver
The following functions are performed:
-Synchronization of pulse frame
-Synchronization of CRC4 multi-frame
-Error Indication when pulse frame synchronization is lost. In this case, AIS is sent to
the system side. If the receiver is in transparent mode, AIS is suppressed.
-Initiating and controlling of re-synchronization after loss of synchronization. This may
be carried out automatically by the SA9101, or under user control via the microprocessor
interface.
-Detection of Remote Alarm Indication from the incoming data stream.
-Separation of service bits and data link bits. This information is stored in special status
registers.
-Generation of control signals to synchronize the CRC checker, the parity generator,
and the Receive Speech Memory control unit.
If the multi-frame format is selected, CRC checking of the Incoming data stream is
done by generating check bits for a CRC submultiframe according to the CRC 4
procedure (PCM30, refer to CCITT Rec. G704). These bits are compared with those
check bits that are received during the next CRC sub-multiframe. If there is a
mismatch, the CRC error counter will be incremented. This 8-bit counter (default) can
be extended to 10-bit length, by writing to the control registers.
sames
9/40
Page 10
SA9101
Receive Speech Memory
The speech memory is organized as a two-frame elastic buffer with a size of 64 x 9 bit
(8-bit channel data plus one parity bit).
The functions are:
-Compensation of Input wander and jitter. Maximum wander amplitude (peak-to-
peak) = 190 UI (1UI = 488 nS)
-Frame alignment between system frame and receive route frame
-Reporting and controlling of slips
Controlled by special signals generated by the Receiver, the unipolar bit stream is
converted into bit-parallel, channel-serial data which is circularly written to the speech
memory. At the same time, a parity signal is generated over each channel and also
stored in the speech memory.
Reading of stored data is controlled by the System Clock (SCLK) and the Synchronization
Pulse (SYPQ) in conjunction with the programmed offset values for the Receive timeslot/
Clock slot Counters. After conversion into a serial data stream and parity checking
(errors are reported via the status registers), the data is given out via port DRO. Channel
parity information is output at port CHPAR with selectable parity type (odd or even). Two
bit rates (2048/4096 kbps) are selectable via the microprocessor interface.
Figure 1.0: The Receive Speech Memory as circularly organized memory
10/40
sames
Page 11
SA9101
Figure 1.0 illustrates the operation of the receive Speech Memory:
A slip condition is detected when the Write Pointer (W) and the Read pointer (R) of the
memory are nearly coincident, i.e. the Write pointer is within the Slip Limits (S+, S-). If
a slip condition is detected, a negative slip ( the next received frame is skipped) or a
positive slip (the previous received frame is read out twice) is performed at the System
Interface, depending on the difference between RCLK and SCLK, i.e. on the position of
pointer R and W within the memory.
To reduce delay, the Receive Speech Memory can be switched to one frame length. For
correct operation, System Clock SCLK and Synchronization Pulse SYPQ have to be
derived from the Receive Route Clock RCLK and the Receive Frame Synchronous Pulse
RFSPQ (PLL application). In Single Frame Mode, however, it is not possible to perform
a slip after the slip condition has been detected.
Receive Transparent Mode
If enabled, the frame aligner does not try to synchronise on the received data if
synchronisation is lost. The AIS to the System Interface is disabled. The data appears
on the System Interface synchronised to the System Clock (SCLK) as received.
Transmit path
The PCM data is received from the system internal highway at port DXI at 2048 kbps or
4096 kbps. The channel assignment is equivalent to the receive direction. Data in invalid
timeslots will be ignored.
Latching of data is controlled by the System Clock (SCLK) and the Synchronization Pulse
(SYPQ), in conjunction with the programmed offset values of the Transmit Timeslot/
Clockslot Counters.
The Transmit Route Clock (XRCLK) is derived directly from the system clock by an
internal clock divider. Consequently, the data received from the system interface is
switched through without the need of intermediate storage.
The parity generation/checking mechanism is symmetrical to the receive path. The
channel data is checked with the channel parity information generated internally or
externally (input at port XCHPAR with selectable parity type). Errors are reported to the
microprocessor interface. To avoid difficulties with external parity generation, the parity
signal for non-speech data (TS0 and TS16) is ignored.
Transmitter
The serial bit stream is then processed by the transmitter which has the following
functions:
-Frame/multiframe synthesis of one of the selectable framing formats
-Insertion of service and data link information.
-Remote Alarm generation
-CRC generation and insertion of CRC bits
sames
11/40
Page 12
SA9101
Transmit Link Interface
Similar to the Receive Link Interface two different data types with selectable active
polarity for the output are supported:
-Dual rail data (PCM[+], PCM[-]) at ports DXA, DXB with selectable duty cycle (50%
or 100%) transmitted to a Line Interface Unit. Single rail data is converted into a dual
rail bit stream. The HDB3 line code is employed.
-Unipolar data at port OPOUT with 100% duty cycle transmitted to a fibre optical
interface.
Clocking of data is carried out on the positive transitions of the Transmit Route Clock:
XRCLK (2048 kHz). XRCLK is generated by the SA9101.
Additionally, the dual rail outputs XTOP and XTOM are provided for test applications.
Additional functions
Alarm Interrupt
Normally, the control of data transmission via the PCM line is carried out by polling the
internal status registers of the SA9101 at equal time intervals. However, for fast error
handling the option exists to configure a specific output port as interrupt port (AINT). This
signal may be connected to an interrupt input of the on-board processor. Triggering of
the output may be caused by up to 10 maskable interrupt sources.
Single Channel Loop Back
As one of the extended test options, the Single Channel Loop Back enables reflection
of a selected channel back to the system interface at port DRO.
TS16 Extraction/Insertion
TS16 data can be extracted/inserted via the µP or the DMA facility provided. For µP
interface, RREQ/XREQ act as interrupts. When one of these interrupts is received two
bytes must be read/written consecutively before next frame information is written into it.
For DMA operation see detailed timing diagram, Fig 7.3. (See DIU Controller Pin
description table, CR6B6 Register and SR5B5 Register descriptions.)
Data Extraction/Insertion is also possible through the serial ports DRO and DXI by using
a multiplexer in conjunction with the control signals RCAS/TCAS generated by the
SA9101.
Serial Data extraction on System Side
Together with the Double Frame Marker generated by the SA9101, any position in the
serial data can be pointed to, for extraction.
Idle Code Insertion
In TX direction any channel can be selected for idle code insertion using the Idle Channel
Register bank.
12/40
sames
Page 13
SA9101
Signal Processing
General
PCM line bit rate:2048 kbps ±50 ppm
Single frame length:256 bit, No. 1 ... 256
Framing frequency:8 kHz
Organization:32 timeslots, No. 0 ... 31
with 8 bits each, No. 1 ... 8
Timeslot 0 is reserved for frame alignment word and service Information. Switching
between the two word framing formats (Doubleframe/CRC-Multiframe) is done via the
Control Register.
Line Interfacing
-Dual rail data with HDB3 coding in conjunction with double violation detection or
extended code violation detection. Errors are counted by the Code Violation
Counter. (Selectable between 8 and 10 bit counter.)
-Single rail unipolar data with no zero suppression algorithm.
General alarms
-AIS:Detection and Transmission.
-NOS:No Signal Detection.
-RAI:Remote Alarm Indication and Transmission.
Channel Assignment (including Timeslot 0)
The channel (timeslot) assignment from the PCM line to the system internal highway is
performed without any changes of channel numbering (TS0,...,TS31). In the receive
direction, the contents of timeslot 0 are switched through transparently. In the transmit
direction, the contents of timeslot 0 of the outgoing PCM frame are normally generated
by the SA9101. Additionally, one of three Transparent Modes can be selected to achieve
transparency either for Sn bit information, Sn and Si bit information or for all of the data
in timeslot 0.
Sn and Si bits can be fed through from the system interface (DXI) by activating transparent
mode CR5B4, known as Timeslot 0 Signalling Transparent mode. Only Sn bits can be
fed through DXI when the Extended Signalling Transparent mode is activated.
2) Automatic transmission of submultiframe error indication is selectable
General signalling
-Sn (Y) bits.
-Si bits.
Signalling
-CCS: For Common Channel Signalling the use of timeslot 16 is recommended. The
use of CCS is allowed with both the doubleframe and the CRC-Multiframe format.
-CAS-CC: For Channel Associated Signalling the use of timeslot 16 is recommended.
The autonomous CAS multiframe structure is not related to a doubleframe or a CRCMultiframe structure (refer to CCITT G704 paragraph 3.3.3). Note: CAS multiframe
synchronization and syntheses are not performed by the SA9101.
Doubleframe format
The framing structure is defined by the contents of timeslot 0 (refer to table 1).
Alternate Frames
Bit Number
1 2 3 45678
Frame containing the frameS
0 0 11011
i
alignment signalNote 1Frame alignment signal
Frame not containing theSi 1 AS
n0
frame alignment signalNote 1 Note 2 Note 3Note 4
Table 1: Allocation of bits 1 to 8 of Timeslot 0
14/40
sames
S
S
S
n1
n2
S
n3
n4
Page 15
SA9101
1.Si bits: reserved for international use. If not used, these bits should be
fixed to ‘1’. Access to received information via bits SR4B7 and SR5B2.
Transmission is enabled via bits CR4B7 and CR5B2.
2.Fixed to ‘1’. Used for synchronization.
3.Remote Alarm Indication: In normal operation ‘0’; in alarm condition ’1'.
Transmission is done through CR4B5 and reception is indicated by interrupt
(maskable) and SR0B4.
4.Sn (Y) bits: Reserved for national use. If not used, they should be fixed at
‘1’. Access to received information via bits SR4B[4-0]. Transmission is
enabled via bits CR4B[4-0]
Synchronization procedure
Synchronization status is reported via µP-interface Status Register. Framing errors are
counted by the Framing Error Counter. Loss of synchronization is reached after detecting
3 consecutive incorrect FAS words or 3 consecutive incorrect service words (bit 2 ≠ 1 in
timeslot 0 of every frame not containing the frame alignment word). When this occurs,
counting of framing errors will be stopped and AIS will be sent to the system internal
highway.
The re-synchronization procedure starts automatically after entering loss of synchronisation
state. Additionally, it may be invoked under user control via the µP-interface.
Synchronized state is reached after detecting:
-a correct FAS word in frame n,
-the presence of the correct service word (bit 2 = 1) in frame n+1
-a correct FAS word in frame n+2
Normal Synchronized operation starts with the data in frame n+2.
CRC-Multiframe
The multiframe structure shown in table 2 is enabled via µP-interface.
Multiframe:2 submultiframes = 2*8 frames
Multiframe alignment:bit 1 of frames 1,3,5,7,9,11 with the pattern ‘001011’
CRC bits:bit 1 of frames 0,2,4,6,8,10,12,14
CRC block size:2048 bit (length of a submultiframe)
CRC procedure:CRC4, according to CCITT Rec. G704
The CRC procedure is automatically invoked when the multiframe structure is enabled.
CRC errors in the received data stream are counted by the CRC Error Counter (max. one
error per sub-multiframe). This 8-bit counter is extendable to 10 bit length.
sames
15/40
Page 16
SA9101
Synchronization procedure
Multiframe alignment is assumed to have been lost if double-frame alignment has been
lost or 2 consecutive multiframe patterns are received with an error.
The multiframe re-synchronization procedure starts when doubleframe alignment has
been regained. It may also be invoked by the user through the µP-interface. The CRC
checking mechanism will be enabled after the second correct multiframe pattern has
been found. However, CRC errors will not becounted in unsynchronized state.
The (multiframe) synchronized state is reached after detecting two correct multiframe
alignment patterns in multiframe n and multiframe n+1. The CRC4 flag SR0B1 will be
reset. Resynchronization starts whenever two consecutive multiframes are received
with incorrect multiframe alignment pattern.
Sub- FrameBits 1 to 8 of the frame
Multiframe No.12345678
0C
101AS
2C
I301AS
4C
511AS
6C
701AS
00 11 0 11
1
00 11 0 11
2
00 11 0 11
3
00 11 0 11
4
n0Sn1Sn2Sn3Sn4
n0Sn1Sn2Sn3Sn4
n0Sn1Sn2Sn3Sn4
n0Sn1Sn2Sn3Sn4
Multiframe8C100 11 0 11
911AS
n0Sn1Sn2Sn3Sn4
10C200 11 0 11
II1111ASn0Sn1Sn2Sn3S
n4
12C300 11 0 11
13Si*1 A Sn0Sn1Sn2Sn3S
n4
14C400 11 0 11
15Si*1 A Sn0Sn1Sn2Sn3S
n4
Si*:Spare bits for international use. Access to received information via µP-
interface. (For transmission, automatic transmission of sub-multiframe error
or insertion through µP-interface is selectable).
Sn :Spare bits for national use. Additionally, the 5-byte stacks for receive and
transmit are provided.
C1..C4: Cyclic Redundancy Check bits.
A :Remote Alarm Indication.
Table 2: CRC-Multiframe Structure
16/40
sames
Page 17
SA9101
Sn-bit access
Due to new signalling procedures using the five Sn bits (Sn0 ... Sn4) of every other frame
of the CRC Multiframe structure, two possibilities of access via the microprocessor are
suported:
-The standard procedure allows reading/writing the Sn-bit registers without further
support. The Sn-bit information will be updated every other frame.
-The advanced procedure, allows reading/writing two Sn-bit stacks each with a size
of 5 bytes. Two status bits (SR5B6 and SR5B7) provide an indication for updating
the stack information by reading/writing five bytes per multiframe from/to the
assigned stack address. To avoid loss of information, the status bits should be
monitored at time intervals less than 2ms (1,5ms recommended). With the first
access to a stack, the associated status bit will be reset.
A Transmit or Receive Multiframe Begin interrupt is supported when Alarm Interrupt
mode is enabled (CR5B6 and CR5B7).
If one makes use of the Sn bit stack in the Double frame format it is necessary that this
be done in conjunction with an externally enforced Multi-frame structure to ensure the
proper recovery of data on the far side. This is only possible in the Non-Transparent Mode
for Timelsot 0.
Organization of the stacks:
The sequentially received Sn bits (Sn0 up to Sn4) of odd numbered frames of the multiframe
structure are re-organized to bytes containing the Sn-information of the same level (S
byte up to Sn4 byte). The Sn4 byte is the first byte to be read or written via the
microprocessor interface (refer to table 3).
Alternatively, Sn bits may be processed via the system interface,if one of the transparent
modes are enabled.
n0
Frame Bit SlotMicroprocessor
no.45678 Interface
1S
S
S
S
n0
n1
n2
S
n3
n4
D7
3
5
7
9
11
13
15S
S
S
S
n0
n1
n2
S
n3
n4
D0
Table 3: Organisation of the Sn-Bit Stacks
sames
17/40
Page 18
SA9101
Si-bit access
In accordance with CCITT signalling requirements, the S
bits of frame 13 and frame 15 of the
i
CRC Multi-frame can be used to indicate received error submultiframes:
Submultiframe I status:S
Submultiframe II status : S
i13
i15
no CRC error:Si = 1
CRC error:S
-bits insertion can be done through the µP-interface(in non-Transparent and Extended
S
i
= 0
i
Timeslot 0 Signalling Transparent modes) or, if enabled, automatically by the SA9101 without
any intervention of the microprocessor. In this case, the status information of received submultiframe, is inserted in S
-bit position of the outgoing CRC-Multiframe. A third option is via
i
the system interface should the Timeslot 0 Transparent or Timeslot 0 Signalling Transparent
modes be selected.
Differences to Siemens ACFA (PEB2035 V4.1)
1. Automatic Force Resynchronisation feature for CRC mode,CR1B6 (Mode Register, bit
AFR), is not used because this feature is implemented in hardware to be carried out
automatically.
bit stack
2. S
n
CR1B5 (Mode Register, bit ENSN) enables the S
bit stack for both CRC Multiframe and
n
Double frame formats.
3. CRC Multiframe enable
CR1B3 (Mode Register, bit CRC) switches only between CRC Multiframe and DoubleFrame
formats. No need for CX1B7 (EMOD DFSN) to enable S
bit stack in Double Frame format
n
due to point 2 above.
4. Service Word Condition Disable
CR9B7 (RC1.SWD) is not used. Always functions in Standard Operation mode, i.e. 3
consecutive incorrect service words will cause loss of synchronisation.
5. Select loss of Sync Condition
CR9B6 (RC1.ASY4) is not used. Always functions in Standard Operation Mode (according
to CCITT Rec.), i.e. 3 consecutive incorrect service words will cause loss of synchronisation.
6. Extended DMA Mode
CX1B1 (EMOD EDMA) is not used. The DMA facility must always read/write two
consecutive bytes. This is the only mode of operation therefore no selection is required.
7. Disable AIS to System Interface
CX1B0 (EMOD DAIS) is redefined. Siemens allowed for AIS selection for receive
transparent mode. However, in Receive transparent mode synchronisation may be lost and
therefore AIS is always disabled in the SA9101. This bit is redefined to provide a double
frame marker to provide synchronisation to the Double Frame format.
8. Unique feauture in Timeslot 0 Signalling Transparent Mode
The SA9101 is capable of recognising the frame alignment pattern and therefore will not
overwrite the Sn and Si information inserted externally (via DXI) in the desired bit locations
of the alternating timeslot 0 words.
18/40
sames
Page 19
SA9101
SA9101 REGISTER DESCRIPTION
Control Register
Default setting
After RESET, the SA9101 is initialized for PCM30 doubleframe format with register
values listed in Table 4.
Detection, no influence on error counting, channel
parity alarms, data transmission via port DRO, or
synchronization. No Alarm simulation. Status register
read enabled.
CR1B[7..0]1C0HPCM30-doubleframe format with dual rail (RZ) line
interface ports/4 Mbps system interface mode/no AIS
transmission to remote end/S
-bit stacks are disabled.
n
CR2B[7..0]200HChannel Parity Check is active for channel 0.
CR3B[7..0]300HChannel Loop Back and Single Frame mode are
disabled.
CR4B[7..0]440HAll bits of the transmitted service word are cleared (bit
2 excl.).
CR5B[7..0]500HSpare bit values and additional interrupts are cleared.
CR6B[7..0]600HOutputs for transmit dual rail line data and assigned
test data are active low, internal signalling stacks and
external transmit channel parity are disabled.
The Transmit Clock slot Offset is cleared.
CR7B[7..0]740H4096 kHz system clock frequency. The Transmit
Timeslot Offset is cleared.
CR8B[7..0]830HEven Receive Channel Parity, Receive dual rail line
data inputs are active low. The Receive Clock slot
Offset is cleared. CRC Error Counter Extension is
disabled.
CR9B[7..0]9C0HThe Receive Timeslot Offset is cleared.
CRAB[7..0]AFFHThe Transmit Signalling stack is cleared. Its values
are not readable until the signalling stack mode is
enabled.
CRBB[7..0]B
Undefined S
bit stack contents unknown.
n
CRCB[7..0]C00HNo interrupt source is enabled.
CRDB[7..0]D54HIdle Channel Code is set to '54' hex.
CX1B[7..0]100HHalf-bauded mode
CX6B[7..0]600HNormal operation
CX7B[7..0]700HNormal operation
CX8B[7..0]800HNormal operation
CX9B[7..0]900HNormal operation
Table 4: Initial Values after reset
sames
19/40
Page 20
SA9101
Detailed Description
ADR 0ALARM Control
RegisterBitDescription
Name
CR0B00Alarm simulation
A “1” initiates error simulation of alarm indication signal
(AIS), slip, parity, CRC, no signal, loss of frame alignment,
remote alarm, code violations and framing errors.
Error counters for frame errors, code violations and CRC
errors will be incremented.
CR0B11Force re-synchronisation
Setting of this bit initializes resynchronisation to establish
normal frame alignment and, if enabled, CRC4 frame resynchronization.Resetting is not necessary.
CR0B22Clear CHNL Parity Alarm Latch
Setting of this bit forces reset of CHNL Parity error alarms.
Status-registers ADR 0, bit 2 and ADR 5, bit 3, 4 will be reset
to “0”.
CR0B33Send AIS towards System interface (DRO), i.e. switching
network (SN). Device sends AIS (continuously one’s) to the
SN. Tests of the speech memory in loopback mode are not
effected.
CR0B44Disable Error Counters
This bit can be set 1µs before the contents of the error
counters are read to get stable values. The error counters
will be reset after this bit is reset to zero. No errors are
counted while this bit is active. This procedure has been
implemented to maintain compatibility with the previous
frame aligners. If an error counter is read without setting this
bit previously, only the adressed error - counter will be reset
after read -access has been completed.
CR0B55Enable Control Registers Read
If this bit is set to one, the control registers (ADR0-ADRD) are
selected instead of the status registers during read operation.
CR0B66Enable Full HDB3-Error Detection
This bit enables HDB3 check for groups of more than 3
spaces (zeros)
CR0B77Enable Alarm Interrupt Mode
Output DFPY changes its function to AINT while this bit is at
"1”.
Note: All "Not used" bits must be set to zero in all control registers
20/40
sames
Page 21
ADR 1SA9101 Configuration
RegisterBitDescription
Name
CR1B00Send AIS Towards Remote End
Setting of this bit causes transmitting AIS towards the remote
end. The test data-outputs are not affected.
CR1B11Select Interface Mode
Switches operation mode on DRO and DXI.
1 = 2 Mbits/s
0 = 4 Mbits/s
CR1B22Enable optical Interface
If set to one, OPIN is enabled instead of dual rail ports.
CR1B33Activate CRC4
A “1” activates CRC4-operation
CR1B44Select counter mode
Only two channels per frame are counted if set to “1”.
CR1B55Enable Sn-bit Stack
In CRC-mode, the transmit and receive Sn bit stacks can be
used instead of the registers for transmit and receive service
word. Transmitting from Sn-Bit stack is disabled if one of the
timeslot 0 transparent modes is enabled.
CR1B66Not used (fixed 1)
CR1B77For Re-synchronisation of CRC4 Multiframe
SA9101
ADR 2Channel Parity Check
RegisterBitDescription
Name
CR2B[0-4]0-4Selects channel
CR2B55A “1” disables parity-check of selected channel
CR2B66Not used
CR2B77Extended Mode Register access enabled
Allows access to the Extended Control Registers CX1 to CX9
sames
21/40
Page 22
SA9101
ADR 3 Channel Loop Back
RegisterBitDescription
Name
CR3B[0-4]0-4The addressed timeslot (1..31) is looped back to the system
interface.
Idle channel code content of control register D for this channel
is sent to remote end.
Code “00000” deactivates loop-back.
CR3B55A “1” disables loop back of selected channel
CR3B66Select single frame delay mode
Signal delay set to max. one frame length., if this bit is at “1”.
CR3B77Alarm Interrupt Acknowledge
A “1” clears AINT. Resetting is not necessary.
ADR 4Service Word
RegisterBitDescription
Name
CR4B[0-4]0-4Y (Sn) bits for national use
These bits are inserted in the service word, if Sn-bit stack mode
is disabled and no TS0 transparent mode is enabled.
CR4B55Send Remote Alarm to Remote End
A “1” causes bit 3 of service word to be set to “1”.
It is ignored if TS0 transparent mode is enabled.
CR4B66Synchronization bit, internally set to “1”. It cannot be overwritten.
CR4B77First bit of service word if double-frame format enabled,
and Non-transparent or Extended TS0 Signalling Transparent
modes enabled.
22/40
sames
Page 23
SA9101
ADR 5Data link bits for internal use
RegisterBitDescription
Name
CR5B00Si (X)-bit in frame 15 Only if CRC4 processing activated and
Non- transparent or Extended TS0
CR5B11Si (X)-bit in frame 13Signalling Transparent mode enabled.
CR5B22Si (X)-bit of frame alignment signal for international use, if
double frame format enabled and Non-transparent or Extended
TS0 Signalling Transparent mode enabled.
CR5B33Automatic Transmission of Submultiframe Status (only in
CRC4mode, and Non-transparent or Extended TS0 signalling
transparent mode).
Instead of transmitting Si bits (CR5 bit 0 and 1), the submultiframe status is inserted (SR 8, bit 1 -> X-bit(13), SR8 bit 0
-> X-bit(15).
CR5B44Timeslot 0 Signalling Transparent mode. In Double frame and
CRC Multiframe modes Sn and Si bits of Timeslot 0 are
transmitted as applied on DXI.
CR5B55Timeslot 0 Full Transparent mode
All information is transmitted as applied on DXI.
CR5B66Interrupt Mask “Begin
Receive Multiframe”A “1” enables interrupt source
only if alarm interrupt mode
CR5B77Interrupt Mask "Beginenabled
Transmit Multiframe"
sames
23/40
Page 24
SA9101
ADR 6Transmit control 0
RegisterBitDescription
Name
CR6B[0-2]0-2Set value for transmit bit counter (bit 0-2) which is loaded in the
transmit counter when the synchronization pulse is active.
The internally generated channel parity signal is compared
with the signal at the channel parity input if this register bit is
set to “1”. For signalling, the parity-value on the parity input is
ignored, because it is generated internally.
CR6B66Enable Internal Signalling Stack.
If set to “1” the two-byte stacks for receive and transmit
signaling data (timeslot 16) are enabled. Access to the TS16
Signalling Stack is possible via µP interface or by means of
DMA. The RREQ and XREQ signals can be used either as
interrupts or as DMA request signals. For DMA transfer the
ACKNLQ pin should be used for direct access to the stacks.
CR6B77Transmit Data Output Polarity
Bit at “1” : Dual rail outputs are active high, optical output
is active low
Bit at “0” : Dual rail outputs are active low, optical output is
active high
ADR 7Transmit Control 1
RegisterBitDescription
Name
CR7B[0-5]0-5Set value for timeslot which is loaded into the transmit counter
when the synchronization pulse is active
CR7B66Mark CRC Alarm (Bit at "1" - Enable Alarm Source)
CR7B77Select System Clock
0 : SCLK = 4.096MHz
1 : SCLK = 8.192MHz
24/40
sames
Page 25
SA9101
ADR 8Receive Control 0
RegisterBitDescription
Name
CR8B[0-2]0-2Set value which is loaded into the receive bit counter when the
synchronization pulse is active
CR8B33Receive Data Input Sense
Bit at “0” :Dual rail inputs are active low; optical input is
active high
Bit at “1” :Dual rail inputs are active high; optical output
is active low
CR8B44Not used
CR8B55Not used
CR8B66Receive Parity Type
0 : Even
1 : Odd
CR8B77Enable CRC Error Counter Extension
Bit at “0” : 8 bit counter
Bit at “1” : 10 bit counter
Note: Receive Data Input Sense is only required for SR6B6 function. HDB3 is
insensitive to polarity.
ADR 9Receive Control 1
RegisterBitDescription
Name
CR9B[0-5]0-5Set value for timeslot which is loaded into the receive counter
when the synchronization pulse is active
CR9B[6-7]6-7Not used (fixed to “1”)
ADR ATransmit Signalling Stack (2 byte FIFO)
RegisterBitDescription
Name
CRAB[0-7]0-7Data for timeslot 16
Previous byte will be repeated, if not updated after request.
sames
25/40
Page 26
SA9101
ADR BTransmit Sn-bit stack
RegisterBitDescription
Name
CRBB[0-7] 0-75-byte Sn-bit stack, which data will be inserted if CRC and
stack mode enabled and no timeslot 0 transparent mode is
enabled. The Sn-bit information can be written into the
transmit Sn-bit stack when Transmit Sn-bit flag is set (SR5B7).
ADR CAlarm Interrupt Mask Register
RegisterBitDescription
Name
CRCB00Code violation counter saturation
CRCB11Frame error counter saturation
CRCB22CRC error counter saturation
CRCB33Receive slip indication
CRCB44Receive remote alarm
CRCB55No signal
CRCB66Alarm Indication Signal
CRCB77Loss of synchronisation
Note: The alarm source is enabled by setting the corresponding bit to “1”.
ADR DIDLE Channel code
RegisterBitDescription
Name
CRDB[0-7]0-7Idle Channel code
During Loop-back, this code is sent to the remote end for the
assigned channel. The specified pattern is also written into all
channels selected via the Idle channel Register Bank, overwriting
whatever information was in those timeslots.
ADR E - FNot used.
26/40
sames
Page 27
SA9101
ADR 1Extended Mode Register 1
Register BitDescription
Name
CX1B00Enable Double Frame marker0: Normal
1: Marker enabled and
provided at CHPAR
pin.
CX1B11Not used
CX1B22Fully Bauded data format0: Half bauded
1: Fully bauded
CX1B33Extended Code Violation Counter mode
CX1B44Si-bit zero counter enable
CX1B55Receive Transparent Mode
CX1B66Time slot 0 Extended Signalling Transparent Mode. If set, in
Double frame and CRC Multiframe formats only the Sn bits are
transmitted as applied at DXI
Note:Timeslot 0 information is overwritten by idle channel code according to the
transparency mode selected.
If Timeslot 16 Signalling stack is enabled and Timeslot 16 is selected for Idle
Channel Code, the idle channel selection will be ignored. The stack has higher
priority.
sames
27/40
Page 28
SA9101
Status Register
ADR 0PCM/SA9101 Alarm status
RegisterBitDescription
Name
SR0B00Slip Direction Indication
0 =negative slip, receive route clock frequency higher
thaninternal system clock.
1 =positive slip, receive route clock frequency below
internalsystem clock.
SR0B11CRC4 Multiframe alarm
Set after reset, multiframe synchronization lost or via uPInterface with command “Force Re-synchronisation”.
Will be reset after receiving 2 multi-frames without errors.
SR0B22Receive Channel Parity Error
Set after device detects a channel parity error.
Cleared by setting control register ADR 0, bit 2 (Clear Channel
Parity Alarm Latch).
SR0B33Receive Slip Indication
This bit changes state when a frame is dropped (RCLK > SCLK)
or repeated (SCLK > RCLK) .
A successful alarm-simulation causes one change.
SR0B44Receive Remote Alarm
Bit 3 of received service word.
SR0B55Loss Of Synchronisation
Will be set if incorrect frame alignment signal or service word
was detected 3 times in sequence.
Is automatically reset after sequence FAS-SW-FAS is received.
Loss of synchronisation is also indicated if “No Signal” occurs
because of no Route Clock.
SR0B6Alarm Indication Signal (AIS)
If less than two “0’s” are detected in an incoming bitstream of
512 bits, this bit is set to “1”.
SR0B77No Signal
If less than four “1’s” are in a stream of 512 bits or no complete
receive clock pulse occurs within 4 periods of the system clock,
this bit is set to “1”.
28/40
sames
Page 29
SA9101
ADR 1Frame Error Counter
RegisterBitDescription
Name
SR1B[0-7]0-78 bit counter will be incremented when an incorrect frame
alignment word is detected in the synchronized state.
An overflow is inhibited.
During alarm simulation, the counter should increment every
250µs.
ADR 2Code Violation Counter
RegisterBitDescription
Name
SR2B[0-7] 0-78 bit counter which counts HDB3 code violations if no optical
interface mode has been enabled. An overflow is inhibited.
During alarm simulation, the counter should increment once
for every four bits received. Counter can be extended to 10 bits
by bit 3 of Extended Mode Register ADR1 (CX1B3).
ADR 3CRC4 Error counter
RegisterBitDescription
Name
SR3B[0-7] 0-78 bit counter which counts submultiframe CRC4 errors. An
overflow is inhibited.
During alarm simulation, the counter should increment once
per submultiframe.
The counter can be extended to a 10 bit counter by setting bit
7 of Receive Control Register ADR8 (CR8B7).
ADR 4Received Service Word
RegisterBitDescription
Name
SR4B[0-4]0-4Y-bits (Sn-bits) for national use
SR4B55Bit 3 of service word (Receive Remote Alarm)
SR4B66Fixed to “1”.
SR4B77First bit in received service word. It is fixed to “1” if the device
is in CRC4-mode. Only used in Double Frame format.
sames
29/40
Page 30
SA9101
ADR 5Data Link Bit for Internal Use
RegisterBitDescription
Name
SR5B00First bit of service word of frame 15.
SR5B11First bit of service word of frame 13.
These bits (0 and 1) are updated at the beginning of every
received multiframe.
If CRC4-mode is not enabled, these are set to “0”.
SR5B22First bit in FAS-word, used only in double Frame format
(otherwise fixed at "1").
SR5B33Transmit Parity Error
If channel parity check is enabled, this bit is set after a channel
parity error occurs.
It is also set during alarm simulation.
SR5B44Global Parity Error
Set by a parity error in any transmitted or received channel.
Also set during alarm simulation.
SR5B55DMA Request Slip
If the use of the TS16 signalling stacks is enabled, this bit is set
if required access is not completed before the signalling stack
gets updated.
SR5B66Receive Sn-bit Stack Flag
Will be set at the beginning of every received CRC4 multiframe.
It will be reset after a read access to the Receive Sn-bit
stack occurs or at the beginning of frame 15 in the multiframe.
A read access should occur only if this flag is set to “1”. Should
be monitored at time intervals of less than 2ms.
SR5B77Transmit Sn-bit Stack Flag
Will be set at the beginning of every transmitted CRC4
multiframe.
It will be reset after a write access to the Transmit Sn-bit stack
or at the beginning of frame 15 in the multiframe.
A write access should occur to the stack only if this flag is set.
Should be monitored at time intervals of less than 2ms.
30/40
sames
Page 31
ADR 6Additional Receive Status
RegisterBitDescription
Name
SR6B66Error On Primary Rate Line Receiver
This bit is set while both dual rail inputs are active.
SR6B[0-5,7]0-5,7Not used, set to "1".
ADR 7Timeslot 16 Rx Stack
RegisterBitDescription
Name
SR7B[0-7] 0-7Receive Signalling Data
This stack contains two bytes of sequentially received signalling
data (timeslot 16).
ADR 8Si-bits
RegisterBitDescription
Name
SR8B0 0Si(II)
Bit will be set to "0" if a CRC
check gives an error or synchronisation is lost. It will be set toThese bits are
"1", if no error is detected inupdated at the
sub-multiframe part II.beginning of every
SR8B1 1Si(I)received CRC
Bit will be set to "0", if a CRCmultiframe. If the
check gives an error or synchro-device is in doublenisation is lost. It will be set toframe format, these
"1", if no error is detected inbits are fixed to "1".
sub-multiframe part I.
SR8B[2-7]2-7Not used
SA9101
sames
31/40
Page 32
SA9101
ADR 9CRC Error Counter Extension
RegisterBitDescription
Name
SR9B[0-1] 0-1Bit 8 and 9 of CRC error counter, if in extended mode
SR9B[2-3] 2-3Not used. (Fixed to "1")
SR9B[4-5] 4-5Code Violation counter extention.
SR9B[6-7] 6-7Not used. (Fixed to "1")
ADR BReceive Sn-bit stack
RegisterBitDescription
Name
SRBB[0-7] 0-7This stack contains 5 bytes of Sn-bit information.
Bit 0..7 contains Sn-bits of frame 15..1.
ADR C-F Not used
32/40
sames
Page 33
TIMING
µP Interface timing
Read cycle
SA9101
Figure 2: µP Read Timing
Limit
SymbolParameterValuesUnit
Min.Max.
TCDCEQ and ADDRESS valid to DATA valid110
TCRCEQ and ADDRESS stable before RDQ0
TRDRDQ to DATA valid90
TRRRDQ pulse width100
TDFDATA float after RDQ1030ns
TRCCEQ hold after RDQ0
TRAADDRESS hold after RDQ0
TRIRDQ control interval70
Table 5: µP Read Timing
sames
33/40
Page 34
SA9101
Write cycle
Figure 3: µP Write Timing
Limit
SymbolParameterValuesUnit
Min.Max.
TC WCEQ and ADDRESS valid to WRQ valid30
TD WDATA setup before end of write35
TW DDATA hold after WRQ10
T WWWRQ pulse width80
TW CCEQ hold after WRQ10
TW AADDRESS hold after WRQ10ns
TW IWRQ control interval70
2*TCP4
+ 60
TWAKInterrupt acknowledge delay4*TCP8
+ 80
Table 6: µP Write Timing
34/40
sames
Page 35
DMA cycle
SA9101
Figure 4: DMA Timing
Limit
SymbolParameterValuesUnit
Min.Max.
TDRDRDQ to DATA valid90
TDDFDATA float after RDQ1030
TDRRRDQ pulse width100
TDRIRDQ control interval70
TRRERREQ reset after RDQ100
TDDWDATA setup before end of write35ns
TDWDDATA hold after WRQ10
TDWWWRQ pulse width80
TDWIWRQ control interval70
TXREXREQ reset after WRQ100
Table 7: DMA Timing
sames
35/40
Page 36
SA9101
Serial Interface Timing
System Interface timing
36/40
FIGURE 5: SYSTEM INTERFACE TIMING
sames
Page 37
SA9101
Limit Values
SymbolParameter 4096kHzSCLK 819kHz SCLKUnit
Min.Max.Min.Max.
TCP8SCLK period 8MHz typ. 122
TCP8LSCLK period 8MHz low40
TCP8HSCLK period 8MHz high40
TCP4SCLK period 4MHz typ. 244
TCP4LSCLK period 4MHz low50
TCP4HSCLK period 4MHz high50
TSSSYPQ setup time40TCP4-30 TCP8-40 TCP8-40
TSHSYPQ hold time4040
TSISYPQ inactive setupTCP4+302*TCP8ns
+30
TRODRDQ propagation delay90110
TMDMarker propagation delay100120
TMHMarker hold100120
TPYDParity propagation delay100120
TSXDXRCLK to SCLK delay100120
TXISTransmit data setup3030
TXIHTransmit data hold3030
Table 8: System Interface Timing
sames
37/40
Page 38
SA9101
Line Interface Timing
Figure 6: Line Interface Timing
Limit
SymbolParameterValuesUnit
Min.Max.
TCPRRCLK clock period typ. 488
TCPRLRCLK clock period low100
TCPRHRCLK clock period high100
TRISReceive data setup30
TRIHReceive data hold30ns
TRFSDRFSPQ propagation delay120
TCPXXRCLK clock period 2*TCP4
4*TCP8
TXODTransmit data output delay50
TXOHTransmit data output hold0*50
Table 9: Line Interface Timing
38/40
sames
Page 39
SA9101
sames
39/40
Page 40
Disclaimer:The information contained in this document is confidential and proprietary to South African MicroElectronic Systems (Pty) Ltd ("SAMES) and may not be copied or disclosed to a third party, in whole or in part, without
the express written consent of SAMES. The information contained herein is current as of the date of publication;
however, delivery of this document shall not under any circumstances create any implication that the information
contained herein is correct as of any time subsequent to such date. SAMES does not undertake to inform any
recipient of this document of any changes in the information contained herein, and SAMES expressly reserves the
right to make changes in such information, without notification,even if such changes would render information
contained herein inaccurate or incomplete. SAMES makes no representation or warranty that any circuit designed
by reference to the information contained herein, will function without errors and as intended by the designer.
South African Micro-Electronic Systems (Pty) Ltd
P O Box 15888,21 Eland Street,
Lynn East,Koedoespoort Industrial Area,
0039Pretoria,
Republic of South Africa,Republic of South Africa