7.1.2. 功能描述
7.1.2.1. PLL
模拟电路PLL用于产生时钟供给整个芯片,总共5个PLL, 用途及特性如 表 7.1 所示。
名称 |
用途 |
典型频率 |
展频或小数分频 |
---|---|---|---|
PLL_INT0 |
CPU |
- |
不支持 |
PLL_INT1 |
AXI/AHB/APB/
CE/DE/GE/VE/DVP/PWMCS/UART
|
1.2GHz |
不支持 |
PLL_FRA0 |
DRAM/SDMC/SPI |
1008MHz |
展频 |
PLL_FRA1 |
I2S/AUDIO |
491.52MHz
451.584MHz
|
小数分频 |
PLL_FRA2 |
LCD/LVDS/MIPI_DSI |
展频 |
PLL内部结构如 图 7.1 所示, PLL频率计算公式为:PLL_OUT = 24MHz÷(P+1)×(N+1+(F÷(2^17-1)))÷(M+1)
7.1.2.2. CLKOUT
时钟输出用于输出时钟给芯片外设使用, 总共4路CLKOUT, 可选来源为PLL_INT1/PLL_FRA1/PLL_FRA2,可配置1~256除频, CLKOUT通路如 图 7.2 所示。
7.1.2.3. 模块时钟
模块名称 |
总线时钟 |
模块时钟源 |
模块时钟极限频率 |
备注 |
---|---|---|---|---|
C906 CORE |
- |
PLL_INT0 |
504MHz |
|
AXI |
AXI |
- |
240MHz |
- |
AHB |
AHB |
- |
240MHz |
- |
APB0 |
APB0 |
- |
100MHz |
- |
APB1 |
APB1 |
- |
24MHz |
- |
AHB Matrix |
AHB0 |
- |
- |
- |
BROM |
AHB0 |
- |
- |
- |
SRAM |
AHB0 |
- |
- |
- |
DMA |
AHB0 |
- |
- |
- |
CE |
AHB0 |
PLL_INT1 |
200MHz |
- |
USB DEV |
AHB0 |
- |
- |
- |
USB HOST0 |
AHB0 |
- |
- |
- |
USB HOST1 |
AHB0 |
- |
- |
- |
USB PHY0 |
- |
OSC_24M |
- |
- |
USB PHY1 |
- |
OSC_24M |
- |
- |
GMAC0 |
AHB0 |
PLL_INT1 |
50MHz |
- |
GMAC1 |
AHB0 |
PLL_INT1 |
50MHz |
- |
QSPI0 |
AHB0 |
PLL_FRA0 |
100MHz |
- |
QSPI1 |
AHB0 |
PLL_FRA0 |
100MHz |
- |
QSPI2 |
AHB0 |
PLL_FRA0 |
100MHz |
- |
QSPI3 |
AHB0 |
PLL_FRA0 |
100MHz |
- |
SDMC0 |
AHB0 |
PLL_FRA0 |
200MHz |
- |
SDMC1 |
AHB0 |
PLL_FRA0 |
200MHz |
- |
SDMC2 |
AHB0 |
PLL_FRA0 |
200MHz |
- |
PBUS |
AHB0 |
- |
- |
- |
SYSCFG |
APB0 |
OSC_24M |
24MHz |
- |
CMU |
APB0 |
- |
- |
- |
CMT (SIM) |
APB0 |
- |
- |
- |
SPI ENC |
APB0 |
PLL_INT1 |
200MHz |
- |
PWMCS |
APB0 |
PLL_INT1 |
200MHz |
- |
PSADC |
APB0 |
- |
- |
- |
DDR CTL |
APB0 |
- |
- |
- |
MTOP |
APB0 |
- |
- |
- |
DDR PHY |
APB0 |
PLL_FRA0 |
336MHz |
- |
I2S0 |
APB0 |
PLL_FRA1 |
26MHz |
- |
I2S1 |
APB0 |
PLL_FRA1 |
26MHz |
- |
AUDIO |
APB0 |
PLL_FRA1 |
26MHz |
- |
LCD |
APB0 |
PLL_FRA2 |
800MHz |
DISP_PIXCLK:200MHz |
LVDS |
APB0 |
PLL_FRA2 |
1000MHz |
DISP_PIXCLK:200MHz |
MIPI DSI |
APB0 |
PLL_FRA2 |
1200MHz |
DISP_PIXCLK:200MHz |
DVP |
APB0 |
PLL_INT1 |
200MHz |
- |
DE |
APB0 |
PLL_INT1 |
200MHz |
DISP_PIXCLK:200MHz |
GE |
APB0 |
PLL_INT1 |
200MHz |
- |
VE |
TBD |
PLL_INT1 |
200MHz |
- |
WDOG |
APB1 |
CLK_32K |
30KHz |
- |
WRI |
APB1 |
OSC_24M |
24MHz |
- |
SID |
APB1 |
OSC_24M |
24MHz |
- |
RTC |
APB1 |
RTC domain |
- |
- |
GTC |
APB1 |
- |
- |
- |
GPIO |
APB1 |
- |
- |
- |
PMT (SIM) |
APB1 |
- |
- |
- |
UART0 |
APB1 |
PLL_INT1 |
60MHz |
- |
UART1 |
APB1 |
PLL_INT1 |
60MHz |
- |
UART2 |
APB1 |
PLL_INT1 |
60MHz |
- |
UART3 |
APB1 |
PLL_INT1 |
60MHz |
- |
UART4 |
APB1 |
PLL_INT1 |
60MHz |
- |
UART5 |
APB1 |
PLL_INT1 |
60MHz |
- |
UART6 |
APB1 |
PLL_INT1 |
60MHz |
- |
UART7 |
APB1 |
PLL_INT1 |
60MHz |
- |
I2C0 |
APB1 |
- |
- |
- |
I2C1 |
APB1 |
- |
- |
- |
I2C2 |
APB1 |
- |
- |
- |
I2C3 |
APB1 |
- |
- |
- |
CAN0 |
APB1 |
- |
- |
- |
CAN1 |
APB1 |
- |
- |
- |
PWM |
APB1 |
PLL_INT1 |
100MHz |
- |
ADCIM |
APB1 |
OSC_24M |
24MHz |
- |
GPAI |
APB1 |
- |
- |
- |
RTP |
APB1 |
- |
- |
- |
THS |
APB1 |
- |
- |
- |
CIR |
APB1 |
- |
- |
- |
UART在PLL_INT1=1.2GHz下波特率精度
设定波特率 |
实际波特率 |
波特率偏差 |
CMU除频 |
Over sampling |
Clock source |
UART除频 |
---|---|---|---|---|---|---|
300 |
300 |
0 |
25 |
16 |
48000000 |
10000 |
600 |
600 |
0 |
25 |
16 |
48000000 |
5000 |
1200 |
1200 |
0 |
25 |
16 |
48000000 |
2500 |
2400 |
2400 |
0 |
25 |
16 |
48000000 |
1250 |
4800 |
4800 |
0 |
25 |
16 |
48000000 |
625 |
9600 |
9615 |
0.16 |
25 |
16 |
48000000 |
312 |
14400 |
14423 |
0.16 |
25 |
16 |
48000000 |
208 |
19200 |
19230 |
0.16 |
25 |
16 |
48000000 |
156 |
38400 |
38461 |
0.16 |
25 |
16 |
48000000 |
78 |
57600 |
57692 |
0.16 |
25 |
16 |
48000000 |
52 |
115200 |
115384 |
0.16 |
25 |
16 |
48000000 |
26 |
230400 |
230769 |
0.16 |
25 |
16 |
48000000 |
13 |
380400 |
378787 |
-0.42 |
22 |
16 |
54545454 |
9 |
460800 |
462963 |
0.47 |
27 |
16 |
44444444 |
6 |
921600 |
925925 |
0.47 |
27 |
16 |
44444444 |
3 |
1000000 |
1000000 |
0 |
25 |
16 |
48000000 |
3 |
1152000 |
1136363 |
1.36 |
22 |
16 |
54545454 |
3 |
1500000 |
1500000 |
0 |
25 |
16 |
48000000 |
2 |
2500000 |
2500000 |
0 |
30 |
16 |
40000000 |
1 |
3000000 |
3000000 |
0 |
25 |
16 |
48000000 |
1 |
7.1.2.4. 模块开关时序
DDR
打开时序:
ctrl clk 1 -> bus clk 1 -> phy clk 1 -> phy rst 1 -> ctrl rst 1
关闭时序:
ctrl rst 0 -> phy rst 0 -> phy clk 0 -> bus clk 0 -> ctrl clk 0
DDR部分寄存器要求在复位下配置,详细开关时序参考DDR模块规格书执行。
USB
打开时序:
ctrl clk 1 -> phy clk 1 -> 100us -> phy rst 1 -> ctrl rst 1
关闭时序:
ctrl rst 0 -> phy rst 0 -> phy clk 0 -> ctrl clk 0
其他模块
打开时序:
mod clk 1 -> bus clk 1 -> rst 1
关闭时序:
rst 0 -> bus clk 0 -> mod clk 0