Page 1
Freescale Semiconductor, Inc. MOTOROLA SEMICONDUCTOR TECHNICAL INFORMATION Asynchronous HDLC MC68360 ASYNC HDLC Protocol Microcode User’s Manual Rev 1.1 January 24, 1996 For More Information On This Product, Go to: www.freescale.com...
Freescale Semiconductor, Inc. Asynchronous HDLC Asynchronous HDLC ASYNC HDLC Controller Overview ASYNC HDLC Controller Key Features ASYNC HDLC Channel Frame Transmission Processing ASYNC HDLC Channel Frame Reception Processing Transmitter Transparency Encoding Receiver Transparency Decoding 2.4.1 Receive Flowchart 2.4.2 Cases not covered by RFC 1549 Implementation Specifics related to Asynchronous HDLC 2.5.1 FLAG sequence...
Page 3
Freescale Semiconductor, Inc. Asynchronous HDLC Differences Between HDLC and ASYNC-HDLC Max Received Frame Length Counter Frame termination due to error Commands Automatic Error Counters Noisy Characters Appendix A - Microcode Initialization Procedure Initialization Procedure for QUICC Version $0001 Initialization Procedure for QUICC Revision $0002 Initialization Procedure for QUICC Version $0003 Appendix B - Programming Example Appendix C - References...
The ASYNC HDLC controller will then proceed to the next Tx BD in the table. If it is not ready, the ASYNC HDLC controller will wait until the Tx BD is ready. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
For more information on the transparency algorithm, please see the references in Appendix C - References. The receive Flow-chart is shown below to detail the algorithm because there are some cas- es which are not addressed in the RFC. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
“modified” by the xor process. It is assumed that this will be caught by the CRC check. • In addition to the Abort sequence, frames will be terminated by following errors: —Noisy Character received MOTOROLA For More Information On This Product, Go to: www.freescale.com...
When transmitting, the Asynchronous HDLC controller will transmit IDLE characters (char- acters consisting of only “1”s) when no data is available for transmission. When receiving, the Asynchronous HDLC controller will ignore any IDLE characters. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
QUICC using the ASYNC-HDLC micro- code. This table can be used in conjunction with the table in Appendix A of the MC68360 User’s Manual to determine if your desired configuration can be handled by the QUICC.
Page 10
If the bit is not set, the character corresponding to that bit will be received normally. 0x1F 0x1E 0x1D 0x1C 0x1B 0x1A 0x19 ....0x05 0x04 0x03 0x02 0x01 0x00 MOTOROLA For More Information On This Product, Go to: www.freescale.com...
The receive errors are reported through the Rx BD. The transmit errors are reported through the Tx BD. An indication about the status lines (CD and CTS) is reported through the port C MOTOROLA For More Information On This Product,...
5.1 ASYNC HDLC Command Set The following commands are issued to the Command Register (CR) documented in Section 7.1 of the MC68360 User’s Manual. 5.1.1 Transmit Commands After a hardware or software reset and the enabling of the channel in the SCC mode regis- ter, the channel is in the transmit enable mode and starts polling the first BD in the table ev- ery 8 transmit bit-times, or immediately if the TOD bit in the TODR is set.
When this error occurs, the channel terminates frame reception, closes the buffer, sets the Carrier Detect lost (CD) bit in the BD, and sets the RXF bit in the event register. This error MOTOROLA For More Information On This Product,...
A bit is cleared by writing a one (writing a zero does not affect a bit’s value). More than one bit may be cleared at a time. All unmasked bits must be cleared before the CP will clear the internal interrupt request. This register is cleared at reset. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
0— Normal Operation. 1— Asynchronous flow control. When the CTS pin is negated, the transmitter will stop transmitting at the end of the current character. (If CTS is negated past the middle MOTOROLA For More Information On This Product, Go to: www.freescale.com...
RXF operation remains unaffected. 1— The RXB or RXF bit in the ASYNC HDLC Event Register will be set when this buff- er has been used by the ASYNC HDLC controller. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Page 17
(including the 2 bytes for CRC). Note If the received frame has a length (plus CRC) which is an exact multiple of MRBLR, the BD with the “L” bit set will not actually MOTOROLA For More Information On This Product, Go to: www.freescale.com...
0— The TXB bit in the ASYNC HDLC Event Register will not be set after this buffer has been used. 1— The TXB bit in the ASYNC HDLC Event Register will be set when this buffer has been transmitted by the ASYNC HDLC controller. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
9.5 Noisy Characters Noisy characters (those whose three samples are not the same) are not accounted for in this controller. It is assumed that the CRC will catch any data integrity problems. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
6. Write $0001 to the RCCR register 7. Write $8000 to the CR register Note If the QUICC is ever reset (by RESETS or RESETH), the micro- code must be reloaded and reinitialized. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
6. Write $0001 to the RCCR register 7. Write $8000 to the CR register Note If the QUICC is ever reset (by RESETS or RESETH), the micro- code must be reloaded and reinitialized. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
19. Program the GSMR_L register to ASYNC HDLC mode, but do not turn on the trans- mitter or receiver. 20. Set the PSMR register appropriately. (see Section 6.2) 21. Turn on the transmitter and receiver in the GSMR_L register. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
[1] “RFC 1549 - PPP in HDLC Framing”, W. Simpson, December 1993. [2] “RFC 1548 - The Point-to-Point Protocol (PPP)”, W. Simpson, December 1993. These two documents can be obtained via anonymous FTP from nic.ddn.mil in the /rfc di- rectory. MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Need help?
Do you have a question about the MC68360 and is the answer not in the manual?
Questions and answers