📄 pll2.c
字号:
/*
* Copyright 2002 by Texas Instruments Incorporated.
* All rights reserved. Property of Texas Instruments Incorporated.
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
*
*/
/* "@(#) DSP/BIOS 4.80.208 12-06-02 (barracuda-l19)" */
/******************************************************************************\
* Copyright (C) 2000 Texas Instruments Incorporated.
* All Rights Reserved
*------------------------------------------------------------------------------
* MODULE NAME... MCBSP
* FILENAME...... pll2.c
* DATE CREATED.. Tu 11/14/2000
* PROJECT....... Chip Support Library
* COMPONENT.....
* PREREQUISITS..
*------------------------------------------------------------------------------
* HISTORY:
* 11/14/2000 (IM) Created
*
*------------------------------------------------------------------------------
* DESCRIPTION:
*
* This is an example for PLL_config() function for C5509 (Digital PLL)
\*----------------------------------------------------------------------*/
#include <csl.h>
#include <csl_pll.h>
Uint16 x;
Uint32 y;
CSLBool b;
PLL_Config myConfig = {
0, //IAI: the PLL locks using the same process that was underway
//before the idle mode was entered
1, //IOB: If the PLL indicates a break in the phase lock,
//it switches to its bypass mode and restarts the PLL phase-locking
//sequence
7, //PLL multiply value; multiply 7 times
1 //Divide by 2 PLL divide value; it can be either PLL divide value
//(when PLL is enabled), or Bypass-mode divide value
//(PLL in bypass mode, if PLL multiply value is set to 1)
};
main()
{
CSL_init();
PLL_config(&myConfig);
asmtest(); // Put a loop to observe output frequencies
}
/******************************************************************************\
* End of pll2.c
\******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -