标题:
dsp6713源码及CADENCE原理图与PCB文件
[打印本页]
作者:
QWQ233
时间:
2018-11-24 22:40
标题:
dsp6713源码及CADENCE原理图与PCB文件
cadence视频和PDF于争博士教程
0.png
(43.55 KB, 下载次数: 94)
下载附件
2018-11-24 23:04 上传
单片机源程序如下:
/* ------------------------------------------------------------------ */
/* Copyright declaration */
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
/* FileName: DSP6713_CHIP.c */
/* Writen by: Yu zheng */
/* ------------------------------------------------------------------ */
#define CHIP_6713
/* Include header files */
#include <c6x.h>
#include <csl.h>
#include <csl_irq.h>
#include <csl_pll.h>
#include "DSP6713_CHIP.h"
/* ------------------------------------------------------------------ */
static void PLLDelay(Uint32 count)
{
Uint32 i = count;
while(i--)
{
asm(" NOP 1");
}
}
/* ------------------------------------------------------------------ */
static void initPLL()
{
// temporarily disable global interrupts
Uint32 gie;
gie = IRQ_globalDisable();
//****************** Initialize PLL Registers *****************
// Put PLL in bypass
PLL_bypass();
PLLDelay(20);
// Reset PLL
PLL_reset();
PLLDelay(20);
// Set main multiplier/divisor
PLL_RSET(PLLDIV0,
PLL_PLLDIV0_RMK(PLL_PLLDIV0_D0EN_ENABLE, PLL_PLLDIV0_RATIO_OF(0))
); // 12.288/1 = 12.288 MHz
PLL_RSET(PLLM, PLL_PLLM_PLLM_OF(17)); // 12.288*17 = 208 MHz
// Set DSP clock
PLL_RSET(PLLDIV1,
PLL_PLLDIV1_RMK(PLL_PLLDIV1_D1EN_ENABLE, PLL_PLLDIV1_RATIO_OF(0))
); // 208/1 = 208 MHz
PLLDelay(20);
// Set peripheral clock
PLL_RSET(PLLDIV2,
PLL_PLLDIV2_RMK(PLL_PLLDIV2_D2EN_ENABLE, PLL_PLLDIV2_RATIO_OF(1))
); // 208/2 = 104 MHz
PLLDelay(20);
// Set EMIF clock
PLL_RSET(PLLDIV3,
PLL_PLLDIV3_RMK(PLL_PLLDIV3_D3EN_DISABLE, PLL_PLLDIV3_RATIO_OF(1))
); // 208/2 = 104 MHz
PLLDelay(20);
PLL_RSET(OSCDIV1,
PLL_OSCDIV1_RMK(PLL_OSCDIV1_OD1EN_ENABLE,PLL_OSCDIV1_RATIO_OF(1))
); // 208/2 = 104 MHz
// Take PLL out of reset. Wait for PLL to lock
PLL_deassert();
PLLDelay(1500);
// Enalbe PLL
PLL_enable();
PLLDelay(20);
// restore global interrupts back
IRQ_globalRestore(gie);
} // end of initPLL
/* ------------------------------------------------------------------ */
void DSP6713_chipinit()
{
/* register DEVCFG */
CHIP_Config MyChipConfig =
{
CHIP_DEVCFG_RMK(
CHIP_DEVCFG_EKSRC_SYSCLK3,
CHIP_DEVCFG_TOUT1SEL_TOUT1PIN,
CHIP_DEVCFG_TOUT0SEL_TOUT0PIN,
CHIP_DEVCFG_MCBSP0DIS_0,
CHIP_DEVCFG_MCBSP1DIS_0
)
};
CHIP_config(&MyChipConfig);
initPLL();
}
/* ------------------------------------------------------------------ */
/* end of DSP6713_init.c */
/* ------------------------------------------------------------------ */
复制代码
所有资料51hei提供下载:
于博士CADENCE视频教程之相关配套资料.rar
(3.42 MB, 下载次数: 72)
2018-11-24 22:39 上传
点击文件名下载附件
下载积分: 黑币 -5
作者:
at0mge
时间:
2019-6-24 10:55
正好可以拿来参考学习,非常感谢分享。
作者:
hexingxue
时间:
2020-5-30 16:21
正在学习,非常感谢。
作者:
cuprum
时间:
2023-8-8 14:52
这块板子是带FPGA部分的吗
作者:
Rube426
时间:
2023-8-26 19:41
这么老了!
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1