12 scc hdlc status register (sccs), 13 scc hdlc programming examples, Scc hdlc status register (sccs) -14 – Motorola MPC8260 User Manual

Page 622: Scc hdlc programming examples -14, Hdlc sccs field descriptions -14, 12/21-14 (hdlc)

Advertising
background image

21-14

MPC8260 PowerQUICC II UserÕs Manual

MOTOROLA

Part IV. Communications Processor Module

21.12 SCC HDLC Status Register (SCCS)

The SCC status register (SCCS), shown in Figure 21-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 21-10 describes HDLC SCCS Þelds.

21.13 SCC HDLC Programming Examples

The following sections show examples for programming SCCs in HDLC mode. The Þrst
example uses an external clock. The second example implements Manchester encoding.

Bit

0

1

2

3

4

5

6

7

Field

Ñ

FG

CS

ID

Reset

0000_0000

R/W

R

Addr

0x11A17 (SCCS1); 0x11A37 (SCCS2); 0x11A57 (SCCS3); 0x11A77 (SCCS4)

Figure 21-9. SCC HDLC Status Register (SCCS)

Table 21-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 ßags are not being received. The most recently received 8 bits are examined every bit time to

see if a ßag is present.

1 HDLC ßags are being received. FG is set as soon as an HDLC ßag (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 ßag 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.

Advertising