CN102361527A - Circuit with microprogrammed control unit (MCU) address automatically written according to DMX512 protocol and implementation method for circuit - Google Patents

Circuit with microprogrammed control unit (MCU) address automatically written according to DMX512 protocol and implementation method for circuit Download PDF

Info

Publication number
CN102361527A
CN102361527A CN2011103550315A CN201110355031A CN102361527A CN 102361527 A CN102361527 A CN 102361527A CN 2011103550315 A CN2011103550315 A CN 2011103550315A CN 201110355031 A CN201110355031 A CN 201110355031A CN 102361527 A CN102361527 A CN 102361527A
Authority
CN
China
Prior art keywords
mcu
address
chip
level signal
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.)
Pending
Application number
CN2011103550315A
Other languages
Chinese (zh)
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.)
Sichuan Jiuzhou Electronic Technology Co Ltd
Sichuan Jiuzhou Optoelectronics Technology Co Ltd
Original Assignee
Sichuan Jiuzhou Optoelectronics Technology Co Ltd
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 Sichuan Jiuzhou Optoelectronics Technology Co Ltd filed Critical Sichuan Jiuzhou Optoelectronics Technology Co Ltd
Priority to CN2011103550315A priority Critical patent/CN102361527A/en
Publication of CN102361527A publication Critical patent/CN102361527A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a circuit with a microprogrammed control unit (MCU) address automatically written according to a DMX512 protocol and an implementation method for the circuit. The circuit comprises a plurality of address units, wherein an MCU in the address units is connected with an RS-485 bus in parallel and connected with a constant current driving power supply; at least three poles of the MCU in each address unit are connected to series-to-parallel chips; an independent series connection is formed between the series-to-parallel chips to which each MCU is connected; the series-to-parallel chips have at least two paths of outputs, and convert input series level signals into parallel level signals; one path of the series-to-parallel chips outputs the parallel level signals to the MCU, and the other path of the series-to-parallel chips continuously transfers the level signals to the next series-to-parallel chip; and the MCU converts the input level signals into addresses through an established protocol, and the addresses are saved by an internal electronically erasable programmable read-only memory (EEPROM) of the MCU. The circuit with the MCU address automatically written according to the DMX512 protocol and the implementation method for the circuit can be applied to various circuit systems with DMX512 protocol transmission, particularly to control signal transmission in a light-emitting diode (LED) lighting engineering, and the application range is wide.

Description

