📄 overflowtest.c
字号:
//
// Project: Experiment 3.6.4 Overflow Control - Chapter 3
// File name: overflowTest.c
//
// Description: This is the experiment test program file
//
// For the book "Real Time Digital Signal Processing:
// Implementation and Application, 2nd Ed"
// By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
// Publisher: John Wiley and Sons, Ltd
//
// Tools used: CCS v.2.12.07
// TMS320VC5510 DSK Rev-C
//
//
#define BUF_SIZE 40
short sineTable[BUF_SIZE]={
0x0000,0x000f,0x001e,0x002d,0x003a,0x0046,0x0050,0x0059,
0x005f,0x0062,0x0063,0x0062,0x005f,0x0059,0x0050,0x0046,
0x003a,0x002d,0x001e,0x000f,0x0000,0xfff1,0xffe2,0xffd3,
0xffc6,0xffba,0xffb0,0xffa7,0xffa1,0xff9e,0xff9d,0xff9e,
0xffa1,0xffa7,0xffb0,0xffba,0xffc6,0xffd3,0xffe2,0xfff1};
extern short ovftest(short, short *);
extern short buff; // Use graphic display to show this buffer 256 in size
extern short buff1; // Use graphic display to show this buffer 256 in size
void main()
{
short ovrflow_flag;
short *ptr=sineTable;
while(1)
{
ovrflow_flag=0;
ovrflow_flag=ovftest(ovrflow_flag, ptr);
if (ovrflow_flag != 0) // <- set break point on this line
{
ovrflow_flag=ovftest(ovrflow_flag, ptr);
}
} // <- set break point on this line
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -