亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readme.txt

?? 基于DSP5416的FIR測試程序
?? TXT
字號:
                 TMS320VC5402 DSK CODEC EXAMPLE
                 ==============================

The codec example demonstrates a few of the TMS320C5402 DSK features 
with Code Composer Studio.  Note that this example was run with 
external SRAM activated.

The codec example demonstrates the use of the Handset CODEC (mic/
speaker interface) on the DSK utilizing the drivers provided in the 
DSK library, dsk5402.lib.  This example sets up the codec with the 
parameters below and performs a digital loopback by polling for input 
samples (mic) and writing them to the codec (speaker).  The example 
requirements are:  microphone or other audio input (e.g., cd player) 
connected to the MIC socket, and a speaker connected to the SPKR 
socket on the DSK board. 

Codec Parameters Used:

    Sampling Rate:	16KHz          Analog input gain:  6dB
    ADC mode:		15-bits        Analog output gain: -6dB
    DAC mode:		15-bits


Getting Started
===============

The following instructions enable you to build and run the codec
example.  You do not have to create and build a project.  If you 
prefer to see a quick demo, you can open CCS and load the file 
c:\ti\c5400\dsk\examples\dsp\codec\codec.out.

1.1  Creating a New Project 
===========================

1) If you installed Code Composer Studio in c:\ti, create a folder 
called codec in the c:\ti\myprojects folder. (If you installed 
elsewhere, create a folder within the myprojects folder in the 
location where you installed.)

2) Copy two source files from the c:\ti\c5400\dsk\examples\dsp\
codec\{codec.c, codec.cmd} folder. 


3) Copy three library files to your new folder.  Two library files 
are in the c:\ti\c5400\dsk\lib\{drv5402.lib,dsk5402.lib} folder 
and the third library file is in  c:\ti\c5400\cgtools\lib\rts.lib 
folder.

4) From the Windows Start menu, choose Programs->Code Composer 
Studio 'C5000->CCStudio. (Or, double-click the Code Composer Studio 
icon on your desktop.)

Note: Code Composer Studio Setup

If you get an error message the first time you try to start Code 
Composer Studio, make sure you run Code Composer Setup after 
installing Code Composer Studio following the Quick Start Guide.

5) Choose the Project->New menu item.

6) In the Save New Project As window, select the working folder 
you created and click Open.  Type codec as the filename and click 
Save.  Code Composer Studio creates a project file called 
codec.mak.  This file stores your project settings and references 
the various files used by your project.

1.2 Adding Files to a Project
=============================

1) Choose Project->Add Files to Project. Select codec.c and click Open.

2) Choose Project->Add Files to Project. Select Linker Command File 
(*.cmd) in the Files of type box. Select codec.cmd and click Open. This 
file maps sections to memory.

3) Choose Project->Add Files to Project. Select Object and Library 
Files (*.o*, *.lib) in the files of type box. Select drv5402.lib and 
click Open.  Repeat this procedure for dsk5402.lib and rts.lib.

4) Expand the Project list by clicking the + signs next to Project, 
codec.mak, Libraries, and Source. This list is called the Project View.

Note: Opening Project View

If you do not see the Project View, choose View->Project. Click the 
File icon at the bottom of the Project View if the Bookmarks icon is 
selected.

1.3 Changing Project Build Options
==================================

1) Choose Project->Options.  Click the Compiler Tab in the Include
Search Path.  Type in c:\ti\c5400\dsk\include.  Click 'OK'. This will 
enable the appropriate board.h and type.h files to be included.  
When building the program, Code Composer Studio finds files by 
searching for project files in the following path order:

o The folder that contains the source file.

o The folders listed in the Include Search Path for the compiler or 
  assembler options (from left to right).

o The folders listed in the definitions of the C54X_C_DIR (compiler) 
  and C54X_A_DIR (assembler) environment variables (from left to 
  right). The C54X_C_DIR environment variable defined by the 
  installation points to the folder that contains the rts.lib file.


1.4 Reviewing the Code
======================

1) Double-click on the codec.c file in the Project View. You see the 
source code in the right half of the window.

2) You may want to make the window larger so that you can see more of 
the source code at once. You can also choose a smaller font for this 
window by choosing Option->Font.

                                 
/*****************************************************************************/
/* Codec.c                                                                   */
/*                                                                           */
/* Digital Loopback example                                                  */
/*                                                                           */
/*****************************************************************************/

#include <type.h>
#include <board.h>
#include <codec.h>
#include <mcbsp54.h>

/*****************************************************************************/
/* Function Prototypes                                                       */
/*****************************************************************************/

/* This delay routine does not conflict with DSP/BIOS.  It is used in this  */
/* example rather than brd_delay_msec which causes DSP/BIOS conflicts just  */
/* because of this.  If you are not using DSP/BIOS, you can change the code */
/* to use brd_delay_msec.                                                   */

void delay(s16 period);

/*****************************************************************************/
/* Global Variables                                                          */
/*****************************************************************************/

HANDLE hHandset;
s16 data;


