⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pll_setup.c

📁 基于BF533的视频采集及显示
💻 C
字号:
/******************************************************************************/
//
// Name: 	BF533  PLL Setup
//
/******************************************************************************

File Name:	PLL_Setup.c

Special Connections:  None

Purpose:		The file sets up the PPI transfer
						
*********************************************************************************/


#include <cdefBF533.h>
#include <ccblkfn.h>
#include <sysreg.h>
#include "PLL_Setup.h"

void Init_PLL(void)
{
	volatile int test=0;

	sysreg_write(reg_SYSCFG, 0x32);		//Initialize System Configuration Register

	*pSIC_IWR = 0x1;
	
	//*pPLL_CTL = 0x2C00;
	
	///////////////////////////////////////////////
	// set VCO/CCLK = 1, and VCO/SCLK = 5 (take effect immediately)
	*pPLL_DIV = 0x0005;
	// prepare PLL changes (set CLKIN/VCO = 22; 
	//takes effect after PLL programming sequence)
	*pPLL_LOCKCNT = 0x0200;
	// time for PLL to stabilize
	*pPLL_CTL = 0x2c00;
	// set VCO/CLKIN = 22
	//////////////////////////////////////////////

//	*pPLL_DIV = 0x0007;

	// prepare PLL changes (set CLKIN/VCO = 21; takes effect after PLL programming sequence)
//	*pPLL_LOCKCNT	= 0x0200; // time for PLL to stabilize
//	*pPLL_CTL		= 0x2A00; // set VCO/CLKIN = 21
	
	
	ssync();
	
	idle();

}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -