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

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

?? readme.txt

?? 有限長和無限長數字濾波器的設計程序原代碼及完整報告
?? 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一区二区三区免费野_久草精品视频
精品人在线二区三区| 91免费看`日韩一区二区| 日韩西西人体444www| 青青国产91久久久久久| 91精品一区二区三区久久久久久 | 91影视在线播放| 国产精品久久久久一区二区三区共| 欧美性大战久久久久久久| 伊人色综合久久天天| 欧美午夜不卡视频| 日韩精品乱码av一区二区| 欧美第一区第二区| 国产精品中文有码| 亚洲色图欧洲色图| 欧美日本高清视频在线观看| 视频一区二区欧美| 精品福利一区二区三区免费视频| 国产乱码字幕精品高清av | 中文字幕+乱码+中文字幕一区| 成人久久18免费网站麻豆 | 国产成人精品www牛牛影视| 国产精品污网站| 91成人免费网站| 久久精品国产免费| 国产精品久久久爽爽爽麻豆色哟哟| 91麻豆免费在线观看| 午夜欧美电影在线观看| 久久久久亚洲蜜桃| 色丁香久综合在线久综合在线观看| 天天综合网天天综合色| 国产亚洲一区字幕| 欧美视频一区在线| 国产乱人伦精品一区二区在线观看 | 中文在线一区二区| 欧美日韩精品福利| 国产麻豆欧美日韩一区| 亚洲综合色婷婷| 久久嫩草精品久久久精品一| 日本黄色一区二区| 国产一区美女在线| 亚洲.国产.中文慕字在线| 久久精品亚洲乱码伦伦中文| 欧美日韩免费视频| 懂色av一区二区三区免费看| 日韩精品福利网| 亚洲三级理论片| 欧美精品一区二区三区蜜桃视频| 色哟哟在线观看一区二区三区| 久久99精品久久久久久久久久久久| 亚洲日本乱码在线观看| 久久综合久久综合亚洲| 欧美日韩情趣电影| 91亚洲国产成人精品一区二区三 | 国产精品自在在线| 亚州成人在线电影| 亚洲欧美一区二区三区极速播放 | 国产成人av一区二区| 成人av在线资源| 卡一卡二国产精品 | 婷婷国产在线综合| 最新高清无码专区| 国产欧美一区二区精品忘忧草| 欧美美女视频在线观看| 色综合天天性综合| 成人激情开心网| 国产成人精品综合在线观看| 毛片av一区二区| 奇米亚洲午夜久久精品| 亚洲电影视频在线| 亚洲午夜久久久久久久久电影网| 亚洲精品日韩一| 国产精品九色蝌蚪自拍| 亚洲国产电影在线观看| 久久久久成人黄色影片| 欧美精品一区二区三区在线播放 | 国产日韩欧美精品在线| 欧美v日韩v国产v| 日韩三级中文字幕| 日韩视频免费直播| 日韩女优视频免费观看| 欧美大肚乱孕交hd孕妇| 精品国产sm最大网站免费看| 日韩欧美国产小视频| 日韩午夜激情免费电影| 精品国产91久久久久久久妲己| 日韩欧美国产午夜精品| 精品日产卡一卡二卡麻豆| 精品乱码亚洲一区二区不卡| 精品对白一区国产伦| 久久久久久久电影| 国产精品免费观看视频| 2欧美一区二区三区在线观看视频| 欧美不卡一区二区三区四区| 精品三级在线看| 精品精品国产高清a毛片牛牛| 中文字幕av一区二区三区免费看 | 日韩美女视频一区| 久久久亚洲精品一区二区三区| 国产女人18毛片水真多成人如厕| 日韩精品一区二区三区在线| 精品少妇一区二区三区| 亚洲视频免费在线| 亚洲午夜激情av| 国产99久久精品| 欧美日韩精品欧美日韩精品一综合| 久久婷婷国产综合精品青草 | 日韩在线一区二区| 福利91精品一区二区三区| 91久久精品日日躁夜夜躁欧美| 日韩精品一区二区在线观看| 亚洲一卡二卡三卡四卡无卡久久| 一卡二卡三卡日韩欧美| 国产麻豆欧美日韩一区| 91精品蜜臀在线一区尤物| 亚洲裸体xxx| 99久久综合精品| 国产日韩一级二级三级| 国产精品一区二区男女羞羞无遮挡| 欧美丝袜第三区| 丝袜诱惑制服诱惑色一区在线观看| 99久久久国产精品免费蜜臀| 91高清视频在线| 136国产福利精品导航| 丁香婷婷综合激情五月色| 国产亚洲精品7777| 国产mv日韩mv欧美| 国产精品天干天干在线综合| 国产91精品露脸国语对白| 久久精品人人做人人综合| 国产一区二区福利视频| 色婷婷久久99综合精品jk白丝 | 欧美日韩成人综合天天影院 | 捆绑紧缚一区二区三区视频| 国产午夜亚洲精品不卡| 日韩国产精品91| 欧美二区三区的天堂| 五月综合激情网| 欧美日韩国产另类不卡| 亚洲午夜在线视频| 精品免费99久久| 欧美日韩国产成人在线91| 99热99精品| 国产裸体歌舞团一区二区| 视频一区二区中文字幕| 欧美日韩一本到| 91丝袜国产在线播放| 国产成人在线网站| 国产一区二区三区国产| 毛片av一区二区| 久久 天天综合| 亚洲一区二区av电影| 亚洲天堂福利av| 国产欧美日韩视频在线观看| 在线不卡欧美精品一区二区三区| 亚洲成人一区在线| 国产精品网站在线播放| 欧美videossexotv100| 欧美在线观看视频在线| 成人午夜视频在线观看| 亚洲第一在线综合网站| 自拍偷拍欧美精品| 亚洲第一激情av| 国产精品自拍毛片| 亚洲成人av免费| 夜夜揉揉日日人人青青一国产精品 | 欧美精品色一区二区三区| 91免费精品国自产拍在线不卡| 黄色资源网久久资源365| 五月激情综合色| 日韩二区三区在线观看| 日韩在线一区二区| 奇米777欧美一区二区| 精品一区二区日韩| 成人午夜免费视频| 91捆绑美女网站| 日韩一区二区三区四区五区六区| 欧美一区二区福利在线| 久久伊人中文字幕| 中文字幕在线一区| 日韩成人免费电影| 国产成人在线观看| 欧美在线啊v一区| 欧美精品一区二区三| 97久久超碰精品国产| 这里只有精品免费| 亚洲狠狠丁香婷婷综合久久久| 久久99精品久久只有精品| 在线观看中文字幕不卡| 国产精品久久久久久亚洲伦| 中文字幕亚洲精品在线观看| 亚洲欧洲精品一区二区精品久久久| 亚洲高清免费视频| 成人精品小蝌蚪| 欧美电影免费观看高清完整版在 | 91麻豆精品国产91久久久资源速度| 精品国产91久久久久久久妲己 | 亚洲三级久久久| 波多野结衣亚洲| 一本一本久久a久久精品综合麻豆| 国产人久久人人人人爽|