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

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

?? readme.txt

?? dsp中的構造有限沖相應濾波器的算法
?? 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一区二区三区免费野_久草精品视频
香蕉成人伊视频在线观看| 日韩精品中午字幕| 国产盗摄视频一区二区三区| 婷婷丁香激情综合| 日本欧美在线看| 日本免费新一区视频| 蜜臀av国产精品久久久久| 欧美aa在线视频| 国内久久婷婷综合| 国产精品77777| 波多野结衣在线一区| 97久久久精品综合88久久| 色噜噜夜夜夜综合网| 欧美亚洲动漫精品| 日韩欧美一二区| 国产欧美一区二区精品忘忧草 | 91精品国产欧美一区二区成人| 91伊人久久大香线蕉| 在线亚洲欧美专区二区| 欧美精品123区| 精品三级av在线| 国产精品二区一区二区aⅴ污介绍| 国产精品麻豆视频| 一区二区久久久久久| 日本91福利区| 成人亚洲一区二区一| 色综合久久中文综合久久97| 制服丝袜日韩国产| 国产日韩欧美不卡| 亚洲国产人成综合网站| 色视频成人在线观看免| 欧美日韩一区二区不卡| 欧美成人女星排名| 亚洲欧美在线aaa| 日韩国产在线观看| 91视频一区二区三区| 91精品国产综合久久久蜜臀粉嫩 | 国产在线视频精品一区| 99精品视频免费在线观看| 欧美日韩精品一区二区在线播放| 精品久久久久久久久久久院品网| 国产精品欧美久久久久无广告 | 欧美精品电影在线播放| 久久精品欧美日韩精品| 日韩制服丝袜av| 99r精品视频| 久久久99精品免费观看| 亚洲成人免费观看| 91在线观看一区二区| 91精品国产综合久久婷婷香蕉 | 亚洲成人高清在线| 成人h动漫精品一区二区| 欧美剧情电影在线观看完整版免费励志电影 | 日韩一区精品字幕| 91丨国产丨九色丨pron| 久久亚洲综合色| 日韩黄色在线观看| 欧洲国内综合视频| 国产精品麻豆久久久| 精品一区二区影视| 制服.丝袜.亚洲.中文.综合| 亚洲老妇xxxxxx| 99久久伊人精品| 国产女人18水真多18精品一级做| 日韩电影在线一区二区| 欧美日本不卡视频| 一区二区三区中文在线观看| 丰满亚洲少妇av| 欧美国产成人精品| 国产精品一区二区黑丝| 精品国产三级a在线观看| 喷水一区二区三区| 日韩欧美国产综合在线一区二区三区| 午夜欧美在线一二页| 欧美日韩成人一区| 性久久久久久久| 欧美三级午夜理伦三级中视频| 亚洲人成电影网站色mp4| 99久久国产综合精品色伊| 国产精品女主播av| 91婷婷韩国欧美一区二区| 18欧美亚洲精品| 91蜜桃在线免费视频| 一区二区三区四区中文字幕| 欧美午夜精品电影| 天堂成人国产精品一区| 日韩精品在线一区| 国产成人高清在线| 亚洲乱码国产乱码精品精的特点| 在线观看日韩电影| 青青草91视频| 国产视频一区不卡| 91啪亚洲精品| 日本成人中文字幕在线视频| 欧美成人一区二区三区在线观看| 国内一区二区在线| ㊣最新国产の精品bt伙计久久| 欧美sm极限捆绑bd| 成人综合日日夜夜| 亚洲一区二区三区四区的| 欧美一区二区在线看| 国产高清精品久久久久| 一区免费观看视频| 欧美日韩aaaaa| 国产福利一区二区三区| 综合久久久久久| 欧美一区二区高清| 成人激情图片网| 日欧美一区二区| 欧美激情综合五月色丁香小说| 日本韩国一区二区三区| 久久99国产精品免费网站| 国产精品国产三级国产普通话99 | 麻豆91精品视频| 国产精品久久久久久久久免费相片| 在线观看一区二区视频| 经典三级视频一区| 一区二区在线观看免费| 精品国产一区二区三区久久久蜜月 | 另类人妖一区二区av| 国产精品麻豆欧美日韩ww| 欧美区一区二区三区| 成人黄色小视频在线观看| 免费在线欧美视频| 亚洲精品国产成人久久av盗摄| 精品精品国产高清a毛片牛牛 | 欧美日本高清视频在线观看| 国产传媒欧美日韩成人| 日韩专区欧美专区| 亚洲激情校园春色| 国产精品成人在线观看| 久久久91精品国产一区二区精品| 一本在线高清不卡dvd| 国产99久久精品| 黄一区二区三区| 美脚の诱脚舐め脚责91| 亚洲电影在线播放| 亚洲自拍偷拍欧美| 亚洲天堂精品视频| 国产精品三级在线观看| 久久天天做天天爱综合色| 91精品国产欧美一区二区| 欧美日韩国产bt| 欧美日韩国产小视频| 色婷婷精品大视频在线蜜桃视频| 国产91色综合久久免费分享| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美刺激脚交jootjob| 在线播放91灌醉迷j高跟美女| 日本乱人伦aⅴ精品| 97精品超碰一区二区三区| 成人免费视频国产在线观看| 国产成人av电影| 成人美女视频在线看| va亚洲va日韩不卡在线观看| 成人在线综合网站| 成年人网站91| 91首页免费视频| 欧美日韩色一区| 欧美一级欧美三级在线观看| 69av一区二区三区| 日韩一级欧美一级| 欧美精品一区二| 国产精品人成在线观看免费| 亚洲天堂网中文字| 亚洲成人福利片| 国内精品在线播放| 成人在线综合网| 欧美午夜不卡视频| 日韩三级在线免费观看| 久久久久久久久久美女| 国产精品福利一区| 亚洲国产精品久久一线不卡| 日韩精品高清不卡| 国产精品资源在线| 色网站国产精品| 日韩欧美国产综合一区 | 亚洲综合色网站| 美日韩一区二区| 成人国产视频在线观看| 在线观看www91| 精品久久人人做人人爽| 国产丝袜在线精品| 亚洲高清免费视频| 国产一区二区三区观看| 91久久精品午夜一区二区| 欧美成人精品二区三区99精品| 国产三级三级三级精品8ⅰ区| 一区二区三区在线视频观看58| 日韩二区三区在线观看| 国产98色在线|日韩| 在线成人av网站| 国产精品久久毛片av大全日韩| 亚洲精品老司机| 国产一区二区三区四区五区美女 | 日本一区二区不卡视频| 污片在线观看一区二区 | 夜夜嗨av一区二区三区中文字幕| 日本不卡一区二区三区高清视频| 岛国精品一区二区|