Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
34
Добавлен:
27.04.2015
Размер:
1.98 Mб
Скачать

SCK = Phi Clock Frequency ÷ [4 × (7 × PSR + 1) × (PM + 1)] where PM = PM[7:0]

SFS = (SCK) ÷ [(DC + 1) × WL]

where DC = DC[4:0] and WL = (8, 10, 12, or 16)

SSI Programming Model

AA1385

Figure 8-8. SSI Bit Clock Equation

For example, in 8-bit word normal mode with DC[4:0] set to 1 (00001), PM[7:0] set to 71 (0100 0111), the PSR bit cleared, and a 36.864 MHz Phi clock, a bit clock rate of 36.864 Mhz ÷ [1 × 4 × 72] = 128 kHz is generated. Since the 8-bit word rate is equal to two, the sampling rate (FS rate) would then be

128 kHz ÷ [2 × 8] = 16 kHz.

The bit clock output is also available internally for use as the bit clock to shift the transmit and receive shift registers. Careful choice of the crystal oscillator frequency and the prescaler modulus allows the telecommunication-industry-standard codec master clock frequencies of 2.048 MHz, 1.544 MHz, and 1.536 MHz to be generated. For example, a 24.576 MHz clock frequency can be used to generate the standard 2.048 MHz and 1.536 MHz rates, and a 24.704 MHz clock frequency can be used to generate the standard 1.544 MHz rate. Table 8-2 gives examples of PM[7:0] values that can be used to generate different bit clocks.

Table 8-2. SSI Bit Clock as a Function of Phi Clock and Prescale Modulus

Phi

Max Bit

 

PM[7:0] Values for Different SCK

 

 

 

 

 

 

Clock

Clock

 

 

 

 

 

2.048

1.544

1.536

128

64

(MHz)

(MHz)

MHz

MHz

MHz

kHz

kHz

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16.384

4.096

1

31 ($1F)

63 ($3F)

 

 

 

 

 

 

 

18.432

4.608

2

35 ($23)

71 ($47)

 

 

 

 

 

 

 

20.480

5.12

39 ($27)

79 ($4F)

 

 

 

 

 

 

 

26.624

6.656

51 ($33)

103 ($67)

 

 

 

 

 

 

 

24.576

6.144

2

3

47 ($2F)

95 ($5F)

 

 

 

 

 

 

 

24.704

6.176

3

 

 

 

 

 

 

 

32.768

8.192

3

63 ($3F)

127 ($7F)

 

 

 

 

 

 

 

36.864

9.216

5

71 ($47)

143 ($8F)

 

 

 

 

 

 

 

8.2.8 SSI Control Register 2 (SCR2)

The SSI control register 2 (SCR2) is one of three 16-bit read/write control registers used to direct the operation of the SSI. The SSI reset is controlled by a bit in SCR2. SCR2 controls the direction of the bit clock and frame sync pins, STCK, SRCK, STFS, and SRFS. Interrupt enable bits for the receive and transmit sections are provided in this control register. SSI operating modes are also selected in this register. The DSP reset clears all SCR2 bits. However, SSI reset and STOP reset do not affect the SCR2 bits. The

Synchronous Serial Interface

8-11

Соседние файлы в папке DSP568xx