Skip to main content

Advertisement

In-house development of an FPGA-based MCA8K for gamma-ray spectrometer

Article metrics

Abstract

The objective of this work is domestic development of electronics instruments. It used for measuring ionization radiation and practical training at Nuclear Research Institute (NRI), Dalat, Vietnam. The aim of this work is to study and develop a novel MCA8k for Gamma-ray spectrometer concerning experimental nuclear physics. An approach for design and construction of the aforementioned instrument is to apply logic integrating techniques via Field Programmable Gate Arrays (FPGA) under Max + PlusII, Altera. The instrument allows interfacing to PC with self-developed application software. Scientific significance of this work is partly to contribute to opening a research direction in the field of nuclear electronics science for design and construction of radiation measurement instruments with the advanced IC technology in Vietnam. Practical significance of this work is partly to contribute to enhancement of capabilities in developing radiation measurement instruments for experimental research as well as practical training in nuclear physics. The advantages of FPGA: overcoming ballistic deficit, decrement of serial and parallel noise, flexible in programming, control of the system by software without an interfere of hardware. The disadvantages of FPGA: requirement of good knowledge of VHDL and professional tools for development of a expected project. A new electronics module of MCA8k has been achieved. Some main results obtained from the experimental testing are as follows: differential nonlinearity (DNL) of FPGA-MCA8k approximately 1.27%, integral nonlinearity (INL) = 0.607%, time conversion ≈ 2.2 μs, deadtime (DT) is 0.75%. Data Acquisition Program MCANRI written in VC + +6.0, self-executed under Windows XP environment.

1. Introduction

So far, FPGA can be used in four main areas: digital signal processing, μC integration, interfacing among the entity classes and reconfiguration of design. Recently, the technological development of a new generation of electronics circuits and its role in application designs always show many highlights. The advantages of digital systems for gamma-ray spectrum in comparison with those of conventional electronics systems are reflected in the ability executing complex algorithms for signal processing (Redus2009). According to this approach, the highest quality of measurements achieving at both low and high count rates as using different radiation detectors is possible. The main functions of a spectrometer as filtering and amplifying signals, detecting and eliminating overlapped pulses, analysis of amplitude and emission of energy spectrum (CAEN2008), (Los Arcos and Garcia-Torano1994) can be implemented effectively by digital algorithms using FPGA. The operations greatly increase the flexibility of the system, allow re-configuring and calibrating parameters without interfering the hardware (Bolic and Drndarevic2002). In addition, the developed system can interface to PC easily. Recently, FPGA is used to develop nuclear instruments. These instruments are designed for high precision γ-ray spectroscopy with HPGe detectors and directly compatible with scintillator/PMT combinations: NaI, CsI, BGO, etc. As known, The DGF Pixie-4 is a multichannel data acquisition system for nuclear physics and other applications requiring coincident radiation detection (XIA LLC2009), or the work for development of a fast flash ADC for nuclear spectroscopy system (Hien and Toshihiko2001), or the issue for development of an FPGA based coincident system (Khang et al.2013). Owing to a flexible inner structure in defining and changing the functions of electronics circuits by programming, FPGA expresses its capability for applying in gamma ray spectroscopy. Logic-logic linking method using IC FPGA in Max + Plus II environment with EPM7160E was spread in main procedures: forming a project and the initial conditions of design, handling project, generating information of graphic interface, compiling and loading data into a specific architecture. As results, FPGA contains the entire contents of the design and operates as a micro controller. In this work, the instrument is carried out by a logic element linking method. To develop nuclear electronics instruments under the direction of FPGA, a desired combination of hardware and software for performing algorithms of digital signal processing is current needs. Therefore, the following parts are presented: design and construction of MCA-8 k hardware, development of an application software for data acquisition and control of the instrument. On the other hand, the constructed instrument is able to interface to PC via a transferring-receiving port between peripheral devices and PC.

2. Design and method

2.1. Logic-logic combination method for integrated circuits of functional parts

A block diagram of MCA (Multi Channel Analyzer) is presented in Figure 1. It consists of two main parts: ADC part and MCD (Multi Channel Data processing) part. Layout of FPGA-ADC8k in Figure 2 is ADC part. It includes the following main stages: input voltage follower (used LH0032G), pulse stretcher, peak detection and track/hold sample, analog to digital conversion (used AD7899BR-1), one FPGA EPM7160 for logic control as well as logic control. Layout of FPGA-MCD8k in Figure 3 is MCD part. It includes digital input buffers, digital output buffers, an external memory SRAM, 2 timers, and also one EPM7160 for logic control. Logic-logic combination method for integrated circuits of two parts is explained as follows. ADC part accepts a signal, converts it to a digital number, this number called a digital copy from the original analog signal. The copy will be carried out by MCD part. All of components for performance of electronics functions in MCD are formed inside an FPGA device, covered by a blue dash-line called the entity of the FPGA.

Figure 1
figure1

A block diagram of FPGA-MCA8k configuration.

Figure 2
figure2

Layout of FPGA-ADC8k.

Figure 3
figure3

Layout of FPGA-MCD8k.

The instrument is constructed by FPGA application in which a logic processor is IC EPM7160E (a device of MAX 7000 family) with fast logic-logic combination about 5 ns (ALTERA1998). The approach for setting data into FPGA entity was the professional method via parallel link. IC EPM7160E plays a role of internal logic controlling and data processing through all non-compact components. There are I/O ports allowing the FPGA to transfer external signals by each transaction either binary digits or TTL signals. In this study, the entity includes the following function elements: (i) A logic controller is responsible for the exchange of the question-response signals between MCD and ADC. (ii) Threshold conditions, peak detection, data output, and chip selection are carried out through a series of needed activities. As the asking-response condition between ADC side and MCD side following a clock sharing rule is satisfied, a conversion process starts and stores data into the external SRAM.

The main task of FPGA EPM7160E is integration of all digital parts as well as logic control parts for the both parts of ADC and MCD in the designed project carried out by integrated software environment (ISE) Max + PlusII. Since the particularity of the EPM7160E family is entirely digitized, all the analog components could not be embedded inside it. When the linear input follower is satisfying the threshold conditions for the question-response logic, a peak is detected and passed to the logic controller within the FPGA for handling, and SRAM contains spectral information. In principle, DPRAM can be created in an FPGA, but SRAM has to be used because the capacity of EPM7160E is not large enough. All other IC components are integrated in FPGA entity. Therefore, EPM7160E FPGA acts as the central data processor controlling the operation of the circuits by application software.

2.2. The processing unit and operation of the MCA8k

I/O ports of the entity allow the FPGA communicating with outside signals in every transaction. A logic controller is responsible for the exchange of the question-response signals between MCD and ADC. When DR (data ready) gives MCD a ready status to collect data, MCD returns two pulses (ACC (accepted) and ECON (enable conversion)) to ADC with variable thresholds establishing differentiated window for carrying out data acquisition. As the track signal (peak detection) appears, dead-time (DT) pulse allows the logic controller sending a pulse to the FPGA for timestamp (as a percentage). In parallel with the signal recognition logic and the question-and-response interface, the memory read/write function, living time (LT), dead time (DT) and real-time (RT) are done via other control logic pulses. To locate the address for SRAM write cycle, ADC pulse opens two byte buffers of 13-bit address. Peak amplitude content (reflecting energy information) existing in DR will be written on each cell of SRAM memory when OE (open enable) is low and RW (read-write) is high. Existing data on the local exchange line MIO [D0 - D7] written by each byte data via a series of internal logic control pulses ADCL (ADC latch), CI (Carry input), CO (Carry output) and ADC* (ADC ative low). To download the content contained in the SRAM, a memory read cycle is carried out by detecting low and high address with the decoded signal CS3. When two bytes of address read cycle have positioned SRAM, then contents will be read out via CS2. Data receiver-transmitters from peripheral to PC via bidirectional buffer the signal selected port (read or write) PSEL and choose the direction DIR signal effect. timers is programmable (2 bytes each) will be calculated from DT, LT clocks by 1 second. FPGA EPM7160E acts as the central data processor controlled the operation of the instrument by MCANRI.exe software applications.

2.3. The application software

For controlling of data acquisition, setting of parameter and interfacing with user, an application program was developed, named MCANRI. The basic functions of the program are storing information of spectrum in PC memory devices, setting measuring parameters, and calibrations. The interface page and the algorithm flowchart are presented in Figures 4 and5.

Figure 4
figure4

The interface page of MCANRI program.

Figure 5
figure5

The algorithm flowchart of MCANRI program.

When the program begins, all default icons are displayed on the console screen. Two main branches of the flowchart are for measurement with peak analysis and energy/efficiency calibrations. As satisfying a combination of the instrument, spectrum and timing information are displayed. The spectrum is displayed and updated every millisecond in auto scale or manual mode.

Besides, the application program MCANRI is not only used for data acquisition in gamma spectrometer, but also used for the neutron counting system using 3He detector at horizontal experiment channels of the reactor, Nuclear Research Institute (NRI), Dalat. Figure 6 shows the neutron counting system.

Figure 6
figure6

The neutron counting system used at the horizontal channel of the reactor, NRI, Dalat.

3. Experimental measurements and results

3.1. Determination of differential nonlinearity of MCA

One of the largest contributions to the DNL/INL of the FPGA-MCA system is coming from the ADC. As constructing the system, AD7899 from ANALOG DEVICES (Analog Devices, Inc.2001) is used. The AD7899 is a fast, low-power, 14-bit A/D converter that operates from a single 5 V supply. The part contains a 2.2 μs successive-approximation ADC, a track/hold amplifier, 2.5 V reference, on-chip clock oscillator, signal conditioning circuitry, and a high-speed parallel interface. The part accepts analog input ranges of ±10 V. The plots in Figures 7 and8 show typical DNL and INL for the AD7899, respectively.

Figure 7
figure7

Typical DNL plot for the AD7899.

Figure 8
figure8

Typical INL plot for the AD7899.

To test differential nonlinearity of MCA (DNLFPGA-MCA), an experimental arrangement is performed as shown in Figure 9. This configuration consists of two independent measurement branches: the upper branch of the system (system under test - SUT) is to test the technical characteristics of the instruments formed from AMP-NRI (Hien and Lanh1988), FPGA-MCA8k, computer 1, data collection program MCANRI; the below branch (reference setup system - RSS) includes AMP 2026 Canberra, ADC 8701 Canberra, MCD Accuspec V1.1, software MCA Series 100 and computer 2. Saw-generator type LG-1 BNC, Berkeley, USA controls signal amplitude in random pulser DB-2 BNC, Berkeley, USA. Shaping time of both AMPs is chosen 4 μs to reduce the effect of rising time as using the reference pulser. The experiment gives counts for full range of 8192 channels: i = 1 8192 x i =1474389136, leading to the average number of counts: Nav ≈ 179979.143. From Nav to find the maximum deviation value in 8192 channels: ΔNmax = (Nx - Nav)max = 2285.735. Thus, differential nonlinearity (IAEA2008) of the FPGA-MCA8k is: DNLFPGA-MCA8K = (2285.735/179979.143) × 100% ≈ 1.27%. Statistical fluctuation of counts in Figure 10 represents its differential nonlinearity for SUT. Similar to the above-mentioned calculation, differential nonlinearity obtained in RSS (please refer to Figure 11): DNLRSS = 1.03%. Also, deadtime in both systems, respectively: DTFPGA-MCA8K = 0.56% and DTRSS = 0.47%. All results are shown in Table 1.

Figure 9
figure9

Configuration of measurement for differential nonlinearity of MCA.

Figure 10
figure10

Differential nonlinearity of MCA in SUT.

Figure 11
figure11

Differential nonlinearity of MCA in RSS.

Table 1 Experimental results of the integral nonlinearities of MCAs

In principle, both of results from RSS and SUT must be the same. However, this result is different from the other. SUT’s result is worse than that of RSS. Please refer to Figures 10 and11. It is clear that the quality of designed circuits of SUT is not better than that of RSS. Because statistical fluctuation of counts in higher channels is bigger than statistical fluctuation of counts in lower channels, therefore deviations of counts in higher channels must be larger. This reason makes spectrum in higher channels bigger, it means that there is an increment for DNL.

When the specific technical parameters of the MCA are tested, a reference setup system (RSS) as a basis for evaluating operating modes as well as the reliability of the execution method demonstrated through experimental data measurements. Table 1 showed that the deviation between differential nonlinearity of FPGA-MCA8k and that of MCD Accuspec is 1.03 1.27 /1.03=0.233. In comparison with differential nonlinearity of MCD-Accuspec, differential nonlinearity of FPGA-MCA8k is larger than that of MCD-Accuspec (1.27 + 0.233) – 1.03 = 0.473. Although differential nonlinearity of FPGA-MCA8k does not achieve the nominal standard, it is still acceptable for radiation measurements and training purpose. In the reality, it affects the channel widths in analog to digital conversion, and variation of widths leads a high fluctuation of counts.

3.2. Determination of integral nonlinearity of MCA

To test integral nonlinearity of MCA (INLFPGA-MCA), an experimental configuration is performed in Figure 12. Two measurement programs are MCANRI and MCA Series 100. Reference Pulser PB-4 BNC, Berkeley, USA generates a positive nuclear tail pulse with rise time of 25 ns and falling time of 50 μs. Set thresholds of LLD ≈ 16 mV, ULD maximum of 10000 mV. Changing the incremental steps from 0 to 10000 mV, test steps are 40. The corresponding channel-voltage value pairs listed in the Table 2. From the experimental fitting function of y = 0.82254× – 12.3832, where x is the amplitude of the input signal, y is the estimated channel, −12.3830 is the amplitude at channel zero, 0.82250 is the slope of the fit line and coefficient of determination R2 = 0.9997 (please refer to Figure 7), replacing Xi = (17 ÷ 9872) with i є [1, 40], then 40 values of Yi is obtained. Therefore, ΔYmax= (Y r – Y i )max = 49.36 and Y max = 8132. According to reference (ORTEC, CAMAC ADCs and Memories), integral nonlinearities in SUT and RSS are, respectively, calculated as follows:

Figure 12
figure12

Configuration of measurement for integral nonlinearity of MCA.

Table 2 Results of integral nonlinearity of the MCA
IN L FPGA M C A 8 k = Δ Y max Y max ·100%= 49.3642 8132 ·100%=0.607%,
IN L M C D Accuspec =0.15%.

The Integral nonlinearity INLFPGA-MCA8K is about 4 times bigger than INLMCD8K-Accuspec; therefore, integral nonlinearity of the instrument is worse as higher energy. On the other hand, as presented in Figure 13, the signal amplitude is strong correlation with the corresponding channel within statistical fluctuation. It could be estimated that electronics noise and/or unstable baseline restorer are the basic reasons of the difference between the MCA8k and the standard one. In other word, DNL/INL affect the channel width distributions and uncertainties of counts in the system. As results, the higher the energy, the worse the resolution.

Figure 13
figure13

Integral nonlinearity of the MCA.

3.3. Test of count accuracy and data throughput of the MCA

