![](http://datasheet.mmic.net.cn/380000/CLC-CAPT-PCASM_datasheet_16752353/CLC-CAPT-PCASM_12.png)
http://www.national.com
12
**
DRCS_Serial
“
DRCS_ser_fft.m
”
is the script
intended for analysis of the DRCS 24-bit serial out-
put data. Fsample is set to a default of 52e6/192
which is the GSM standard output rate of
270.833KS/s. The
“
search
’
option is enabled;
therefore, excluding the DC bins, the peak FFT bin
is assumed to be the input fundamental. A default 4-
term data window is used.
**
DRCS_Debug
“
DRCS_par_fft.m
”
is the script
intended for analysis of the DRCS 16-20 bit parallel
debug data. The hardware setting will determine the
actual Fsample variable needed. The data is always
placed within a 24-bit word with MSB justi
fi
cation.
The default Fsample is set to the assumed clock
frequency of 52MHz with no decimation. If a debug
port is selected which has decimated data, the
Fsample variable will require an appropriate adjust-
ment. Carefully edit and save the new value into the
script
fi
le. The original
fi
le can be recovered from the
CDROM.
**
14-bit FFT
“
b14_FFT.m
”
is the script intended for
data analysis in conjunction with the 14-bit ADC
evaluation boards. All the FFT routines can be run
with a rectangular window by setting the variable to
“
0
”
. Setting the
“
Dither
”
variable excludes a lower
portion of the spectrum from the FFT analysis and is
intended to be used in conjunction with a base-band
dither signal being present at the ADC analog input.
**
12-bit FFT
“
b12_FFT.m
”
is the script intended for
data analysis in conjunction with the 12-bit ADC
evaluation boards.
**
DNL_INL
“
dnl_inl.m
”
- is the script intended for data
analysis of the histogram data
fi
le generated by the
Data Capture Board. The data
fi
le has a
fi
xed 2^15
length (i.e. the number of histogram bins). SW1 on
the Capture Board is set to LSB justify the ADC data
within the 2^15 bins. 12-18 bit histograms are
supported. This Matlab script automatically scales
to the data source. In addition to the graphic plots,
the routine gives the number of samples, input
amplitude (dBFS of ADC), and data DC offset (in
LSBs). See the Data Capture Board User Manual
for more info.
**
Plot_Data
“
analysis_menu.m
”
. It simply clears the
fi
gure, loads
the data
fi
le from the default location, and plots the
new data.
No data manipulation
occurs. If the user
wishes to view offset binary formatted data which
has been normalized to ±1, he should
fi
rst run the
appropriate FFT analysis, then clear the plot
fi
gure
(use
“clf“
at Matlab command line) and plot the
variable
“u”
(use
“plot(u,’.’)”
at Matlab command line).
this
script
is
contained
within
** A modi
fi
ed version of the DRCS serial FFT routine
called
“
drcs_ser_fft_excl.m
”
is included in the c:\nsc\
m
fi
les directory. This routine is similar to the
“
DRCS_ser_fft.m
”
routine. The new routine provides
the ability to exclude the signal generator phase
noise near the fundamental. The width of the
exclusion region defaults to ±2kHz. It can be easily
changed by editing the routine.