The DMX512 agreement writes circuit and its implementation of MCU address automatically
Technical field
The present invention relates to the led circuit control circuit, a kind of DMX512 agreement of saying so more specifically writes circuit and its implementation of MCU address automatically.
Background technology
In the LED lighting engineering, the great power LED product is more and more at present, and uses the DMX512 agreement to carry out having accounted for more than 90% of communication in the great power LED product; And in the LED control of product the DMX512 agreement that extensively adopts be the RS-485 bus transmission model; Be about to single-chip microcomputer in the LED product and be connected in parallel on and unify control on the RS-485 bus, and be to guarantee that the single-chip microcomputer in each product all can receive control signal on the RS-485 bus, just need make each single-chip microcomputer all have a unique address; Thereby when the LED product is to be installed, need carry out the address one by one writes; And this also is to use the DMX512 agreement to carry out LED at present to control one of method of main flow, and its concrete grammar is to adopt the RS-485 bus to write the address separately each LED product, has write the address and has installed to appointed positions by the address one by one again; Cause difficulty of construction big like this; And error rate is high, and efficiency of construction is lower, and at present domestic each big LED manufacturer all is directed against the problems referred to above and has done different improvement; Simplification in various degree the program that writes of DMX512 protocol transmission address, and this patent is also to this technical problem and propose.
Summary of the invention
The objective of the invention is to solve above-mentioned deficiency, provide a kind of a kind of DMX512 agreement that can disposablely write the MCU address automatically to write circuit and its implementation of MCU address automatically.
For solving above-mentioned technical problem, the present invention adopts following technical scheme:
A kind of DMX512 agreement that one aspect of the present invention provides writes the circuit of MCU address automatically; Comprise a plurality of address locations; MCU in the address location is through the RS-485 bus parallel connection; And MCU also inserts constant-current driving power supply, and wherein at least three utmost points of the MCU in described each address location also insert string to be changeed and chip, and forms independent series connection between the string that each MCU inserted commentaries on classics and the chip; String changes and chip two-way output at least; And convert the serial level signal of input into parallel level signal one tunnel and export MCU to, another road is continued to be passed to next string with level signal and is changeed and chip, and MCU is the address with the level signal of input through set protocol conversion and preserves through its inner EEPROM.
Further technical scheme is: string commentaries on classics in described a plurality of address locations and chip form with monobus through ground wire and connect, and monobus is used for a plurality of strings changes the also transmission of the level signal between the chip, and ground wire is ground connection then.
Technical scheme further is: described set agreement is based on the translation-protocol that the DMX512 agreement writes, and translation-protocol can cooperate MCU to carry out address transition according to the difference of the parallel level signal of input.
The present invention provides a kind of DMX512 agreement to write the implementation method of MCU address automatically on the other hand, and described method is carried out according to following steps:
Step 1, at first increase a string in each address location in DMX512 protocol transmission RS-485 bus circuit respectively and change and chip; It is inserted on the tripod at least through RS-485 bus MCU parallel with one another, and a plurality of string changes and chip is set to independent series connection;
Step 2, after circuit powers on; String through to mutual series connection changes and chip incoming level signal; Each string commentaries on classics of connecting each other and chip convert the serial level signal of input into parallel level signal, and among the input MCU that walks abreast, serial is imported in next string commentaries on classics and the chip;
Step 3, MCU through its inner predefined set agreement, convert the level signal of receiving into address information and also store after receiving the parallel level signal that comes from string commentaries on classics and chip.
Further technical scheme is: this implementation method also comprises: step 4, when the serial level signal input in the circuit that last string changes and chip after; String change and chip directly with level signal through among the MCU of parallel delivery outlet input under it; No longer export the serial level signal, MCU is converted into address information and stores.
Technical scheme further is: described level signal is imported by monobus; String commentaries on classics and chip are after receiving level signal from monobus; Level through its parallel signal delivery outlet changes; Transmit different binary-level signals and give MCU, make MCU be translated into address own, and this address is all inequality with the address that other MCU generates in circuit through set agreement.
Compared with prior art; The invention has the beneficial effects as follows: change and chip through in the monolithic of address, increasing string, the RS-485 bus in the circuit is write with the address separate, the address of MCU is write with the total line traffic control of RS-485 be independent of each other; In practical operation; Can be with carrying out the one-time write address again after all LED product installations, and change the control string through level and change and chip, make each MCU all generate unique address; Simplified in the DMX512 agreement program that writes the address to each MCU greatly; And a kind of DMX512 agreement provided by the present invention writes circuit and its implementation of MCU address automatically and can in the Circuits System of various DMX512 protocol transmission, use, and especially in the LED lighting engineering, carries out the control signal transmission and use, and range of application is wide.
Description of drawings
Fig. 1 is an electrical block diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further elaboration.
As shown in Figure 1, a kind of DMX512 agreement provided by the present invention writes the circuit of MCU address automatically, comprises a plurality of address locations; MCU in the address location is through the RS-485 bus parallel connection; And MCU also inserts constant-current driving power supply, and MCU lights the LED lamp through the control constant-current driving, and controls its brightness.
Wherein three utmost points of MCU in described each address location also insert string to be changeed and chip; And the string that each MCU inserted changes and also forms independent series connection between the chip; String changes and chip two-way output at least, and converts the serial level signal of input into parallel level signal, and one the tunnel exports MCU to; Another road is continued to be passed to next the string with level signal and is changeed and chip, and MCU is the address through set protocol conversion and passes through its inner EEPROM and preserve the level signal of input.
And above-mentioned set agreement can be write the AARP of various suitable MCU operations based on the DMX512 agreement according to different LED control products, and MCU utilizes translation-protocol to realize the conversion of the parallel level signal of string commentaries on classics and chip input to the address; In particular; Set agreement is the agreement that defines between LED product and the product; Because all do not have unified write address method with DMX512 Protocols of LED light fixture at present; Therefore the effect of alleged set agreement is to let the LED product when can accepting general DMX512 agreement among the present invention, embeds its special-purpose automatic write address agreement again.
Described level signal is imported by monobus; Behind the monobus incoming level signal; String changes and the parallel signal delivery outlet generation level of chip changes, and is used for transmitting different and gives MCU at the unduplicated binary-level signal of circuit, makes MCU through set agreement it transformed the address of generation own; And the address has uniqueness, and the address that in circuit, generates with other MCU switching levels is all inequality.
For example the write address controller is imported one group binary-level signal 110010 to the serial input terminal of string commentaries on classics and chip through fixing chip agreement through monobus; So will be on the parallel output pin of chip outputs level signals 110010; The level signal that the parallel signal output of string commentaries on classics and chip is exported according to the write address controller; Export the different parallel level signal of height through the parallel output terminal pin to MCU; Be that above-mentioned string changes and the parallel signal delivery outlet generation level of chip changes, and have uniqueness.
And at present general string changes and chip has polytype; With TLS3001 is example; The SDI of its top is a serial input terminal, and SDO is a serial output terminal, and OUT1, OUT2, OUT3 are parallel output terminal; Serial output terminal SDO inserts next string changes the also serial input terminal SDI of chip, and parallel output terminal OUT1, OUT2, OUT3 then insert MCU.After serial input terminal SDI received the level signal that comes from the write address controller in the monobus, parallel output terminal OUT1, OUT2, OUT3 exported different high-low level signals respectively to MCU.
As shown in Figure 1 again, for being more conducive to the present invention program's enforcement, preferably a plurality of strings commentaries on classics in the address location and chip to be connected with monobus formation through ground wire, monobus is used for a plurality of strings changes the also transmission of the level signal between the chip, and ground wire is ground connection then.
According to above-described circuit, the method for the LED product MCU address that can realize inserting in the disposable automatic write circuit, this method is carried out according to following steps:
Step 1, at first increase a string in each address location in DMX512 protocol transmission RS-485 bus circuit respectively and change and chip; It is inserted on the wherein tripod through RS-485 bus MCU parallel with one another, and a plurality of string changes and chip is set to independent series connection;
Step 2, after circuit powers on; String through to mutual series connection changes and chip incoming level signal; Each string commentaries on classics of connecting each other and chip convert the serial level signal of input into parallel level signal, and among the input MCU that walks abreast, serial is imported in next string commentaries on classics and the chip;
Step 3, MCU are after receiving the parallel level signal that comes from string commentaries on classics and chip; Through its inner predefined set agreement; Convert the level signal of receiving into address information, and store, when MCU receives the parallel level signal that comes from string commentaries on classics and chip once more by its built-in EEPROM; Then continue it to be changed calculated address through set agreement; And replace among its built-in EEPROM the address that stores in advance, when guaranteeing at the write address controller through monobus to each address location one-time write address, the address of each MCU all is unique.
Described level signal is imported by monobus; Behind the monobus incoming level signal; String changes and the parallel signal delivery outlet generation level of chip changes, and is used for transmitting different and gives MCU at the unduplicated binary-level signal of circuit, makes MCU through set agreement it transformed the address of generation own; And the address has uniqueness, and the address that in circuit, generates with other MCU switching levels is all inequality.
Step 4, when the serial level signal input in the circuit that last string changes and chip after; String change and chip directly with level signal through among the MCU of parallel delivery outlet input under it; No longer export the serial level signal, MCU is converted into address information and stores.