Accuracy of count numbers of FPGA-MCA8k was determined by an experimental configuration in Figure 9 using TTL pulse output. Frequency generator is changed in a range from fmin = 90 Hz to fmax = 300 kHz, for both of RSS and SUT systems, measuring in PHA mode with preset time tpr = 10000 s. The deviation of RSS and SUT was calculated (CANBERRA2009) by the formula:D%= C r C i C r ·100%, where Cr is counts obtained in RSS and Ct is counts in SUT. When elapsed time is equal to preset time tpr, both systems automatically stop. Accumulation of counts against time and their differences between two systems are shown in Table 3.

Table 3 Accumulated counts versus time and their differences between two systems

In Table 3, test results in terms of counting accuracy and frequency of input–output data of the present designed MCA show the average deviation of 0.06 in the frequency range of 90 Hz – 1 kHz, in comparison with the standard case.

3.4. Test of spectrum calibration and peak analysis

A spectrometer for measuring gamma ray emitted from 152Eu source was setup in Figure 14. C2019 type HPGe detector, Inter-techniques is fed to all functional electronics modulars: AMP 2026-Canberra, FPGA-MCA8k, HV 5 k- NRI, and PC. Application software for getting data is MCANRI. All parameters setup with MCANRI and timing information are as follows:

152 Eu source : T 1 / 2 = 13.51 years , Activity A Bq = 123238 ;
Figure 14
figure14

An experimental spectrometer for measuring gamma spectrum from 152 Eu source.

HPGe C2019 detector, Intertechniques: positive HVPS = 2500 V, resolution 2.05 keV at peak 1332.5 keV of 60Co, treal = 2500 s, LL = 32, UL = 8191.

When tlive = tpreset = 2500 seconds, MCANRI program automatically stops; 152Eu spectrum displays on screen in Figure 4. It allows user performing all following procedures: Energy calibration using quadratic curve, peak area calculation P, gross G, background B, and standard deviation σp. Refer to Figure 4, all following information are derived: preset time is equal to real time being 2500 s, elapsed time is 2464 s, dead time is 1.43%; starting at 16:05:07 and stopping at 16:46:47; the main pointer at central energy 344.32 keV with 69141 counts according to channel 1878. Lower level is 32, upper level is 8191, vertical scale is 128 k, range of measurement is 8 k. As entering 10 experimental ‘channel-energy’ values and fitting, the experimental quadratic energy calibration curve (keV) is a function of channel (C):

E keV =0.1761+0. 1832 * C0.0000000 2 * C 2 .

After calibrating energy, making ROI (region of interest) of peak is the next step; at that time, peak area, background, gross, standard deviation and energy resolution are calculated (IAEA1991), respectively. 152Eu spectrum and the energy calibration curve via a fit function of ten peaks with energy-channel value pairs is shown in Figure 4. Table 4 shows the experimental results.

Table 4 The quantitative values of ten-experiment gamma-ray energy peaks from 152 Eu

4. Conclusions

This work carried out a design and construction of an FPGA-based MCA8k. FPGA EPM7160E acts as the central data processor controlled operations of the instrument by MCANRI software application. The integrated software environment for development of the entity FPGA is Max + PlusII, Altera. Main technical characteristics are as follows:

  • FPGA-MCA8k interfacing to PC via the parallel port (LPT),

  • Resolution: 8192 channels,

  • Time conversion: approximate to 2.2 μs,

  • The Integral nonlinear INLFPGA-MCA8K ≈ 0.607% of the full scale,

  • The Differential nonlinear DNLFPGA-MCA8K ≈ 1.27% over the measurement range,

  • Maximum count capacity per channel is 16777215,

  • The low and up levels for the ADC are controlled by software,

  • Input receiving positive, unipolar pulse peak amplitude from 0 to 10 V,

  • Data Acquisition Program MCANRI written in VC ++6.0, self-executing under Windows XP environment.

