-
Notifications
You must be signed in to change notification settings - Fork 0
/
exp10.txt
53 lines (32 loc) · 883 Bytes
/
exp10.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "DSK6416_AIC23.h"
Uint32 fs=DSK6416_AIC23_FREQ_8KHZ;
#define DSK6416_AIC23_INPUT_MIC 0x0015
#define DSK6416_AIC23_INPUT_LINE 0x0011
Uint16 inputsource=DSK6416_AIC23_INPUT_LINE;
#include "bs1800int.cof"
short input_left_sample();
void output_left_sample(short);
void comm_intr();
short w[NUM_SECTIONS][2] = {0};
interrupt void c_int11()
{
short section;
short input;
int wn,yn;
input = input_left_sample();
for(section=0 ; section<NUM_SECTIONS;section++)
{
wn = input - ((a[section][0]*w [section][0])>>15) - ((a[section][1]*w[section][1])>>15);
yn = ((b[section][0]*wn)>>15) + ((b[section][1]*w[section][0])>>15) + ((b[section][2]*w [section][1])>>15);
w[section][1] = w[section][0];
w[section][0] = wn;
input = yn;
}
output_left_sample((short)(yn));
return;
}
void main()
{
comm_intr();
while(1);
}