background image

 

3

 

http://www.national.com

 

complement number can be converted to offset binary by
inverting the MSB. This is the first step in the Matlab
routine for FFT analysis. 
 

 

Histogram Mode

 

In the second mode of operation, the “Histogram” mode,
the data capture board operates as a hardware histo-
grammer. The board does not collect a contiguous record
from the ADC; instead, it compiles statistical information
by counting the number of times that the ADC
outputs each code. The most significant 15 bits of the
converter define 32K histogram bins. The MSB of the
data is inverted before being stored (all data is treated as
offset binary format). ADC data is aligned to the least sig-
nificant bit, and unused higher bits are set to 0s. Each bin
is cleared initially. The ADC output code is used as the
address for the SRAM on the board, and as each code is
read by the Data Capture board, the data at that location
in the SRAM is read, incremented and written back to the
SRAM. This counting requires multiple clock cycles, so
the data is not counted in real time. In fact, 11 samples of
data are missed for each sample that is counted. The his-
togram capture terminates when a bin reaches the count
specified by DIP switches 4 and 5. The 32K histogram bin
counts are then returned via the serial port. If the input
signal to the ADC is a pure sinusoid,  then the histogram
information can be compared to the theoretical
probability density of a sinusoid and the linearity of the
ADC can be calculated. The supplied Matlab script
DNL_INL uses this method. Please refer to the IEEE
Standard for Digitizing Waveform Recorders (IEEE Std
1057-1994) for more information about this technique.

 

Hardware Configuration

 

Jumpers

 

The data capture board has 3 jumpers that must be con-
figured before use. The first jumper, VCORE, sets the
core voltage used by the FPGA. This jumper is always set
to 5V. (A voltage regulator on the board reduces the sup-
plied +5V to +3.3V for the FPGA I/O and other
components on the board.) The second jumper, WCLK,
selects the clock source for the FIFO. When capturing
data from an ADC evaluation board, 

 

WCLK should

always be set to RDY2

 

. This selects the DR (Data

Ready) clock line from the ADC evaluation board pin
20B. The third jumper block, J2, is unused. 

 

Data Capture Board Block Diagram

 

DIP Switches

 

Five of the eight DIP switches are used to configure
several capture functions as follows.

 

DIP switch 1:

 

 This DIP switch specifies whether a 

Diversity Receiver Evaluation Board or an 
ADC Evaluation Board is attached to the Data 
Capture Board.

 

ON 

 

 

ADC Evaluation Board is attached. 
Captured data is aligned to the least significant

 

bit with unused higher bits set to 0s. 

 

DIP switches 2 and 3:

 

 When DIP switch 1 is ON to 

indicate that an ADC Evaluation Board is attached,
DIP switches 2 and 3 specify the width of the ADC

 

data so it can be aligned to the least significant bit

 

and unused higher bits can be set to 0s.

 

DIP switches 4 and 5:

 

 These DIP switches specify the

 

maximum histogram bin count. The histogram 
capture terminates when any bin reaches the count
specified by these switches. 

A maximum count of 16384 corresponds to approxi-
mately 2.5 million total samples for a 12-Bit ADC. The
capture is very fast (on the order of 1 second for a 52
MSPS clock rate) so there is not much advantage in set-
ting the switches for a lower maximum count. The other
settings are more useful for the DRCS evaluations
because the effective clock rate can become very low
with certain output formats and decimation ratios. 

CLC5956 Data
Analog Input

Condition

Offset Binary Number 

Two's Complement

ASCII Value Stored

Ain- >> Ain

- Full Scale

0000 0000 0000

1000 0000 0000

2048

Ain- > Ain

- Mid Scale

0111 1111 1111

1111 1111 1111

4095

Ain > Ain-

+ Mid Scale

1000 0000 0000

0000 0000 0000

0

Ain >> Ain-

+ Full Scale

1111 1111 1111

1111 1111 1111

2047

CLC5958 Data
Analog Input

Condition

Offset Binary Number 

Two's Complement

ASCII Value Stored

Ain- >> Ain

- Full Scale

00 0000 0000 0000

10 0000 0000 0000

8192

Ain- > Ain

- Mid Scale

01 0111 1111 1111

11 1111 1111 1111

16383

Ain > Ain-

+ Mid Scale

10 0000 0000 0000

00 0000 0000 0000

0

Ain >> Ain-

+ Full Scale

11 1111 1111 1111

01 1111 1111 1111

8191

FPGA Performs:
State Machine
Signal Format Conversion
Data Routing

Data

12-18

Bits

J1

Eurocard

Connector

FPGA

SRAM

24-bits

32k depth

FIFO

18-bits

32k depth

UART

J9

9-pin

Serial Cable

Connector

24

Serialized
Data Stream

Note: Primary data path shown.
Control lines not shown

RDY2

WCLK

Clock

Switch:

2

3

Number of Bits in ADC

OFF

OFF

18

OFF

ON

16

ON

OFF

14

ON

ON

12

Switch:

4

5

Maximum Count

OFF

OFF

16384

OFF

ON

8192

ON

OFF

4096

ON

ON

2048

Summary of Contents for CLC-CAPT-PCASM

Page 1: ...s Receiver Transmitter an oscillator and a level translator IC The captured data is stored in either three 32K x 8 static RAMs organized into 24 bit words or in a FIFO containing 32K 18 bit words LEDs provide a visual indication of activity DIP switches and a jumper configure several capture functions Section II Capturing Data from ADC Evaluation Boards Getting Started To use the Data Capture boar...

Page 2: ...on board An amplitude of 10 to 16dBm is recommended Here again the HP 8644B is a good choice Software 1 National Semiconductor Software All of the required software is provided on a CD ROM To install the software now insert the CD ROM into your computer and follow the directions The default installation copies all of the files to a directory called c nsc The data capture software is called capture...

Page 3: ...ion board pin 20B The third jumper block J2 is unused Data Capture Board Block Diagram DIP Switches Five of the eight DIP switches are used to configure several capture functions as follows DIP switch 1 This DIP switch specifies whether a Diversity Receiver Evaluation Board or an ADC Evaluation Board is attached to the Data Capture Board ON ADC Evaluation Board is attached Captured data is aligned...

Page 4: ...he Data Capture Board is powered up and the FPGA is initialized it is on to indicate that the board is ready After all the SRAM data has been output it is off LED 2 This LED is on when captured data is available to be output to the serial port After all the data has been output it is off LED 6 This LED is connected to the clock signal selected by DIP switch 1 When the clock is toggling it will be ...

Page 5: ...you start with the default file name and location shown Click on Default and then on OK If you do not have a C temp directory please make one The reason for this is that the Matlab script files for data analysis look auto matically for the file C temp data dat If you wish to store the data elsewhere you will need to modify the Matlab m files to look for your data file in a different loca tion Obvi...

Page 6: ... configuration menu Select Histogram Debug as shown above and click on OK When the data capture control panel returns you can verify your capture settings by positioning the mouse over the progress bar You will see the following display When you press Start now the SRAM will be cleared and then the board will count the number of times each code is output When any count reaches the number that you ...

Page 7: ... and Capture Board combination require 5V at 1A 4 An IBM Compatible Personal Computer running Windows 95 Windows 98 or Windows NT with a serial port capable of 115 200 baud 5 Serial data cable to connect the data capture board to the PC 6 Low noise filtered IF Signal source for analog input to DRCS 7 OPTIONAL Low jitter clock source 10 16dBm sinewave if DRCS crystal oscillator is removed Software ...

Page 8: ...ion The SRAM is useful for displaying time records of data or collecting contiguous blocks of slower data that have been decimated by the CLC5902 DDC The SRAM is the memory element used for the board s hardwired histogram data generation Capture Board Hardware Configuration Options for DRCS data capture Place the WCLK FIFO write clock jumper in the PIN 120 position the VCORE should be in the 5V po...

Page 9: ...arted Next is a discussion of the Mode functions and the related sub functions MODES There are four primary modes in which to run the data capture system each with its own associated options 1 Capture mode configures the Capture Board for data reception from the DRCS evaluation board Both serial and the parallel output ports can be used as the source data path a The 24 Bits option captures serial ...

Page 10: ...ata source The DRCS Debug data will be displayed at the 15 bit resolution limit this is also the case for the DRCS 24 bit Serial Out data and the histogram will be centered about 16 384 assuming there is no intentional DC offset The following figure displays the sine wave histo gram data of the DRCS output generated by the Capture Board at an input frequency of 150MHz and 16dBm in amplitude using ...

Page 11: ...nditions The main portion of the noise power is contained in the carrier s immediate sidebands 5KHz Another point of interest is that there are several spectral lines about 75dBFS and 25KHz on either side of the fundamental These have been traced to the ground loop created by the PC serial interface Both serial interface cables were connected while this data was being collected Removing the cable ...

Page 12: ...e 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 CLC5956 Evaluation Boards DNL_INL dnl_inl m is the script intended for data analysis of the hist...

Page 13: ...13 http www national com CLC CAPT PCASM Evaluation Board Layer 1 CLC CAPT PCASM Evaluation Board Layer 2 CLC CAPT PCASM Evaluation Board Layer 3 CLC CAPT PCASM Evaluation Board Layer 4 ...

Page 14: ...1 1 1 1 1 6 287 287 287 1 9 9 1 1 1 1 1 1 1 6 6 287 9 9 9 9 5 9 9 9 9 1 4 5 2 2 5 1 57 4 4 9 4 3 3 1 1 5 5 1 2 9 1 4 1 4 602 9 4 1 4 4 4 4 4 4 9 4 4 1 4 4 1 4 56 1 1 1 1 1 865 21 B 21 6 7 7 7 7 7 7 7 7 B B B 1 B 1 B 1 B 1 9B2 1 17 1 17 1 17 1 17 1 17 1 17 1 17 1 17 1 17 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 7B 21 06 06 1 1 2 1 21 1 6 1 9B 5 156 167 786 17567 1 6 1B 1B 1B 1B 1B 1B 1B 1B...

Page 15: ...to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness National Semiconductor National Semiconductor National Semiconductor National Semiconductor Corporation Europe Hong Kong Ltd Japan Ltd 1111 West Bardin Road Fax 49 0 180 530 85 86 13th Floor Straight Block Tel 81 043 299 2309 Arlington TX 76017 E mail europe supp...

Reviews: