SCC HDLC Mode
MPC885 PowerQUICC Family Reference Manual, Rev. 2
23-14
Freescale Semiconductor
23.12 SCC HDLC Status Register (SCCS)
The SCC status register (SCCS), shown in
Figure 23-9
, permits monitoring of real-time status conditions
on RXD. The real-time status of CTS and CD are part of the port C parallel I/O.
Table 23-10
describes HDLC SCCS fields.
23.13 SCC HDLC Programming Examples
The following sections show examples for programming an SCC in HDLC mode. The first example uses
an external clock. The second example implements Manchester encoding.
23.13.1 SCC HDLC Programming Example #1
The following initialization sequence is for an SCC HDLC channel with an external clock. SCC2 is used
with RTS2, CTS2, and CD2 active; CLK3 is used for both the HDLC receiver and transmitter.
1. Configure port A to enable TXD2 and RXD2. Set PAPAR[12,13] and clear PADIR[12,13] and
PAODR[12,13].
2. Configure port C to enable RTS2, CTS2, and CD2. Set PCPAR[14] and PCSO[8,9] and clear
PCPAR[8,9] and PCDIR[8,9,14].
0
4
5
6
7
Field
—
FG
CS
ID
Reset
0000_0000
R/W
R
Addr
0xA37 (SCCS2), 0xA57 (SCCS3), 0xA77 (SCCS4)
Figure 23-9. SCC HDLC Status Register (SCCS)
Table 23-10. HDLC SCCS Field Descriptions
Bits
Name
Description
0–4
—
Reserved, should be cleared.
5
FG
Flags. The line is checked after the data has been decoded by the DPLL.
0 HDLC flags are not being received. The most recently received 8 bits are examined every bit time
to see if a flag is present.
1 HDLC flags are being received. FG is set as soon as an HDLC flag (0x7E) is received on the line.
Once it is set, it remains set at least 8 bit times and the next eight received bits are examined. If
another flag occurs, FG stays set for at least another eight bits. If not, it is cleared and the search
begins again.
6
CS
Carrier sense (DPLL). Shows the real-time carrier sense of the line as determined by the DPLL.
0 The DPLL does not sense a carrier.
1 The DPLL senses a carrier.
7
ID
Idle status.
0 The line is busy.
1 Set when RXD is a logic 1 (idle) for 15 or more consecutive bit times. It is cleared after a single
logic 0 is received.
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 ...