Field Programmable Gate Arrays (FPGA) technique has been successfully applied for development of a new MCA unit by means of logic-logic combination using the integrated software environment Max + plusII of Altera. This study creates a potential of low cost electronics module for gamma-ray spectrometers at Nuclear Research Institute, Dalat, Vietnam. In this study, we have designed, fabricated, tested and adjusted the new MCA module for technical parameters to meet requirements of practical applications. There are I/O ports allowing the FPGA entity to transfer external signals by each transaction either binary digits or TTL signals. It includes the following function elements: (i) A logic controller is responsible for the exchange of the question-response signals between MCD and ADC. (ii) Threshold conditions, peak detection, data output, port selection, and chip selection are carried out through a series of needed activities. This MCA module is properly interfacing to PC through LPT or USB port. Regarding software, an application program called MCANRI has been developed by the VC++6 compiler. This version of program contains almost basic functions required in radiation spectrum measurements, such as energy, efficiency calibrations, peak analysis, and timing parameter setup. In addition, it can be applied for data processing to test the technical characteristic parameters of the fabricated instrument and calculate the sufficient physics quantities in spectroscopy experiments measuring ionization radiation.

Abbreviations

ADC:

Analog to digital converter

DC:

Direct current

DIR:

Direction

FWHM:

Full-width half-maximum

I/O:

Input/Output

LLD:

Low level discrimination

MIO:

Memory input–output

PCL:

Port controlling link

PSEL:

Port selection

RSS:

Reference setup system

RW:

Read-write

SRAM:

Static random access memory

SUT:

System under test

ULD:

Upper level discrimination.

References

  1. ALTERA: MAX+PLUS II Programmable Logic Development System & Software, version 8.0. 1998.

  2. Analog Devices, Inc.: 5 V Single Supply 14-Bit 400 kSPS ADC, AD7899. 2001.

  3. Bolic M, Drndarevic V: Digital gamma-ray spectroscopy based on FPGA technology. NIM A 2002, 482: 761-766. 10.1016/S0168-9002(01)01925-8

  4. CAEN: Digital Pulse Processing in Nuclear Physics, Revision 2.1. 2008.

  5. CANBERRA: Genie 2000 Customization Tools Manual, Version 3.2. 2009.

  6. Hien DS, Lanh D: Quasi-symmetrical triangular output spectroscopy amplifier. XIII International symposium on Nuclear electronics, Varna, Bulgaria; 1988:353-355.

  7. Hien DS, Toshihiko S: Development of a fast flash ADC for nuclear spectroscopy system. NIM A 2001, 457: 356-360. 10.1016/S0168-9002(00)00752-X

  8. IAEA: X-ray and gamma ray standards for detector calibration, IAEA-TECDOC-619. 1991.

  9. IAEA: Test Procedure for Multichannel Analyzer Systems, Procedure Nº MRNI-514, REV. D0. 2008.

  10. Khang PD, Dien NN, Lanh D, Hai NX, Tuan PN, Hoa ND, Son NA: A design configuration of an FPGA-based coincident spectrometry system. J Anal Sci Methods Instrum 2013, 3: 158-162.

  11. Los Arcos JM, Garcia-Torano E: A new digital pulse height analysis method for radiation spectroscopy. Nucl Instr Meth Phys Res A 1994, 339: 99-101. 10.1016/0168-9002(94)91786-8

  12. ORTEC, CAMAC ADCs and Memories http://www.ortec-online.com/download/camac-adc-memory.pdf

  13. Redus R: Digital pulse processors: theory of operation, AN-DPP-001. 2009.

  14. XIA LLC: User’s Manual Digital Gamma Finder (DGF), DGF-4C Revision F, Version 4.03. 2009.

Download references

Acknowledgments

The author expresses grateful thanks to the Director, Nuclear Research Institute (NRI), Dalat, Vietnam for providing support and facility for carrying out this research project.

Author information

Correspondence to Dang Lanh.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors’ contributions

DL carried out the research work; PNS carried out software programming, and NAS carried out analysis and tests. Three authors read and approved the final manuscript.

Authors’ original submitted files for images

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Keywords

  • Field Programmable Gate Arrays (FPGA)
  • Differential nonlinearity (DNL)
  • Integral nonlinearity (INL)