Datasheet

AD7763 Data Sheet
Rev. B | Page 26 of 32
EXAMPLE FILTER DOWNLOAD
The following is an example of downloading a short, user-defined
filter with 24 taps. The frequency response is shown in Figure 38.
10
–80
0
600
FREQUENC
Y (kHz)
AMPLITUDE (dB)
0
–10
–20
–30
–40
–50
–60
–70
100
200 300
400
500
05476-023
Figure 38. 24-Tap FIR Frequency Response
The coefficients for the filter in Table 14 are shown from the center
of symmetry outward; that is, Coefficient 1 is the coefficient at the
center of symmetry. The raw coefficients were generated using a
commercial filter design tool and scaled appropriately so their
sum equals 67108863 (0x3FF FFFF).
Table 14. 24-Tap FIR Coefficients
Coefficient Raw Scaled
1 +0.365481974 +53188232
2 +0.201339905 +29300796
3
+0.009636604
+1402406
4 −0.075708848 −11017834
5 −0.042856209 −6236822
6 +0.019944246 +2902466
7 +0.036437914 +5302774
8 +0.007592007 +1104856
9 −0.021556583 −3137108
10 −0.024888355 −3621978
11 −0.012379538 −1801582
12 −0.001905756 −277343
Table 15 shows the 32-bit word (as per the format shown in the
Downloading a User-Defined Filter section) in hexadecimal for
each of the coefficients that must be written to the AD7763 to
realize this filter. The table is also split into the bytes that are all
summed to produce the checksum. The checksum generated
from these coefficients is 0x0E6B.
Table 15. Filter Hex Values
1
32-Bit Word Written to Download Coefficient
Coefficient Byte 1 Byte 2 Byte 3 Byte 4
1
03
2B
96
88
2 01 BF 18 3C
3 00 15 66 26
4 04 A8 1E 6A
5 04 5F 2A 96
6 00 2C 49 C2
7
00
50
E9
F6
8 00 10 DB D8
9 04 2F DE 54
10 04 37 44 5A
11 04 1B 7D 6E
12 04 04 3B 5F
1
All values of words listed are with reference to writing to one device only
(ALL = 0) with Address 000 (as assigned to the device using the ADR[2:0]
pins).
Table 16 lists in hexadecimal format the sequence of 32-bit
words the user writes to the AD7763 to set up the ADC and
download this filter, assuming selection of an output data rate
of 625 kHz.
Table 16.
Word
1
Description
0x0001807A
Address of Control Register 1. Control register
data. DL filter, set filter length = 24, set output
data rate = 625 kHz.
0x032B9688 First coefficient.
0x01BF183C Second coefficient.
Other coefficients.
0x04043B5F Twelfth (final) coefficient.
0x00000E6B
Checksum. Wait (0.5 × t
ICLK
× number of unused
coefficients) for AD7763 to fill remaining unused
coefficients with 0s.
0x0001087A
Address of Control Register. Control register data.
Set read status and maintain filter length and
decimation settings. Read contents of status
register. Check Bit 7 (DL_OK) to determine that
the filter downloaded correctly.
1
All values of words listed are with reference to writing to one device only
(ALL = 0) with Address 000 (as assigned to the device using the ADR[2:0]
pins).