CN105159206A - Analog quantity peripheral interface - Google Patents
Analog quantity peripheral interface Download PDFInfo
- Publication number
- CN105159206A CN105159206A CN201510698129.9A CN201510698129A CN105159206A CN 105159206 A CN105159206 A CN 105159206A CN 201510698129 A CN201510698129 A CN 201510698129A CN 105159206 A CN105159206 A CN 105159206A
- Authority
- CN
- China
- Prior art keywords
- analog
- peripheral interface
- voltage
- chip
- conversion 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.)
- Granted
Links
- 230000002093 peripheral effect Effects 0.000 title claims abstract description 49
- 238000006243 chemical reaction Methods 0.000 claims abstract description 62
- 238000005070 sampling Methods 0.000 claims description 19
- 238000005086 pumping Methods 0.000 claims description 6
- 101100162020 Mesorhizobium japonicum (strain LMG 29417 / CECT 9101 / MAFF 303099) adc3 gene Proteins 0.000 description 11
- 101100015484 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GPA1 gene Proteins 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000010276 construction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000002459 sustained effect Effects 0.000 description 3
- 101150042711 adc2 gene Proteins 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 101100067427 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FUS3 gene Proteins 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
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
- G05B19/0423—Input/output
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 an analog quantity peripheral interface, comprising: the analog quantity output module comprises: a first digital-to-analog conversion chip; and an analog input module comprising: the analog-to-digital conversion circuit comprises a first analog-to-digital conversion chip and a multi-channel analog channel selection switch connected to an analog quantity input end of the first analog-to-digital conversion chip; through the configuration of the first digital-to-analog conversion chip and/or the configuration of the first analog-to-digital conversion chip and the multi-channel analog channel selection switch, switching between different analog quantity outputs and/or different analog quantity inputs is realized. The peripheral interface of the invention is used as a universal interface, can be simultaneously used for inputting and outputting various analog quantities, and simply and conveniently switches the analog quantity circuit, thereby realizing the generalization of the peripheral interface.
Description
Technical field
The present invention relates to a kind of Universal peripheral interface, be specifically related to a kind of analog quantity Peripheral Interface.
Background technology
In the control system of air-conditioning, often need to do analog input and output function, with to outside analog acquisition with power to external sensor.Such as, adopt analog input/output module, for the detection to analog signals, and the analog output to equipment such as variable valve.Particularly, such as, by RS485 communication interface, the input of inner parameter and the output etc. of control signal is realized.
Usually, analog input signal is used for doing analog acquisition, and analog input type has: 0 ~ 10V samples, and 4 ~ 20mA samples, and temperature sampling.And analog output type has: 0 ~ 10V exports and 4 ~ 20mA exports.Have two kinds of output circuits for what realize analog output, analog input then have four kinds of testing circuits.Different engineerings may have dissimilar circuit, and such as, exporting analog quantity type has different units, and the detector unit specifically used is also different.Thus cause different units to need to develop different corresponding testing circuits, the universalization of control circuit PCB cannot be realized, cause mainboard not fix further, be unfavorable for the universalization of hardware development.
Therefore, be necessary to provide a kind of analog quantity Peripheral Interface, realize the universalization of PCB.
Summary of the invention
The present invention proposes in view of the above-mentioned problems in the prior art.The invention provides a kind of analog quantity Peripheral Interface, simultaneously for the input and output of multiple analog amount, analog quantity circuit can be switched simply and easily, thus realize the universalization of Peripheral Interface, and realize the universalization of control circuit further.
According to a kind of analog quantity Peripheral Interface of the present invention, comprising: analog output module, comprising: the first analog-digital chip; And Analog input mModule, comprising: the first modulus conversion chip and be connected to the multi-channel analog channel selector switch of analog input end of described first modulus conversion chip; Through to the configuration of described first analog-digital chip and/or the configuration to described first modulus conversion chip and multi-channel analog channel selector switch, realize switching between different analog outputs and/or different analog inputs.
Further, realize switching between different analog outputs and/or different analog inputs, comprising: switch the voltage of preset range and/or the analog output of electric current; And/or, switch the analog input of the voltage of preset range, electric current and/or temperature sampling.
Further, wherein, analog output module realizes 0 ~ 10V analog output and/or 0 ~ 20mA analog output; And/or Analog input mModule realizes 0 ~ 10V analog input, 0 ~ 20mA analog input, temperature sampling.
Further, wherein, the Serial Peripheral Interface (SPI) of the first analog-digital chip is configured, makes the voltage output end mouth (VOUT) of the first analog-digital chip export the variable voltage signal of 0 ~ 10V.
Further, wherein, described analog output module comprises operational amplifier (U1), and its in-phase input end is electrically connected to the described voltage output end mouth (VOUT) of described first analog-digital chip.
Further, wherein, the Serial Peripheral Interface (SPI) of the first analog-digital chip is configured, makes the current output terminal mouth (IOUT) of described first analog-digital chip export the variable current signal of 0 ~ 20mA.
Further, wherein, described analog output module also comprises the low-power consumption be connected between the described current output terminal mouth (IOUT) of described first analog-digital chip and pumping voltage port and improves circuit.
Further, wherein, described low-power consumption improves circuit and is made up of triode (Q), resistance and fly-wheel diode (D); And pumping voltage port is connected to the collector of described triode (Q), the current output terminal mouth (IOUT) of described first analog-digital chip is connected to the base stage of triode (Q) and one end of resistance (R), the emitter of triode (Q) is connected to the other end of resistance (R) and the anode of fly-wheel diode (D), and the negative electrode of fly-wheel diode (D) is connected to the voltage output end mouth (VOUT) of described first analog-digital chip.
Further, wherein, when the input of collecting temperature sensor, by the configuration output drive electric current of the first modulus conversion chip peripheral interface to internal register, this exciting current is powered to temperature sensor via described multi-channel analog channel selector switch; The magnitude of voltage that temperature sensor produces is sent to again the first analog input end (AIN5) of this first modulus conversion chip by this multi-channel analog channel selector switch.
Further, wherein, described first modulus conversion chip comprises: inside is integrated with programmable gain amplifier PGA, changes, to complete temperature sensor temperature sampling after being amplified by the described magnitude of voltage collected again.
Further, wherein, when carrying out another temperature sensor analog acquisition, by the first modulus conversion chip peripheral interface to the configuration of internal register, output reference voltage is powered to temperature sensor, the pressure drop of generation is passed to the second analog input port (AIN0) of the first modulus conversion chip, and by the multi-channel analog channel selector switch front voltage that the first analog input port (AIN5) of the first modulus conversion chip collects, to obtain temperature sensor analog quantity.
Further, wherein, described Analog input mModule comprises: first, second resistance (R4, R6); And when carrying out 0 ~ 10V voltage acquisition, by first and second resistance (R4, R6) dividing potential drop, gather the dividing potential drop of the second resistance (R6) at the 3rd analog input port (AIN1) of described first modulus conversion chip, obtain relevant voltage value by digital-to-analog conversion.
Further, wherein, described Analog input mModule also comprises: the 3rd resistance (R5); And when carrying out 0 ~ 20mA current acquisition, on the 3rd resistance (R5), pressure drop is produced by electric current, collect relevant voltage at the 4th analog input port (AIN4) of described first modulus conversion chip, obtained the analog quantity of electric current by digital-to-analog conversion.
Further, wherein, this Peripheral Interface also comprises general purpose I/O interface, is jointly connected to above-mentioned analog output module and Analog input mModule.
Further, wherein, described analog output module also comprises: the second analog-digital chip; And described Analog input mModule also comprises: another multi-channel analog channel selector switch being connected to another analog input end of described first modulus conversion chip; Through to the configuration of described second analog-digital chip and/or the configuration to described first modulus conversion chip and another multi-channel analog channel selector switch, realize switching between different analog outputs and/or different analog inputs.
By above design, we can see that two extend out port, only need the flexible switching just easily can being carried out two analog inputs and four kinds of analogue quantity output circuits by software merit rating.In the engineering development stage, only need the number knowing analog quantity, just can carry out flexible configuration to interface on this controller.So just greatly can improve the utilization rate of hardware resource, also really can realize controlling universalization and miniaturization, have far-reaching influence to the development of controller of new generation.In addition, such simulating signal peripheral interface structure, is particularly useful in air-conditioner control system as the general interface of simulating signal.
Be described further the solution of the present invention below in conjunction with the specific embodiment of the present invention and accompanying drawing, beneficial effect of the present invention will be clear and definite further.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and it illustrates for explaining the present invention, does not form inappropriate limitation of the present invention.
Fig. 1 is the schematic block diagram of the analog quantity Peripheral Interface of one embodiment of the present invention.
Fig. 2 realizes the one-piece construction circuit diagram of the Peripheral Interface one of analog quantity shown in Fig. 1 preferred embodiment for the present invention.
Fig. 3 shows the circuit diagram of the analog output module of one embodiment of the present invention.
Fig. 4 shows the circuit diagram of the Analog input mModule of one embodiment of the present invention.
Fig. 5 shows the one-piece construction circuit diagram of the analog quantity Peripheral Interface according to another preferred embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with the specific embodiment of the invention and corresponding accompanying drawing, technical solution of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the structured flowchart of the analog quantity Peripheral Interface of one embodiment of the present invention.As shown in Figure 1, this interface comprises analog output module 1, and Analog input mModule 2.Analog output module 1 comprises the first analog-digital chip DAC1.Analog input mModule 2, comprises the first modulus conversion chip ADC2, and is electrically connected to the multi-channel analog channel selector switch SW1 of analog input port (AIN) of the first modulus conversion chip ADC2.Through to the configuration of the first analog-digital chip DAC1 and/or the configuration to the first modulus conversion chip ADC3 and described multi-channel analog channel selector switch SW1, realize switching between different analog outputs and/or different analog inputs.
Wherein, the configuration of the first analog-digital chip DAC1, can realize the voltage of preset range and/or the switching of current-mode analog quantity output; And/or, by being configured the first modulus conversion chip ADC3 and described multi-channel analog channel selector switch SW1, the switching of the voltage of preset range and/or the analog input of electric current can be realized.
Preferably, analog output module 1 realizes the switching of output 0 ~ 10V analog quantity and 0 ~ 20mA analog quantity.Further preferably, Analog input mModule 2 realizes the switching of the analog inputs such as 0 ~ 10V analog quantity, 0 ~ 20mA analog quantity, temperature sampling.By said structure, the versatility of analog quantity Peripheral Interface can be realized.
Such as: temperature sampling, the sampling of negative temperature coefficient temperature sensor (NTC) temperature-sensitive bag analog quantity and/or motor temperature sampling can be comprised.
In addition, as shown in Figure 1, preferably, general purpose I/O interface I/O1, for realizing two modules (such as: analog output module 1 and Analog input mModule 2) and the connection of external circuit, can be connected to above-mentioned analog output module 1 and Analog input mModule 2 jointly.Like this, by the configuration like this carried out the interface of analog output module 1 and Analog input mModule 2, can make: analog output module 1 mainly realizes the function that 0 ~ 10V (such as: the voltage signal that 0 ~ 10V is variable) and 0 ~ 20mA (such as: the current signal that 0 ~ 20mA is variable) exports; Analog input mModule 2 mainly realizes temperature sampling (such as: temperature-sensitive bag and/or motor temperature sensor collection), 4 ~ 20mA gathers, this several function of 0 ~ 10V voltage acquisition.
Wherein, when the function that the 0 ~ 10V and 0 ~ 20mA that realize analog output module 1 export, the interface of analog output module 1 be configured, be not configured when not using.Wherein, docking port is configured and mainly carrys out docking port by software and be configured.Such as: concrete configuration can be as follows:
If use analog output module 1 to export 0 ~ 10V and 0 ~ 20mA, then to the warning (ALARM) of the chip DAC7760 in analog output module 1, removing (CLR), threshold control (LATCH), clock (CLK), data input (DIN), data be exported (DOUT) network and are configured.
Wherein, DAC7760_ALARM, DAC7760_CLR, DAC7760_LATCH (comprising DAC7760_ALARM1/DAC7760_ALARM2, DAC7760_CLR1/DAC7760_CLR2, DAC7760_LATCH1/DAC7760_LATCH2) are used to select which road in analog output module 1 to be used for exporting, DAC7760_ALARM wakes up chip, Low level effective.DAC7760_CLR is used for removing configuration information.DAC7760_LATCH is used for opening according to chip information exporting.
DAC7760_ALARM1 is only needed to be configured to high level, DAC7760_CLR2 is configured to low level, DAC7760_LATCH1 carrys out input timing according to chip handbook and the first via in module 1 just can be used to be used as to export, and the voltage and current value exported then needs to input information according to SPI protocol to CLK, DIN, DOUT just can obtain relevant voltage or electric current output.
In like manner in analog output module 1 second road this be this principle configuration.
Wherein, to be configured Analog input mModule 2 when realizing the temperature-sensitive bag of Analog input mModule 2,4 ~ 20mA collection, motor temperature sensor collection, 0 ~ 10V voltage acquisition, not being configured when not using.
It is also that DIN, DOUT, CLK, ADS_DRDY, ADS_CS, ADS_START are configured that Analog input mModule 2 configures, and wherein DIN, DOUT, CLK are also the analog acquisition types being configured Analog input mModule 2 by SPI protocol input numerical value for these.ADS_DRDY is load configurations information, ADS_CS is selection chip, ADS_START starts AD conversion, ADS_DRDY and ADS_START is configured according to the sequential of chip handbook.ADS_CS selects whether to use Analog input mModule 2.Analog input mModule 2 is not used when using Analog input mModule 2, ADS_CS to be high level during ADS_CS low level.
Fig. 2 is for realizing the physical circuit figure of the Peripheral Interface of analog quantity shown in Fig. 1.As shown in Figure 2, wherein, analog output module 1, comprises analog-digital chip DAC1, is configured by logarithmic mode conversion chip, realizes the output of 0 ~ 10V analog quantity and the switching of 0 ~ 20mA analog output.
Analog input mModule 2, comprises modulus conversion chip ADC3 and is connected to the multi-channel analog channel selector switch SW1 of analog input port (AIN) of this modulus conversion chip ADC3.By being configured above-mentioned modulus conversion chip and multi-channel analog channel selector switch, realize 0 ~ 10V analog input, 0 ~ 20mA analog input, negative temperature coefficient (NTC) temperature-sensitive bag analog quantity sampling input and motor temperature, such as utilize the temperature sensor that model is PT100, the switching of sampling input.Wherein, multi-channel analog channel selector switch is analog switch, and has the multi-channel analog channel selector switch of one or more (such as: 2).Hereafter be described to concrete circuit realiration.
It is pointed out that the output quantity/input quantity of 0 ~ 20mA is the range of current of described analog output/input, and in fact for external sensor, usually need the range of current provided to be 4-20mA.
Thus, by flexible configuration analog-digital chip, the analog output of 0 ~ 10V and 0 ~ 20mA can be switched flexibly.Meanwhile, by flexible configuration modulus conversion chip and multi-channel analog channel selector switch, 0 ~ 10V can be switched flexibly, the analog input of 0 ~ 20mA, and NTC temperature-sensitive bag analog quantity is sampled, motor temperature sampling.
Fig. 3 shows the physical circuit figure of analog output module.As shown in Figure 3, this module 1 comprises analog-digital chip DAC1 and peripheral devices thereof.Group is by the SPI mouth of serial peripheral equipment interface SPI communication logarithmic mode conversion chip, such as warn (ALARM), removing (CLR), threshold control (LATCH), serial clock (SCLK), serial date transfer (DIN) and serial data to export (SDO) to be configured, make the voltage output VOUT of analog-digital chip export the variable voltage signal of 0 ~ 10V, electric current delivery outlet IOUT exports the variable current signal of 0 ~ 20mA.
Preferably, for stoping leakage current by built-in 60K resistance, the in-phase input end of operational amplifier U1 being electrically connected to described VOUT port, thus forming shunt load.
Simultaneously, triode Q, the resistance R of the current output terminal mouth IOUT of analog-digital chip DAC1, pumping voltage port (such as: can select the corresponding port of booster circuit BOOST) and periphery and sustained diode jointly form low-power consumption and improve circuit, thus the impact of Low Drift Temperature on IOUT is fallen, finally export the electric current of 0 ~ 20mA.Wherein, pumping voltage port is connected to the collector of triode Q, current output terminal mouth IOUT is connected to the base stage of triode Q and one end of resistance R, the emitter of triode Q is connected to the other end of resistance R and the anode of sustained diode, and the negative electrode of sustained diode is connected to described voltage output end mouth VOUT.
Fig. 4 shows the physical circuit figure of Analog input mModule 2.As shown in Figure 4, described module 2 comprises modulus conversion chip ADC3 and is electrically connected to the multi-channel analog channel selector switch SW1 of analog input port (AIN) of this modulus conversion chip, and other peripheral circuits such as resistance, electric capacity arranged as required.By the configuration to modulus conversion chip and multi-channel analog channel selector switch, realize the switching that 0 ~ 10V analog input, 4 ~ 20mA analog input, the sampling of NTC temperature-sensitive bag analog quantity and motor temperature are sampled.Below be described one by one.
When gathering the input of PT100 temperature sensor, by analog-digital chip ADC3 peripheral SPI interface, internal register is configured, export the exciting current of 1mA at IEXC pin (exciting current output pin), resistance R1, R2 produce the voltage of 1.2V as external reference voltage.Exciting current is powered to PT100 temperature sensor by the S1A pin (output of passage S1A pin) of multi-channel analog channel selector switch SW1, and the magnitude of voltage that PT100 temperature sensor produces passes to again the first analog input end (AIN5) of modulus conversion chip ADC3 by S1B pin (5 passage output pin).Then change again after the magnitude of voltage collected being amplified by the programmable gain amplifier (PGA) that modulus conversion chip ADC3 is inner integrated.Finally complete the collection of PT100 motor temperature-sensitive bag temperature.Wherein, the conduction impedance of multi-channel analog channel selector switch can not have influence on the magnitude of voltage that modulus conversion chip gathers.
When carrying out NTC temperature-sensitive bag analog acquisition, the internal register of described modulus conversion chip ADC3 is configured by SPI, export 2.048V reference voltage at its reference voltage output terminal mouth (VREFOUT) to power to NTC temperature-sensitive bag, and the second analog input port (AIN0) is passed in the pressure drop produced, collect analog switch multi-channel analog channel selector switch front voltage by described first analog input port (AIN5), obtained the analog data of NTC temperature-sensitive bag by COMPREHENSIVE CALCULATING in program.
When carrying out 0 ~ 10V voltage acquisition, by resistance R4 and resistance R6 dividing potential drop, gathering the dividing potential drop of resistance R6 at the 3rd analog input port (AIN1) of described modulus conversion chip ADC3, obtaining relevant voltage value by AD conversion.
When carrying out 0 ~ 20mA current acquisition, on resistance R5, producing pressure drop by electric current, collecting relevant voltage at the 4th analog input port (AIN4) of described modulus conversion chip ADC3, obtain the analog value of electric current by AD conversion.
This chip internal is integrated with PGA and digital filter, can amplify small-signal, and carries out filtering to output digital quantity.Equally, be also modulus conversion chip is configured to the switching that just can realize acquisition function by SPI, just can realize channel selecting by being configured A0, A1 pin of multi-channel analog channel selector switch, thus realize the switching of dissimilar Acquisition Circuit.These all chip collection terminals share a terminal above, complete the versatility of analog acquisition.
Fig. 5 shows the one-piece construction circuit diagram of the analog quantity Peripheral Interface according to another preferred embodiment of the present invention.Be with the difference of circuit shown in Fig. 2, analog output module and Analog input mModule include two selectable channel.
In one embodiment, analog output module 1 also comprises: the second analog-digital chip; And Analog input mModule 2 also comprises: another multi-channel analog channel selector switch being connected to another analog input end of described first modulus conversion chip; Through to the configuration of the second analog-digital chip and/or the configuration to described first modulus conversion chip and another multi-channel analog channel selector switch, realize carrying out switching between different analog outputs and/or different analog inputs (such as: switch another group voltage of preset range and/or analog output of electric current, and/or, switch the analog input of the voltage of another group preset range, electric current and/or temperature sampling).
Concrete, for analog output module 1, by arranging two groups of analog-digital chips as shown in Figure 2 and peripheral circuit thereof, export the voltage/current analog quantity of two groups of preset ranges, the output of such as 0 ~ 10V analog quantity and 0 ~ 20mA analog output.Meanwhile, for Analog input mModule 2, by arranging two multi-channel analog channel selector switchs, realize two groups of 0 ~ 10V, the analog input of 0 ~ 20mA, and NTC temperature-sensitive bag analog quantity is sampled, motor temperature sampling.
By design above, we do not need the hardware Acquisition Circuit considering that different simulating signals is corresponding different again, only needing sensor to receive on port, just can gather dissimilar sampled signal by being configured in software.Namely the analog output function of 0 ~ 10V and 0 ~ 20mA can be switched flexibly; By flexible configuration modulus conversion chip (such as: the first analog-digital chip DAC1 and/or the second analog-digital chip DAC2 and/or the 3rd analog-digital chip DAC3) and multi-channel analog channel selector switch (such as: first group of multi-channel analog channel selector switch SW1 and/or second group of analog channel selector switch SW2), we can switch 0 ~ 10V flexibly, 0 ~ 20mA, temperature sampling circuit (such as: NTC and/or motor temperature sample circuit).
The foregoing is only the embodiment of the application, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within right of the present invention.
Claims (15)
1. an analog quantity Peripheral Interface, is characterized in that, comprising:
Analog output module, comprising: the first analog-digital chip; And
Analog input mModule, comprising: the first modulus conversion chip and be connected to the multi-channel analog channel selector switch of analog input end of described first modulus conversion chip;
Through to the configuration of described first analog-digital chip and/or the configuration to described first modulus conversion chip and multi-channel analog channel selector switch, realize switching between different analog outputs and/or different analog inputs.
2. Peripheral Interface as claimed in claim 1, is characterized in that, realize switching between different analog outputs and/or different analog inputs, comprising:
Switch the voltage of preset range and/or the analog output of electric current; And/or,
Switch the analog input of the voltage of preset range, electric current and/or temperature sampling.
3. Peripheral Interface as claimed in claim 1 or 2, is characterized in that, wherein,
Analog output module realizes 0 ~ 10V analog output and/or 0 ~ 20mA analog output;
And/or,
Analog input mModule realizes 0 ~ 10V analog input, 0 ~ 20mA analog input, temperature sampling.
4. the Peripheral Interface as described in one of claim 1-3, is characterized in that, wherein,
The Serial Peripheral Interface (SPI) of the first analog-digital chip is configured, makes the voltage output end mouth (VOUT) of the first analog-digital chip export the variable voltage signal of 0 ~ 10V.
5. Peripheral Interface as claimed in claim 4, is characterized in that, wherein,
Described analog output module comprises operational amplifier (U1), and its in-phase input end is electrically connected to the described voltage output end mouth (VOUT) of described first analog-digital chip.
6. the Peripheral Interface as described in one of claim 1-5, is characterized in that, wherein,
The Serial Peripheral Interface (SPI) of the first analog-digital chip is configured, makes the current output terminal mouth (IOUT) of described first analog-digital chip export the variable current signal of 0 ~ 20mA.
7. Peripheral Interface as claimed in claim 6, is characterized in that, wherein,
Described analog output module also comprises the low-power consumption be connected between the described current output terminal mouth (IOUT) of described first analog-digital chip and pumping voltage port and improves circuit.
8. Peripheral Interface as claimed in claim 7, is characterized in that, wherein,
Described low-power consumption improves circuit and is made up of triode (Q), resistance (R) and fly-wheel diode (D); And
Pumping voltage port is connected to the collector of described triode (Q), the current output terminal mouth (IOUT) of described first analog-digital chip is connected to the base stage of triode (Q) and one end of resistance (R), the emitter of triode (Q) is connected to the other end of resistance (R) and the anode of fly-wheel diode (D), and the negative electrode of fly-wheel diode (D) is connected to the voltage output end mouth (VOUT) of described first analog-digital chip.
9. the Peripheral Interface as described in one of claim 1-3, is characterized in that, wherein,
When the input of collecting temperature sensor, by the configuration output drive electric current of the first modulus conversion chip peripheral interface to internal register, this exciting current is powered to temperature sensor via described multi-channel analog channel selector switch; The magnitude of voltage that temperature sensor produces is sent to again the first analog input end (AIN5) of this first modulus conversion chip by this multi-channel analog channel selector switch.
10. Peripheral Interface as claimed in claim 9, is characterized in that, wherein,
Described first modulus conversion chip comprises: inside is integrated with programmable gain amplifier (PGA), changes, to complete temperature sensor temperature sampling after being amplified by the described magnitude of voltage collected again.
11. Peripheral Interfaces as described in claim 9 or 10, is characterized in that, wherein,
When carrying out another temperature sensor analog acquisition, by the first modulus conversion chip peripheral interface to the configuration of internal register, output reference voltage powers to this temperature sensor, the pressure drop of generation is passed to the second analog input port (AIN0) of the first modulus conversion chip, and by the multi-channel analog channel selector switch front voltage that the first analog input port (AIN5) of the first modulus conversion chip collects, to obtain temperature sensor analog quantity.
12. Peripheral Interfaces as described in one of claim 9-11, is characterized in that, wherein,
Described Analog input mModule comprises: first, second resistance (R4, R6); And
When carrying out 0 ~ 10V voltage acquisition, by first and second resistance (R4, R6) dividing potential drop, gather the dividing potential drop of the second resistance (R6) at the 3rd analog input port (AIN1) of described first modulus conversion chip, obtain relevant voltage value by digital-to-analog conversion.
13. Peripheral Interfaces as described in one of claim 9-12, is characterized in that, wherein,
Described Analog input mModule also comprises: the 3rd resistance (R5); And
When carrying out 0 ~ 20mA current acquisition, on the 3rd resistance (R5), pressure drop is produced by electric current, collect relevant voltage at the 4th analog input port (AIN4) of described first modulus conversion chip, obtained the analog quantity of electric current by digital-to-analog conversion.
14. Peripheral Interfaces as described in one of claim 1-13, it is characterized in that, this Peripheral Interface also comprises:
General purpose I/O interface, is connected to above-mentioned analog output module and Analog input mModule jointly.
15. Peripheral Interfaces as described in one of claim 1-14, is characterized in that, wherein,
Described analog output module also comprises: the second analog-digital chip; And
Described Analog input mModule also comprises: another multi-channel analog channel selector switch being connected to another analog input end of described first modulus conversion chip;
Through to the configuration of described second analog-digital chip and/or the configuration to described first modulus conversion chip and another multi-channel analog channel selector switch, realize switching between different analog outputs and/or different analog inputs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510698129.9A CN105159206B (en) | 2015-10-21 | 2015-10-21 | Analog quantity Peripheral Interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510698129.9A CN105159206B (en) | 2015-10-21 | 2015-10-21 | Analog quantity Peripheral Interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105159206A true CN105159206A (en) | 2015-12-16 |
CN105159206B CN105159206B (en) | 2018-05-18 |
Family
ID=54800093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510698129.9A Active CN105159206B (en) | 2015-10-21 | 2015-10-21 | Analog quantity Peripheral Interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105159206B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106685421A (en) * | 2016-12-15 | 2017-05-17 | 北京万集科技股份有限公司 | Method and device for acquiring analog signals |
CN108319183A (en) * | 2017-12-19 | 2018-07-24 | 北京旋极信息技术股份有限公司 | A kind of multichannel analog amount harvester and method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100549824B1 (en) * | 2003-11-17 | 2006-02-08 | 주식회사 효성 | Digital relay |
CN202254100U (en) * | 2011-07-26 | 2012-05-30 | 天津大学 | ARM (automatic route management)-based embedded controller of central air conditioner |
CN102591244A (en) * | 2012-03-26 | 2012-07-18 | 中国科学院自动化研究所 | Bus-based input/output (IO) acquisition and control extending device |
CN102748314A (en) * | 2012-06-30 | 2012-10-24 | 李钢 | Special intelligent controller for energy-saving fan and control method of special intelligent controller |
EP2805575A1 (en) * | 2012-01-20 | 2014-11-26 | Osram Sylvania Inc. | Secondary side phase-cut dimming angle detection |
CN204462752U (en) * | 2015-03-22 | 2015-07-08 | 国家电网公司 | A kind of signal acquiring processing system |
CN205049922U (en) * | 2015-10-21 | 2016-02-24 | 珠海格力电器股份有限公司 | Analog quantity peripheral interface |
-
2015
- 2015-10-21 CN CN201510698129.9A patent/CN105159206B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100549824B1 (en) * | 2003-11-17 | 2006-02-08 | 주식회사 효성 | Digital relay |
CN202254100U (en) * | 2011-07-26 | 2012-05-30 | 天津大学 | ARM (automatic route management)-based embedded controller of central air conditioner |
EP2805575A1 (en) * | 2012-01-20 | 2014-11-26 | Osram Sylvania Inc. | Secondary side phase-cut dimming angle detection |
CN102591244A (en) * | 2012-03-26 | 2012-07-18 | 中国科学院自动化研究所 | Bus-based input/output (IO) acquisition and control extending device |
CN102748314A (en) * | 2012-06-30 | 2012-10-24 | 李钢 | Special intelligent controller for energy-saving fan and control method of special intelligent controller |
CN204462752U (en) * | 2015-03-22 | 2015-07-08 | 国家电网公司 | A kind of signal acquiring processing system |
CN205049922U (en) * | 2015-10-21 | 2016-02-24 | 珠海格力电器股份有限公司 | Analog quantity peripheral interface |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106685421A (en) * | 2016-12-15 | 2017-05-17 | 北京万集科技股份有限公司 | Method and device for acquiring analog signals |
CN106685421B (en) * | 2016-12-15 | 2019-12-10 | 北京万集科技股份有限公司 | Analog signal acquisition method and device |
CN108319183A (en) * | 2017-12-19 | 2018-07-24 | 北京旋极信息技术股份有限公司 | A kind of multichannel analog amount harvester and method |
CN108319183B (en) * | 2017-12-19 | 2019-11-01 | 北京旋极信息技术股份有限公司 | A kind of multichannel analog amount acquisition device and method |
Also Published As
Publication number | Publication date |
---|---|
CN105159206B (en) | 2018-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN205049922U (en) | Analog quantity peripheral interface | |
CN104007391A (en) | Temperature and voltage monitoring system of lithium battery pack | |
CN106707895B (en) | A kind of high-precise synchronization vibrating data collection card of collection polymorphic type detection signal | |
CN105092075A (en) | High accuracy multi-channel temperature signal acquisition device | |
CN115598410B (en) | Power consumption acquisition system and method | |
CN104460462A (en) | Sampling circuit compatible with unipolar and bipolar analog signals | |
CN104467854A (en) | Port state acquisition circuit and method | |
CN105159206A (en) | Analog quantity peripheral interface | |
CN203070014U (en) | Control circuit based on multi-path acquisition single-path conversion of current sensors | |
CN202018478U (en) | Wide-range electric energy metering device for fluctuating load | |
CN102751975B (en) | PWM and AI multiplexing port and controller | |
CN209543098U (en) | The maximum value Acquisition Circuit of multi-analog | |
CN203893865U (en) | Multi-type signal configuration circuit used for agricultural analog input acquisition module | |
CN103647557B (en) | Adc circuit, ic for energy metering and electric energy metered system | |
CN214622817U (en) | Composite resistance test circuit | |
CN115459754A (en) | Current-mode and voltage-mode analog quantity signal acquisition switching circuit and control method | |
CN112367075B (en) | Single-interface multifunctional signal processing circuit | |
CN212060956U (en) | Pre-preprocessing circuit for signal acquisition | |
CN205281289U (en) | Temperature control circuit | |
CN209343232U (en) | The input Acquisition Circuit of compatible resistor-type signal and voltage mode signals | |
CN209486487U (en) | Analog quantity wireless control apparatus | |
CN2524430Y (en) | Voltage/current conversion circuit | |
CN102607763B (en) | Digital shared-interface composite pressure sensor with large overload ratio | |
CN207457780U (en) | A kind of pulsed programmable power supply | |
CN219802312U (en) | Input signal acquisition circuit of multipath three-state switch comprising public 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |