6 hdlc mode register (fpsmr), Hdlc mode register (fpsmr) -7, Hdlc reception errors -7 – Motorola MPC8260 User Manual

Page 909: 6/31-7 (hdlc), Section 31.6, òhdlc mode register (fpsmr)

Advertising
background image

MOTOROLA

Chapter 31. FCC HDLC Controller

31-7

Part IV. Communications Processor Module

Table 31-5 describes HDLC reception errors, which are reported through the RxBD.

31.6 HDLC Mode Register (FPSMR)

When an FCC is conÞgured for HDLC mode, the FPSMR is used as the HDLC mode
register, shown in Figure 31-3.

Table 31-5. HDLC Reception Errors

Error Description

Overrun Error The HDLC controller maintains an internal FIFO buffer for receiving data. The CP begins

programming the SDMA channel and updating the CRC whenever data is received in the FIFO buffer.
When a receive FIFO overrun occurs, the channel writes the received data byte to the internal FIFO
buffer over the previously received byte. The previous byte and the frame status are lost. The channel
closes the buffer with RxBD[OV] set and generates the RXF interrupt if it is enabled. The receiver then
enters hunt mode. Even if the overrun occurs during a frame whose address is not matched in the
address recognition logic, an RxBD with data length two is opened to report the overrun and the RXF
interrupt is generated if it is enabled.

CD Lost
During Frame
Reception

When this error occurs, the channel terminates frame reception, closes the buffer, sets RxBD[CD],
and generates the RXF interrupt if it is enabled. This error has highest priority. The rest of the frame is
lost and other errors are not checked in that frame. At this point, the receiver enters hunt mode.

Abort
Sequence

The HDLC controller detects an abort sequence when seven or more consecutive ones are received.
When this error occurs and the HDLC controller receives a frame, the channel closes the buffer by
setting RxBD[AB] and generates the RXF interrupt (if enabled). The channel also increments the abort
sequence counter. The CRC and nonoctet error status conditions are not checked on aborted frames.
The receiver then enters hunt mode. When an abort sequence is received, the user is given no
indication that an HDLC controller is not currently receiving a frame.

Nonoctet
Aligned Frame

When this error occurs, the channel writes the received data to the data buffer, closes the buffer, sets
the Rx nonoctet aligned frame bit RxBD[NO], and generates the RXF interrupt (if it is enabled). The
CRC error status should be disregarded on nonoctet frames. After a nonoctet aligned frame is
received, the receiver enters hunt mode. An immediate back-to-back frame is still received. The
nonoctet data portion may be derived from the last byte in the buffer by Þnding the least-signiÞcant set
bit, which marks the end of valid data as follows:

msb

lsb

Valid data

1

0

0

0

CRC Error

When this error occurs, the channel writes the received CRC to the data buffer, closes the buffer, sets
RxBD[CR], and generates the RXF interrupt (if it is enabled). The channel also increments the CRC
error counter. After receiving a frame with a CRC error, the receiver enters hunt mode. An immediate
back-to-back frame is still received. CRC checking cannot be disabled, but the CRC error can be
ignored if checking is not required.

Advertising