Motorola MPC8260 User Manual

Page of 1006
31-2
MPC8260 PowerQUICC II UserÕs Manual
MOTOROLA
Part IV.  Communications Processor Module
31.1  Key Features
Key features of the HDLC include the following:
¥
Flexible data buffers with multiple buffers per frame
¥
Separate interrupts for frames and buffers (receive and transmit)
¥
Received frames threshold to reduce interrupt overhead
¥
Four address comparison registers with masks
¥
Maintenance of four 16-bit error counters
¥
Flag/abort/idle generation and detection
¥
Zero insertion/deletion
¥
16- or 32-bit CRC-CCITT generation/checking
¥
Detection of nonoctet-aligned frames
¥
Detection of frames that are too long
¥
Programmable ßags (0Ð15) between successive frames
¥
External BD table
¥
Up to T3 rate
¥
Support of time stamp mode for Rx frames
¥
Support of nibble mode HDLC (4 bits per clocks)
31.2  HDLC Channel Frame Transmission Processing
The HDLC transmitter is designed to work with almost no core intervention. When the core
enables a transmitter, it starts sending ßags or idles as programmed in the HDLC mode
register (FPSMR). The HDLC controller polls the Þrst BD in the transmit channel BD table.
When there is a frame to transmit, the HDLC controller fetches the data (address, control,
and information) from the Þrst buffer and begins sending the frame after Þrst inserting the
user-speciÞed minimum number of ßags between frames. When the end of the current
buffer is reached and TxBD[L] (last buffer in frame) is set, the FCC appends the CRC (if
selected) and closing ßag. In HDLC, the lsb of each octet and the msb of the CRC are sent
Þrst. Figure 31-1 shows a typical HDLC frame.
Figure 31-1. HDLC Framing Structure
After the closing ßag is sent, the HDLC controller writes the frame status bits into the BD
and clears the R bit. When the end of the current BD is reached and the L (last) bit is not
set (working in multibuffer mode), only the R bit is cleared. In either mode, an interrupt can
be issued if the I bit in the TxBD is set. The HDLC controller then proceeds to the next
TxBD in the table. In this way, the core can be interrupted after each buffer, after a speciÞc
buffer, after each frame, or after a number of frames.
Opening Flag
Address
Control
Information (Optional) 
CRC
Closing Flag
8 Bits
16 Bits
8 Bits
8n Bits
16 Bits
8 Bits