MT8952B Data Sheet
4
Zarlink Semiconductor Inc.
Table 1 - Register Addresses
Introduction
The MT8952B HDLC Protocol Controller handles bit oriented protocol structure and formats the data as per the
packet switching protocol defined in the X.25 (Level 2) recommendations of the CCITT. It transmits and receives the
packeted data (information or control) serially in a format shown in Figure 3, while providing the data transparency
by zero insertion and deletion. It generates and detects the flags, various link channel states and the abort
sequence. Further, it provides a cyclic redundancy check on the data packets using the CCITT defined polynomial.
In addition, it can generate and detect a Go Ahead sequence and recognize a single byte address in the received
frame. There is also a provision to disable the protocol functions and provide transparent access to the serial bus
through the parallel port.
Frame Format
All frames start with an opening flag and end with a closing flag as shown in Figure 3. Between these two flags, a
frame contains the data and the frame check sequence (FCS).
Figure 3 - Frame Format
Flag
The flag is a unique pattern of 8 bits (01111110) defining the frame boundary. The transmit section generates the
flags and appends them automatically to the frame to be transmitted. The receive section searches the incoming
packets for flags on a bit-by-bit basis and establishes frame synchronization. The flags are used only to identify and
synchronize the received frame and are not transferred to the FIFO.
Address Bits Registers
A3 A2 A1 A0 Read Write
0000 FIFO Status -
0 0 0 1 Receive Data Transmit Data
0 0 1 0 Control Control
0 0 1 1 Receive Address Receive Address
0 1 0 0 C-Channel Control (Transmit) C-Channel Control (Transmit)
0 1 0 1 Timing Control Timing Control
0 1 1 0 Interrupt Flag Watchdog Timer
0 1 1 1 Interrupt Enable Interrupt Enable
1 0 0 0 General Status -
1 0 0 1 C-Channel Status (Receive) -
FLAG DATA FIELD FCS FLAG
One
Byte
n Bytes
(n 2)
Two
Bytes
One
Byte
MT8952B Data Sheet
5
Zarlink Semiconductor Inc.
Data
The data field refers to the Address, Control and Information fields defined in the CCITT recommendations. A valid
frame should have a data field of at least 16 bits. The first byte in the data field is the address of the frame. If RxAD
bit in the Control Register is HIGH, the incoming packet is recognized only if the address byte matches the byte
stored in the Receive Address Register or the address byte is the All-Call Address (all ONEs). The LSB of the
Receive Address Register is set LOW permanently and the comparison is done only on upper seven bits of the
received address byte. The address detection can be limited only to the upper six bits by setting HIGH both RA6/7
and RxAD bits in the Control Register.
Frame Check Sequence (FCS)
The 16 bits following the data field are the frame check sequence bits. The generator polynomial is:
G(x)=x
16
+x
12
+x
5
+1
The transmitter calculates the FCS on all bits of the data field and transmits after the data field and before the end
flag. The receiver performs a similar computation on all bits of the received data and FCS fields and the result is
compared with FOB8
Hex
. If it matches, the received data is assumed error free. The error status of the received
packet is indicated by D7 and D6 bits in the FIFO Status Register.
Zero Insertion and Deletion
The Protocol Controller, while sending either data from the FIFO or the 16 bits FCS, checks the transmission on a
bit-by-bit basis and inserts a ZERO after every sequence of five contiguous ONEs (including the last five bits of
FCS) to ensure that the flag sequence is not simulated. Similarly the receiver examines the incoming frame content
and discards any ZERO directly following the five contiguous ONEs.
Abort
The transmitter aborts a frame by sending eight consecutive ONEs. The FA bit in the Control Register along with a
write operation to the Transmit Data Register enables the transmission of abort sequence instead of the byte
written to the register. On the receive side, the ABRT bit in the General Status Register is set whenever an abort
sequence (7 or more continuous 1’s) is received. The abort sequence causes the receiver to abandon whatever it
was doing and start searching for a start flag. The FA bit in the Interrupt Status Register is set when an abort
sequence is received following a start flag and at least four data bytes (minimum for a valid frame).
Interframe Time Fill and Link Channel States
When the HDLC Protocol Controller is not sending packets, the transmitter can be in any of three states mentioned
below depending on the status of the IFTF0 and IFTF1 bits in the Control Register. These bits are also used to
disable the protocol function to provide the transparent parallel access to the serial bus through the microprocessor
port.
Idle State
The Idle state is defined as 15 or more contiguous ONEs. When the HDLC Protocol Controller is observing this
condition on the receiving channel, the Idle bit in the General Status Register is set HIGH. On the transmit side, the
Protocol Controller ends the Idle state when data is loaded into the transmit FIFO.
Interframe Time Fill State
The Protocol Controller transmits continuous flags (7E
Hex
) in Interframe time fill state and ends this state when data
is loaded into the transmit FIFO.
MT8952B Data Sheet
6
Zarlink Semiconductor Inc.
Go Ahead State
Go Ahead is defined by the 9 bit sequence 011111110 (7F
Hex
followed by a ZERO), and hence contiguous 7F’s
appear as Go Aheads. Once the transmitter is in ‘Go Ahead’ state, it will continue to remain so even after the data
is loaded into the FIFO. This state can only be changed by setting the IFTF bits in the Control Register to something
other than ‘GO Ahead’. The reception of this sequence is indicated by GA bit in the General Status Register and the
Protocol Controller can generate an interrupt if enabled to do so by the GA bit in the Interrupt Enable Register.
Transparent Data Transfer State
The Protocol Controller, in this state, disables the protocol functions defined earlier and provides bi-directional
access to the serial bit streams through the parallel port. Like other states, the transparent data transfer can be
selected in both timing modes.
Invalid Frames
Any frame shorter than 32 bits between the opening and closing flags (corresponding to 16 bits of data and 16 bits
FCS) is considered invalid. The Protocol Controller ignores the frame only if the frame length is less than 24 bits
between the flags. For frames of length 24 to 32 bits, it transfers the data field to FIFO and tags it as having bad
FCS in the FIFO Status Register.
Functional Description
The functional block diagram of the HDLC Protocol Controller is shown in Figure 1. It has two ports. The serial port
transmits and receives formatted data packets and the parallel port provides a microprocessor interface for access
to various registers in the Protocol Controller.
The serial port can be configured to operate in two modes depending on the IC bit in the Timing Control Register. It
can transmit/receive the packets on selected timeslots in ST- BUS format or it can, using the enable signals
(TxCEN
and RxCEN), transmit/receive the packets at a bit rate equal to CKi clock input.
The microprocessor port allows parallel data transfers between the Protocol Controller and a 6800/6809 system
bus. This interface consists of Data Bus (D0-D7), Address Bus (A0-A3), E Clock, Chip Select (CS
) and R/W control.
The micro-processor can read and write to the various registers in the Protocol Controller. The addresses of these
registers are given in Table 2. The IRQ
is an open drain, active LOW output indicating an interrupt request to CPU.
Control and monitoring of many different interrupts that may originate from the protocol controller is implemented by
the Interrupt Flag Register (IFR) and the Interrupt Enable Register (IER). Specific events have been described that
set a bit HIGH in the Interrupt Flag Register. Such an event does not necessarily interrupt the CPU. To assert an
interrupt (pull IRQ
output LOW) the bit in IER that coincides with the Interrupt Flag Register must be set HIGH. The
IRQ bit in the General Status Register is the complement of IRQ
pin status. If an interrupt is asserted, this bit will be
set HIGH otherwise it will be LOW.
TEOP and REOP Outputs
The HDLC Protocol Controller provides two separate signals TEOP & REOP indicating the end of packet
transmitted and received respectively. TEOP is a HIGH going pulse for one bit duration asserted during the last bit
of the closing flag or Abort sequence of the transmit packet. REOP is also a HIGH going pulse occurring for one bit
period when a closing flag is received or an incoming packet is aborted or an invalid packet of 24 or more bits is
detected. However, REOP is not generated for invalid packets of length less than 24 bits. These ‘end of packet’
signals are useful in multiplexing several data links on to a single HDLC Protocol Controller.
Timing Modes
There are two timing modes the Protocol Controller can be run in. These timing modes refer only to the
configuration of the serial port and are not related to the microprocessor port.

MT8952BS1

Mfr. #:
Manufacturer:
Microchip / Microsemi
Description:
Telecom Interface ICs Pb Free HDLC PROTOCOL CONTROLLER
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet