[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring the Serial Clocking Mode

By default, serial interfaces use loop clocking mode. For EIA-530 and V.35 interfaces, you can configure each port on the PIC independently to use loop, DCE, or internal clocking mode. For X.21 interfaces, only loop clocking mode is supported.

The three clocking modes work as follows:

Note that DCE clocking mode and loop clocking mode use external clocks generated by the DCE.

Figure 15 shows the clock sources of loop, DCE, and internal clocking modes.

Figure 15: Serial Interface Clocking Mode

Image h1970.gif

To configure the clocking mode of a serial interface, include the clocking-mode statement:

clocking-mode (dce | internal | loop);

You can include this statement at the following hierarchy levels:

For more information about clocking on serial interfaces, see the following sections:

Inverting the Serial Interface Transmit Clock

When an externally timed clocking mode (DCE or loop) is used, long cables might introduce a phase shift of the DTE-transmitted clock and data. At high speeds, this phase shift might cause errors. Inverting the transmit clock corrects the phase shift, thereby reducing error rates.

By default, the transmit clock is not inverted. To invert the transmit clock, include the transmit-clock invert statement:

transmit-clock invert;

You can include this statement at the following hierarchy levels:

Configuring the DTE Clock Rate

By default, the serial interface has a clock rate of 16.384 MHz. For EIA-530 and V.35 interfaces with internal clocking mode configured, you can configure the clock rate. For more information about internal clocking mode, see Configuring the Serial Clocking Mode.

To configure the clock rate, include the clock-rate statement:

clock-rate rate;

You can include this statement at the following hierarchy levels:

You can configure the following interface speeds:

Although the serial interface is intended for use at the default rate of 16.384 MHz, you might need to use a slower rate if any of the following conditions prevail:

For detailed information about the relationship between signaling rate and interface cable distance, see the following standards:


[Contents] [Prev] [Next] [Index] [Report an Error]