Example 6–24. circular addressing, Figure 6–8. data structure for fir filters – Texas Instruments TMS320C3x User Manual
Page 177

Circular Addressing
6-24
Example 6–24. Circular Addressing
*AR0 ++ (5)%
;
AR0 = 0
(0
value)
*AR0 ++ (2)%
;
AR0 = 5
(1st
value)
*AR0 – – (3)%
;
AR0 = 1
(2nd
value)
*AR0++(6)%
;
AR0 = 4
(3rd value)
*AR0 – – %
;
AR0 = 4
(4th
value)
*AR0
;
AR0 = 3
(5th value)
Element 0
Element 1
Element 2
Element 3
Element 4
Element 5 (last element)
Last element + 1
0
1
2
3
4
5
6
0
2nd
5th
4th, 3rd
1st
Value
Data
Address
→
→
→
→
→
Circular addressing is especially useful for the implementation of FIR filters.
Figure 6–8 shows one possible data structure for FIR filters. Note that the ini-
tial value of AR0 points to h(N –1), and the initial value of AR1 points to x(0).
Circular addressing is used in the ’C3x code for the FIR filter shown in
Example 6–25.
Figure 6–8. Data Structure for FIR Filters
h(N –1)
h(N – 2)
h(2)
h(1)
h(0)
x(N –1)
x(N – 2)
x(2)
x(1)
x(0)
AR0
AR1
Impulse response
Input samples
.
.
.
.
.
.
→
←
- Digital Signal Processor SM320F2812-HT (153 pages)
- MSP430x1xx (440 pages)
- Laser And Motor Drives DRV8811EVM (13 pages)
- TMS320 DSP (88 pages)
- MSP430x11x1 (45 pages)
- TVP5154EVM (55 pages)
- TMS320DM646X DMSOC (64 pages)
- CC2511 (24 pages)
- SN65HVS880 (4 pages)
- TPS650231EVM (14 pages)
- TMS320TCI648x (256 pages)
- TSC2007EVM-PDK (16 pages)
- UCC38500EVM (16 pages)
- TMS320C6000 (62 pages)
- SCAU020 (21 pages)
- TPS40051 (17 pages)
- TNETE2201 (14 pages)
- TMS320C64x DSP (306 pages)
- UCC2891 (21 pages)
- MSP430 (138 pages)
- TMS320C6712D (102 pages)
- MSP430x4xx (512 pages)
- TMS320C6454 (225 pages)
- SPRU938B (48 pages)
- TUSB3210 (22 pages)
- TMS320C6457 (43 pages)
- CC2530ZNP (3 pages)
- TMS320C6455 (50 pages)
- TSB12LV26 (91 pages)
- TMS320C6472 (2 pages)
- VLYNQ Port (49 pages)
- TMS380C26 (92 pages)
- MSP-FET430 (95 pages)
- TMS320TCI6486 (160 pages)
- TPS2330 (22 pages)
- DM648 DSP (47 pages)
- TMS320DM36X (134 pages)
- MSC1211 (35 pages)
- SPRAA56 (29 pages)
- DAC7741EVM (28 pages)
- CDCM7005 (34 pages)
- TMS370 (99 pages)
- Adpater (37 pages)
- TMS320C6452 DSP (46 pages)