CN1801129A - Selection circuit for selecting slave module in accordance with connection sequence and control mode thereof - Google Patents

Selection circuit for selecting slave module in accordance with connection sequence and control mode thereof Download PDF

Info

Publication number
CN1801129A
CN1801129A CN 200610037781 CN200610037781A CN1801129A CN 1801129 A CN1801129 A CN 1801129A CN 200610037781 CN200610037781 CN 200610037781 CN 200610037781 A CN200610037781 A CN 200610037781A CN 1801129 A CN1801129 A CN 1801129A
Authority
CN
China
Prior art keywords
module
level
signal
clock
type flip
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
Application number
CN 200610037781
Other languages
Chinese (zh)
Other versions
CN100367261C (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNB2006100377817A priority Critical patent/CN100367261C/en
Publication of CN1801129A publication Critical patent/CN1801129A/en
Application granted granted Critical
Publication of CN100367261C publication Critical patent/CN100367261C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

The invention discloses a circuit selection and control pattern according to the connection sequence of mode selection, which is characterized by the following: setting the selected circuit of mode as D trigger; connecting each mode D trigger serially to form shift register; transmitting only one effective selection signal of main mode in the secondary mode according to the serial connection sequence; paralleling the clock signal of main mode to clock signal end of the secondary mode; paralleling the clear signal of main mode to the clear end of secondary mode. The invention accomplishes the mode selection of serial connection according to the connection sequence without setting address, which connects secondary mode first then main mode sequently and selects utility of serial connection mode according to the connection sequence.

Description

Selection circuit and control mode thereof that slave module in accordance with connection sequence is selected
Technical field:
The present invention relates to a kind of by the selection circuit and the control mode thereof of primary module to selecting from module.
Background introduction:
Have a lot of electronic products all to adopt modular design now, make the configuration of product more flexible, the user can select easily.Generally, the module of this product can be divided into primary module (as: main control module, CPU module etc.) and from module (as: switching value input/output module, analog quantity input/output module etc.).Each module is connected in series.Each all has the address of oneself from module.The address signal that primary module transmits by the logical circuit on module, produces corresponding module select signal, thereby control is to the visit from module.The user can change the address from module by modes such as wire jumpers.Adopt this connected mode, before using product will to product from module the address is set, and must guarantee that the address do not repeat, cumbersome.And when increasing new module, also to be provided with one with current all from module address inequality, not too convenient.
Summary of the invention:
The present invention is for avoiding above-mentioned existing in prior technology weak point, and a kind of selection circuit that can select by the order of connection is provided.
The present invention provides the control mode of this circuit simultaneously.
The technical scheme that technical solution problem of the present invention is adopted is:
The present invention selects the design feature of circuit to be: it is characterized in that single selection circuit from module is a d type flip flop, each d type flip flop from module is connected in series each other, constitute shift register, primary module unique one effectively select signal CS_Input by sequence delivery connected in series to selected from module, primary module clock signal C S_Clock is in parallel to insert respectively clock signal terminal CLK from module, and primary module reset signal CS_Clear is in parallel to insert respectively clear terminal CLR from module.
The characteristics of control mode of the present invention are to work in the following order:
A, primary module CS_Clear be output " low " level earlier, and the Q end of all d type flip flops all is set to " low " level, and output " height " level again makes all d type flip flops can the normal delivery signal;
B, primary module CS_Input export " height " level, and from CS_Clock output " low " level;
C, individual from module if will visit n, earlier from CS_Clock output " height " level, then from CS_Clock and CS_Input output " low " level, so repeat n time, produce n rising edge at the CS_Clock end, unique " height " level is moved on to the Q end of n d type flip flop from module, thereby make this selection signal from module effective, primary module can conduct interviews from module to this;
D, after visit finishes, from CS_Clear output " low " level, the Q end of all d type flip flops all is set to " low " level, make all invalid from the selection signal of module.
The present invention utilizes shift register, and unique of primary module is effectively selected signal, by sequence delivery connected in series to selected from module, make primary module to conduct interviews from module to this.
Compared with the prior art, beneficial effect of the present invention is embodied in:
The present invention selects circuit can realize by the order of connection module connected in series being selected, and need not to be provided with the address.During use, only needing will be connected in series one by one from module, receive primary module at last again, by the order of connection module connected in series be selected to use.
Description of drawings:
Fig. 1 is that the present invention is from module syndeton block diagram.
Fig. 2 is that the present invention is from module connecting circuit structural representation.
Fig. 3 is the master and slave module of a present invention formation shift-register circuit connected in series structural representation.
Below by embodiment the present invention is further described:
Embodiment:
Primary module is with connected in series from module, as shown in Figure 1 in the present embodiment.Primary module output 3 control signal wire: CS_Clear, CS_Clock, CS_Input.From the connecting circuit of module as shown in Figure 2.Wherein P1 is an input socket, and P2 is an accessory power outlet, and chip SN74HC74N is a d type flip flop.
The principle of work of this connecting circuit: master and slave module is connected in series, enough become a shift-register circuit, by primary module whole shift circuit is controlled.As shown in Figure 3.
In the present embodiment, when the CS_Clear signal of primary module output was " low " level, the Q end of all d type flip flops all was " low " level; When the CS_Clear signal of primary module output was " height " level, the rising edge of each CS_Clock signal all can pass to the level signal of d type flip flop D end the Q end, thus the displacement that produces signal.The output terminal Q (or Q) of the d type flip flop from the module connecting circuit is as the selection signal from module.
The scope of application of this connecting circuit: be applicable to " one main many from " structure, module and circuit board connected in series.Particularly need by the product of the order of connection conducting interviews from module.
In concrete the enforcement: when using this connecting circuit, be not to use chip SN74HC74N.As long as several chip blocks couple together and can constitute shift register.For effective selection signal be " height " level from module, can obtain the selection signal from the Q end of d type flip flop; For effective selection signal be " low " level from module, can obtain the selection signal from the Q end of d type flip flop.

Claims (2)

1, a kind of selection circuit of slave module in accordance with connection sequence selection, it is characterized in that single selection circuit from module is a d type flip flop, each d type flip flop from module is connected in series each other, constitute shift register, primary module unique one effectively select signal CS_Input by sequence delivery connected in series to selected from module, primary module clock signal C S_Clock is in parallel to insert respectively clock signal terminal CLK from module, and primary module reset signal CS_Clear is in parallel to insert respectively clear terminal CLR from module.
2, the control mode of the described selection circuit of claim 1 is characterized in that following steps carry out:
A, primary module CS_Clear be output " low " level earlier, and the Q end of all d type flip flops all is set to " low " level, and output " height " level again makes all d type flip flops can the normal delivery signal;
B, primary module CS_Input export " height " level, and from CS_Clock output " low " level;
C, individual from module if will visit n, earlier from CS_Clock output " height " level, then from CS_Clock and CS_Input output " low " level, so repeat n time, produce n rising edge at the CS_Clock end, unique " height " level is moved on to the Q end of n d type flip flop from module, thereby make this selection signal from module effective, primary module can conduct interviews from module to this;
D, after visit finishes, from CS_Clear output " low " level, the Q end of all d type flip flops all is set to " low " level, make all invalid from the selection signal of module.
CNB2006100377817A 2006-01-13 2006-01-13 Selection circuit for selecting slave module in accordance with connection sequence and control mode thereof Expired - Fee Related CN100367261C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100377817A CN100367261C (en) 2006-01-13 2006-01-13 Selection circuit for selecting slave module in accordance with connection sequence and control mode thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100377817A CN100367261C (en) 2006-01-13 2006-01-13 Selection circuit for selecting slave module in accordance with connection sequence and control mode thereof

Publications (2)

Publication Number Publication Date
CN1801129A true CN1801129A (en) 2006-07-12
CN100367261C CN100367261C (en) 2008-02-06

Family

ID=36811141

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100377817A Expired - Fee Related CN100367261C (en) 2006-01-13 2006-01-13 Selection circuit for selecting slave module in accordance with connection sequence and control mode thereof

Country Status (1)

Country Link
CN (1) CN100367261C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374095B (en) * 2008-09-11 2011-10-12 北京佳讯飞鸿电气股份有限公司 Design method for multiple-unit cascade bus
CN107025193A (en) * 2016-01-30 2017-08-08 鸿富锦精密电子(重庆)有限公司 Electronic installation connects system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6026350A (en) * 1996-08-30 2000-02-15 Hewlett Packard Company Self-framing serial trigger for an oscilloscope or the like
CN1091976C (en) * 1998-12-03 2002-10-02 华侨大学 Multi-channel selection controller able to extend at will
CN2891086Y (en) * 2006-01-13 2007-04-18 夏振宇 Selection circuit that selects slave modules in connection sequence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374095B (en) * 2008-09-11 2011-10-12 北京佳讯飞鸿电气股份有限公司 Design method for multiple-unit cascade bus
CN107025193A (en) * 2016-01-30 2017-08-08 鸿富锦精密电子(重庆)有限公司 Electronic installation connects system

Also Published As

Publication number Publication date
CN100367261C (en) 2008-02-06

Similar Documents

Publication Publication Date Title
EP2042003B1 (en) Device and method for addressing power to a load selected from a plurality of loads
CN101546545A (en) Clock signal generating signal and clock signal generating circuit
CN101699691B (en) Multi-order multi-parameter adjustable electrical load device
CN201259629Y (en) Configurable I/O module for multiple bus interface
CN201321899Y (en) Main control panel for local control cabinet of marine diesel
CN201583831U (en) Shift series type digital display meter
CN2891086Y (en) Selection circuit that selects slave modules in connection sequence
CN1801129A (en) Selection circuit for selecting slave module in accordance with connection sequence and control mode thereof
CN2682480Y (en) SPI synchronous serial communication interface circuit integrated in a chip
CN207457318U (en) A kind of modular electric energy meter
CN1293371A (en) Charge or discharge state indicator of battery for protable electronic products
CN100566107C (en) Digital pure sine wave inverter and inverse method thereof
CN210835696U (en) Expansion IO output device
CN209015139U (en) A kind of I2C bus circuit, chip and system
CN102279824A (en) Input interface expanding circuit and control device
CN2206010Y (en) Digital multi-address controller for electrical switch
CN206400348U (en) A kind of construction machinery controller
CN2483935Y (en) Cascade connection type controller for bundling light
CN1595383A (en) Programmable bus type control port expansion module
CN209849166U (en) Multi-channel music fountain control device
CN110123168A (en) A kind of multi gear position toggle switch and its circuit and multi gear position identification circuit, device
CN207611366U (en) A kind of operation identification device and the intelligent terminal with the operation identification device
CN202794928U (en) Address coding device
CN218888718U (en) Wireless data transmission device for intelligent torque wrench and intelligent torque wrench
CN101055686A (en) Digital display board

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080206

Termination date: 20110113