26-2
MPC860 PowerQUICC UserÕs Manual
MOTOROLA
Part V. The Communications Processor Module
26.2 Asynchronous HDLC Frame Transmission
Processing
The SCC in asynchronous HDLC mode (asynchronous HDLC controller) works with
minimal core intervention. When the core enables the transmitter and sets TxBD[R] in the
Þrst BD of the table, the asynchronous HDLC controller fetches data from memory and
starts sending the frame. If the current TxBD[L] is set (last buffer of a frame), the CRC and
closing ßag are appended. If TxBD[CM] is zero, the transmitter updates frame status bits
in the BD and clears TxBD[R]. If TxBD[I] is set, the controller sets SCCE[TXB] so an
interrupt can be generated after each buffer, after a group of buffers, or after each frame is
sent.
If TxBD[CM] is set, the asynchronous HDLC transmitter updates frame status bits in the
BD after transmission but does not clear TxBD[R]. The transmitter then proceeds to the
next TxBD and if necessary waits until it is ready. As the transmitter sends data, it performs
the transparency encoding speciÞed by the protocol. See Section 26.4, ÒTransmitter
Transparency Encoding.Ó
To rearrange buffers, such as for error handling or to expedite data ahead of previously
linked buffers, issue a
STOP
TRANSMIT
command before modifying the TxBD table or
directly changing the current TxBD pointer TBPTR. When the asynchronous HDLC
controller receives a
STOP
TRANSMIT
command, it stops the transmission and sends the
asynchronous HDLC abort sequence. It then sends idle characters until the
RESTART
TRANSMIT
command is given, at which point it resumes transmission with the next TxBD.
26.3 Asynchronous HDLC Frame Reception
Processing
The asynchronous HDLC receiver is designed to work with minimal core intervention. It
can decode transparency characters, check the CRC of the frame, and detect errors on the
line and in the controller. When the core enables the receiver and the receiver detects a data
byte of the incoming frame preceded by one or more opening ßags, the asynchronous
HDLC controller fetches the next BD. If RxBD[E] is set, the controller starts transferring
the incoming frame into the buffer. When the buffer is full, the controller clears RxBD[E].
If the incoming frame is larger than the buffer, the controller fetches the next BD, and if E
is set, continues transferring the rest of the frame into its buffer.
The receiver decodes the transparency character required by asynchronous HDLC protocol
as described in Section 26.5, ÒReceiver Transparency Decoding.Ó When the frame ends, the
controller checks the incoming CRC Þeld and writes it to the buffer. The controller then
BOF
Address
Control
Information
FCS (CRC)
EOF
8 bits
8 bits
8 bits
M * 8 bits
2 ¥ 8 bits
8 bits
Figure 26-1. Asynchronous HDLC Frame Structure
Содержание MPC860 PowerQUICC
Страница 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Страница 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Страница 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Страница 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Страница 1106: ......