Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Сигнальный МП Motorola DSP56002.pdf
Скачиваний:
22
Добавлен:
26.05.2014
Размер:
2 Мб
Скачать
☆

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

SYNCHRONOUS SERIAL INTERFACE (SSI)

This interface is descriptively named “synchronous” because all serial transfers are synchronized to a clock. Additional synchronization signals are used to delineate the word frames. The normal mode of operation is used to transfer data at a periodic rate, but only one word per period. The network mode is similar in that it is also intended for periodic transfers; however, it will support up to 32 words (time slots) per period. This mode can be used to build time division multiplexed (TDM) networks. In contrast, the on-demand mode is intended for nonperiodic transfers of data. This mode can be used to transfer data serially at high speed when the data becomes available. This mode offers a subset of the SPI protocol.

6.4.1SSI Data and Control Pins

The SSI has three dedicated I/O pins (see Figure 6-1), which are used for transmit data (STD), receive data (SRD), and serial clock (SCK), where SCK may be used by both the transmitter and the receiver for synchronous data transfers or by the transmitter only for asynchronous data transfers. Three other pins may also be used, depending on the mode selected; they are serial control pins SC0, SC1, and SC2. They may be programmed as SSI control pins in the Port C control register. Table 6-5 shows the definition of SC0, SC1, SC2, and SCK in the various configurations. The following paragraphs describe the uses of these pins for each of the SSI operating modes. Figure 6-42 and Figure 6-43 show the internal clock path connections in block diagram form. The receiver and transmitter clocks can be internal or external depending on the SYN, SCD0, and SCKD bits in CRB.

6.4.1.1Serial Transmit Data Pin (STD)

STD is used for transmitting data from the serial transmit shift register. STD is an output when data is being transmitted. Data changes on the positive edge of the bit clock. STD goes to high impedance on the negative edge of the bit clock of the last data bit of the word (i.e., during the second half of the last data bit period) with external gated clock, regardless of the mode. With an internally generated bit clock, the STD pin becomes high impedance after the last data bit has been transmitted for a full clock period, assuming another data word does not follow immediately. If a data word follows immediately, there will not be a high-impedance interval.

Codecs label the MSB as bit 0; whereas, the DSP labels the LSB as bit 0. Therefore, when using a standard codec, the DSP MSB (or codec bit 0) is shifted out first when SHFD=0, and the DSP LSB (or codec bit 7) is shifted out first when SHFD=1. STD may be programmed as a general-purpose pin called PC8 when the SSI STD function is not being used.

6 - 78 PORT C MOTOROLA

For More Information On This Product, Go to: www.freescale.com

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

SYNCHRONOUS SERIAL INTERFACE (SSI)

Table 6-5 Definition of SC0, SC1, SC2, and SCK

 

SSI Pin Name

 

Asynchronous (SYN=0)

 

Synchronous (SYN=1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Continuous Clock

Gated Clock

Continuous Clock

Gated Clock

 

(Control Bit Name)

 

 

 

 

 

 

 

(GCK=0)

(GCK=1)

 

(GCK=0)

 

(GCK=1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SC0=0 (in)

 

RXC External

RXC External

Input F0

 

Input F0

 

SC0=1 (out)

 

RXC Internal

RXC Internal

Output F0

 

Output F0

 

 

(SCD0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SC1=0 (in)

 

FSR External

Not Used

 

Input F1

 

Input F1

 

SC1=1 (out)

 

FSR Internal

FSR Internal

Output F1

 

Output F1

 

 

(SCD1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SC2=0 (in)

 

FST External

Not Used

 

FS* External

 

Not Used

 

SC2=1 (out)

 

FST Internal

FST Internal

FS* Internal

 

FS* Internal

 

 

(SCD2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCK=0 (in)

 

TXC External

TXC External

*XC External

 

*XC External

 

SCK=1 (out

 

TXC Internal

TXC Internal)

*XC Internal

 

*XC Internal

 

 

(SCKD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TXC – Transmitter Clock

 

 

 

 

 

 

 

 

 

 

 

 

 

FSR – Receiver Frame Sync

 

 

 

 

RXC – Receiver Clock

 

 

 

FS* – Transmitter/Receiver Frame Sync

 

 

 

 

 

 

*XC – Transmitter/Receiver Clock

 

(synchronous operation)

 

 

 

 

 

 

(synchronous operation)

 

F0 – Flag 0

 

 

 

 

 

 

 

 

FST – Transmitter Frame Sync

 

F1 – Flag 1

 

 

 

 

 

 

 

 

 

 

Table 6-6 SSI

 

 

 

 

 

 

 

 

 

Clock Sources, Inputs, and Outputs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SYN

 

SCKD

 

SCD0

R Clock

 

RX Clock

 

T Clock Source

 

TX Clock Out

 

 

 

 

Source

 

Out

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Asynchronous

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

 

0

EXT, SC0

 

–

 

 

EXT, SCK

 

 

–

 

 

0

 

0

 

 

1

 

INT

 

SC0

 

 

EXT, SCK

 

 

–

 

 

0

 

1

 

 

0

EXT, SC0

 

–

 

 

INT

 

 

SCK

 

 

0

 

1

 

 

1

 

INT

 

SC0

 

 

INT

 

 

SCK

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Synchronous

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

0

 

 

0

EXT, SCK

 

–

 

 

EXT, SCK

 

 

–

 

 

1

 

0

 

 

1

EXT, SCK

 

–

 

 

EXT, SCK

 

 

–

 

 

1

 

1

 

 

0

 

INT

 

SCK

 

 

INT

 

 

SCK

 

 

1

 

1

 

 

1

 

INT

 

SCK

 

 

INT

 

 

SCK

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EXT – External Pin Name

INT – Internal Bit Clock

MOTOROLA PORT C 6 - 79

For More Information On This Product, Go to: www.freescale.com

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

SYNCHRONOUS SERIAL INTERFACE (SSI)

FLAG0 OUT

FLAG0 IN

 

 

(SYNC MODE)

(SYNC MODE)

 

 

 

 

WL1, WL0

 

 

SCD0 = 0

RX WORD

RX WORD

 

LENGTH DIVIDER

CLOCK

SYN = 1

 

SYN = 0

 

SC0

 

RX SHIFT REGISTER

 

 

 

RCLOCK

 

SYN = 0

SCD0 = 1

 

 

SCD0

SYN = 1

WL1, WL0

 

 

INTERNAL BIT CLOCK

TCLOCK

TX WORD

SCK

 

TX WORD

 

LENGTH DIVIDER

CLOCK

 

 

SCKD

TX SHIFT REGISTER

 

 

 

 

 

 

 

 

PRESCALE

 

 

 

 

DIVIDER

 

 

 

 

 

 

 

 

 

 

 

 

 

DIVIDE BY 1

 

 

 

DIVIDE BY 1

 

 

 

 

 

 

 

 

 

DIVIDE

 

 

DIVIDE

 

 

 

 

 

BY 2

 

 

 

 

OR

 

 

 

TO DIVIDE

 

 

BY 2

 

 

 

 

 

 

 

 

 

 

DIVIDE BY 8

 

 

 

 

BY 256

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FOSC

 

 

PSR

 

 

PM0 - PM7

 

 

 

 

Figure 6-42 SSI Clock Generator Functional Block Diagram

6.4.1.2Serial Receive Data Pin (SRD)

SRD receives serial data and transfers the data to the SSI receive shift register. SRD may be programmed as a general-purpose I/O pin called PC7 when the SSI SRD function is not being used. Data is sampled on the negative edge of the bit clock.

6.4.1.3Serial Clock (SCK)

SCK is a bidirectional pin providing the serial bit rate clock for the SSI interface. The SCK is a clock input or output used by both the transmitter and receiver in synchronous modes or by the transmitter in asynchronous modes (see Table 6-6).

Note: Although an external serial clock can be independent of and asynchronous to the DSP system clock, it must exceed the minimum clock cycle time of 8T (i.e., the system clock frequency must be at least four times the external SSI clock frequency).

The SSI needs at least four DSP phases (DSP phase=T) inside each half of the serial clock.

6 - 80 PORT C MOTOROLA

For More Information On This Product, Go to: www.freescale.com

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

SYNCHRONOUS SERIAL INTERFACE (SSI)

DC0 - DC4

FSL0, FSL1

 

 

 

RX WORD

 

 

 

 

CLOCK

INTERNAL RX FRAME CLOCK

 

 

RECEIVER

 

 

FRAME RATE

SYNC

 

 

 

TYPE

 

 

 

DIVIDER

 

 

SCD1

 

 

 

 

 

SCD1 = 1

SYN = 0

 

 

 

 

 

SYN = 0

 

 

SC1

RECEIVE

RECEIVE

 

 

 

CONTROL

FRAME SYNC

SCD1 = 0

 

 

LOGIC

SYN = 1

 

 

 

SYN = 1

 

 

 

DC0 - DC4

FSL0, FSL1

FLAG1 IN

 

FLAG1OUT

(SYNC MODE)

(SYNC MODE)

 

 

TX WORD

 

 

 

SCD2

 

 

 

 

CLOCK

 

 

 

 

TRANSMITTER

SYNC

INTERNAL TX FRAME CLOCK

 

FRAME RATE

 

 

SC2

TYPE

 

 

DIVIDER

 

 

 

 

 

 

 

TRANSMIT

TRANSMIT

 

 

 

CONTROL

FRAME SYNC

 

 

 

LOGIC

 

 

 

 

 

 

 

Figure 6-43 SSI Frame Sync Generator Functional Block Diagram

MOTOROLA PORT C 6 - 81

For More Information On This Product, Go to: www.freescale.com

Соседние файлы в предмете Радиоприемные устройства