ECE 486 Support Libraries
|
Macros | |
#define | FS_2K 40000 |
2 ksamples/sec More... | |
#define | FS_4K 20000 |
4 ksamples/sec More... | |
#define | FS_5K 16000 |
5 ksamples/sec More... | |
#define | FS_8K 10000 |
8 ksamples/sec More... | |
#define | FS_10K 8000 |
10 ksamples/sec More... | |
#define | FS_16K 5000 |
16 ksamples/sec More... | |
#define | FS_20K 4000 |
20 ksamples/sec More... | |
#define | FS_24K 3333 |
24.0024 ksamples/sec More... | |
#define | FS_25K 3200 |
25 ksamples/sec More... | |
#define | FS_32K 2500 |
32 ksamples/sec More... | |
#define | FS_40K 2000 |
40 ksamples/sec More... | |
#define | FS_48K 1667 |
47.9904 ksamples/sec More... | |
#define | FS_50K 1600 |
50 ksamples/sec More... | |
#define | FS_64K 1250 |
64 ksamples/sec More... | |
#define | FS_80K 1000 |
80 ksamples/sec More... | |
#define | FS_96K 833 |
96.0384 ksamples/sec More... | |
#define | FS_100K 800 |
100 ksamples/sec More... | |
#define | FS_125K 640 |
125 ksamples/sec More... | |
#define | FS_128K 625 |
128 ksamples/sec More... | |
#define | FS_160K 500 |
160 ksamples/sec More... | |
#define | FS_200K 400 |
200 ksamples/sec More... | |
#define | FS_250K 320 |
250 ksamples/sec More... | |
#define | FS_320K 250 |
320 ksamples/sec More... | |
#define | FS_400K 200 |
400 ksamples/sec More... | |
#define | FS_500K 160 |
500 ksamples/sec More... | |
#define | FS_625K 128 |
625 ksamples/sec More... | |
#define | FS_640K 125 |
640 ksamples/sec More... | |
#define | FS_800K 100 |
800 ksamples/sec More... | |
#define | FS_1000K 80 |
1000 ksamples/sec More... | |
Timers are each driven by 80 MHz clock signals. These integer constants are used to divide this clock rate down to audio sampling frequencies for the ADCs and DACs (Timer 4). For example, to obtain a 50 ksps ADC/DAC clock, the timer period should be set to (80 MHz / 50 ksps)=1600 counts.