⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exp3b.c

📁 TI的DSP C55X的应用程序
💻 C
字号:
/* ---------------------------------------------------------------

    exp3b.c
	
    Quantization effect  
	
    1. Use timit1.asc as input file	
    2. Add the format line to timit1.asc for CCS probe point
    Example:
        1651 2 c4 1 1           
         ^   ^  ^ ^ ^
         |   |  | | |_ one data a time
         |   |  | |___ data page
         |   |  |_____ variable address (it may change in your case)
         |   |________ deciaml formated data  
         |____________ magic number

    3. Set probe points on each C statement inside the for loop	 
    4. Connect input file, timit1.asc to the 1st statement
    5. Connect 4 output files to the 4 statements     
    6. After obtained output files, remove the format header from each file
	
------------------------------------------------------------------- */ 

 
#define	FILELENGTH 27956  /* # of sample of input file timit1.asc */

int indata,out16,out12,out8,out4;

void main(void)
{
    int i;
		                  
    for(i = 0; i < FILELENGTH; i++)
    {		
        out16 = indata&0xffff; /* Direct output to simulate a 16-bit A/D */
        out12 = indata&0xfff0; /* Direct output to simulate a 12-bit A/D */ 
        out8 = indata&0xff00;  /* Direct output to simulate an 8-bit A/D */
        out4 = indata&0xf000;  /* Direct output to simulate a 4-bit A/D */	
    }
}	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -