Programmable Clock and Framing
11-60
These figures show what happens to CLKG when it is initially in sync and
GSYNC = 1, as well as when it is not in sync with the frame synchronization
and GSYNC = 1.
When GSYNC = 1, the transmitter can operate synchronously with the receiv-
er, provided that the following conditions are met:
-
FSX is programmed to be driven by the sample rate generator frame sync,
FSG (FSGM = 1 in the SRGR and FSXM = 1 in the PCR). If the input FSR
has timing that enables it to be sampled by the falling edge of CLKG, it can
be used instead by setting FSXM = 0 in the PCR and connecting FSR to
FSX externally.
-
The sample-rate generator clock should drive the transmit and receive bit
clock (CLK(R/X)M = 1 in the SPCR). Therefore, the CLK(R/X) pin should
not be driven by any other source.
11.5.2.5 Digital Loopback Mode: DLB
Setting DLB = 1 in the SPCR enables digital loopback mode. In DLB mode, DR,
FSR, and CLKR are internally connected through multiplexers to DX, FSX, and
CLKX, respectively, as shown in Figure 11–37. DLB mode allows testing of se-
rial port code with a single DSP device.
11.5.2.6 Receive Clock Selection: DLB, CLKRM
Table 11–15 shows how the digital loopback bit (DLB) and the CLKRM bit in
the PCR select the receiver clock. In digital loopback mode (DLB = 1), the
transmitter clock drives the receiver. CLKRM determines whether the CLKR
pin is an input or an output.
Table 11–15. Receive Clock Selection
DLB
in SPCR
CLKRM
in PCR
Source of Receive Clock
CLKR Function
0
0
CLKR acts as an input driven by the
external clock and inverted as deter-
mined by CLKRP before being used.
Input
0
1
The sample rate generator clock
(CLKG) drives CLKR.
Output. CLKG inverted as determined by
CLKRP before being driven out on CLKR.
1
0
CLKX_int drives the receive clock
CLKR_int as selected and is in-
verted. See Table 11–16.
High impedance
1
1
CLKX_int drives CLKR_int as se-
lected and is inverted. See
Table 11–16.
Output. CLKR (same as CLKX) inverted as
determined by CLKRP before being driven
out.