Claims (6)

1. a DMX512 agreement writes the circuit of MCU address automatically; Comprise a plurality of address locations; MCU in the address location is through the RS-485 bus parallel connection; And MCU also inserts constant-current driving power supply, it is characterized in that: wherein at least three utmost points of the MCU in described each address location also insert string to be changeed and chip, and forms independent series connection between the string that each MCU inserted commentaries on classics and the chip; String changes and chip two-way output at least; And convert the serial level signal of input into parallel level signal one tunnel and export MCU to, another road is continued to be passed to next string with level signal and is changeed and chip, and MCU is the address with the level signal of input through set protocol conversion and preserves through its inner EEPROM.
2. DMX512 agreement according to claim 1 can write the circuit of MCU address automatically; It is characterized in that: the string in described a plurality of address locations changes and chip is connected with monobus formation through ground wire; Monobus is used for a plurality of strings changes the also transmission of the level signal between the chip, and ground wire is ground connection then.
3. DMX512 agreement according to claim 1 can write the circuit of MCU address automatically; It is characterized in that: described set agreement is based on the translation-protocol that the DMX512 agreement writes, and translation-protocol can cooperate MCU to carry out address transition according to the difference of the parallel level signal of input.
4. a DMX512 agreement writes the implementation method of MCU address automatically, and it is characterized in that: described method is carried out according to following steps:
Step 1, at first increase a string in each address location in DMX512 protocol transmission RS-485 bus circuit respectively and change and chip; It is inserted on the tripod at least through RS-485 bus MCU parallel with one another, and a plurality of string changes and chip is set to independent series connection;
Step 2, after circuit powers on; String through to mutual series connection changes and chip incoming level signal; Each string commentaries on classics of connecting each other and chip convert the serial level signal of input into parallel level signal, and among the input MCU that walks abreast, serial is imported in next string commentaries on classics and the chip;
Step 3, MCU through its inner predefined set agreement, convert the level signal of receiving into address information and also store after receiving the parallel level signal that comes from string commentaries on classics and chip.
5. DMX512 agreement according to claim 4 writes the implementation method of MCU address automatically; It is characterized in that: this implementation method also comprises: step 4, when the serial level signal input in the circuit that last string changes and chip after; String change and chip directly with level signal through among the MCU of parallel delivery outlet input under it; No longer export the serial level signal, MCU is converted into address information and stores.
6. write the implementation method of MCU address automatically according to claim 4 or 5 described DMX512 agreements; It is characterized in that: level signal is imported by monobus in the described step 2; String changes also, and chip through the level variation of its parallel signal delivery outlet, transmits different binary-level signals and gives MCU after from monobus, receiving level signal; Make MCU be translated into address own, and this address is all inequality with the address that other MCU generates in circuit through set agreement.
CN2011103550315A 2011-11-10 2011-11-10 Circuit with microprogrammed control unit (MCU) address automatically written according to DMX512 protocol and implementation method for circuit Pending CN102361527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103550315A CN102361527A (en) 2011-11-10 2011-11-10 Circuit with microprogrammed control unit (MCU) address automatically written according to DMX512 protocol and implementation method for circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103550315A CN102361527A (en) 2011-11-10 2011-11-10 Circuit with microprogrammed control unit (MCU) address automatically written according to DMX512 protocol and implementation method for circuit

