Table 22-4. transmit errors, Table 22-5. receive errors, Transmit errors -6 – Freescale Semiconductor MPC8260 User Manual

Page 734: Receive errors -6, Reception errors are described in table 22-5

Advertising
background image

SCC HDLC Mode

MPC8260 PowerQUICC II Family Reference Manual, Rev. 2

22-6

Freescale Semiconductor

Reception errors are described in

Table 22-5

.

Table 22-4. Transmit Errors

Error

Description

Transmitter
Underrun

The channel stops transmitting, closes the buffer, sets TxBD[UN], and generates a TXE interrupt if not
masked. Transmission resumes when a

RESTART

TRANSMIT

command is issued. The SCC send and

receive FIFOs are 32 bytes each.

CTS Lost
during Frame
Transmission

The channel stops transmitting, closes the buffer, sets TxBD[CT], and generates the TXE interrupt if
not masked. Transmission resumes after a

RESTART

TRANSMIT

command. If this error occurs on the

first or second buffer of the frame and PSMR[RTE] = 1, the channel resends the frame when CTS is
reasserted and no error is reported. If collisions are possible, to ensure proper retransmission of
multi-buffer frames, the first two buffers of each frame should in total contain more than 36 bytes for
SCC or 20 bytes for SCC. The channel also increments the retransmission counter RETRC in the
parameter RAM.

Table 22-5. Receive Errors

Error

Description

Overrun

Each SCC maintains an internal FIFO for receiving data. The CP begins programming the SDMA
channel (if the buffer is in external memory) and updating the CRC when a full or partial FIFO’s worth
of data (according to GSMR_H[RFW]) is received in the Rx FIFO. When an Rx FIFO overrun occurs,
the previous byte is overwritten by the next byte. The previous data byte and the frame status are lost.
The channel closes the buffer with RxBD[OV] set and generates an RXF interrupt if not masked. The
receiver then enters hunt mode. Even if an overrun occurs during a frame whose address is not
recognized, an RxBD with data length two is opened to report the overrun and the interrupt is
generated.

CD Lost
during
Frame
Reception

Highest priority error. The channel stops frame reception, closes the buffer, sets RxBD[CD], and
generates the RXF interrupt if not masked. 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

Occurs when seven or more consecutive ones are received. When this occurs while receiving a frame,
the channel closes the buffer, sets RxBD[AB] and generates a maskable RXF interrupt. The channel
also increments the abort sequence counter ABTSC. The CRC and nonoctet error status conditions are
not checked on aborted frames. The receiver then enters hunt mode.

Nonoctet
Aligned
Frame

The channel writes the received data to the buffer, closes the buffer, sets RxBD[NO], and generates a
maskable RXF interrupt. 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 may be derived from the last word in the buffer as follows:

Note: If buffer swapping is used (RFCR[BO] = 0b0x), the figure above refers to the last byte, rather than

the last word, of the buffer. The lsb of each octet is sent first while the msb of the CRC is sent first.

CRC

The channel writes the received CRC to the buffer, closes the buffer, sets RxBD[CR], generates a
maskable RXF interrupt, and increments the CRC error counter CRCEC. 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.

msb

lsb

1

0

0

Valid Data

Nonvalid Data

Advertising