/*****************************************************************************/
/* MAIN                                                                      */
/*****************************************************************************/

void main()
{
    s16 cnt=2;

    if (brd_init(100))   
        return;

	/* blink the leds a couple times */
	while ( cnt-- )
	{
		brd_led_toggle(BRD_LED0);
		/* brd_delay_msec(1000); */
		delay(1000);
		brd_led_toggle(BRD_LED1);
		/* brd_delay_msec(1000); */
		delay(1000);
		brd_led_toggle(BRD_LED2);
		/* brd_delay_msec(1000); */
		delay(1000);
	}


    /* Open Handset Codec */
    hHandset = codec_open(HANDSET_CODEC);               /* Acquire handle to codec */

    /* Set codec parameters */
    codec_dac_mode(hHandset, CODEC_DAC_15BIT);          /* DAC in 15-bit mode */
    codec_adc_mode(hHandset, CODEC_ADC_15BIT);          /* ADC in 15-bit mode */
    codec_ain_gain(hHandset, CODEC_AIN_6dB);            /* 6dB gain on analog input to ADC */
    codec_aout_gain(hHandset, CODEC_AOUT_MINUS_6dB);    /* -6dB gain on analog output from DAC */
    codec_sample_rate(hHandset,SR_16000);               /* 16KHz sampling rate */


    /* Polling and digital loopback */
    while (1)
    {
       /* Wait for sample from handset */
       while (!MCBSP_RRDY(HANDSET_CODEC)) {};

       /* Read sample from and write back to handset codec */
       data = *(volatile u16*)DRR1_ADDR(HANDSET_CODEC);
       *(volatile u16*)DXR1_ADDR(HANDSET_CODEC) = data;
    }
}

void delay(s16 period)
{
    int i, j;
    
    for(i=0; i<period; i++)
    {
        for(j=0; j<period>>1; j++);
    }
}                                                                              


1.5 Building and Running the Program
====================================

Code Composer Studio automatically saves changes to the project setup 
as you make them. In case you exited from Code Composer Studio after 
the previous section, you can return to the point where you stopped 
working by restarting Code Composer Studio and using Project->Open.

To build and run the program, follow these steps:

1)  Choose Project->Rebuild All or click the (Rebuild All) toolbar 
button.  Code Composer Studio recompiles, reassembles, and relinks all 
the files in the project. Messages about this process are shown in a 
frame at the bottom of the window.

2) Choose File->Load Program. Select the program you just rebuilt, 
codec.out, and click Open. (It should be in the c:\ti\myprojects\codec
folder unless you installed Code Composer Studio elsewhere.) Code 
Composer Studio loads the program onto the target DSP and opens a 
Dis-Assembly window that shows the disassembled instructions that make 
up the program. (Notice that Code Composer Studio also automatically 
opens a tabbed area at the bottom of the window to show output the 
program sends to stdout.)

3) Click on assembly instruction in the Dis-Assembly window. (Click 
on the actual instruction, not the address of the instruction or the 
fields passed to the instruction.) Press the F1 key.  Code Composer 
Studio searches for help on that instruction. This is a good way to 
get help on an unfamiliar assembly instruction.

4) Choose Debug->Run or click the (Run) toolbar button.  Analyze 
results (see below).

5) Choose Debug->Halt or click the (Halt) toolbar button to end the 
program.

1.6 Expected Results
====================

