Utility model content
The purpose of this utility model is to provide the device of a plurality of Single Chip Microcomputer (SCM) program of a kind of programming, the technical matters that need repeatedly plug when solving a plurality of Single Chip Microcomputer (SCM) program of programming.
For reaching this object, the utility model by the following technical solutions:
The utility model provides the device of a plurality of Single Chip Microcomputer (SCM) program of a kind of programming, comprising: a key programming plate, and with one key programming plate supporting that be connected, for select the toggle switch of the sequential line of a key programming plate according to the code value of toggle switch;
A described key programming plate also connects debugger and a plurality of node module for the treatment of programming; And each node module is a sequential line of a corresponding key programming plate respectively, described debugger is connected with corresponding node module by the sequential line of the key programming plate selected; To realize the Single Chip Microcomputer (SCM) program programming of this node module.
Wherein, on a described key programming plate, be provided with several for the first kind interface of access node module, and one for accessing the Equations of The Second Kind interface of debugger;
Each node module is connected with a key programming plate by a first kind interface, and the JTag mouth sequential line of different first kind interfaces is connected from the different sequential lines of a key programming plate;
Debugger is connected with a key programming plate by Equations of The Second Kind interface; The JTag mouth sequential line of described Equations of The Second Kind interface is selected to connect with a certain sequential line of a key programming plate by the code value of toggle switch;
The JTag mouth data line of the JTag mouth data line of all first kind interfaces and Equations of The Second Kind interface is all connected with the same data line of a key programming plate.
Wherein, on a described key programming plate, be provided with 14 first kind interfaces, the JTag mouth sequential line of described 14 first kind interfaces is connected with 14 sequential lines of a key programming plate respectively.
Wherein, also comprise that two for arranging the dial-up unit of the code value of toggle switch, two dial-up unit are all connected with toggle switch.
Wherein, node module accesses the first kind interface of a described key programming plate by winding displacement; Debugger accesses the Equations of The Second Kind interface of a described key programming plate by winding displacement;
Described debugger is for can carry out online programming debugging and inner Flash storer is carried out to erasable debugger.
Wherein, the JTag mouth of first kind interface is, the JTag mouth of Equations of The Second Kind interface includes power lead, ground wire, data line, sequential line and reset line.
Implement the utility model embodiment, there is following beneficial effect:
The utility model embodiment is by the device of a plurality of Single Chip Microcomputer (SCM) program of a kind of programming is provided, and can treat that the node module of programming connects by different sequential lines and debugger on a key programming plate by a plurality of; By the code value with the supporting toggle switch being connected of a key programming plate, select the sequential line when last key programming plate, the controllable debugger that makes is connected with corresponding node module.By the utility model, can treat that the node module of programming is connected on a key programming plate in the lump by a plurality of, and each treats that the node module of programming can connect by sequential line and the debugger of a key programming plate; Code value by toggle switch is selected the sequential line when last key programming plate, and debugger is connected with a corresponding node module.Pass through the utility model, only need can carry out programming to different node modules by the code value of change toggle switch, without repeatedly treat the node module of programming from debugger plug, avoid the damage loss to physical object in use procedure, also improved work efficiency simultaneously.
Embodiment
Below in conjunction with accompanying drawing of the present utility model, technical scheme in the utility model embodiment is carried out to clear, complete description, obviously, described embodiment is only a part of embodiment of the present utility model, rather than whole embodiment.Embodiment based in the utility model, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, belongs to the scope that the utility model is protected.
Below in conjunction with accompanying drawing 1-accompanying drawing 3, the device of a plurality of Single Chip Microcomputer (SCM) program of programming that the utility model embodiment is provided describes in detail.
Refer to Fig. 1, Fig. 1 is the structural representation of the device of a plurality of Single Chip Microcomputer (SCM) program of a kind of programming, this device comprises a key programming plate 300 and toggle switch 400: a described key programming plate 300 can be connected debugger 100 and a plurality of node module 200 for the treatment of programming, described toggle switch 400 and 300 supporting connections of key programming plate, for selecting the toggle switch of the sequential line of a key programming plate according to the code value of toggle switch.As shown in Figure 1, a described key programming plate 300 treats that with a plurality of the node module 200 of programming is connected with debugger 100; And each node module 200 is a sequential line of a corresponding key programming plate 300 respectively, described debugger 100 is by the sequential line of the key programming plate selected and corresponding node module 200 connections; To realize the Single Chip Microcomputer (SCM) program programming of this node module.Be that described debugger 100 can be connected with corresponding node module 200 respectively by the different sequential lines of a key programming plate, and once can only connect a node module 200.Described debugger 100 is for downloading editor's Single Chip Microcomputer (SCM) program; Toggle switch 400 is for selecting the sequential line of the required key programming plate of the current Single Chip Microcomputer (SCM) program of programming; One key programming plate 300 is connected debugger 100 for the sequential line by different with corresponding node module 200.
Preferably, on a key programming plate 300 of the present embodiment, be provided with several for the first kind interface 11 of access node module 200, and one for accessing the Equations of The Second Kind interface 12 of debugger 100.Each node module 200 is connected with a key programming plate 300 by a first kind interface 11, and a sequential line of the JTag mouth sequential line of each first kind interface 11 and a key programming plate is connected; Debugger 100 is connected with a key programming plate 300 by Equations of The Second Kind interface 12; The JTag mouth sequential line selectable (code value by toggle switch is selected) of Equations of The Second Kind interface 12 is connected with a certain sequential line of a key programming plate; The JTag mouth data line of the JTag mouth data line of each first kind interface 11 and Equations of The Second Kind interface 12 is all connected with the same data line of a key programming plate.
Particularly, each node module 200 is connected with a key programming plate by a first kind interface 11 respectively, and a sequential line of the JTag mouth sequential line of each first kind interface 11 and the connector P15 of a key programming plate is connected.Described debugger 100 connects the Equations of The Second Kind interface 12 of a described key programming plate 300; Connector P15 by a key programming plate under the control action of toggle switch 400 controls and connects with a sequential line key programming plate the JTag mouth sequential line of Equations of The Second Kind interface 12 is selectable, the JTag mouth sequential line that is JTag mouth sequential line selectable and a certain first kind interface 11 under toggle switch 400 is controlled of described Equations of The Second Kind interface 12 communicates, and debugger is connected with a corresponding node module.After the connection of debugger and a node module, by the JTag mouth data line of Equations of The Second Kind interface 12,, the JTag mouth data line transmission of the first kind interface 11 of correspondence needs the Single Chip Microcomputer (SCM) program of programming in this node module, realize the programming of this node module.
In the present embodiment, the JTag mouth of first kind interface 11, the JTag mouth of Equations of The Second Kind interface 12 include power lead (VCC), ground wire (GND), data line (DB DAT), sequential line (DB CLK) and reset line (RESET).
The debugger of the present embodiment be for can carry out online programming debugging and inner Flash storer is carried out to erasable debugger, and debugger 100 is also connected with user computer, user friendly operation.
As shown in Figure 2, the one key programming plate 300 of the present embodiment is provided with 14 first kind interfaces, be respectively P1-P14, the JTag mouth sequential line of described 14 first kind interfaces is connected with 14 sequential lines of a key programming plate respectively, the JTag mouth sequential line of 14 first kind interfaces is connected with 14 sequential lines of the connector P15 of a key programming plate respectively, and the JTag mouth sequential line DB CLK1-DB CLK14 of P1-P14 connects respectively the DB CLK1-DB CLK14 pin of the connecting interface P15 of a key programming plate.The one key programming plate of the present embodiment has 1 Equations of The Second Kind interface P16, and it is the carrier that debugger is connected to a key programming plate, and the data line of 14 first kind interface P1-P14 that Equations of The Second Kind interface P16 and 14 node modules are corresponding communicates, and sequential line is optional only; Sequential line is that the different code values by toggle switch switch selection.
P15 in Fig. 2, P17 is respectively the connector of a key programming plate and the connector of toggle switch, preferably, in the present embodiment, also comprise that two for arranging the dial-up unit (P18 and P19) of toggle switch code value, two dial-up unit (P18, P19) be all connected on the connector P17 of toggle switch, as shown in Figure 2, the corresponding connection of data line that the data line of two dial-up unit is different from 14 of toggle switch, be the data line DAT1 of dial-up unit P18, DAT3, DAT5, DAT13 respectively with the data line DAT1 of toggle switch, DAT3, DAT5, DAT13 connects, data line DAT2, DAT4, DAT6, the DAT8 of dial-up unit P19 ... DAT14 respectively with data line DAT2, DAT4, DAT6, the DAT8 of toggle switch ... DAT14 connects.If the code value that can analyze these two dial-up unit in Fig. 2 all the value of establishing effectively (not being 0) can cause the programming sequential entanglement of a key programming plate, final download programming program is unsuccessful, therefore the code value of these two dial-up unit settings repels each other, the code value that at every turn can only have a dial-up unit is that effectively the code value of another dial-up unit is invalid value 0; The connector P17 of toggle switch has been connected on the connector P15 of a key programming plate, the sequential line DB CLK1-DB CLK14 of the first kind interface P1-P14 mouth on the corresponding key programming plate of sequential line DB CLK1-DB CLK14 difference on the connector P15 of one key programming plate, so just can the code value of toggle switch be set and then change the sequential line on a key programming plate by two dial-up unit, and control the sequential line of selecting to connect one of P1-P14, thereby realize, a plurality of node modules are connected with debugger respectively by a key programming plate.
Preferably, each node module of the present embodiment accesses respectively the first kind interface on a key programming plate by winding displacement (being also flexible circuit board FPC, for the data transmission in movable part and zone of action); Described debugger accesses the Equations of The Second Kind interface of a key programming plate by winding displacement.Because winding displacement volume is little, lightweight, easy to connect, so the device of a plurality of Single Chip Microcomputer (SCM) program of the utility model programming has the advantages that volume is little, lightweight and be convenient to expansion.
The device of a plurality of Single Chip Microcomputer (SCM) program of programming by above-described embodiment, as long as treat that by a plurality of the node module of programming is inserted on a key programming plate by winding displacement, during a plurality of Single Chip Microcomputer (SCM) program of programming, code value by supporting toggle switch selects a corresponding node module and debugger to connect, and realizes thus each node module of company's one key programming plate to carry out one by one programming; Do not need the complete Single Chip Microcomputer (SCM) program of each programming just once to plug, reduced loss or damage in kind in plug process, improved work efficiency.
The embodiment of the method for a plurality of Single Chip Microcomputer (SCM) program of a kind of programming is also provided below, in the present embodiment of method, need allocate a plurality of programming sequential for the treatment of the node module of programming in advance, and set up different node modules and by the different sequential lines of a key programming plate, connect respectively the corresponding relation of debuggers, described corresponding relation: each node module connecting with a key programming plate is distinguished a sequential line of a corresponding key programming plate; The debugger connecting with a key programming plate is connected with corresponding node module by the sequential line of the key programming plate selected.Then toggle switch, debugger are connected to a described key programming plate; And according to described corresponding relation, a plurality of node modules are connected from the different sequential lines of a key programming plate, debugger can be connected with a corresponding node module by the sequential line of a key programming plate.
Preferably, on a key programming plate of the present embodiment, be provided with several for the first kind interface of access node module, and one for accessing the Equations of The Second Kind interface of debugger; The JTag mouth sequential line of different first kind interfaces is connected from the different sequential lines of a key programming plate; The JTag mouth sequential line of Equations of The Second Kind interface is selected to connect with a certain sequential line of a key programming plate by the code value of toggle switch; The JTag mouth data line of the JTag mouth data line of all first kind interfaces and Equations of The Second Kind interface is all connected with the same data line of a key programming plate.Therefore, this enforcement also needs respectively each node module to be connected with a first kind interface on a key programming plate in advance; Debugger is connected with the Equations of The Second Kind interface of a key programming plate, forms the device described in similar above-described embodiment, embodiment is with reference to described in above-described embodiment.
As shown in Figure 3, method of the present utility model specifically comprises the steps S1-S3.
Step S1, obtains the code value with the supporting toggle switch being connected of a key programming plate, selects the sequential line of the key programming plate that this code value is corresponding.
The one key programming plate of the present embodiment comprises the sequential line of 14, and the sequential line of 14 is corresponding 14 node modules for the treatment of programming respectively.
Step S2, obtains the node module corresponding with the sequential line of working as last key programming plate according to preset corresponding relation, and this node module and debugger are connected in control; Described preset corresponding relation is that each node module connecting with a key programming plate is a sequential line of a corresponding key programming plate respectively; The debugger connecting with a key programming plate is connected with corresponding node module by the sequential line of the key programming plate selected.
Step S3, in the node module that Single Chip Microcomputer (SCM) program programming is connected to current and debugger.
Preferably, the code value of toggle switch arranges by two dial-up unit, and one of them dial-up unit must be set to 0 at any time; Therefore described in, obtain the code value with the supporting toggle switch being connected of a key programming plate, select the sequential line of the key programming plate that this code value is corresponding, comprise: obtain the code value with the supporting toggle switch being connected of a key programming plate, according to the code value that is not a dial-up unit of 0, select the sequential line of a key programming plate.
Preferably, the present embodiment, for can carry out online programming debugging and inner Flash storer is carried out to erasable debugger, can be preferably CC series Debugger.Therefore, described by Single Chip Microcomputer (SCM) program programming, the step to the node module of current and debugger connection comprises: debugger is downloaded editor's Single Chip Microcomputer (SCM) program; In the node module of again the Single Chip Microcomputer (SCM) program programming editting being connected to current and debugger.
By the device of a plurality of Single Chip Microcomputer (SCM) program of above-described embodiment programming, during a plurality of Single Chip Microcomputer (SCM) program of programming, as long as allocate a plurality of programming sequential for the treatment of the node module of programming in advance, by being set, the code value of toggle switch selects again a sequential line of a key programming plate, thereby realize, debugger and corresponding node module are connected, just can be realized the programming to described a plurality of node modules.Do not need the complete Single Chip Microcomputer (SCM) program of each programming just once to plug, reduced loss or damage in kind in plug process, improved work efficiency.
Above disclosed is only the utility model preferred embodiment, certainly can not limit with this claim scope of the utility model, therefore, all any modifications of doing within spirit of the present utility model and principle, be equal to and replace and improvement etc., still belong to the scope that the utility model is contained.