ECE 486 Support Libraries
Timer Count constants for determining ADC/DAC sample rates

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...
 

Detailed Description

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.

Macro Definition Documentation

#define FS_1000K   80

1000 ksamples/sec

Definition at line 119 of file init486.h.

#define FS_100K   800

100 ksamples/sec

Definition at line 107 of file init486.h.

#define FS_10K   8000

10 ksamples/sec

Definition at line 95 of file init486.h.

#define FS_125K   640

125 ksamples/sec

Definition at line 108 of file init486.h.

#define FS_128K   625

128 ksamples/sec

Definition at line 109 of file init486.h.

#define FS_160K   500

160 ksamples/sec

Definition at line 110 of file init486.h.

#define FS_16K   5000

16 ksamples/sec

Definition at line 96 of file init486.h.

#define FS_200K   400

200 ksamples/sec

Definition at line 111 of file init486.h.

#define FS_20K   4000

20 ksamples/sec

Definition at line 97 of file init486.h.

#define FS_24K   3333

24.0024 ksamples/sec

Definition at line 98 of file init486.h.

#define FS_250K   320

250 ksamples/sec

Definition at line 112 of file init486.h.

#define FS_25K   3200

25 ksamples/sec

Definition at line 99 of file init486.h.

#define FS_2K   40000

2 ksamples/sec

Definition at line 91 of file init486.h.

#define FS_320K   250

320 ksamples/sec

Definition at line 113 of file init486.h.

#define FS_32K   2500

32 ksamples/sec

Definition at line 100 of file init486.h.

#define FS_400K   200

400 ksamples/sec

Definition at line 114 of file init486.h.

#define FS_40K   2000

40 ksamples/sec

Definition at line 101 of file init486.h.

#define FS_48K   1667

47.9904 ksamples/sec

Definition at line 102 of file init486.h.

#define FS_4K   20000

4 ksamples/sec

Definition at line 92 of file init486.h.

#define FS_500K   160

500 ksamples/sec

Definition at line 115 of file init486.h.

#define FS_50K   1600

50 ksamples/sec

Definition at line 103 of file init486.h.

#define FS_5K   16000

5 ksamples/sec

Definition at line 93 of file init486.h.

#define FS_625K   128

625 ksamples/sec

Definition at line 116 of file init486.h.

#define FS_640K   125

640 ksamples/sec

Definition at line 117 of file init486.h.

#define FS_64K   1250

64 ksamples/sec

Definition at line 104 of file init486.h.

#define FS_800K   100

800 ksamples/sec

Definition at line 118 of file init486.h.

#define FS_80K   1000

80 ksamples/sec

Definition at line 105 of file init486.h.

#define FS_8K   10000

8 ksamples/sec

Definition at line 94 of file init486.h.

#define FS_96K   833

96.0384 ksamples/sec

Definition at line 106 of file init486.h.