CN110764447A - FPGA-based multi-path extensible sampling system and method - Google Patents
FPGA-based multi-path extensible sampling system and method Download PDFInfo
- Publication number
- CN110764447A CN110764447A CN201911021036.7A CN201911021036A CN110764447A CN 110764447 A CN110764447 A CN 110764447A CN 201911021036 A CN201911021036 A CN 201911021036A CN 110764447 A CN110764447 A CN 110764447A
- Authority
- CN
- China
- Prior art keywords
- fpga
- adc
- adc chip
- data
- chip
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Analogue/Digital Conversion (AREA)
Abstract
The invention relates to a multi-path extensible sampling system and a multi-path extensible sampling method based on an FPGA (field programmable gate array), wherein the multi-path extensible sampling system comprises an FPGA and at least one ADC (analog to digital converter) chip; the ADC conversion chip comprises: the device comprises a conversion starting control pin, a conversion finishing zone bit output pin, a multi-channel analog signal input pin, a data reading control pin and a parallel data output bus; the connection mode of the FPGA and the ADC chip is as follows: parallel data output buses of the ADC chip are collected into a group of buses and then are accessed into the FPGA, a conversion starting control pin and a data reading control pin are respectively collected and then are accessed into the FPGA, and a flag bit output pin and an ADC chip selection pin which are subjected to conversion are respectively accessed into the FPGA without collection processing; the FPGA controls the ADC chip to sample through a Finite State Machine (FSM) according to a control time sequence provided in the ADC chip number manual, and the sampling data is stored in a double-port RAM opened in the FPGA.
Description
Technical Field
The invention relates to the field of power electronic digital control, in particular to an electric multi-path extensible sampling system and method based on an FPGA (field programmable gate array).
Background
In a digital control system of power electronics, a voltage and current signal of equipment firstly passes through a conditioning circuit to obtain a voltage range which can be received by an analog/digital conversion chip (ADC chip), a corresponding digital signal is obtained after the conversion of the ADC chip, and finally, the operation and the output of a controller are realized. When one controller is adopted to realize centralized control of a plurality of devices, or control variables are too much, a single ADC chip is difficult to meet the sampling requirement.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The technical problem of the invention is solved: the defects of the prior art are overcome, the multi-path extensible sampling system and the multi-path extensible sampling method based on the FPGA are provided, the extension of the sampling system can be conveniently and rapidly realized, and the hardware can be adapted to the change with small change.
The technical scheme of the invention is as follows: a multi-path expandable sampling system and a method based on FPGA,
in a first aspect, a hardware architecture based on an FPGA and an ADC chip:
the system disclosed by the invention comprises an ADC chip and an FPGA which can simultaneously convert multi-path analog input into digital quantity. Wherein the ADC conversion chip generally comprises: the device comprises a conversion starting control pin, a conversion finishing zone bit output pin, a multi-channel analog signal input pin, an ADC chip selection pin, a data reading control pin and a parallel data output bus, wherein the device can also comprise an additional configuration pin according to different types of ADC chips, and the parallel data output bus can be 12bit, 14bit, 16bit and the like according to the precision of the ADC chips. The system may include 1 to N (N >1) ADC chips, the specific number of ADC chips depends on the number of analog samples and ADC chip signals. The connection mode of the FPGA and the ADC chip is as follows: parallel data output buses of the ADC chip are collected into a group of buses and then are accessed into the FPGA, a conversion start control pin and a data reading control pin are respectively collected and then are accessed into the FPGA, a conversion completion zone bit output pin and an ADC chip selection pin are respectively accessed into the FPGA without collection processing, and in addition, according to the type of the ADC chip, the ADC chip selection pin can also comprise some extra configuration pins which are respectively accessed into the FPGA after being respectively collected according to functions
In a second aspect, the FPGA controls the sampling and sampling data access mode of the ADC chip:
according to the control time sequence of the ADC chip, the sampling start and data reading of the ADC chip are controlled through a Finite State Machine (FSM), a double-port RAM is opened up inside the FPGA, a data bus of the RAM receives digital quantity converted by the ADC chip, a counter is driven by a sampling reading signal, a count value is mapped to an RAM address, a data reading control signal sent to the ADC chip by the FPGA is used as write-in enabling of the RAM, and data converted by the ADC chip is stored in the RAM.
Compared with the prior art, the invention has the advantages that:
(1) the invention provides a method for realizing a complete set of FPGA-based multi-path extensible sampling system from hardware design to software, and the extension of the sampling system can be conveniently and rapidly realized according to the hardware connection mode and the FPGA internal architecture.
(2) The invention solves the problem of controlling the simultaneous sampling of ultra-multipath AD, and provides a method for realizing a complete set of FPGA-based multipath extensible sampling system from hardware design to software.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
FIG. 1 illustrates a hardware connection diagram in accordance with an exemplary embodiment of the present disclosure;
FIG. 2 illustrates an FPGA implementation according to an exemplary embodiment of the present disclosure.
Detailed Description
The above and other features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
In the exemplary embodiment of the invention, a Cyclone3 series FPGA chip from Intel corporation is adopted, and an AD7656 chip from ADI corporation is used as an ADC chip. The ADC chip is configured in parallel mode by peripheral circuitry. The system comprises an FPGA chip S101, 3 AD7656 chips ADC 1S 102, ADC 2S 103 and ADC 3S 104. Referring to fig. 1, AD7656 chip ADC 1S 102, ADC 2S 103, and ADC 3S 104 have 16-bit parallel DATA output buses, bus bits with numbers from high to low are DB 15-DB 0, bus bits with corresponding numbers of 3-chip ADC chips are collected and then accessed to FPGA as collected bus AD _ DATA S105 in fig. 1, chip select lines AD _ CS1S 106, AD _ CS 2S 107, and AD _ CS 3S 108 of the 3-chip ADC are respectively accessed to FPGA, as shown in fig. 1, flag bit output pins AD1_ busy S109, AD2_ busy S110, and AD3_ busy S111 of the 3-chip ADC are respectively accessed to FPGA S101, AD _ RD S112 is accessed to FPGA S101 after ADC DATA reading control pins are collected, and AD _ convs 113 is counted to FPGA S101 after ADC conversion start control pins are collected.
The embodiment of the invention also comprises an implementation mode of FPGA S101 control. Referring to fig. 2, where IN fig. 2 is a system input port and OUT is a system output, the implementation of the FPGA S101 IN the exemplary embodiment of the present invention specifically includes 3 main portions: a finite state machine FSM S201, an address encoder S202 and a dual-port RAM S203. The FSM S201 is written according to the timing sequence of the ADC chip ADC 1S 102, ADC 2S 103, and ADC 3S 104 manual, and is responsible for controlling the start of ADC sampling, receiving the conversion completion signals AD1_ busy S215, AD1_ busy S216, AD1_ busy S217 of the ADC chip and outputting a read signal AD _ RD S205, and reading the sampling data of the three ADC chips ADC 1S 102, ADC 2S 103, and ADC 3S 104 by chip selection output AD _ CS1S206, AD _ CS 2S 207, and AD _ CS 3S 208; the principle of the address encoder S202 is: when receiving the AD conversion enable signal AD _ CONVSTx S204, the internal ADDRESS offset counter is cleared, the ADDRESS offset +1 is controlled by the rising edge of the AD _ RD signal S205, the current ADDRESS offset is mapped to an ADDRESS of the dual port RAM S203, the read DATA AD _ DATA S211 is written to the corresponding ADDRESS by the read signal AD _ RD S205 through the write port ADDRESS bus W _ ADDRESS S212 and the write port DATA bus DATA _ IN S213 of the dual port RAM S203 using the AD _ RD S205 as the write enable of the dual port RAM S203, and the read port of the dual port RAM S203 includes the read enable RDEN S209, the read port ADDRESS bus R _ ADDRESS S210, and the read port ADDRESS bus DATA _ OUT S214. In the present exemplary embodiment, the dual-port RAMS203 is generated by setting parameters using a tool in the Quartus II software, and determines the depth of the RAM according to the amount of data to be stored, thereby determining the number of bits of the address line used by the RAM S203. In this embodiment, since 18 pieces of data are required to be stored, the address width is 5 bits.
In the exemplary embodiment, the reason why the write port of the RAM S203 drives the clock clk S217 and the read clock rd _ clkS218, and the write clock and the read clock are configured separately is that the write port and the read port of the dual-port RAM S203 can operate at different frequencies, thereby increasing the versatility of the whole sampling system.
The number of ADC chips in the system is expanded by using the same connection mode, and the expansion of the sampling system can be realized by simply modifying the internal implementation mode of the FPGA, so that the requirement of the system on multi-path sampling is met.
Claims (5)
1. A multi-path extensible sampling system based on FPGA is characterized by comprising: a FPGA and at least one ADC chip; each ADC conversion chip comprises: the device comprises a conversion starting control pin, a conversion finishing zone bit output pin, a multi-channel analog signal input pin, an ADC chip selection pin, a data reading control pin and a parallel data output bus; the connection mode of the FPGA and the ADC chip is as follows: parallel data output buses of the ADC chip are collected into a group of buses and then are accessed into the FPGA, and a conversion starting control pin and a data reading control pin are respectively collected and then are accessed into the FPGA; the conversion completion flag bit output pin and the ADC chip selection pin of each ADC chip are respectively connected to the FPGA without collecting; and the FPGA controls the ADC chip to sample and sample data to be accessed.
2. The FPGA-based multi-way scalable sampling system of claim 1, wherein: the FPGA comprises a state machine (FSM), an address encoder and a double-port RAM (random access memory) which are compiled according to the time sequence of an ADC (analog to digital converter) chip, the FPGA controls the ADC chip to sample and sample data to be accessed, and the specific mode is as follows: according to a control time sequence provided in a data manual of an ADC chip, a Finite State Machine (FSM) is used for controlling the starting of sampling and data reading of the ADC chip, a double-port RAM is opened up in an FPGA, a data bus of the RAM receives digital quantity converted by the ADC chip, a counter is driven by using a sampling reading signal, a count value is mapped to a double-port RAM address, a data reading control signal sent to the ADC chip by the FPGA is used as the write-in enabling of the double-port RAM, and data converted by the ADC chip is stored in the double-port RAM by using an address generated by an address encoder; and accessing the dual-port RAM to obtain the sampling data stored in different addresses.
3. The FPGA-based multi-way scalable sampling system of claim 1, wherein: the ADC chip can also comprise some additional configuration pins according to different models, and the configuration pins are respectively collected according to functions and then are respectively connected to the FPGA; meanwhile, the data buses are parallelly output to be 12 bits, 14 bits and 16 bits according to the precision of the ADC chip.
4. The FPGA-based multi-way scalable sampling system of claim 1, wherein: the ADC chip comprises 1 to N pieces, wherein N is more than 1; the number of ADC chips is expanded at will according to needs, and a large amount of IO (input/output) resources of the FPGA cannot be occupied due to expansion of the parallel bus.
5. A multi-path extensible sampling method based on FPGA is characterized in that: the FPGA controls the ADC chip to sample and sample data to be accessed, and the process is as follows: according to a control time sequence provided in a data manual of an ADC chip, a Finite State Machine (FSM) is used for controlling the starting and data reading of sampling of the ADC chip, a double-port RAM is opened up inside an FPGA, a data bus of the RAM receives data converted by the ADC chip, a counter is driven by a sampling reading signal, a count value is mapped to an address of the double-port RAM, the sampling reading signal is used as a write-in enable of the double-port RAM, and the data converted by the ADC chip is stored in the double-port RAM; and accessing the dual-port RAM to obtain the sampling data stored in different addresses.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911021036.7A CN110764447A (en) | 2019-10-25 | 2019-10-25 | FPGA-based multi-path extensible sampling system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911021036.7A CN110764447A (en) | 2019-10-25 | 2019-10-25 | FPGA-based multi-path extensible sampling system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110764447A true CN110764447A (en) | 2020-02-07 |
Family
ID=69333815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911021036.7A Pending CN110764447A (en) | 2019-10-25 | 2019-10-25 | FPGA-based multi-path extensible sampling system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110764447A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE3231544A1 (en) * | 1982-08-25 | 1984-03-01 | Gewerkschaft Eisenhütte Westfalia, 4670 Lünen | Electrohydraulic control arrangement for a cutter shield |
CN101364097A (en) * | 2008-09-22 | 2009-02-11 | 中国兵器工业第二〇六研究所 | High real-time multichannel data acquisition system |
CN101615010A (en) * | 2009-07-17 | 2009-12-30 | 西安电子科技大学 | Multi-path data acquiring system based on FPGA |
CN102023808A (en) * | 2010-12-07 | 2011-04-20 | 北京理工大学 | Multi-channel synchronous data acquisition card |
CN202019349U (en) * | 2010-12-20 | 2011-10-26 | 四川九洲电器集团有限责任公司 | Multipath parallel high-speed analog/digital (A/D) sampling circuit board based on low cost |
CN103078641A (en) * | 2013-01-17 | 2013-05-01 | 陕西北斗恒通信息科技有限公司 | Multichannel anti-interference digital sampling device |
CN104980156A (en) * | 2015-05-21 | 2015-10-14 | 熊猫电子集团有限公司 | Field programmable gate array (FPGA) based high-speed analog-digital converter (ADC) synchronous acquisition system |
CN105811983A (en) * | 2016-03-03 | 2016-07-27 | 长沙威胜信息技术有限公司 | Multi-loop analog quantity synchronization sampling circuit and sampling method for metering devices |
CN109408434A (en) * | 2018-09-03 | 2019-03-01 | 上海威固信息技术股份有限公司 | A kind of multipath high-speed AD data acquisition and storage system based on FPGA |
-
2019
- 2019-10-25 CN CN201911021036.7A patent/CN110764447A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE3231544A1 (en) * | 1982-08-25 | 1984-03-01 | Gewerkschaft Eisenhütte Westfalia, 4670 Lünen | Electrohydraulic control arrangement for a cutter shield |
CN101364097A (en) * | 2008-09-22 | 2009-02-11 | 中国兵器工业第二〇六研究所 | High real-time multichannel data acquisition system |
CN101615010A (en) * | 2009-07-17 | 2009-12-30 | 西安电子科技大学 | Multi-path data acquiring system based on FPGA |
CN102023808A (en) * | 2010-12-07 | 2011-04-20 | 北京理工大学 | Multi-channel synchronous data acquisition card |
CN202019349U (en) * | 2010-12-20 | 2011-10-26 | 四川九洲电器集团有限责任公司 | Multipath parallel high-speed analog/digital (A/D) sampling circuit board based on low cost |
CN103078641A (en) * | 2013-01-17 | 2013-05-01 | 陕西北斗恒通信息科技有限公司 | Multichannel anti-interference digital sampling device |
CN104980156A (en) * | 2015-05-21 | 2015-10-14 | 熊猫电子集团有限公司 | Field programmable gate array (FPGA) based high-speed analog-digital converter (ADC) synchronous acquisition system |
CN105811983A (en) * | 2016-03-03 | 2016-07-27 | 长沙威胜信息技术有限公司 | Multi-loop analog quantity synchronization sampling circuit and sampling method for metering devices |
CN109408434A (en) * | 2018-09-03 | 2019-03-01 | 上海威固信息技术股份有限公司 | A kind of multipath high-speed AD data acquisition and storage system based on FPGA |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1086465B1 (en) | Method and apparatus for a serial access memory | |
KR100393217B1 (en) | Memory module having control circuit for operating memory devices and data buffer by same clock frequency | |
US5062109A (en) | Memory tester | |
WO1994008399A1 (en) | Arrangement for parallel programming of in-system programmable ic logic devices | |
JPH01147385A (en) | Device for structural insection of integrated circuit | |
US4656614A (en) | Multiple simultaneous access memory | |
US8218388B2 (en) | Read circuit for semiconductor memory device and semiconductor memory device | |
US4395765A (en) | Multiport memory array | |
CN110764447A (en) | FPGA-based multi-path extensible sampling system and method | |
CN114113802B (en) | Test circuit, test device and test method thereof | |
CN110097902B (en) | Read-write control module and method for same port and dual-port memory | |
US7117394B2 (en) | Built-in self-test circuit | |
EP0147103B1 (en) | Mos implementation of shift register latch | |
US11402431B2 (en) | Detection circuit and detection method | |
CN111627481A (en) | Word line decoding circuit, word line gating method, memory and electronic equipment | |
US6104728A (en) | Device for selecting address words by demultiplex decoding | |
US6567970B1 (en) | PLD configuration architecture | |
CN114489476B (en) | Flash memory data acquisition device and method based on FPGA | |
CN113704115B (en) | Problem positioning method and device for system development and computer equipment | |
JP3909509B2 (en) | Serial interface circuit | |
CN112650468B (en) | Zero-delay FIFO circuit and electronic equipment | |
CN117908455A (en) | Multichannel data acquisition control panel based on STM32 and FPGA | |
CN102568581A (en) | Progressive decoder suitable for programmable memorizers | |
US5592681A (en) | Data processing with improved register bit structure | |
JPS60100250A (en) | Integrated circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200207 |
|
WD01 | Invention patent application deemed withdrawn after publication |