A kind of program control resistance
Technical field
The utility model relates to program control resistive arrangement field, the program control resistance of particularly a kind of portability and use.
Background technology
In the modern test systems, program control resistance obtains application more and more widely, and program control resistance can be the resistance that system provides different Standard resistance ranges according to testing requirement, simulates the output state of some measurands.General program control resistance volume is bigger, the lower and poor reliability of precision, and external program control resistive module precision is higher but cost an arm and a leg, and is unfavorable for large-scale application.Existing program control resistance product is mainly the form of VXI or PXI card, and its shortcoming mainly shows following several respects: (1) cost performance is low: the expensive of card own, and need the auxiliary of ancillary equipment to use, such as VXI and PXI mainframe box.(2) can not portably use:, be not easy to carry the middle use of walking about because VXI and PXI main frame need civil power.(3) can not independently use: the calorie requirement program control could be used, and can not independently use as " variable rheostat ".
Therefore, the program control resistance of a kind of cost performance height, portability and use need be provided.
The utility model content
The shortcoming that the main purpose of the utility model is to overcome prior art provides a kind of program control resistance with not enough, high, the use that is easy to carry of this program control resistive price ratio, and easy to use.
The purpose of the utility model realizes through following technical scheme: a kind of program control resistance comprises the usb communication chip, singlechip controller, drive circuit, the program control resistor network that connect successively; Said usb communication chip is used to import control data; Said singlechip controller receives the control data of said usb communication chip input, according to said control data said drive circuit is exported control signal; Said drive circuit is controlled said program control resistor network according to the control signal of said singlechip controller and is carried out the resistance conversion.
Said drive circuit comprises a plurality of dry-reed relays, and said program control resistor network comprises the resistance of a plurality of series connection, and each dry-reed relay of said drive circuit is parallelly connected with a resistance in the said program control resistor network.Use dry-reed relay can have switching speed faster, improve the resistance conversion efficiency of said program control resistance.
Said program control resistance also comprises the resistance manual load key dish that is connected with said singlechip controller.Said resistance manual load key dish comprises 4 buttons, and each is by key control one digit number value.Resistance manual load key dish is the resistance information that is used for to single-chip microcomputer output setting.Through using resistance manual load key dish can make things convenient for manual control.
Said program control resistance also comprises the power supply that is connected with said singlechip controller.Said power supply comprises the battery interface circuit, and available battery is supplied power to single-chip microcomputer, thereby convenient in the middle use of walking about.
Said program control resistance also comprises the resistance display that is connected with said singlechip controller.This resistance display is made up of 48 sections charactrons, and the demonstration number range is 0001-9999.This resistance display is used to the resistance value information that shows that current single-chip microcomputer receives.Through using the resistance display can make things convenient for manual control.
Said single-chip microcomputer is the ATMEGA16 single-chip microcomputer, and this single-chip microcomputer is based on 8 CMOS microcontrollers of low-power consumption of the AVR risc architecture of enhancing.Because its advanced instruction set and single clock cycle time for each instruction, the data throughput of ATmega16 is up to 1MIPS/MHz, thereby can extenuate the contradiction of system between power consumption and processing speed.The ATMEGA16 single-chip microcomputer receives the numerical information of PC or the transmission of resistance manual load key dish, and exports to resistance display and drive circuit.Its port is used for the input of control Driver Circuit, serial communication, resistance manual load key dish and the output of resistance display.
Resistance in the said program control resistor network uses high-accuracy Chip-R, because its precision is higher, temperature influence is less, therefore uses this kind resistance can improve the precision of output resistance.
Said program control resistor network is made up of the resistance of 8421 yards correspondences, comprises the resistance that 16 resistances vary in size, and is respectively 1,2,4,8,10,20,40,80,100,200,400,800,1000,2000,4000,8000 ohm.
The course of work of the utility model: when program control resistance is started working; At first system is carried out initialization; Judge the initialization completion through the information on the resistance display then, judge then to have or not the PC communication request in the current PC, if having; PC sends data to single-chip microcomputer through the usb communication chip, carries out data processing by single-chip microcomputer; If there is not the PC communication request in the current PC; Judge further then whether the resistance manual load key dish that links to each other with single-chip microcomputer has input, if input is arranged, then data is sent single-chip microcomputer and carries out data processing; If not input; The then current input information of not wanting need not to carry out the resistance conversion, so proceed to keep watch on.
The utility model compared with prior art has following advantage and beneficial effect:
1, the utility model has been realized the connection between PC and the single-chip microcomputer through adopting the usb communication chip, is convenient for carrying use.
2, add resistance manual load key dish and resistance display in the utility model, can make things convenient for the staff manually to control.
3, this practical information has increased the battery interface circuit, and program control resistance can be portably used.
4, adopted dry-reed relay in the utility model, can improve the output resistance rate of change, reduced to consume.
Description of drawings
Fig. 1 is the structural representation of the utility model device;
Fig. 2 is the annexation figure of drive circuit and miscellaneous part in the utility model device;
Fig. 3 is the fundamental diagram of the utility model.
Embodiment
Below in conjunction with embodiment and accompanying drawing the utility model is described in further detail, but the execution mode of the utility model is not limited thereto.
Embodiment 1
As shown in Figure 1, a kind of program control resistance comprises the usb communication chip, singlechip controller, drive circuit, the program control resistor network that connect successively.
Said usb communication chip is used to import control data, can be during use with the controller of itself and the conversion instruction of user's input resistance, and for example PC etc. is connected;
Said singlechip controller receives the control data of said usb communication chip input, and according to said control data said drive circuit is transmitted control signal;
The control signal that said drive circuit sends according to said singlechip controller is controlled said program control resistor network and is carried out the resistance conversion.
Compared with prior art; The program control resistance of the utility model is owing to adopt the usb communication chip and the external world to communicate; The USB interface that can connect general user PC easily; Therefore the program control resistance of the utility model can be carried to the use scene easily and be connected with on-the-spot control appliance with USB interface through the usb communication chip, and can carry out the resistance conversion according to the instruction of control appliance, compares general program control resistance and has higher universality and portability.
Further, the power supply of said program control resistance can be through the connection of said usb communication chip, is provided by the control appliance power supply of outside, also can in said program control resistance, independent power supply be set.In the present embodiment, said program control resistance also comprises the power supply that connects said singlechip controller, and said power supply is used for the some road power supply to whole program control resistance.By special power supply power supply, can make the more stable work of said program control resistance.Said power supply can also comprise the battery interface circuit, so that available battery supplies power to said program control resistance, thus convenient in the middle use of walking about.
Further; Said program control resistance also comprises the resistance manual load key dish that is connected with said singlechip controller; Through said resistance manual load key dish, the resistance information that the user can set to said singlechip controller input is voluntarily manually controlled said program control resistance and is carried out the resistance conversion.In one embodiment, said resistance manual load key dish comprises 4 buttons, and each is by resistance value of key control.Through using resistance manual load key dish can make things convenient for manual control.
Further; Said program control resistance also comprises the resistance display that is connected with said singlechip controller; This resistance display is used to the resistance value information that shows that current singlechip controller receives; Or the real-time resistance value information of said program control resistor network, can make things convenient for manual control through using the resistance display.In one embodiment, this resistance display is made up of 48 sections charactrons, can show that number range is 0001-9999 ohm thereby make.
The singlechip controller that is adopted in the present embodiment is the ATMEGA16 single-chip microcomputer, and this single-chip microcomputer is based on 8 CMOS microcontrollers of low-power consumption of the AVR risc architecture of enhancing.Because its advanced instruction set and single clock cycle time for each instruction, the data throughput of ATmega16 is up to 1MIPS/MHz, thereby can extenuate the contradiction of system between power consumption and processing speed.The ATMEGA16 single-chip microcomputer receives the resistance value information of said communication chip or the transmission of resistance manual load key dish, and exports to resistance display and drive circuit.Its port is used for the input of control Driver Circuit, serial communication, resistance manual load key dish and the output of resistance display.
In the present embodiment, the resistance in the said program control resistor network uses high-accuracy Chip-R, uses this kind resistance can improve the precision of output resistance.
A preferred implementation as the utility model; As shown in Figure 2; Said drive circuit is made up of a plurality of dry-reed relays; Each said dry-reed relay correspondence links to each other with the output pin of a singlechip controller, is just being determined the break-make of each dry-reed relay by the level of the output pin of said singlechip controller.
Said program control resistor network comprises resistance a plurality of series connection, that resistance is different; Each dry-reed relay of said drive circuit is parallelly connected with a resistance in the said program control resistor network, the resistance in the said program control resistor network of corresponding control and the annexation of other resistance.In one embodiment; Said program control resistor network is made up of the resistance of 8421 yards correspondences; Comprise the resistance that 16 resistances vary in size, be respectively 1,2,4,8,10,20,40,80,100,200,400,800,1000,2000,4000,8000 ohm.In Fig. 2, J1~J16 is the switch of corresponding dry-reed relay, and output resistance value size is to make up according to the 8421BCD mode.When J1~J16 broke off, the resistance of output was the series connection addition of 16 resistance.
The control of output resistance can be explained through following instance; For example: the control signal that said usb communication chip receives is the corresponding 8421BCD code of output after said singlechip controller is handled; Obtain the corresponding switch state through each dry-reed relay of said driving circuit drives, control said program control resistor network and carry out the resistance conversion.Suppose that J1~J16 is respectively 1 and 0 according to its disconnection, closure state, the resistance size of then said program control resistance output can be represented R=8000 Ω * J1+4000 Ω * J2+ ... + 2 Ω * J15+1 Ω * J16.
Key assignments through said resistance manual load key dish is set, and can obtain the size of needed resistance value equally.For example; Setting resistance through resistance manual load key dish is 9085 Ω; Corresponding to the output of the switching value of resistor network is that J1, J4, J9, J14, J16 break off successively; Remaining is all closed, and the binary code of the correspondence of exporting after the promptly said singlechip controller computing is (1001000010000101) B, and the resistance value size of controlling said program control resistor network output just is 9085 Ω.
As shown in Figure 3, the operation principle of the utility model is: when program control resistance is started working, at first system is carried out initialization; Judge the initialization completion through the information on the resistance display then, through the input of said usb communication chip, judgement is to have or not the PC communication request then; If have; Then receive the data that PC sends, and send said singlechip controller to, carry out data processing by said singlechip controller through said usb communication chip; If judge no PC communication request; Judge further then whether the resistance manual load key dish that links to each other with said singlechip controller has input, if input is arranged, then data is sent to singlechip controller and carries out data processing; If not input; Then current do not have an input information, need not to carry out the resistance conversion, so proceed to keep watch on.
The foregoing description is the utility model preferred implementation; But the execution mode of the utility model is not restricted to the described embodiments; Other any do not deviate from change, the modification done under spirit and the principle of the utility model, substitutes, combination, simplify; All should be the substitute mode of equivalence, be included within the protection range of the utility model.