SCC HDLC Mode
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Freescale Semiconductor
23-3
Once enabled by the core, the receiver waits for an opening flag character. When it detects the first byte
of the frame, the SCC compares the frame address with four user-programmable, 16-bit address registers
and an address mask. The SCC compares the received address field with the user-defined values after
masking with the address mask. To detect broadcast (all ones) address frames, one address register must
be written with all ones.
If an address match is detected, the SCC fetches the next BD and SCC starts transferring the incoming
frame to the buffer if it is empty. When the buffer is full, the SCC clears RxBD[E] and generates a
maskable interrupt if RxBD[I] is set. If the incoming frame is larger than the current buffer, the SCC
continues receiving using the next BD in the table.
During reception, the SCC checks for frames that are too long (using MFLR). When the frame ends, the
CRC field is checked against the recalculated value and written to the buffer. RxBD[Data Length] of the
last BD in the HDLC frame contains the entire frame length. This also enables software to identify the
frames in which the maximum frame length violations occur. The SCC sets RxBD[L] (last buffer in
frame), writes the frame status bits, and clears RxBD[E]. It then generates a maskable event (SCCE[RXF])
to indicate a frame was received. The SCC then waits for a new frame. Back-to-back frames can be
received with only one shared flag between frames.
The received frames threshold parameter (RFTHR) can be used to postpone interrupts until a specified
number of frames is received. This function can be combined with a timer to implement a timeout if fewer
than the specified number of threshold frames is received.
Note that an SCC in HDLC mode, or any other synchronous mode, must receive a minimum of eight
clocks after the last bit arrives to account for Rx FIFO delay.
23.4
SCC HDLC Parameter RAM
For HDLC mode, the protocol-specific area of the SCC parameter RAM is mapped as in
Table 23-1
.
Table 23-1. HDLC-Specific SCC Parameter RAM Memory Map
Offset
1
Name
Width
Description
0x30
—
Word
Reserved
0x34
C_MASK
Word
CRC mask. For the 16-bit CRC-CCITT, initialize with 0x0000_F0B8. For 32-bit
CRC-CCITT, initialize with 0xDEBB_20E3.
0x38
C_PRES
Word
CRC preset. For the 16-bit CRC-CCITT, initialize with 0x0000_FFFF. For 32-bit
CRC-CCITT, initialize with 0xFFFF_FFFF.
0x3C
DISFC
Hword
Modulo 2
16
counters maintained by the CPM. Initialize them while the channel is
disabled.
DISFC (Discarded frame counter) Counts error-free frames discarded due to lack
of free buffers.
CRCEC (CRC error counter) Includes frames not addressed to the user or frames
received in the BSY condition, but does not include overrun errors.
ABTSC (Abort sequence counter)
NMARC (Nonmatching address received counter) Includes error-free frames only.
RETRC (Frame retransmission counter) Counts number of frames resent due to
collision.
0x3E
CRCEC
Hword
0x40
ABTSC
Hword
0x42
NMARC
Hword
0x44
RETRC
Hword
Содержание PowerQUICC MPC870
Страница 1: ...MPC885 PowerQUICC Family Reference Manual Supports MPC885 MPC880 MPC875 MPC870 MPC885RM Rev 2 04 2006 ...
Страница 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Страница 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Страница 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Страница 192: ...MPC885 Instruction Set MPC885 PowerQUICC Family Reference Manual Rev 2 5 22 Freescale Semiconductor ...
Страница 242: ...Instruction and Data Caches MPC885 PowerQUICC Family Reference Manual Rev 2 7 30 Freescale Semiconductor ...
Страница 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Страница 416: ...External Bus Interface MPC885 PowerQUICC Family Reference Manual Rev 2 13 42 Freescale Semiconductor ...
Страница 440: ...Clocks and Power Control MPC885 PowerQUICC Family Reference Manual Rev 2 14 24 Freescale Semiconductor ...
Страница 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Страница 606: ...SDMA Channels and IDMA Emulation MPC885 PowerQUICC Family Reference Manual Rev 2 19 20 Freescale Semiconductor ...
Страница 738: ...SCC Asynchronous HDLC Mode and IrDA MPC885 PowerQUICC Family Reference Manual Rev 2 25 16 Freescale Semiconductor ...
Страница 780: ...SCC Ethernet Mode MPC885 PowerQUICC Family Reference Manual Rev 2 27 24 Freescale Semiconductor ...
Страница 794: ...SCC Transparent Mode MPC885 PowerQUICC Family Reference Manual Rev 2 28 14 Freescale Semiconductor ...
Страница 848: ...Serial Peripheral Interface SPI MPC885 PowerQUICC Family Reference Manual Rev 2 30 18 Freescale Semiconductor ...
Страница 882: ...Universal Serial Bus USB MPC885 PowerQUICC Family Reference Manual Rev 2 31 34 Freescale Semiconductor ...
Страница 944: ...Parallel I O Ports MPC885 PowerQUICC Family Reference Manual Rev 2 34 26 Freescale Semiconductor ...
Страница 956: ...CPM Interrupt Controller MPC885 PowerQUICC Family Reference Manual Rev 2 35 12 Freescale Semiconductor ...
Страница 1004: ...Buffer Descriptors and Connection Tables MPC885 PowerQUICC Family Reference Manual Rev 2 37 30 Freescale Semiconductor ...
Страница 1022: ...ATM Parameter RAM MPC885 PowerQUICC Family Reference Manual Rev 2 38 18 Freescale Semiconductor ...
Страница 1068: ...ATM Pace Control MPC885 PowerQUICC Family Reference Manual Rev 2 40 22 Freescale Semiconductor ...
Страница 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Страница 1120: ...AAL2 Implementation MPC885 PowerQUICC Family Reference Manual Rev 2 44 30 Freescale Semiconductor ...
Страница 1162: ...Fast Ethernet Controller FEC MPC885 PowerQUICC Family Reference Manual Rev 2 45 40 Freescale Semiconductor ...
Страница 1172: ...SEC Lite Overview MPC885 PowerQUICC Family Reference Manual Rev 2 46 8 Freescale Semiconductor ...
Страница 1176: ...SEC Lite Address Map MPC885 PowerQUICC Family Reference Manual Rev 2 47 4 Freescale Semiconductor ...
Страница 1214: ...SEC Lite Execution Units MPC885 PowerQUICC Family Reference Manual Rev 2 48 38 Freescale Semiconductor ...
Страница 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Страница 1313: ...MPC885 PowerQUICC Family Reference Manual Rev 2 Freescale Semiconductor B 1 Appendix B Serial Communications Performance TBD ...
Страница 1314: ...Serial Communications Performance MPC885 PowerQUICC Family Reference Manual Rev 2 B 2 Freescale Semiconductor ...
Страница 1320: ...Register Quick Reference Guide MPC885 PowerQUICC Family Reference Manual Rev 2 C 6 Freescale Semiconductor ...
Страница 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Страница 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Страница 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Страница 1384: ...Serial ATM Scrambling Reception and SI Programming MPC885 PowerQUICC Family Reference Manual Rev 2 H 6 Freescale Semiconductor ...
Страница 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...