LED autocoding address circuit
Technical field
The utility model is suitable for LED field of data transmission, and in particular to LED autocoding address circuit.
Background technique
With the LED extensive use with field on various occasions, market terminal client wants the reliability of LED circuit
Ask higher and higher.Be connected the products such as LED light bar, the light bar of LED circuit with parallel way, all LED circuits for example: LED light
The products such as item, light bar, are all connected in parallel on the data line of main controller, generally there is two data lines, and LED circuit is obtained by data line
The data for taking main controller to send.
Due to all LED circuits be all it is in parallel on the data line, main controller, the master control are connected on the data line
Device sends data on data line, so each LED circuit must have the address of oneself that could obtain correspondence from data line
Data.Specifically: the data that main controller is sent are made of multiple fields, and each LED circuit is corresponding to receive one or more words
Section, each field require the address of oneself, and LED according to the corresponding address of output sequencing, each LED circuit
Want received field address is corresponding can just normally receive data with it in the address of circuit.Currently used method is engineering
After being installed, main controller is unified to carry out a write address operation, and LED circuit each in this way has address, while LED electricity
Road guarantees that the address solidification received, engineering power-off is not lost.
However the method has the drawback that, project installation and commissioning is more troublesome because installation terminate or whenever
Part lamp bar has been replaced, could have been worked normally after write address operation will be re-started, it is not only cumbersome but also need know-how
Personnel, which show up, to complete.
In consideration of it, reducing project installation and commissioning difficulty it is necessary to propose simpler reliable scheme, project installation is saved
And maintenance cost.
Summary of the invention
In order to solve the deficiencies in the prior art, the utility model provides a kind of LED autocoding address circuit,
The LED autocoding address circuit enables to each LED circuit after project installation completes system electrification that will write and obtain automatically
Address is obtained, then can smoothly enter into working condition;And the LED electricity of any one of engineering damage can be replaced at any time
The LED circuit on road, replacement will write automatically the address for obtaining oneself, and engineering enters and works normally after address obtains automatically
State.Not only project installation maintenance is simple in this way, but also shows up and can be completed without dedicated technician.Project installation, maintenance
Efficiency greatly promotes, while installation and maintenance cost further decline.
A kind of LED autocoding address electricity is provided as the utility model according to technical solution provided by the utility model
Road, the LED autocoding address circuit are set in LED sub-circuit, comprising: coding circuit;
Field registers, the Field registers are for storing the Field Count that LED circuit needs to receive data;
Address register, the output end of the input terminal connection decoding circuit of the address register, for step-by-step storage solution
The code decoded circuit address of circuit;
Adder, the input terminal of the adder are separately connected Field registers and address register, the output of adder
The input terminal of end connection coding circuit;
Decoding circuit, the input terminal of the output end link address register of the decoding circuit.
Further, there are multiple LED sub-circuits, the input terminal PI of each LED sub-circuit is built-in with pull-up resistor, each
The LED autocoding address circuit is respectively equipped in LED sub-circuit;LED sub-circuit before the input terminal of LED sub-circuit is connected to
Output end, and the input terminal of first place LED sub-circuit is hanging;The output end of LED sub-circuit is connected to the defeated of rear LED sub-circuit
Enter end.
Further, the input terminal of the decoding circuit of each LED autocoding address circuit is its corresponding LED
The input terminal of sub-circuit;The output end of the coding circuit of each LED autocoding address circuit is its corresponding LED
The output end of circuit.
Further, the decoding circuit includes:
The input terminal of bit clock circuit, institute's bit clock circuit connects LED sub-circuit input terminal, and output end link address is posted
The clock signal input terminal of storage;
The first LED sub-circuit decision circuitry, the first place LED sub-circuit decision circuitry include that frequency eliminating circuit and second count
Device;The input terminal of LED sub-circuit is separately connected the reset terminal of frequency eliminating circuit and the second counter circuit, the frequency eliminating circuit when
Clock end connection standard clock signal CLK, the output end connection of frequency eliminating circuit or one end of door I25 and one end with door I23, second
The output end of counter connects or the other end of door I25 and the other end with door I23, described or door I25 output end connection the
The clock end of two counters, the output end with door I23 connect the input terminal of impulse circuit I113;
Reset circuit, the reset circuit include third counter, and the input terminal reverse phase of LED sub-circuit is followed by third counting
The output end of device reset terminal, third counter connects impulse circuit I112.
Further, institute's bit clock circuit includes: impulse circuit and four-counter;The input terminal of the impulse circuit
For the input terminal of bit clock circuit, the output end of four-counter for institute's bit clock circuit output end;The impulse circuit
Output end reverse phase be connected to the reset terminal of four-counter, the 4th meter of access after standard clock signal CLK connection or door I207
The clock end of number device, the output end connection of the four-counter or another input terminal of door I207.
Further, the output end of the reset circuit and the output end of first place LED sub-circuit decision circuitry are separately connected
Or the input terminal of door I24, described or door I24 output end connect the control terminal of the coding circuit.
Further, the coding circuit includes:
Data buffer, the output end of the data input pin connection adder of the data buffer;
First counter, the output end of the clock end connection coding circuit of first counter, for acquiring coding electricity
Road output encoded signal and counting;
Clock circuit, the output end of the input terminal connection latch of the clock circuit, the input terminal of the latch connect
The output end of the first counter is connect, the output end of the clock circuit connects the clock end of trigger I406 and trigger I404,
Trigger I406 connects the output end of data buffer with the input terminal of trigger I404.
Further, the data buffer is that 12 go forward side by side goes here and there out shift register.
It can be seen that LED autocoding address circuit provided by the utility model from the above, compared with prior art
Have following advantages: the LED autocoding address circuit and coding method enable in project installation completion system
Each LED circuit will be write automatically and obtain address after electricity, then can smoothly enter into working condition;And work can be replaced at any time
The LED circuit of the LED circuit of any one of journey damage, replacement will write automatically the address for obtaining oneself, and address is obtained automatically
Engineering enters normal operating conditions after taking.Not only project installation maintenance is simple in this way, but also is not necessarily to dedicated technician
Showing up can be completed.Project installation, maintenance efficiency greatly promote, while installation and maintenance cost further decline.
Detailed description of the invention
Fig. 1 is the principles of the present invention block diagram.
Fig. 2 is the application schematic diagram of the utility model.
Fig. 3 is the output waveform figure of LED sub-circuit output end in the utility model.
Fig. 4 is the schematic diagram of numeric data code described in the utility model.
Fig. 5 is decoding circuit schematic diagram in the utility model.
Fig. 6 is the bit clock circuit diagram in the utility model decoding circuit.
Fig. 7 is coding circuit schematic diagram in the utility model.
Fig. 8 is data buffer schematic diagram in the utility model.
Fig. 9 is the RSDF circuit diagram in the utility model in data buffer.
Figure 10 is that the utility model data decode timing waveform.
Figure 11 is the utility model data encoding timing waveform.
Specific embodiment
For the purpose of this utility model, technical solution and advantage is more clearly understood, below in conjunction with specific embodiment, and
Referring to attached drawing, the utility model is further described.Wherein identical components are presented with like reference characters.It needs
Illustrate, word "front", "rear" used in the following description, "left", "right", "up" and "down" refer to the side in attached drawing
To.The word "inner" used and "outside" refer respectively to the direction towards or away from geometric center of specific component.
As shown in Fig. 2, LED circuit includes multiple LED sub-circuits, respectively IC0, IC1 and IC2, multiple LED sub-circuits are simultaneously
It is associated in the output end of main controller, the main controller is for data needed for exporting LED sub-circuit, and the data are by multiple field groups
At each LED sub-circuit is corresponding to receive wherein one or more fields;And each field of main controller output is according to its output
Sequencing respectively corresponds a field address, the adoptable model K-1000 of main controller.Each LED sub-circuit root
Corresponding field is received according to the address of oneself, therefore needs the circuit equipped with autocoding address in each LED sub-circuit, and
Output end in preceding autocoding address circuit is connected with the input terminal in rear autocoding address circuit, first autocoding
The input terminal of address circuit (i.e. the autocoding address circuit of IC0) is hanging.As shown in Fig. 2, the input terminal of each LED sub-circuit
PI is the input terminal of the LED sub-circuit autocoding address circuit, and output end PO is the LED sub-circuit autocoding address
The output end of circuit.
As the utility model, a kind of LED autocoding address electricity being respectively arranged in each LED sub-circuit is provided
Road, wherein by taking current LED autocoding address circuit (i.e. the autocoding address circuit of IC1) as an example comprising: coding electricity
Road,
Field registers, the Field registers are for storing the Field Count that current LED circuit needs to receive data;
Address register, the address register is for storing the corresponding circuit address of current LED circuit;
Two input terminals of adder, the adder are separately connected Field registers and address register, adder
Output end is used to connect the input terminal of the coding circuit of current LED circuit, the output end of the coding circuit be the current LED from
The output end of dynamic coded address circuit;The adder is used for the corresponding circuit address of current LED circuit and needs to receive number
According to Field Count sum it up, and adduction result is exported and is encoded to the coding circuit of current LED circuit, current LED electricity
Road coding circuit is encoded according to the adduction result and is exported in rear LED autocoding address circuit (the i.e. automatic volume of IC2
Code address circuit).
Decoding circuit, (i.e. IC0's is automatic for LED autocoding address circuit before the input terminal of the decoding circuit is connected to
Coded address circuit) output end;For receiving the address date in the coding output of preceding LED autocoding address circuit, and decode
It exports to the address register of current LED autocoding address circuit.A control can be also exported after the decoding circuit decoding
Signal DGO processed gives its encoder, so that controlling current LED autocoding address circuit opens coding work.
The first embodiment as the utility model LED autocoding address circuit: the decoding circuit includes:
Bit clock circuit, the working principle of institute's bit clock circuit are as follows: it is used to handle defeated by LED sub-circuit input terminal PI
Each data entered, and export bit clock signal DCK;Specifically: according to from the LED received data of sub-circuit input terminal PI and
Standard clock signal CLK decodes bit clock signal DCK corresponding with the data bit from input terminal PI input data, and will be described
Bit clock signal DCK is exported to address register, the data that the bit clock signal DCK enables to input terminal PI to receive by
Position is stored in the address register.
As shown in Figure 5 and Figure 6, bit clock circuit specific structure are as follows: the input terminal connection LED electricity of institute's bit clock circuit
It is practical new that road input terminal PI, the clock signal input terminal of output end link address register, and bit clock circuit also receive this
The standard clock signal CLK provided in type.Specifically, as shown in fig. 6, institute's bit clock circuit includes impulse circuit and the 4th meter
Number device;The input terminal of the impulse circuit is the input terminal of bit clock circuit, and the output end of four-counter is institute's bit clock
The output end of circuit.The output end reverse phase of the impulse circuit is connected to the reset terminal of four-counter, and the impulse circuit makes
It generates a pulse signal in the rising edge of received signal, and by the output of pulse signal to NOT gate I206, NOT gate
The reset terminal of I206 output end connection four-counter.Four-counter is accessed after standard clock signal CLK connection or door I207
Clock end, the four-counter output end connection or another input terminal of door I207, for control four-counter stop
Work.
The course of work of bit clock circuit specifically: the received positive pulse of LED sub-circuit input terminal PI is as one
Data;When four-counter receives pulse signal, bit clock circuit, which is started to work and output it, is set to low level, simultaneously
Internal four-counter, which is reset, to be resetted and starts counting;When four-counter counts full 50 ~ 70 μ s as required, bit clock circuit
Output is set to high level, and the high level passes through or door I207 makes four-counter stop working, and four-counter receives again
It could task again after being reset to pulse signal.
The working principle of the first LED sub-circuit decision circuitry are as follows: the first LED sub-circuit decision circuitry is for the judgement one
Whether LED sub-circuit is the first LED sub-circuit.Specifically: judge whether LED sub-circuit input terminal PI is continuously high level,
If LED sub-circuit input terminal PI is continuously high level, which is first place LED sub-circuit.
The first place LED sub-circuit decision circuitry, comprising: frequency eliminating circuit and the second counter;The input terminal of LED sub-circuit
PI is separately connected the reset terminal of frequency eliminating circuit and the second counter circuit, the clock end connection standard time clock letter of the frequency eliminating circuit
Number CLK, the output end connection of frequency eliminating circuit or one end of door I25 and one end with door I23, the output end connection of the second counter
Or the other end and the other end with door I23, described or door I25 output end of door I25 connect the clock end of the second counter, institute
State the input terminal that impulse circuit I113 is connect with the output end of door I23.
The course of work of the first place LED sub-circuit decision circuitry: it is detected by frequency eliminating circuit and the second counter defeated
The time for entering to hold PI permanent High level confirms the LED sub-circuit for first place if the PI permanent High level time reaches design value
LED sub-circuit, and the second counter exports high level signal;The high level signal of the second counter output enables to
It is in enabled state with door I23, while the high level of second counter output also passes through or door I25 keeps the second counter steady
It is scheduled on this state.Second counter export high level signal after, frequency eliminating circuit, which works on, generates clock signal FCK, FCK pass through with
Door I23 finally enters impulse circuit I113, this impulse circuit I113 can be in the rising of the signal in input pulse circuit I 113
Pulse signal can be periodically generated as long as circuit input end PI is always maintained at high level along a positive pulse signal SHT is generated
SHT, the present embodiment design SHT signal and generate once every 4 milliseconds.
Reset circuit, if generating reset signal FRH when the input terminal PI certain time low level of LED sub-circuit.Tool
Body, the input terminal PI of the LED sub-circuit is followed by third counter resets end by NOT gate I26 reverse phase, third counter
Output end connects impulse circuit I112, and the output end of third counter is also connected with or door I22.If the input terminal PI of LED sub-circuit
When certain time low level, third counter is started to work and meter Man Houcong third counter output exports height as required
Level signal enters impulse circuit I112, and it is multiple that impulse circuit I112 will generate pulse output when its input terminal jumps to high level
Position signal FRH, when third counter exports high level signal, the high level signal passes through or door I22 control third counts
The input clock of device makes it stop working.When the input terminal PI of LED sub-circuit have high level reset third counter could again
It is secondary to rework.
The output end of the reset circuit and the output end of first place LED sub-circuit decision circuitry are separately connected or door I24
Input terminal, described or door I24 output end connect the control terminal of the coding circuit, when or door I24 detect reset signal FRH
Or pulse signal SHT is when occurring, then or door I24 output control signal DGO.
The first embodiment as the utility model LED autocoding address circuit: coding circuit is used for adder
The encoding by bit of adduction result and exported by the output end PO of the LED sub-circuit.
Since coding circuit receives number from input terminal PI by LED sub-circuit output end PO output data and decoding circuit
According to being all that the numeric data code defined by the utility model is completed.Therefore the numeric data code is defined as follows, a data cycle T c
It is 90 microseconds, data add one section of low level to form by one section of high level, and wherein the high level T0h of data 0 is 30 microseconds, data 1
High level T1h be 60 microseconds.Numeric data code waveform diagram such as Fig. 4 shows.
Specifically, the coding circuit includes:
Data buffer, the output of the output end or door I24 of the data input pin connection adder of the data buffer
The control terminal of end connection data buffer or the control signal DGO control data buffer starting of door I24 output;The data
The shift register structure gone here and there out of going forward side by side that buffer is 12 controls signal DGO for adder result data AND [11:0] one
Secondary property is loaded into data buffer, serially exports serially through output end under the clock signal effect of data buffer from high bit shift
Address signal SDO.
First counter, described or door I24 output end reverse phase connect the first counter reset terminal or door I24 it is defeated
The control signal DGO of outlet output is responsible for the first counter O reset and makes its start-up operation.The volume of the coding circuit output
Code signal is connected into the clock end of the first counter, for counting to encoded signal.
Clock circuit, the output end of the input terminal connection latch of the clock circuit, two inputs of the latch
End is separately connected the output end of the first counter and/or the output end of door I24, and the control signal DGO of described or door I24 output will
The enabled of clock circuit is set as 1 and makes its start-up operation.When clock circuit work, clock circuit exports clock signal SCK,
The clock end of output end connection the trigger I406 and trigger I404 of the clock circuit;The clock signal SCK period is 30 micro-
Second, trigger I406 and I404 and other interrelated logic doors the exports coding signal under clock signal SCK effect, three clock letters
The clock cycle of number SCK exports a data, if address signal SDO is 0, this encoded signal exports 1 period high electricity
Flat plus 2 period low levels, if data address signal SDO is 1, this encoded signal exports 2 period high level and added for 1 period
Low level.The output end PO of LED sub-circuit exports the failing edge of current a data for the next bit data for needing to export from number
It is exported according to buffer output end.Coding timing waveform such as Figure 11 shows.
Encoded signal exports simultaneously, and the first counter counts the encoded signal of output, and the first counter counts are expired defeated when 12
Control signal CN12 makes clock circuit stop working out, i.e. PO will continuously export 12-bit data, and PO keeps low level later.So far
Coding circuit whole work process terminates.
It should be understood by those ordinary skilled in the art that: the foregoing is merely specific embodiment of the utility model and
, it is not intended to limit the utility model, all any modifications within the purport of the utility model, made, change equivalent replacement
Into etc., it should be included within the scope of protection of this utility model.