SCC HDLC Mode
MPC8260 PowerQUICC II Family Reference Manual, Rev. 2
Freescale Semiconductor 22-11
22.10 SCC HDLC Transmit Buffer Descriptor (TxBD)

The CP uses the TxBD, shown in Figure22-6, to confirm transmissions and indicate error conditions.

Table22-8 describes HDLC TxBD status and control fields.

01234567 131415
Offset + 0 RWILTCCM —UNCT
Offset + 2 Data Length
Offset + 4 Tx Buffer Pointer
Offset + 6

Figure 22-6. SCC HDLC Transmit Buffer Descriptor (TxBD)

Table22-8. SCC HDLC TxBD Status and Control Field Descriptions

Bits Name Description
0RReady.
0 The buffer is not ready for transmission. Both the buffer and the BD can be updated. The CP
clears R after the buffer is sent or an error is encountered.
1 The buffer has not been sent or is being sent and the BD cannot be updated.
1 Reserved, should be cleared.
2WWrap (last BD i n TxBD table).
0 Not the last BD in the table.
1 Last BD in the BD table. After this buffer is used, the CP sends data using the BD pointed to by
TBASE. The number of TxBDs in this table is determined by TxBD[W] and the space constraints
of the dual-port RAM.
3IInterrupt.
0 No interrupt is generated after this buffer is processed.
1 SCCE[TXB] or SCCE[TXE] is set when this buffer is processed, causing interrupts if not masked.
4LLast.
0 Not the last buffer in the frame.
1 Last buffer in the frame.
5TC Tx CRC. Valid only when TxBD[L] = 1. Otherwise, it is ignored.
0 Transmit the closing flag after the last data byte. This setting can be used to send a bad CRC after
the data for testing purposes.
1 Transmit the CRC sequence after the last data byte.
6CM Continuous mode.
0 Normal operation.
1 The CP does not clear TxBD[R] after this BD is closed allowing the buffer to be resent the next
time the CP accesses this BD. However, TxBD[R] is cleared if an error occurs during
transmission, regardless of CM.
7–13 Reserved, should be cleared.
14 UN Underrun. Set after the SCC sends a buffer and a transmitter underrun occurred.
15 CT CTS lost. Indicates when CTS in NMSI mode or layer 1 grant is lost in GCI or IDL mode during frame
transmission. If data from more than one buffer is currently in the FIFO when this error occurs, the
HDLC writes CT in the current BD after sending the buffer.