Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

EVAL-AD7762EB View Datasheet(PDF) - Analog Devices

Part Name
Description
MFG CO.
'EVAL-AD7762EB' PDF : 28 Pages View PDF
Prev 21 22 23 24 25 26 27 28
DOWNLOADING A USER-DEFINED FILTER
As previously mentioned, the filter coefficients are 27 bits in
length; 1 sign and 26 magnitude bits. Because the AD7762
has a 16-bit parallel bus, the coefficients are padded with
5 MSB 0s to generate a 32-bit word and split into two 16-bit
words for downloading. The first 16-bit word for each coefficient
becomes (00000, Sign bit, Magnitude [25:16]), while the second
word becomes (Magnitude [15:0]). To ensure that a filter is
down-loaded correctly, a checksum must also be generated and
then downloaded following the final coefficient. The checksum
is a 16-bit word generated by splitting each 32-bit word into
4 bytes and summing all bytes from all coefficients up to a
maximum of 192 bytes (48 coefficients × 4 bytes). The same
checksum is generated internally in the AD7762 and compared
with the checksum downloaded. The DL_OK bit in the status
register is set if these two checksums agree.
To download a user filter:
1. Write to Control Register 1, setting the DL_Filt bit and
also the correct filter length bits corresponding to the
length of the filter to be downloaded (see Table 11).
2. Write the first half of the current coefficient data
(00000, Sign bit, Magnitude [25:16]). The first coefficient
to be written must be the one adjacent to the point of filter
symmetry.
3. Write the second half of the current coefficient data
(Magnitude [15:0]).
4. Repeat Step 2 and Step 3 for each coefficient.
5. Write the 16-bit checksum.
6. Use these methods to verify that the filter coefficients are
downloaded correctly:
a. Read the status register, checking the DL_OK bit.
b. Read data and observe the status of the DL_OK bit.
Note that because the user coefficients are stored in RAM, they
are cleared after a RESET operation or a loss of power.
Table 11. Filter Length Values
FLEN[3:0]
Number of Coefficients
0000
Default
0001
6
0011
12
0101
18
0111
24
1001
30
1011
36
1101
42
1111
48
Filter Length
Default
12
24
36
48
60
72
84
96
AD7762
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 32.
10
0
–10
–20
–30
–40
–50
–60
–70
–80
0
100
200
300
400
500
600
FREQUENCY (kHz)
Figure 32. 24-Tap FIR Frequency Response
The coefficients for the filter are listed in Table 12 and are
shown from the center of symmetry outwards. The raw
coefficients were generated using a commercial filter
design tool and scaled appropriately so their sum equals
67108863 (0x3FF FFFF).
Table 12. 24-Tap FIR Coefficients
Coefficient
Raw
1
0.365481974
2
0.201339905
3
0.009636604
4
−0.075708848
5
−0.042856209
6
0.019944246
7
0.036437914
8
0.007592007
9
−0.021556583
10
−0.024888355
11
−0.012379538
12
−0.001905756
Scaled
53188232
29300796
1402406
−11017834
−6236822
2902466
5302774
1104856
−3137108
−3621978
−1801582
−277343
Rev. 0 | Page 21 of 28
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]