Running your program should enable the polling from the input sample 
(e.g., mic) to be written back to the codec (e.g., speaker).

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本高清dvd不卡在线观看| 首页欧美精品中文字幕| 国产成人无遮挡在线视频| 精品久久久久久综合日本欧美| 蜜桃av一区二区| 久久久噜噜噜久久中文字幕色伊伊| 精品在线亚洲视频| 久久亚洲精品小早川怜子| 国产不卡视频在线播放| 国产精品视频yy9299一区| 99久久夜色精品国产网站| 一片黄亚洲嫩模| 91麻豆精品国产91| 国产一区三区三区| 亚洲欧洲另类国产综合| 欧美丝袜自拍制服另类| 免费av网站大全久久| 国产欧美日韩综合精品一区二区| 99久久综合99久久综合网站| 亚洲免费成人av| 日韩一区二区三区电影| 成人性视频免费网站| 亚洲一区二区三区在线| 精品久久久久99| 99在线视频精品| 日韩电影在线看| 国产视频在线观看一区二区三区| 91美女在线视频| 久久精品72免费观看| 国产精品久久久久久久久晋中 | 成人av资源站| 香蕉成人伊视频在线观看| 精品国产一区二区精华| 色综合久久中文综合久久97| 免费视频一区二区| 亚洲码国产岛国毛片在线| 日韩欧美国产三级电影视频| 99精品久久免费看蜜臀剧情介绍| 亚洲bt欧美bt精品| 欧美激情资源网| 欧美高清hd18日本| 99精品久久久久久| 激情六月婷婷综合| 亚洲蜜臀av乱码久久精品| ww久久中文字幕| 欧美天堂一区二区三区| www.亚洲国产| 蜜臀av国产精品久久久久| 亚洲在线视频一区| 亚洲欧美中日韩| 国产欧美一区二区精品婷婷| 91精品国产麻豆国产自产在线 | 91精品国产综合久久久久久| 成人黄色免费短视频| 久久99精品国产91久久来源| 一区二区三区四区精品在线视频| 久久亚洲二区三区| 欧美一区二区在线不卡| 欧美三级视频在线| 91香蕉国产在线观看软件| 成人免费视频视频| 国产精品系列在线观看| 精品一区二区综合| 日本不卡的三区四区五区| 一二三区精品视频| 日韩伦理av电影| 中文字幕欧美一区| 久久久久99精品一区| 日韩精品一区在线观看| 欧美一区二区在线免费播放| 欧美老人xxxx18| 欧美日韩日日摸| 欧美视频完全免费看| 欧美影片第一页| 色视频欧美一区二区三区| 91女神在线视频| 日本道免费精品一区二区三区| 99久久国产综合色|国产精品| 成人综合在线网站| 国产成人啪午夜精品网站男同| 国产一区二区视频在线| 国产在线不卡一卡二卡三卡四卡| 国内精品伊人久久久久影院对白| 激情五月播播久久久精品| 久久精品国产精品青草| 精品影院一区二区久久久| 国产一区二区三区在线看麻豆| 精品一区二区在线视频| 国产高清成人在线| 成人av影院在线| 色哟哟一区二区| 欧美日韩免费视频| 4438x亚洲最大成人网| 欧美久久久一区| 精品国产乱子伦一区| 久久免费的精品国产v∧| 美女视频黄a大片欧美| 久久狠狠亚洲综合| 国产黑丝在线一区二区三区| caoporen国产精品视频| 欧美又粗又大又爽| 欧美一级淫片007| 久久免费的精品国产v∧| 亚洲欧洲另类国产综合| 午夜精品福利一区二区蜜股av| 青椒成人免费视频| 成人免费观看视频| 欧美色图在线观看| 久久综合久久鬼色| 一区二区三区日韩欧美精品| 日韩国产精品久久久久久亚洲| 国产一区二区免费在线| 91视视频在线观看入口直接观看www| 欧美在线free| 久久这里只有精品6| 亚洲欧美另类小说| 九九国产精品视频| 日本久久一区二区三区| 精品久久99ma| 亚洲综合一区二区精品导航| 激情综合网最新| 欧洲av一区二区嗯嗯嗯啊| 久久久一区二区三区捆绑**| 亚洲综合色区另类av| 狠狠狠色丁香婷婷综合激情| 在线一区二区观看| 久久久综合视频| 日韩电影在线观看网站| 91麻豆国产精品久久| 久久久激情视频| 日韩1区2区3区| 日本丰满少妇一区二区三区| 国产色产综合色产在线视频| 日韩精品一区第一页| 91香蕉视频污在线| 国产偷国产偷亚洲高清人白洁| 午夜久久福利影院| 91在线观看污| 欧美激情一区二区三区全黄| 美女视频网站久久| 欧美精品自拍偷拍| 亚洲精品乱码久久久久久黑人| 国产一区二区不卡在线| 日韩丝袜情趣美女图片| 亚洲国产成人精品视频| 色综合久久六月婷婷中文字幕| 久久免费午夜影院| 美国十次了思思久久精品导航| 欧美视频第二页| 一区二区三区在线视频播放| 成人一区在线看| 久久久久97国产精华液好用吗| 美女网站在线免费欧美精品| 欧美日韩成人一区| 亚洲一区免费在线观看| 91老司机福利 在线| 成人欧美一区二区三区1314| 国产成人在线视频网址| 久久婷婷色综合| 九九九久久久精品| 精品国产亚洲在线| 久久成人久久爱| 日韩精品中文字幕在线不卡尤物| 欧美a级理论片| 欧美一区二区三区免费观看视频| 亚洲国产精品久久不卡毛片| 欧洲激情一区二区| 亚洲国产一区二区三区青草影视| 欧美在线看片a免费观看| 亚洲一区二区四区蜜桃| 欧美日韩一区三区| 婷婷综合五月天| 欧美一卡二卡三卡| 精品一区二区三区在线播放| 精品国产三级电影在线观看| 狠狠色丁香久久婷婷综| 国产午夜精品一区二区三区嫩草| 成人爱爱电影网址| 一区二区三区欧美久久| 欧洲亚洲精品在线| 午夜激情一区二区| 日韩一区二区三区在线| 激情欧美一区二区三区在线观看| 久久久久久久综合色一本| 成人性生交大片免费看视频在线| 亚洲色图欧洲色图| 欧美午夜视频网站| 毛片一区二区三区| 国产欧美久久久精品影院| 一本一本大道香蕉久在线精品 | 天天免费综合色| 欧美大片国产精品| 国产尤物一区二区| 亚洲视频香蕉人妖| 91精品国产欧美一区二区| 国产精品系列在线观看| 亚洲色图.com| 日韩欧美一区二区不卡| 成人av在线观| 手机精品视频在线观看|