CN103592883B - The accurate programmable resistance module of multichannel based on DSP and control method thereof - Google Patents

The accurate programmable resistance module of multichannel based on DSP and control method thereof Download PDF

Info

Publication number
CN103592883B
CN103592883B CN201310631971.1A CN201310631971A CN103592883B CN 103592883 B CN103592883 B CN 103592883B CN 201310631971 A CN201310631971 A CN 201310631971A CN 103592883 B CN103592883 B CN 103592883B
Authority
CN
China
Prior art keywords
resistance
digital regulation
dsp
regulation resistance
circuit
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.)
Active
Application number
CN201310631971.1A
Other languages
Chinese (zh)
Other versions
CN103592883A (en
Inventor
赵光权
乔立岩
梁军
邹吉炜
易进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN201310631971.1A priority Critical patent/CN103592883B/en
Publication of CN103592883A publication Critical patent/CN103592883A/en
Application granted granted Critical
Publication of CN103592883B publication Critical patent/CN103592883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The accurate programmable resistance module of multichannel based on DSP and control method thereof, relate to a kind of programmable module and control method thereof.It is low in order to solve traditional programmable resistance module integration degree, the problem do not grown serviceable life.The SPI Peripheral Interface that the present invention makes full use of DSP carrys out control figure potentiometer thus realizes variable resistance to export, the programmable resistance that can reach 32 tunnels exports, output area 2k Ω to 200k Ω, and resistance accuracy is better than 100 Ω, stepping is little, and minimum step is spaced apart 4 Ω.Achieve collection miniaturization, high integration, improve 20% on year-on-year basis, long service life, be more than doubled on year-on-year basis.The present invention is applicable to a kind of programmable module and control method thereof.

Description

The accurate programmable resistance module of multichannel based on DSP and control method thereof
Technical field
The present invention relates to a kind of programmable module and control method thereof.
Background technology
Resistance is almost a requisite part in all Circuits System, and special resistance can also use as sensor simultaneously.In Circuits System, the change of a resistance value often can make the characteristic of circuit that very large change occurs, and in some resistance type sensors, it characterizes measured output is exactly variable resistance.No matter so be from the angle of control circuit characteristic or simulate some special sensors angle we all wish to realize the PLC technology of resistance.
Traditional programmable resistance module, primarily of electric resistance array and switch arrays composition, utilizes switch to select the mode of electric resistance array, thus realizes different resistance output.Traditional programmable resistance module is primarily of relay array and precision resistance array composition, the method due to relay volume larger, a module can only realize several roads programmable resistance and exports thus cause integrated level low, and owing to utilizing relay for switch, the life-span of relay constrains the serviceable life of whole module greatly, and the application in Practical Project has a lot of restraining factors.
Summary of the invention
The present invention is low in order to solve traditional programmable resistance module integration degree, the problem do not grown serviceable life, and then the accurate programmable resistance module of multichannel provided based on DSP and control method thereof.
The accurate programmable resistance module of multichannel based on DSP, it comprises RS-485 change-over circuit 1, DSP control circuit 2 and programmable resistance circuit 3;
DSP control circuit 2 comprises dsp controller 21 and the outer RAM22 of sheet;
Programmable resistance circuit 3 comprises digital regulation resistance element circuit 31 and decoding selection circuit 32;
Digital regulation resistance element circuit 31 has n passage, and each passage comprises the first digital regulation resistance R1 and the second digital regulation resistance R2, and the first digital regulation resistance R1 and the second digital regulation resistance R2 is cascaded formation variable resistor, n be greater than 2 positive integer;
Outside data signals is connected to the signal input part of RS-485 change-over circuit 1 by RS-485 bus, the signal output part of described RS-485 change-over circuit 1 is connected on the SCI interface of dsp controller 21;
The address bus interface of dsp controller 21 is connected with the address bus of the outer RAM22 of sheet, and the data bus interface of dsp controller 21 is connected with the data bus of the outer RAM22 of sheet; General purpose I/O the interface of dsp controller 21 connects the signal input part of decoding selection circuit 32, and the signal output part of described decoding selection circuit 32 connects the control signal input end of digital regulation resistance element circuit 31;
The SPI interface of dsp controller 21 is connected with the control signal input end of the first digital regulation resistance R1 of each passage and the control signal input end of the second digital regulation resistance R2 by spi bus.
The control method of the accurate programmable module of the multichannel based on DSP,
Receive instruction step: the instruction that dsp controller 21 is sent by SCI interface RS-485 change-over circuit 1;
Instruction analysis step: instruction is passed to decoding selection circuit 32 by dsp controller 21,
Decoding selection circuit 32 pairs of Instruction decodings, pass to digital regulation resistance element circuit 31 by the instruction after decoding, and digital regulation resistance element circuit 31 determines the resistance data of passage and passage;
Search large resistance tables of data step: the passage of dsp controller 21 according to digital regulation resistance element circuit 31 and the data of resistance, search Calibration Data in large resistance tables of data in the outer RAM22 of sheet, determine that the code value of the first digital regulation resistance R1 is interval and resistance is interval;
Search little resistance tables of data step: determine that the code value of the second digital regulation resistance R2 is interval and resistance is interval again;
Linear interpolation processing step: linear function is done to the resistance of the first digital regulation resistance R1 resistance interval that is interval and the second digital regulation resistance R2, obtains the code value of the first digital regulation resistance R1 and the code value of the second digital regulation resistance R2;
SPI PLC technology step: send control command to corresponding potentiometer according to the code value of the first digital regulation resistance R1 obtained and the code value of the second digital regulation resistance R2 by SPI interface, realize the adjustment to corresponding potentiometer resistance.
The SPI Peripheral Interface that the present invention makes full use of DSP carrys out control figure potentiometer thus realizes variable resistance to export, the programmable resistance that can reach 32 tunnels exports, output area 2k Ω ~ 200k Ω, and resistance accuracy is better than 100 Ω, stepping is little, and minimum step is spaced apart 4 Ω.Achieve collection miniaturization, high integration, improve 20% on year-on-year basis, long service life, be more than doubled on year-on-year basis.
Accompanying drawing explanation
Fig. 1 is the one-piece construction schematic diagram of the accurate programmable resistance module of multichannel based on DSP;
Fig. 2 is the process flow diagram of the control method of the accurate programmable module of multichannel based on DSP.
Embodiment
Embodiment one: present embodiment is described below in conjunction with Fig. 1, the accurate programmable resistance module of the multichannel based on DSP described in present embodiment, it comprises RS-485 change-over circuit 1, DSP control circuit 2 and programmable resistance circuit 3;
DSP control circuit 2 comprises dsp controller 21 and the outer RAM22 of sheet;
Programmable resistance circuit 3 comprises digital regulation resistance element circuit 31 and decoding selection circuit 32;
Digital regulation resistance element circuit 31 has n passage, and each passage comprises the first digital regulation resistance R1 and the second digital regulation resistance R2, and the first digital regulation resistance R1 and the second digital regulation resistance R2 is cascaded formation variable resistor, n be greater than 2 positive integer;
Outside data signals is connected to the signal input part of RS-485 change-over circuit 1 by RS-485 bus, the signal output part of described RS-485 change-over circuit 1 is connected on the SCI interface of dsp controller 21;
The address bus interface of dsp controller 21 is connected with the address bus of the outer RAM22 of sheet, and the data bus interface of dsp controller 21 is connected with the data bus of the outer RAM22 of sheet; General purpose I/O the interface of dsp controller 21 connects the signal input part of decoding selection circuit 32, and the signal output part of described decoding selection circuit 32 connects the control signal input end of digital regulation resistance element circuit 31;
The SPI interface of dsp controller 21 is connected with the control signal input end of the first digital regulation resistance R1 of each passage and the control signal input end of the second digital regulation resistance R2 by spi bus.
In present embodiment, the Whole Work Flow of module is as follows: on the SCI interface that outside RS-485 data are carried by the DSP that communication interface circuit is connected to, dsp controller is according to the resistance data received, coordinate decoding to select control figure potentiometer to export by certain algorithm, thus realize the PLC technology of 32 road resistance.
RS-485 change-over circuit is mainly used in the Transistor-Transistor Logic level 485 level conversion in RS-485 bus being become standard, to facilitate RS-485 bus to communicate with DSP primary controller, is the basis of whole module proper communication.
DSP control circuit is primarily of dsp controller and the outer RAM composition of sheet, dsp controller is used for Instruction decoding and resolves, and realizes the control to each functional module, and the data-carrier store that the outer RAM of sheet extends out as DSP, coordinate DSP to complete its work, DSP control circuit is the core of whole module.
Programmable resistance circuit programmable resistance circuit is primarily of digital regulation resistance element circuit and decoding selection circuit composition, wherein digital regulation resistance element circuit adopts the digital regulation resistance of SPI interface to design, directly digital regulation resistance is mounted on the SPI interface of DSP, the digital regulation resistance of a 200k Ω is utilized to connect with the digital regulation resistance of a 1k Ω in design, for realizing the adjustable change of resistance, and code translator is for realizing the selection that communicates of master controller and digital regulation resistance chip.
By the cooperation of each functional module above, make programmable resistance module can realize the PLC technology of multichannel resistance, and control accuracy is high, scope is large, and the integrated level of whole module whole is also higher.
Embodiment two: present embodiment is further qualified the accurate programmable resistance module of the multichannel based on DSP described in embodiment one, in present embodiment, the address bus interface of dsp controller 21 is 16 bit address bus interface, and data bus interface is 16 bit data bus interfaces.
Embodiment three: present embodiment is further qualified the accurate programmable resistance module of the multichannel based on DSP described in embodiment one, in present embodiment, n=32.
Embodiment four: present embodiment is further qualified the accurate programmable resistance module of the multichannel based on DSP described in embodiment one, in present embodiment, the maximum value of the first digital regulation resistance R1 is 200k Ω, and the maximum value of the second digital regulation resistance R2 is 1k Ω.
Embodiment five: present embodiment is further qualified the accurate programmable resistance module of the multichannel based on DSP described in embodiment one, and in present embodiment, in DSP control circuit 2, the model of dsp controller 21 is TMS320LF2407A.
Embodiment six: present embodiment is described below in conjunction with Fig. 2, present embodiment is the control method based on the accurate programmable resistance module of the multichannel of DSP described in embodiment one to five,
Receive instruction step: the instruction that dsp controller 21 is sent by SCI interface RS-485 change-over circuit 1;
Instruction analysis step: instruction is passed to decoding selection circuit 32 by dsp controller 21,
Decoding selection circuit 32 pairs of Instruction decodings, pass to digital regulation resistance element circuit 31 by the instruction after decoding, and digital regulation resistance element circuit 31 determines the resistance data of passage and passage;
Search large resistance tables of data step: the passage of dsp controller 21 according to digital regulation resistance element circuit 31 and the data of resistance, search Calibration Data in large resistance tables of data in the outer RAM22 of sheet, determine that the code value of the first digital regulation resistance R1 is interval and resistance is interval;
Search little resistance tables of data step: determine that the code value of the second digital regulation resistance R2 is interval and resistance is interval again;
Linear interpolation processing step: linear function is done to the resistance of the first digital regulation resistance R1 resistance interval that is interval and the second digital regulation resistance R2, obtains the code value of the first digital regulation resistance R1 and the code value of the second digital regulation resistance R2;
SPI PLC technology step: send control command to corresponding potentiometer according to the code value of the first digital regulation resistance R1 obtained and the code value of the second digital regulation resistance R2 by SPI interface, realize the adjustment to corresponding potentiometer resistance.
In present embodiment, the output due to digital regulation resistance is not desirable linear convergent rate, its output valve and desirable output bias larger, so when using digital regulation resistance to export as high-precision resistance, calibration must be carried out to the resistance of potentiometer.So-called resistance calibration exports some code values of digital regulation resistance exactly and measures, and the result measured is stored, and when resistance exports with these data for standard exports, thus the precision realizing resistance is able to programme.
The Calibration Data of normal conditions lower module or product itself is all be stored into the independent storer of inside modules as in E2PROM, and this module is different, a spotlight based on the programmable resistance module of DSP is exactly directly be written in table form in DSP program by the Calibration Data of measurement, has been stored on the FLASH of DSP inside.The design adopts the DSP of the TMS320LF2407A model of TI company.This kind of DSP is not only with corresponding SPI and SCI interface, and inner also have up to the FLASH of 32K word and the RAM of program storage and 32K word and data-carrier store.Huger for the number ratio of Calibration Data in the process of whole calibration, although the program storage of inside and data storage capacity reach all more greatly 32K word, but for ram in slice, user can part fewer, distribute to user can data-carrier store cannot meet capacity requirement, so extend out a slice RAM as the data-carrier store outside sheet, thus on the DSP of inside modules that Calibration Data is stored into the most at last.
By extending out a slice RAM, all resistance Calibration Datas are all directly stored into the inside of DSP, this mode not only accelerates DSP calculation process speed, is easy to more new data simultaneously, accelerates the response speed that resistance exports.

Claims (5)

1. based on the accurate programmable resistance module of multichannel of DSP, it is characterized in that: the accurate programmable resistance module of the described multichannel based on DSP comprises RS-485 change-over circuit (1), DSP control circuit (2) and programmable resistance circuit (3);
DSP control circuit (2) comprises dsp controller (21) and the outer RAM (22) of sheet;
Programmable resistance circuit (3) comprises digital regulation resistance element circuit (31) and decoding selection circuit (32);
Digital regulation resistance element circuit (31) has n passage, each passage comprises the first digital regulation resistance (R1) and the second digital regulation resistance (R2), first digital regulation resistance (R1) and the second digital regulation resistance (R2) are cascaded formation variable resistor, n be greater than 2 positive integer;
Outside data signals is connected to the signal input part of RS-485 change-over circuit (1) by RS-485 bus, the signal output part of described RS-485 change-over circuit (1) is connected on the SCI interface of dsp controller (21);
The address bus interface of dsp controller (21) is connected with the address bus of the outer RAM (22) of sheet, and the data bus interface of dsp controller (21) is connected with the data bus of the outer RAM (22) of sheet; General purpose I/O the interface of dsp controller (21) connects the signal input part of decoding selection circuit (32), and the signal output part of described decoding selection circuit (32) connects the control signal input end of digital regulation resistance element circuit (31);
The SPI interface of dsp controller (21) is connected with the control signal input end of first digital regulation resistance (R1) of each passage and the control signal input end of the second digital regulation resistance (R2) by spi bus.
2. the accurate programmable resistance module of the multichannel based on DSP according to claim 1, is characterized in that: the address bus interface of dsp controller (21) is 16 bit address bus interface, and data bus interface is 16 bit data bus interfaces.
3. the accurate programmable resistance module of the multichannel based on DSP according to claim 1, is characterized in that: n=32.
4. the accurate programmable resistance module of the multichannel based on DSP according to claim 1, it is characterized in that: the maximum value of the first digital regulation resistance (R1) is 200k Ω, the maximum value of the second digital regulation resistance (R2) is 1k Ω.
5., based on the control method of the accurate programmable resistance of multichannel of DSP, it is characterized in that:
Receive instruction step: the instruction that dsp controller (21) is sent by SCI interface RS-485 change-over circuit (1);
Instruction analysis step: instruction is passed to decoding selection circuit (32) by dsp controller (21),
Instruction after decoding, to Instruction decoding, is passed to digital regulation resistance element circuit (31) by decoding selection circuit (32), and digital regulation resistance element circuit (31) determines the resistance data of passage and passage;
Search large resistance tables of data step: the passage of dsp controller (21) according to digital regulation resistance element circuit (31) and the data of resistance, search Calibration Data in large resistance tables of data in the outer RAM (22) of sheet, determine that the code value of the first digital regulation resistance (R1) is interval and resistance is interval;
Search little resistance tables of data step: determine that the code value of the second digital regulation resistance (R2) is interval and resistance is interval again;
Linear interpolation processing step: linear function is done to the resistance of the first digital regulation resistance (R1) resistance interval that is interval and the second digital regulation resistance (R2), obtains the code value of the first digital regulation resistance (R1) and the code value of the second digital regulation resistance (R2);
SPI PLC technology step: send control command to corresponding potentiometer according to the code value of the first digital regulation resistance (R1) obtained and the code value of the second digital regulation resistance (R2) by SPI interface, realize the adjustment to corresponding potentiometer resistance.
CN201310631971.1A 2013-12-02 2013-12-02 The accurate programmable resistance module of multichannel based on DSP and control method thereof Active CN103592883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310631971.1A CN103592883B (en) 2013-12-02 2013-12-02 The accurate programmable resistance module of multichannel based on DSP and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310631971.1A CN103592883B (en) 2013-12-02 2013-12-02 The accurate programmable resistance module of multichannel based on DSP and control method thereof

Publications (2)

Publication Number Publication Date
CN103592883A CN103592883A (en) 2014-02-19
CN103592883B true CN103592883B (en) 2016-01-20

Family

ID=50083078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310631971.1A Active CN103592883B (en) 2013-12-02 2013-12-02 The accurate programmable resistance module of multichannel based on DSP and control method thereof

Country Status (1)

Country Link
CN (1) CN103592883B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808563B (en) * 2015-04-29 2017-08-04 山东工商学院 A kind of high-precision programmable resistance combiner circuit establishing method
CN105551700B (en) * 2016-01-29 2018-06-05 深圳中科维优科技有限公司 A kind of program-controlled multichannel variable resistance and its resistance value adjustment and control method
CN105551410B (en) * 2016-01-29 2018-07-24 深圳中科维优科技有限公司 The full-automatic apparatus and method for measuring LED display blank level adjustment resistance
CN110568801A (en) * 2019-10-03 2019-12-13 青岛大学 Low-resistance variable resistor based on digital potentiometer

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000919A (en) * 2006-01-09 2007-07-18 旺宏电子股份有限公司 Programmable resistive ram and manufacturing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE488842T1 (en) * 2004-09-30 2010-12-15 Nxp Bv INTEGRATED CIRCUIT WITH MEMORY CELLS HAVING A PROGRAMMABLE RESISTOR AND METHOD FOR ADDRESSING MEMORY CELLS HAVING A PROGRAMMABLE RESISTOR
US8125019B2 (en) * 2006-10-18 2012-02-28 International Business Machines Corporation Electrically programmable resistor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000919A (en) * 2006-01-09 2007-07-18 旺宏电子股份有限公司 Programmable resistive ram and manufacturing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于FPGA 和DSP 的电阻层析成像数据采集***;张凌烽等;《传感技术学报》;20110731;第24卷(第7期);第1011-1016页 *
基于FPGA的可编程电阻装置设计;李小文等;《铁道机车车辆》;20121231;第32卷(第6期);第75-78页 *

Also Published As

Publication number Publication date
CN103592883A (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN103592883B (en) The accurate programmable resistance module of multichannel based on DSP and control method thereof
CN206523504U (en) A kind of soil temperature and humidity detection sampling integrated instrument
CN104460462B (en) A kind of compatible with single bipolar analog signal sample circuit
CN201788434U (en) Multipath bidirectional digital controlled constant current source
CN105790763A (en) Six-channel analog to digital conversion module based on PC104 bus
CN205748496U (en) A kind of wide-range V-arrangement taper flow meter
CN203071912U (en) Circuit for raising analog-to-digital conversion precision
CN105159349B (en) A kind of temperature change analogue means and method
CN1595311A (en) System and method for calibrating analog signal measuring apparatus automatically
CN103295710B (en) Thermistor simulation module and the resistance output calibration steps to this module
CN206400612U (en) A kind of multi-analog digitized sampling circuit
CN204347131U (en) Intelligent frequency meter
CN203730885U (en) Valve positioner
CN203929872U (en) A kind of electrical measurement instrument
CN203350365U (en) Automatic resistivity measurement device with multi-position variable ranges of large dynamic range
CN204759232U (en) Temperature variation analogue means
CN203464949U (en) Combined resistance type instrument calibrator
CN205317400U (en) Stable form intelligence pressure sensor
CN102638267B (en) System for increasing resolution ratio of A/D (Analog-to-Digital) converter inside AVR (Automatic Voltage Regulator) series single chip microcomputer
CN104460496A (en) Numerical control constant current source circuit based on PLC
CN205103313U (en) High precise measurement's economize on electricity rate strapping table
CN202513910U (en) Circuit capable of improving relative precision of A/D converter embedded in microcontroller
CN203479420U (en) Transformer multipath temperature monitoring system
CN103929328A (en) Automatic diagnosis and redundancy protection method and device of broken link of monobus temperature measurement control system
CN203117253U (en) Portable multipurpose tester based on ARM

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant