MT8952B Data Sheet
16
Zarlink Semiconductor Inc.
bits/frame, the corresponding least significant bits of every byte loaded into the transmit FIFO are only transmitted.
The transparent data transfer facility is not available when the Timing Control bits are set for 1 bit/frame. In case the
FIFO is empty, the last byte or the portion of the last byte, written to the FIFO is transmitted repeatedly. Note that
the transparent data transfer can be disabled immediately in software (unlike during the transmission of packets)
using TxEN bit in the Control Register.
The operation of the transmitter is similar in the External Timing Mode.
Receive Operation
After a reset on power up, the receive section is disabled. Timing set up considerations are similar to that of the
transmit section. Address detection is also disabled when a reset occurs. If address detection is required, the
Receiver Address Register is loaded with the desired address and the RxAD bit in the Control Register is set HIGH.
The receive section can then be enabled by RxEN bit in the Control Register.
Normal Packets
After initialization as explained above, the serial data starts to be clocked in and the receiver checks for the idle
channel and flags. If an idle channel is detected, the ‘Idle’ bit in the General Status Register is set HIGH. Once a
flag is detected, the receiver synchronizes itself in a bytewide manner to the incoming data stream. The receiver
keeps resynchronizing to the flags until an incoming packet appears. The incoming packet is examined on a bit-by-
bit basis, inserted zeros are deleted, the FCS is calculated and the data bytes are written into the receive FIFO.
However, the FCS and other control characters like the flag, abort etc., never appear in the FIFO. If the address
detection is enabled, the first byte following the flag is compared to the byte in the Receive Address Register and to
All-Call address. If a match is not found, the entire packet is ignored and nothing is written to the FIFO. If the
incoming address byte is valid, the packet is received in normal fashion. All the bytes written to the receive FIFO
are flagged with two status bits. The status bits are found in the FIFO status register and indicate whether the byte
to be read from the FIFO is the first byte of the packet, the middle of the packet, the last byte of the packet with
good FCS or the last byte of the packet with bad FCS. This status indication is valid for the byte to be read from the
receive FIFO.
The incoming data is always written to the FIFO in a bytewide manner. However, in the event of data sent not being
a multiple of eight bits, the software associated with the receiver should be able to pick the data bits from the MSB
positions of the last byte in the received data written to the FIFO. The Protocol Controller does not provide any
indication as to how many bits this might be.
Receive FIFO Empty
When the Receive FIFO is empty, this state is indicated by the Receive FIFO status bits in the FIFO Status
Register. As with the Tx FIFO status bits (see Transmit FIFO Full Section), these bits are not updated for two bit
periods after any access of the Receive FIFO. If the controlling microprocessor’s bus cycle is much shorter than a
bit period on the serial port, then the status bits may not be updated to indicate there is no information left in the Rx
FIFO before the microprocessor has returned to read the Rx FIFO again. The result is an underflow condition that is
only evident by redundant bytes in the received message.
To avoid a Rx FIFO underflow, reading information from the Rx FIFO should be approached in two ways. The first
approach is to be used when the MT8952B indicates (via interrupt) that the Rx FIFO is 15/19 FULL. The controlling
microprocessor should then immediately read 14 bytes from the Rx FIFO. This will avoid emptying the FIFO. The
second approach is to be used when an End of Packet interrupt is signalled by the MT8952B. The controlling
microprocessor should then empty the Rx FIFO until the Rx Byte Status bits in the FIFO Status Register indicate
that the byte about to be read is the last byte. These bits are “tag“ bits whose state was determined before the End
of Packet condition was indicated, therefore their state is valid.
MT8952B Data Sheet
17
Zarlink Semiconductor Inc.
Invalid Packets
If there are less than 24 data bits between the opening and closing flags, the packet is considered invalid and the
data never enters the receive FIFO. This is true even with data and the abort sequence, the total of which is less
than 24 bits. The data packets that are at least 24 bits but less than 32 bits long are also invalid, but not ignored.
They are clocked into the receive FIFO and tagged as having bad FCS.
Frame Abort
When a frame abort is received the appropriate bits in the Interrupt Flag and Status Registers are set. The last byte
of the packet that was aborted is written to the FIFO with a status of ‘packet byte’ tagged to it. The CPU determines
which packet in the FIFO was aborted, if there is more than one packet in the FIFO, by the absence of ‘last byte’
status on any of the bytes.
Idle Channel
While receiving the idle channel, the idle bit in the general status register remains set.
Go Ahead
The occurrence of this sequence can be used to generate an interrupt as described earlier. The receive circuitry will
not recognize a frame abort followed by a flag as go ahead.
C-Channel Reception
The information contained in channel-1 of the incoming ST-BUS (CDSTi) is shifted into the C-Channel Status
Register during the Internal Timing Mode.
Transparent Data Transfer
By setting the IFTF bits in the Control Register to select the transparent data transfer, the receive section can be
made to disable the protocol functions like Flag/Abort/GA/Idle detection, zero deletion, CRC calculation and
address comparison. The received data is shifted in from CDSTi and written to receive FIFO in bytewide format. If
the Protocol Controller is in the Internal Timing Mode and the Timing Control bits are set to 2, 6 or 7 bits/frame, the
respective MSBs of each byte are only to be read from the data bus. The transparent data transfer facility is not
available when the Timing Control bits are set to one bit/frame. The receive section can be disabled in software
immediately using the RxEN bit in the Control Register.
The operation of the receiver is similar in the External Timing Mode.
Receive Overflow
Receive overflow occurs when the receive section attempts to load a byte to an already full receive FIFO. This
status can be used to generate the interrupt as described earlier.
Typical Connection
A typical connection to the HDLC Protocol Controller is shown in Figure 14. The parallel port interfaces with
6800/6809 type processors. The bits A0-A3 are the addresses of various registers in the Protocol Controller. The
microprocessor can read and write to these registers treating them as memory locations.
The serial port transmits/receives the packetized data. It can be connected to a digital transmission medium or to a
digital network interface circuit. The TEOP and REOP are the ‘end of packet’ signals on transmit and receive
direction respectively. F0i
and CKi are the timing signals with CKi accepting either the bit rate clock or 2 x bit rate
clock in the internal timing mode. TxCEN
and RxCEN are the enable inputs in the External Timing Mode.
MT8952B Data Sheet
18
Zarlink Semiconductor Inc.
WD is the output of the watchdog timer. It goes LOW when the timer times out or if the RST input is held LOW. This
output can be used to reset the associated microprocessor. The RST
is an active LOW input which resets the
entire circuitry.
Figure 14 - Typical Connection Diagram
Applications
The MT8952B has a number of applications for transferring data or control information over a digital channel while
providing built-in error detection capability. In combination with the MT8972 (the Digital Network Interface Circuit), it
can be used to transmit digital data over a twisted wire pair.
The block schematic of one such application is shown in Figures 15 and 16. They refer to the primary and
secondary ends of a voice/data communication link using the Digital Network Interface Circuits (DNIC). Each end is
associated with one DNIC which interfaces twisted wire pair to the digital data rate up to 160kbps (2B+D, framing
signal and housekeeping information).
PARALLEL
INTERFACING
WITH 6809
TYPE
PROCESSORS
SERIAL PORT
WITH
FORMATTED
DATA
D0-D7
R/W
CS
E
A0-A3
WD
IRQ
CDSTo
TEOP
TxCEN
CDSTi
REOP
RxCEN
MT8952B
HDLC Protocol
Controller
F0i
CKi RST
V
DD
V
SS
TIMING AND CONTROL

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