This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6678 的SPI module clock究竟是多少?如何控制?

Other Parts Discussed in Thread: TMS320C6678

想要配置TMS320C6678的SPI clock。

查到6678上有一组spi引脚,其中SPICLK引脚是AE1。

查询文档《KeyStone Architecture Serial Peripheral Interface (SPI) User Guide》在2.1 Clock中提到:

The SPI clock (***) is derived from the SPI module clock. The maximum clock bit
rate supported is SPI module clock/2, as determined by the PRESCALE field in the SPI
data format register n (SPIFMTn). The *** frequency is calculated as:

*** frequency = [SPI module clock] / [SPIFMTn.PRESCALE + 1]
When SPIFMTn.PRESCALE is cleared to 0, the *** frequency defaults to SPI
module clock/2.

所以要查询SPI module clock是多少,但是文档中没有提供。

查询文档《TMS320C6678 Multicore Fixed and Floating-Point Digital Signal Processor Data Manual》在7.5.1.1 Internal Clocks and Maximum Operating Frequencies里这样描述:

The Main PLL, used to drive the CorePacs, the switch fabric, and a majority of the peripheral clocks (all but the
DDR3 and the network coprocessor (PASS)) requires a PLL controller to manage the various clock divisions, gating,
and synchronization. The Main PLL’s PLL controller has several SYSCLK outputs that are listed below, along with
the clock description. Each SYSCLK has a corresponding divider that divides down the output clock of the PLL. Note
that dividers are not programmable unless explicitly mentioned in the description below.
• SYSCLK1: Full-rate clock for the CorePacs.
• SYSCLK2: 1/x-rate clock for CorePac (emulation). Default rate for this will be 1/3. This is programmable from
/1 to /32, where this clock does not violate the max of 350 MHz. The SYSCLK2 can be turned off by software.
• SYSCLK3: 1/2-rate clock used to clock the MSMC, HyperLink, CPU/2 SCR, DDR EMIF and CPU/2 EDMA.
• SYSCLK4: 1/3-rate clock for the switch fabrics and fast peripherals. The Debug_SS and ETBs will use this as
well.
• SYSCLK5: 1/y-rate clock for system trace module only. Default rate for this will be 1/5. It is configurable and
the max configurable clock is 210 MHz and min configuration clock is 32 MHz. The SYSCLK5 can be turned
off by software.H
• SYSCLK6: 1/64-rate clock. 1/64 rate clock (emif_ptv) used to clock the PVT compensated buffers for DDR3
EMIF.

• SYSCLK7: 1/6-rate clock for slow peripherals and sources the SYSCLKOUT output pin.
• SYSCLK8: 1/z-rate clock. This clock is used as slow_sysclk in the system. Default for this will be 1/64. This is
programmable from /24 to /80.
• SYSCLK9: 1/12-rate clock for SmartReflex.
• SYSCLK10: 1/3-rate clock for SRIO only.
• SYSCLK11: 1/6-rate clock for PSC only.
Only SYSCLK2, SYSCLK5 and SYSCLK8 are programmable on theTMS320C6678 device.

这段文字中并没有告诉我SPICLK使用哪个SYSCLK。

查询文档《KeyStone Architecture Phase-Locked Loop (PLL) User's Guide》也没有找到SYSCLKn与各模块的对应关系。

我的问题是:

1,哪里能查到SYSCLKn与各模块的详细对应关系,以及对外输出引脚。

2,SPI module clock使用SYSCLK几?SPI module clock是否可以配置?如何配置?如果不能,那SPI module clock是多少?