Publications (1)

Publication Number Publication Date
CN102361527A true CN102361527A (en) 2012-02-22

Family

ID=45586779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103550315A Pending CN102361527A (en) 2011-11-10 2011-11-10 Circuit with microprogrammed control unit (MCU) address automatically written according to DMX512 protocol and implementation method for circuit

Country Status (1)

Country Link
CN (1) CN102361527A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799547A (en) * 2012-07-06 2012-11-28 深圳市磊芯半导体有限公司 DMX (digital dimmer protocol) 512-based chip addressing system and addressing mode thereof
CN109041349A (en) * 2018-09-03 2018-12-18 深圳市汇德科技有限公司 It is a kind of that address device and system are write based on LED decoding circuit automatically

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060109204A1 (en) * 2004-11-24 2006-05-25 Artled Technology Corp. System for controlling LED devices
CN101404839A (en) * 2008-05-16 2009-04-08 上海大峡谷光电科技有限公司 Enhancement type DMX512 light control system added with auxiliary collocation channel
CN101789978A (en) * 2009-01-22 2010-07-28 敦泰科技(深圳)有限公司 DMX512 data receivers and method thereof for automatic addressing in network
CN102209110A (en) * 2011-05-18 2011-10-05 东南大学 Online controllable sensing node positioning method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060109204A1 (en) * 2004-11-24 2006-05-25 Artled Technology Corp. System for controlling LED devices
CN101404839A (en) * 2008-05-16 2009-04-08 上海大峡谷光电科技有限公司 Enhancement type DMX512 light control system added with auxiliary collocation channel
CN101789978A (en) * 2009-01-22 2010-07-28 敦泰科技(深圳)有限公司 DMX512 data receivers and method thereof for automatic addressing in network
CN102209110A (en) * 2011-05-18 2011-10-05 东南大学 Online controllable sensing node positioning method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799547A (en) * 2012-07-06 2012-11-28 深圳市磊芯半导体有限公司 DMX (digital dimmer protocol) 512-based chip addressing system and addressing mode thereof
CN102799547B (en) * 2012-07-06 2015-06-17 深圳市磊芯半导体有限公司 DMX (digital dimmer protocol) 512-based chip addressing system and addressing mode thereof
CN109041349A (en) * 2018-09-03 2018-12-18 深圳市汇德科技有限公司 It is a kind of that address device and system are write based on LED decoding circuit automatically

