9
input threshold detector is shown in Figure 10. The thresh-
old is a signed number, so it should be set to the inverse of
the desired input level. The threshold can be set to zero if
the average input level is desired instead of the error. The
sum of the threshold and the absolute value of the input is
accumulated in a 32-bit accumulator. The accumulator can
handle up to 2
18
samples without overflow. The integration
time is controlled by an 18-bit counter. The integration
counter preload (ICPrel) is programmed via the micropro-
cessor interface through Control Word 1. Only the upper 16
bits are programmable. The 2 LSBs are always zero. Con-
trol Word 1, bits 29-14 are programmed to:
where N is the desired integration period, defined as the
number of input samples to be integrated. N must be a multi-
ple of 4: [0, 4, 8, 12, 16 .... , 2
18
].
ICPrel
N
( )
4
1
+
=
(EQ. 1)
FIGURE 3. BLOCK DIAGRAM OF THE INPUT SECTION
Without Interpolation, the CIC bypass path exceeds the HB/FIR filter
input sample rate and the CIC filter path will not yield the desired 85dB
dynamic range band width of 500kHz.
FIGURE 4. STATEMENT OF THE PROBLEM
FIGURE 5. BLOCK DIAGRAM OF THE INTERPOLATION
APPROACH
I
IN(13:0)
OFFSET_BIN
INPUT_THRESH
INTG_MODE
INTG_INTEVAL
ENI
LEVEL
DETECT
R
R
INTERP
NCO
R
R
DELAY 3
DELAY 3
GAINADJ(2:0)
S
C
CONTROL WORD 0
CONTROL
LOGIC
CONTROL WORD 1
CLKIN
Controlled via microprocessor interface.
See NCO section for more details.
INPUT_THRESH
INTG_MODE
INTG_INTEVAL
INTERP
INPUT
FORMAT
BYPASS
M
INPUT LEVEL DETECTOR
STATUS (0)
∑
LIMIT
4
3
EN
4
CIC
FILTER
HB/FIR FILTER
5MHz
500kHz = 85dB
BANDWIDTH
(NOT ACHIEVED
WITH CIC FILTER
PATH)
M
MAX. f
S
= 4MHz
(EXCEEDED IN
BYPASS PATH)
MIN. R = 4
BYPASS
PROCCLK = 28MHz
CIC FILTER
R =
↓
10
↑
8 (0 STUFF) = 40MHz
500kHz = 85dB
BANDWIDTH
4MHz
HB/FIR FILTER
5MHz
HSP50214