资源简介
锁相环DSP仿真程序,很经典:包括设计过程、与EXCEL的RTDX程序
代码片段和文件信息
/*C6211dskinit.c Includes functions provided by TIinit DSKAD535McBSP*/
#include
#include “c6211dsk.h“
#include “c6211dskinit.h“
#include “c6211interrupts.h“
/*TI routine from codec_poll.c example included with c6211 DSK*/
void mcbsp0_init() /* set up McBSP0 */
{
*(unsigned volatile int *)McBSP0_SPCR = 0; /* reset serial port */
*(unsigned volatile int *)McBSP0_PCR = 0; /* set pin control reg.; */
*(unsigned volatile int *)McBSP0_RCR = 0x10040; /* set rx control reg. one 16 bit data/frame */
*(unsigned volatile int *)McBSP0_XCR = 0x10040; /* set tx control reg. one 16 bit data/frame */
*(unsigned volatile int *)McBSP0_DXR = 0;
*(unsigned volatile int *)McBSP0_SPCR = 0x12001; /* setup SP control reg.; */
}
/*TI routine from codec_poll.c example included with c6211 DSK*/
void mcbsp0_write(int out_data)
{
int temp;
temp = *(unsigned volatile int *)McBSP0_SPCR & 0x20000;
while ( temp == 0)
{
temp = *(unsigned volatile int *)McBSP0_SPCR & 0x20000;
}
*(unsigned volatile int *)McBSP0_DXR = out_data;
}
/* TI routine from codec_poll.c example included with c6211 DSK*/
int mcbsp0_read()
{
int temp;
temp = *(unsigned volatile int *)McBSP0_SPCR & 0x2;
while ( temp == 0)
{
temp = *(unsigned volatile int *)McBSP0_SPCR & 0x2;
}
temp = *(unsigned volatile int *)McBSP0_DRR;
return temp;
}
/* TI routine from McBSP_AD535_INIT.c example */
void TLC320AD535_Init() /* TLC320AD535 Initialization Routine */
{
/* Setting up AD535 Register 3 */
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(1); /* Send Bit to denote Secondary Communications */
mcbsp0_read();
mcbsp0_write(0x0386); /* Voice Channel Reset Pre-Amps Selected */
mcbsp0_read();
mcbsp0_write(0); /* Clear Secondary Communications */
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(1); /* Send Bit to denote Secondary Communications */
mcbsp0_read();
mcbsp0_write(0x0306); /* Voice Channel Clear Reset Pre-Amps Selected */
mcbsp0_read();
mcbsp0_write(0); /* Clear Secondary Communications */
mcbsp0_read();
/* Setting up AD535 Register 4 */
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(1);
mcbsp0_read();
mcbsp0_write(0x0400); /* Set Microphone Pre-Amp Gain to 20 dB */
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
/* Setting up AD535 Register 5 */
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
mcbsp0_write(1);
mcbsp0_read();
mcbsp0_write(0x0502); /* DAC PGA = 0 dB */
mcbsp0_read();
mcbsp0_write(0);
mcbsp0_read();
}
void c6211_dsk_init()
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 555 2000-10-24 06:36 PLL\c6211dsk.cmd
文件 7117 1999-12-21 19:18 PLL\c6211dsk.h
文件 4570 2000-10-24 07:06 PLL\c6211dskinit.c
文件 265 2000-07-25 19:58 PLL\c6211dskinit.h
文件 1587 1999-11-02 17:55 PLL\c6211dsk_RTDX.cmd
文件 4068 1999-10-25 22:24 PLL\c6211interrupts.h
文件 599 1999-02-09 12:54 PLL\common.h
文件 7056 2000-12-19 04:33 PLL\designsteps.m
文件 2396 1999-11-02 17:55 PLL\intvecs.asm
文件 3900 2000-12-19 17:29 PLL\pll.c
文件 985 2001-02-18 21:05 PLL\pll.mak
文件 30042 2000-12-19 17:29 PLL\pll.out
文件 6013 2000-12-19 15:49 PLL\pll_RTDX.c
文件 1299 2000-12-19 17:02 PLL\pll_RTDX.mak
文件 56209 2000-12-19 17:02 PLL\pll_RTDX.out
文件 57344 2000-12-17 01:40 PLL\rtdx.dll.YOUMAYNEEDTHISONE
文件 8297 2000-12-17 06:21 PLL\rtdx.h
文件 16252 2000-12-17 01:40 PLL\rtdx.lib
文件 16252 2000-12-17 01:39 PLL\rtdxe.lib
文件 339456 2000-12-19 15:57 PLL\rtdx_USE_RDSA_MACRO.xls
文件 45680 2000-12-16 07:01 PLL\sin8000_table.h
文件 10805 1999-05-05 17:09 PLL\stdio.h
文件 719 1999-04-23 12:49 PLL\target.h
文件 639 2000-07-27 18:27 PLL\vectors.asm
...D..R 0 2009-09-07 20:57 PLL
----------- --------- ---------- ----- ----
622105 25
相关资源
- 哈工大数字信号处理2010年考题
- 产生频率变化的PWM波形
- 三相逆变器SVPWM.rar
- DSP TMS320F2812产生PWM波程序
- 二阶锁相环参数的选择
- DSP28335片外 FLASH 读写实验CCS工程
- 全桥移相电路PWM驱动程序
- TMS320F28335_flash_kernel
- Flash28335_API_V210
- 关于DSP2812复位、初始化、CMD文件编写
- DSP的SVPWM产生
- 基于TMS320F28335的全数字锁相环的设计
- STM32 dsp库
- DSP视频及学习资料
- dspic源代码
- DSP28335 AD7606 研旭
- dsp28335原理图库
- speexdsp-1.2.0.tar.gz
- DSP283xx的AD7606的程序
- 锁相环提取载波
- DSP6713 I2C传输
- dspic30f4011闭环控制无刷直流电机程序
- dsPIC30和dsPIC33系列编程
- ManagedSpy新版,兼容4.5
- DSPF2812双闭环控制电机程序
- ADF4351 PCB工程
- TMS320C6416 烧写程序及工具
- 用DSP2812实现的音乐播放器
- 流水灯实现DSP
- 基于DSP的车牌识别系统论文和保证可
评论
共有 条评论