CN103345238B - Voltage output circuit with configurable network - Google Patents
Voltage output circuit with configurable network Download PDFInfo
- Publication number
- CN103345238B CN103345238B CN201310325878.8A CN201310325878A CN103345238B CN 103345238 B CN103345238 B CN 103345238B CN 201310325878 A CN201310325878 A CN 201310325878A CN 103345238 B CN103345238 B CN 103345238B
- Authority
- CN
- China
- Prior art keywords
- circuit
- voltage
- signal
- output
- output terminal
- 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.)
- Expired - Fee Related
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Logic Circuits (AREA)
Abstract
网络可配置电压输出电路,属于电子电路技术领域。解决了现有电压输出电路无法实现远程调试与配置内容无法进行远程修改的问题。本发明的网络接口的数据输入输出端连接网络控制电路的数据输入输出端,网络控制电路的二号数据输入输出端连接单片机电路的数据输入输出端,单片机电路的二号数据输入输出端连接FPGA控制电路数据输入输出端,单片机电路的地址信号输出端连接FPGA控制电路的地址信号输入端,单片机电路的写信号输出端连接FPGA控制电路写信号输入端,FPGA控制电路的电压控制信号输出与电压信号输入端连接电压输出电路的电压控制信号输入与电压信号输出端。本发明适用于电子电路技术领域。
A network configurable voltage output circuit belongs to the technical field of electronic circuits. It solves the problem that the existing voltage output circuit cannot realize remote debugging and the configuration content cannot be modified remotely. The data input and output terminals of the network interface of the present invention are connected to the data input and output terminals of the network control circuit, the No. 2 data input and output terminals of the network control circuit are connected to the data input and output terminals of the single-chip circuit, and the No. 2 data input and output terminals of the single-chip circuit are connected to the FPGA The data input and output terminals of the control circuit, the address signal output terminal of the single-chip circuit is connected to the address signal input terminal of the FPGA control circuit, the write signal output terminal of the single-chip circuit is connected to the write signal input terminal of the FPGA control circuit, and the voltage control signal output of the FPGA control circuit is connected to the voltage The signal input end is connected to the voltage control signal input and the voltage signal output end of the voltage output circuit. The invention is applicable to the technical field of electronic circuits.
Description
技术领域technical field
本发明属于电子电路技术领域。The invention belongs to the technical field of electronic circuits.
背景技术Background technique
通用化作为模块设计的发展趋势,其关键技术的其中之一就是网络化技术的应用。以因特网为代表的网络技术的出现以及它与其他高新科技的相互结合,不仅己开始将智能互联网产品带入现代生活,而且也为测量与仪器技术带来了前所未有的发展空间和机遇,网络化测量技术与具备网络功能的设备应运而生。网络化技术的应用大大提高了设备控制的灵活性,但是现有电压输出电路不能进行远程调试与配置内容无法远程修改的问题。Generalization is the development trend of modular design, and one of its key technologies is the application of network technology. The emergence of network technology represented by the Internet and its combination with other high-tech has not only brought intelligent Internet products into modern life, but also brought unprecedented development space and opportunities for measurement and instrument technology. Measurement technology and network-enabled devices have emerged. The application of network technology has greatly improved the flexibility of equipment control, but the existing voltage output circuit cannot be remotely debugged and the configuration content cannot be remotely modified.
发明内容Contents of the invention
本发明为了解决现有电压输出电路无法实现远程调试与配置内容无法远程修改的问题,提出了一种网络可配置电压输出电路。In order to solve the problem that the existing voltage output circuit cannot realize remote debugging and configuration content cannot be modified remotely, the present invention proposes a network configurable voltage output circuit.
本发明所述网络可配置电压输出电路,该电路包括网络接口、网络控制电路、单片机电路、FPGA控制电路、外部存储器和电压输出电路;The network configurable voltage output circuit of the present invention includes a network interface, a network control circuit, a single-chip microcomputer circuit, an FPGA control circuit, an external memory and a voltage output circuit;
网络接口的数据输入输出端连接网络控制电路的数据输入输出端,网络控制电路的二号数据输入输出端连接单片机电路的数据输入输出端,单片机电路的二号数据输入输出端连接FPGA控制电路数据输入输出端,单片路的地址信号输出端连接FPGA控制电路的地址信号输入端,单片机电路的写信号输出端连接FPGA控制电路写信号输入端,单片机电路的读信号输出端连接FPGA控制电路的读信号输入端,FPGA控制电路的电压控制信号输出与电压信号输入端连接电压输出电路的电压控制信号输入与电压信号输出端;本发明经网络接口进行控制信息的传递,再经单片机电路与FPGA控制电路,实现对电压输出电路输出电压的控制,最终实现对输出电压的远程控制和配置内容的远程修改The data input and output terminals of the network interface are connected to the data input and output terminals of the network control circuit, the No. 2 data input and output terminals of the network control circuit are connected to the data input and output terminals of the single-chip circuit, and the No. 2 data input and output terminals of the single-chip circuit are connected to the FPGA control circuit data Input and output terminals, the address signal output terminal of the single-chip circuit is connected to the address signal input terminal of the FPGA control circuit, the write signal output terminal of the single-chip circuit is connected to the write signal input terminal of the FPGA control circuit, and the read signal output terminal of the single-chip circuit is connected to the FPGA control circuit. Read the signal input end, the voltage control signal output of the FPGA control circuit and the voltage signal input end are connected to the voltage control signal input and the voltage signal output end of the voltage output circuit; The control circuit realizes the control of the output voltage of the voltage output circuit, and finally realizes the remote control of the output voltage and the remote modification of the configuration content
附图说明Description of drawings
图1为本发明所述网络可配置电压输出电路的结构示意图;FIG. 1 is a schematic structural diagram of a network configurable voltage output circuit according to the present invention;
图2为具体实施方式三所述状态机跳转示意图;FIG. 2 is a schematic diagram of state machine jumps described in Embodiment 3;
图3为具体实施方式二所述的FPGA控制电路的结构示意图。FIG. 3 is a schematic structural diagram of the FPGA control circuit described in the second embodiment.
具体实施方式Detailed ways
具体实施方式一、结合图1说明本实施方式,本实施方式所述网络可配置电压输出电路,该电路包括网络接口1、网络控制电路2、单片机电路3、FPGA控制电路4和电压输出电路6;Specific Embodiments 1. This embodiment is described in conjunction with FIG. 1. The network configurable voltage output circuit described in this embodiment includes a network interface 1, a network control circuit 2, a single-chip microcomputer circuit 3, an FPGA control circuit 4 and a voltage output circuit 6. ;
网络接口1的数据输入输出端连接网络控制电路2的数据输入输出端,网络控制电路2的二号数据输入输出端连接单片机电路3的数据输入输出端,单片机电路3的二号数据输入输出端连接FPGA控制电路4数据输入输出端,单片机电路3的地址信号输出端连接FPGA控制电路4的地址信号输入端,单片机电路3的写信号输出端连接FPGA控制电路4写信号输入端,单片机电路3的读信号输出端连接FPGA控制电路4的读信号输入端,FPGA控制电路4的电压控制信号输出与电压信号输出端连接电压输出电路6的电压控制信号输入与电压信号输入端。The data input and output terminals of the network interface 1 are connected to the data input and output terminals of the network control circuit 2, the No. 2 data input and output terminals of the network control circuit 2 are connected to the data input and output terminals of the microcontroller circuit 3, and the No. 2 data input and output terminals of the microcontroller circuit 3 Connect the data input and output ends of the FPGA control circuit 4, the address signal output end of the single-chip microcomputer circuit 3 is connected to the address signal input end of the FPGA control circuit 4, the write signal output end of the single-chip microcomputer circuit 3 is connected to the write signal input end of the FPGA control circuit 4, and the single-chip microcomputer circuit 3 The read signal output end of the FPGA control circuit 4 is connected to the read signal input end of the FPGA control circuit 4, and the voltage control signal output and the voltage signal output end of the FPGA control circuit 4 are connected to the voltage control signal input and the voltage signal input end of the voltage output circuit 6.
本实施方式所述电路调试方便,只需要一根网线与个人计算机相连接即可完成,使用者可以方便的对电路进行控制和功能配置。The debugging of the circuit described in this embodiment is convenient, and it only needs to be connected with a personal computer through a network cable, and the user can conveniently control and configure the functions of the circuit.
具体实施方式二、结合图2说明本实施方式,本实施方式是对具体实施方式一述的网络可配置电压输出电路的进一步说明,FPGA控制电路4由译码模块和DAC控制模块组成;Specific embodiment two, this embodiment is described in conjunction with Fig. 2, and this embodiment is a further description of the network configurable voltage output circuit described in the specific embodiment one, FPGA control circuit 4 is made up of decoding module and DAC control module;
单片机电路3的二号数据输入输出端连接译码模块4-1数据输入输出端,单片机电路3的地址信号输出端连接译码模块4-1的地址信号输入端,单片机电路3的写信号输出端连接译码模块(4-1)写信号输入端,单片机电路3的读信号输出端连接译码模块4-1的读信号输入端,译码模块4-1的译码信号输出与编码信号输入端连接DAC控制模块4-2的译码信号输入与编码信号输出端;DAC控制模块4-2的数据选择信号输出端连接电压输出电路6的数据选择信号输入端,DAC控制模块4-2的串行数据输出端连接电压输出电路6的串行数据输入端,DAC控制模块4-2的更新电压通道信号输出端连接电压输出电路6的更新电压通道信号输入端,DAC控制模块4-2的加载DAC缓存寄存器信号输出端连接电压输出电路6的加载DAC缓存寄存器信号输入端,DAC控制模块4-2的使能信号输出端连接电压输出电路6的使能信号输入端,DAC控制模块4-2的具体通道号信号输出端连接电压输出电路6具体通道号信号输入端,DAC控制模块4-2的选择通道号信号输出端连接电压输出电路6选择通道号信号输入端。The No. 2 data input and output terminal of the single-chip circuit 3 is connected to the data input and output terminal of the decoding module 4-1, the address signal output terminal of the single-chip circuit 3 is connected to the address signal input terminal of the decoding module 4-1, and the write signal output of the single-chip circuit 3 End connects decoding module (4-1) write signal input end, the reading signal output end of single-chip circuit 3 connects the reading signal input end of decoding module 4-1, the decoding signal output of decoding module 4-1 and coding signal The input end is connected to the decoding signal input and the encoding signal output end of the DAC control module 4-2; the data selection signal output end of the DAC control module 4-2 is connected to the data selection signal input end of the voltage output circuit 6, and the DAC control module 4-2 The serial data output end of the DAC control module 4-2 is connected to the serial data input end of the voltage output circuit 6, the update voltage channel signal output end of the DAC control module 4-2 is connected to the update voltage channel signal input end of the voltage output circuit 6, and the DAC control module 4-2 The loading DAC buffer register signal output end of the voltage output circuit 6 is connected to the loading DAC buffer register signal input end of the voltage output circuit 6, the enable signal output end of the DAC control module 4-2 is connected to the enable signal input end of the voltage output circuit 6, and the DAC control module 4 The specific channel number signal output terminal of -2 is connected to the specific channel number signal input terminal of the voltage output circuit 6, and the channel selection signal output terminal of the DAC control module 4-2 is connected to the voltage output circuit 6 selection channel number signal input terminal.
FPGA通过数据线DATA、地址线ADDR、读写控制线RD和WR,与单片机电路进行数据交互。单片机电路负责接收和发送网络数据到地址线上,译码逻辑根据输入的地址信号,在写信号有效时,将数据线上的数据存储到配置寄存器中,同理,根据地址与读信号将配置寄存器中的数据传递到单片机电路。The FPGA communicates with the microcontroller circuit through the data line DATA, the address line ADDR, and the read and write control lines RD and WR. The single-chip microcomputer circuit is responsible for receiving and sending network data to the address line. The decoding logic stores the data on the data line into the configuration register when the write signal is valid according to the input address signal. Similarly, according to the address and read signal, the configuration The data in the register is passed to the microcontroller circuit.
具体实施方式三、本实施方式是对具体实施方式二所述的网络可配置电压输出电路的进一步说明,该电路还包括外部存储器5,FPGA控制电路4的外部数据信号输入输出端端连接外部存储器5的读写信号端。Specific embodiment three, this embodiment is a further description of the network configurable voltage output circuit described in specific embodiment two, the circuit also includes an external memory 5, and the external data signal input and output terminals of the FPGA control circuit 4 are connected to the external memory 5 read and write signal terminal.
FPGA控制电路通过译码逻辑,将单片机电路提取的网络数据进行功能配置,将配置信息存储到外部存储器,控制模拟电压输出。The FPGA control circuit performs functional configuration on the network data extracted by the single-chip circuit through the decoding logic, stores the configuration information in the external memory, and controls the analog voltage output.
具体实施方式四、结合图3说明本实施方式,本实施方式是对具体实施方式二所述的网络可配置电压输出电路的进一步说明,DAC控制模块4-2采用状态机的跳转实现逻辑控制,所述状态机包括4个状态:空闲状态、选择状态、控制状态机和并行转串行状态;空闲状态,对DAC控制模块4-2进行复位,当检测到开始转换信号Startflag==1&&Start==1时,跳转到数据选择状态;Embodiment 4. This embodiment is described in conjunction with FIG. 3. This embodiment is a further description of the network configurable voltage output circuit described in Embodiment 2. The DAC control module 4-2 implements logic control by using state machine jumps , the state machine includes 4 states: idle state, selection state, control state machine and parallel-to-serial state; idle state, DAC control module 4-2 is reset, when detecting start conversion signal Startflag==1&&Start= =1, jump to the data selection state;
数据选择状态,数据选择状态根据译码模块4-1译码获得的电压通道选择信号,选择电压通道号,当检测具体通道号选择完成,状态机跳转到并行转串行状态;Data selection state, the data selection state selects the voltage channel number according to the voltage channel selection signal decoded by the decoding module 4-1, when the selection of the specific channel number is detected, the state machine jumps to the parallel to serial state;
并行转串行状态,将并行数据转换为串行输出,当检测到串行输出完成后,状态机跳转到控制状态;Parallel to serial state, converting parallel data to serial output, when the serial output is detected, the state machine jumps to the control state;
控制状态,输出电压通道更新信号和加载DAC缓存寄存器信号,改变输出通道号,当检测所有通道输出完毕命令Start==0后,状态机跳转到空闲状态,否则跳转到数据选择状态。Control state, output voltage channel update signal and load DAC buffer register signal, change the output channel number, when all channels are detected to output the command Start==0, the state machine jumps to the idle state, otherwise jumps to the data selection state.
具体实施方式五、本实施方式是对具体实施方式一所述的网络可配置电压输出电路的进一步说明,单片机电路3采用AVR单片机电路ATmega128实现。Embodiment 5. This embodiment is a further description of the network configurable voltage output circuit described in Embodiment 1. The single-chip microcomputer circuit 3 is realized by an AVR single-chip microcomputer circuit ATmega128.
具体实施方式六、本实施方式是对具体实施方式一所述的网络可配置电压输出电路的进一步说明,网络控制电路2采用W5100芯片实现。Embodiment 6. This embodiment is a further description of the network configurable voltage output circuit described in Embodiment 1. The network control circuit 2 is implemented using a W5100 chip.
网络控制电路使用W5100能够实现网络协议数据的发送与提取,即实现TCP/IP协议;单片机电路负责将网络数据从W5100的数据缓冲区读出,发送给FPGA,同时也能够将数据通过W5100发送到外部网络。The network control circuit uses W5100 to realize the transmission and extraction of network protocol data, that is, to realize the TCP/IP protocol; the single-chip circuit is responsible for reading the network data from the data buffer of W5100 and sending it to FPGA, and at the same time, it can also send the data to External network.
单片机电路与W5100的通讯使用单片机电路的SPI接口实现,单片机电路启动后首先初始化各个端口,包括SPI接口,然后通过配置W5100芯片的寄存器,包括设备的物理地址、默认网关、子网掩码等信息,用于实现网络设备的物理连接。The communication between the single-chip circuit and W5100 is realized by the SPI interface of the single-chip circuit. After the single-chip circuit is started, each port is initialized first, including the SPI interface, and then the registers of the W5100 chip are configured, including the physical address of the device, the default gateway, and the subnet mask. , used to realize the physical connection of network devices.
单片机电路与FPGA的数据交互使用八位数据线、地址线,以及读写控制信号线,通过FPGA控制电路对总线译码实现数据交互。除了总线译码逻辑,FPGA控制电路还包括外部存储器控制逻辑与电压输出控制逻辑。The data interaction between the microcontroller circuit and the FPGA uses eight-bit data lines, address lines, and read and write control signal lines, and the bus is decoded by the FPGA control circuit to realize data interaction. In addition to the bus decoding logic, the FPGA control circuit also includes external memory control logic and voltage output control logic.
单片机加电后初始化单片机,通过控制SPI接口初始化W5100芯片,包括物理地址、网关、子网掩码、IP地址设置,以及使用的Socket设置等。然后通过判断W5100中断寄存器内部中断类型,单片机执行相应的操作。After the MCU is powered on, the MCU is initialized, and the W5100 chip is initialized by controlling the SPI interface, including physical address, gateway, subnet mask, IP address settings, and Socket settings used. Then by judging the internal interrupt type of the W5100 interrupt register, the single-chip microcomputer performs the corresponding operation.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310325878.8A CN103345238B (en) | 2013-07-31 | 2013-07-31 | Voltage output circuit with configurable network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310325878.8A CN103345238B (en) | 2013-07-31 | 2013-07-31 | Voltage output circuit with configurable network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103345238A CN103345238A (en) | 2013-10-09 |
| CN103345238B true CN103345238B (en) | 2015-08-19 |
Family
ID=49280041
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310325878.8A Expired - Fee Related CN103345238B (en) | 2013-07-31 | 2013-07-31 | Voltage output circuit with configurable network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103345238B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1233328A2 (en) * | 2001-02-16 | 2002-08-21 | Nallatech, Ltd. | Programmable power supply for field programmable gate array modules |
| CN101957410A (en) * | 2010-09-03 | 2011-01-26 | 尹东山 | Personal laboratory system integrating device |
| CN201837866U (en) * | 2010-10-09 | 2011-05-18 | 无锡市同舟电子实业有限公司 | Modular power source capable of adjusting voltage output |
| CN102346464A (en) * | 2011-06-14 | 2012-02-08 | 武汉科技大学 | 0-20mA or 4-20mA direct current analog quantity output device |
| CN203025276U (en) * | 2012-12-28 | 2013-06-26 | 江长海 | Tester of capacitive touch screen module |
-
2013
- 2013-07-31 CN CN201310325878.8A patent/CN103345238B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1233328A2 (en) * | 2001-02-16 | 2002-08-21 | Nallatech, Ltd. | Programmable power supply for field programmable gate array modules |
| CN101957410A (en) * | 2010-09-03 | 2011-01-26 | 尹东山 | Personal laboratory system integrating device |
| CN201837866U (en) * | 2010-10-09 | 2011-05-18 | 无锡市同舟电子实业有限公司 | Modular power source capable of adjusting voltage output |
| CN102346464A (en) * | 2011-06-14 | 2012-02-08 | 武汉科技大学 | 0-20mA or 4-20mA direct current analog quantity output device |
| CN203025276U (en) * | 2012-12-28 | 2013-06-26 | 江长海 | Tester of capacitive touch screen module |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103345238A (en) | 2013-10-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105388805B (en) | Measurement and Control System based on spi bus | |
| CN103916116A (en) | Interface level switch device | |
| CN101639669A (en) | Power switching circuit | |
| CN211427119U (en) | Multifunctional single-wire control integrated circuit and test system | |
| CN201335959Y (en) | Multi-channel digital switch signal controller | |
| WO2013104149A1 (en) | Power supply device, method for managing power supply thereof and wireless communication terminal | |
| CN205301889U (en) | Interface circuit is mixed to digifax suitable for multiple interface type sensor | |
| CN102637453A (en) | Phase change memory including serial input/output interface | |
| CN208873142U (en) | A kind of FPGA development board | |
| CN103345238B (en) | Voltage output circuit with configurable network | |
| CN203299323U (en) | Cable alignment device | |
| CN204990234U (en) | Many system control device based on touch -sensitive screen | |
| CN107305526A (en) | A kind of debugger for microcontroller | |
| CN105472782B (en) | A kind of wireless communication terminal | |
| CN205158342U (en) | A HDMI interface multiplexing realization circuit | |
| CN202720638U (en) | Serial conversion circuit | |
| CN103412845B (en) | A kind of serial bus system | |
| CN211656123U (en) | Level conversion circuit and household electrical appliance | |
| CN204302969U (en) | The USB/RS232-CAN translation debugging device of various configurations mode | |
| CN106785700A (en) | Carry the collector of built-in sensors | |
| CN201623714U (en) | Bidirectional communication circuit | |
| CN101256438A (en) | Computer ATX power supply with enable console | |
| CN105259843B (en) | A kind of outlet logic circuit of reactive-load compensation intelligent controlling device | |
| CN202956889U (en) | Intelligent remote-control double-direction split joint control system | |
| CN201207160Y (en) | ATX power source of computer having enabled control terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150819 |