Similar Documents

Publication Publication Date Title
CN201765779U (en) LED (light emitting diode) luminaire and cascading structure thereof
CN201585178U (en) Control device of LED lamp based on DMX512 protocol
CN205015730U (en) Stage element centralized control system
CN202652608U (en) Street lamp control system and digital controller thereof
CN106211433A (en) A kind of Power Carrier communication LED control chip
CN205992997U (en) A kind of Power Carrier communication LED control chip
CN106376154A (en) Control system for self-adaptive scene of stage lighting
CN202093678U (en) One-line type dispersive traffic signal lamp control system
CN203206524U (en) External-control RGB wall washer system
CN102420871B (en) Network data acquirer
CN102361527A (en) Circuit with microprogrammed control unit (MCU) address automatically written according to DMX512 protocol and implementation method for circuit
CN101336028A (en) Bidirectional daisy-chain cascades light network control method and system
CN201947259U (en) Simple communication system based on power grid
CN201487684U (en) Synchronous light emitting diode lamp string
CN100505970C (en) Control system and method for light emitting network
CN202282894U (en) Full color LED (light-emitting diode) project lamp controlled by DMX (digital multipiex)
CN107682989A (en) Street lamp control system and its application based on RS485 communications
CN201018526Y (en) DALI-RS485 gateway apparatus
CN101868100A (en) LED street lamp control system
CN102098840B (en) Simple communication system based on power grid
CN207652741U (en) Street lamp control system based on RS485 communications
CN105356762A (en) Bilateral switch switch-over single-phase and three-phase power supply and communication device and control method thereof
WO2012009622A2 (en) Powerline communication control of light emitting diode (led) lighting fixtures
CN210225826U (en) Mixed light illumination adjusting device based on Zigbee technology
CN203104872U (en) Brightness control system of LED lighting lamps

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120222