Fcc hdlc receive buffer descriptor (rxbd) -11, Rxbd field descriptions -11 – Motorola MPC8260 User Manual

Page 913

Advertising
background image

MOTOROLA

Chapter 31. FCC HDLC Controller

31-11

Part IV. Communications Processor Module

Figure 31-5 shows the FCC HDLC RxBD.

Table 31-7 describes RxBD Þelds.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Offset + 0

E

Ñ

W

I

L

F

CM

Ñ

LG

NO

AB

CR

OV

CD

Offset + 2

Data Length

Offset + 4

Rx Data Buffer Pointer

Offset + 6

Figure 31-5. FCC HDLC Receive Buffer Descriptor (RxBD)

Table 31-7. RxBD field Descriptions

Bits

Name

Description

0

E

Empty
0 The buffer is full with received data or data reception stopped because of an error. The core can

read or write to any Þelds of this RxBD. The CP does not use this BD while E = 0.

1 The buffer associated with this BD is empty. This RxBD and its associated receive buffer are

owned by the CP. Once E is set, the core should not write any Þelds of this RxBD.

1

Ñ

Reserved, should be cleared.

2

W

Wrap (Þnal BD in table)
0 Not the last BD in the RxBD table.
1 Last BD in the RxBD table. After this buffer is used, the CP receives incoming data into the Þrst

BD that RBASE points to in the table. The number of RxBDs in this table is programmable and is
determined only by the W bit and the overall space constraints of the dual-port RAM.

The RxBD table must contain more than one BD in HDLC mode.

3

I

Interrupt
0 The RXB bit is not set after this buffer is used, but RXF operation remains unaffected.
1 FCCE[RXB] or FCCE[RXF] is set when the HDLC controller uses this buffer. These two bits can

cause interrupts if they are enabled.

4

L

Last in frame. Set by the HDLC controller when this buffer is the last one in a frame. This implies the
reception of a closing ßag or reception of an error, in which case one or more of the CD, OV, AB, and
LG bits are set. The HDLC controller writes the number of frame octets to the data length Þeld.
0 Not the last buffer in a frame.
1 Last buffer in a frame.

5

F

First in frame. Set by the HDLC controller when this buffer is the Þrst in a frame.
0 Not the Þrst buffer in a frame.
1 First buffer in a frame.

6

CM

Continuous mode
0 Normal operation.
1 The E bit is not cleared by the CP after this BD is closed, allowing the associated data buffer to be

automatically overwritten the next time the CP accesses this BD. However, the E bit is cleared if
an error occurs during reception, regardless of the CM bit.

7Р9

С

Reserved, should be cleared.

10

LG

Rx frame length violation. A frame length greater than the maximum deÞned for this channel is
recognized, and only the maximum-allowed number of bytes (MFLR) is written to the data buffer. This
event is not reported until the RxBD is closed, the RXF bit is set, and the closing ßag is received. The
number of bytes received between ßags is written to the data length Þeld of this BD.

Advertising