SCC HDLC Mode
MPC885 PowerQUICC Family Reference Manual, Rev. 2
23-2
Freescale Semiconductor
•
Four address comparison registers with mask
•
Maintenance of five 16-bit error counters
•
Flag/abort/idle generation and detection
•
Zero insertion/deletion
•
16- or 32-bit CRC-CCITT generation and checking
•
Detection of nonoctet aligned frames
•
Detection of frames that are too long
•
Programmable flags (0–15) between successive frames
•
Automatic retransmission in case of collision
23.2
SCC HDLC Channel Frame Transmission
The HDLC transmitter is designed to work with little or no core intervention. Once enabled by the core, a
transmitter starts sending flags or idles as programmed in the HDLC mode register (PSMR). The HDLC
polls the first BD in the TxBD table. When there is a frame to transmit, the SCC fetches the data from
memory and starts sending the frame after sending the minimum number of flags specified between
frames. When the end of the current buffer is reached and TxBD[L] (last buffer in frame) is set, the CRC
and closing flag are appended. In HDLC mode, the lsb of each octet and the msb of the CRC are sent first.
Figure 23-1
shows a typical HDLC frame.
After a closing flag is sent, the SCC updates the frame status bits of the BD and clears TxBD[R] (buffer
ready). At the end of the current buffer, if TxBD[L] is not set (multiple buffers per frame), only TxBD[R]
is cleared. Before the SCC proceeds to the next TxBD in the table, an interrupt can be issued if TxBD[I]
is set. This interrupt programmability allows the core to intervene after each buffer, after a specific buffer,
or after each frame.
The
STOP
TRANSMIT
command can be used to expedite critical data ahead of previously linked buffers or
to support efficient error handling. When the SCC receives a
STOP
TRANSMIT
command, it sends idles or
flags instead of the current frame until it receives a
RESTART
TRANSMIT
command. The
GRACEFUL
STOP
TRANSMIT
command can be used to insert a high-priority frame without aborting the current one—a
graceful-stop-complete event is generated in SCCE[GRA] when the current frame is finished. See
Section 23.6, “SCC HDLC Commands.”
23.3
SCC HDLC Channel Frame Reception
The HDLC receiver is designed to work with little or no core intervention to perform address recognition,
CRC checking, and maximum frame length checking. Received frames can be used to implement any
HDLC-based protocol.
Opening Flag
Address
Control
Information (Optional)
CRC
Closing Flag
8 bits
16 bits
8 bits
8
n bits
16 bits
8 bits
Figure 23-1. HDLC Framing Structure
Summary of Contents for PowerQUICC MPC870
Page 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Page 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Page 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Page 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Page 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Page 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Page 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Page 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Page 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Page 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Page 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...