CN109379812A - LED autocoding address circuit and coding method - Google Patents
LED autocoding address circuit and coding method Download PDFInfo
- Publication number
- CN109379812A CN109379812A CN201811417553.1A CN201811417553A CN109379812A CN 109379812 A CN109379812 A CN 109379812A CN 201811417553 A CN201811417553 A CN 201811417553A CN 109379812 A CN109379812 A CN 109379812A
- Authority
- CN
- China
- Prior art keywords
- circuit
- led
- address
- led sub
- input terminal
- 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
Links
- 238000000034 method Methods 0.000 title abstract description 14
- 230000005611 electricity Effects 0.000 claims description 10
- 238000009434 installation Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 238000012423 maintenance Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000007711 solidification Methods 0.000 description 1
- 230000008023 solidification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Abstract
The present invention provides LED autocoding address circuit and coding method.The LED autocoding address circuit includes: coding circuit;Field registers are for storing the Field Count that LED circuit needs to receive data;The output end of the input terminal connection decoding circuit of address register;The input terminal of adder is separately connected Field registers and address register, the input terminal of the output end connection coding circuit of adder;The input terminal of the output end link address register of decoding circuit.The address LED automatic coding includes: to judge whether LED sub-circuit is the first LED sub-circuit;If the first LED sub-circuit, the corresponding circuit address of the first LED sub-circuit is set as 0;If not first place LED sub-circuit, the received signal of LED sub-circuit decoding, decoded signal step-by-step is stored;The Field Count that the circuit address of LED sub-circuit is needed with it is summed it up;Adduction result information is encoded and exported.The invention enables be installed power on after each LED circuit automatically write obtain address.
Description
Technical field
The present invention is suitable for LED field of data transmission, and in particular to LED autocoding address circuit and coding method.
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 present invention provides a kind of LED autocoding address circuit and
Coding method, the LED autocoding address circuit and coding method enable to after project installation completes system electrification
Each LED circuit will be write automatically and obtain address, then can smoothly enter into working condition;And it can replace in engineering at any time
Any one damage LED circuit, the LED circuit of replacement will write the address for obtaining oneself automatically, and address obtains knot automatically
Engineering enters normal operating conditions after beam.Not only project installation maintenance is simple in this way, but also shows up without dedicated technician
It can be completed.Project installation, maintenance efficiency greatly promote, while installation and maintenance cost further decline.
The technical solution provided according to the present invention provides a kind of LED autocoding address electricity as first aspect present invention
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 decoding electricity
The decoded circuit address in road;
Adder, the input terminal of the adder are separately connected Field registers and address register, and the output end of adder connects
Connect the input terminal of 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, output end link address register
Clock signal input terminal;
The first LED sub-circuit decision circuitry, the first place LED sub-circuit decision circuitry includes frequency eliminating circuit and the second counter;
The input terminal of LED sub-circuit is separately connected the reset terminal of frequency eliminating circuit and the second counter circuit, the clock of the frequency eliminating circuit
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, the second meter
The output end connection of number device or the other end of door I25 and the other end with door I23, described or door I25 output end connection second
The clock end of counter, the output end with door I23 connect the input terminal of impulse circuit I113;
Reset circuit, the reset circuit include third counter, and it is multiple that the input terminal reverse phase of LED sub-circuit is followed by third counter
The output end at position end, 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 are defeated for acquiring coding circuit
Encoded signal and counting out;
Clock circuit, the output end of the input terminal connection latch of the clock circuit, the input terminal connection the of the latch
The output end of one counter, the clock end of output end connection the trigger I406 and trigger I404 of the clock circuit, triggering
Device 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.
As second aspect of the present invention, a kind of address LED automatic coding, the address LED autocoding side are provided
Method specifically includes the following steps:
Judge that LED sub-circuit for first place LED sub-circuit is also non-first place LED sub-circuit;
If LED sub-circuit is first place LED sub-circuit, the corresponding circuit address of the first LED sub-circuit is set as 0;
If LED sub-circuit is non-first place LED sub-circuit, signal received by the decoding of LED sub-circuit, and by decoded signal
Step-by-step storage, as the corresponding circuit address of the LED sub-circuit;
The Field Count that the corresponding circuit address of LED sub-circuit needs to receive data with LED sub-circuit is summed it up;
Adduction result information is encoded and exported.
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, described to judge that LED sub-circuit for first place LED sub-circuit is also that non-first place LED sub-circuit step is specific
Include:
If LED sub-circuit input terminal is continuously high level, confirm that the LED sub-circuit is first place LED sub-circuit, and periodically send out
Pulse signal SHT out;
If there is low level in LED sub-circuit input terminal, confirm that the LED sub-circuit is non-first place LED sub-circuit, it will not the period
Property issue pulse signal SHT.
Further, if the low level that LED sub-circuit input terminal occurs continues 250 ~ 350 μ s, reset signal FRH is issued.
Further, when detecting pulse signal SHT or reset signal FRH, start the coding of the LED sub-circuit
Work, and be stored in after the corresponding circuit address of the first LED sub-circuit is set to 0 its address register step or carry out by
The data that non-first place LED sub-circuit decodes are stored in its address register as address.
Further, the step of adduction result being encoded and exported specifically includes:
The adduction result information is obtained parallel, and exports serial address signals SDO;
Clock signal SCK is provided, address signal SDO is encoded and exported according to the clock signal SCK.
Further, address signal SDO is encoded and exports step according to the clock signal SCK and specifically included:
The clock cycle of three clock signal SCK exports a data, if address signal SDO is 0, this encoded signal
It exports 1 period high level and adds 2 period low levels, if data address signal SDO is 1, this encoded signal exported for 2 periods
High level adds 1 period low level.
It is and existing from the above as can be seen that LED autocoding address circuit provided by the invention and coding method
Technology is compared to having following advantages: the LED autocoding address circuit and coding method enable to complete in project installation
It will be write automatically at LED circuit each after system electrification and obtain address, then can smoothly enter into working condition;And at any time may be used
To replace the LED circuit of any one of engineering damage, the LED circuit of replacement will write the address for obtaining oneself, ground automatically
Engineering enters normal operating conditions after location obtains automatically.Not only project installation maintenance is simple in this way, but also without special
Technical staff, which shows 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 functional block diagram of first aspect present invention.
Fig. 2 is the application schematic diagram of first aspect present invention.
Fig. 3 is the output waveform figure of LED sub-circuit output end in first aspect present invention.
Fig. 4 is the schematic diagram of numeric data code described in first aspect present invention.
Fig. 5 is decoding circuit schematic diagram in first aspect present invention.
Fig. 6 is the bit clock circuit diagram in first aspect present invention decoding circuit.
Fig. 7 is coding circuit schematic diagram in first aspect present invention.
Fig. 8 is data buffer schematic diagram in first aspect present invention.
Fig. 9 is the RSDF circuit diagram in first aspect present invention in data buffer.
Figure 10 is that first aspect present invention data decode timing waveform.
Figure 11 is first aspect present invention data encoding timing waveform.
Figure 12 is the flow chart of second aspect of the present invention.
Figure 13 is the specific embodiment flow chart of the step S1 of second aspect of the present invention.
Figure 14 is the specific embodiment flow chart of the step S2 of second aspect of the present invention.
Figure 15 is the specific embodiment flow chart of the step S3 of second aspect of the present invention.
Figure 16 is the specific embodiment flow chart of the step S4 of second aspect of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
Attached drawing, the present invention is described in more detail.Wherein identical components are presented with like reference characters.It needs to illustrate
It is that word "front", "rear" used in the following description, "left", "right", "up" and "down" refer to the direction in attached drawing.It uses
Word "inner" 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 first aspect of the present invention, a kind of LED autocoding address being respectively arranged in each LED sub-circuit is provided
Circuit, wherein by taking current LED autocoding address circuit (i.e. the autocoding address circuit of IC1) as an example comprising: coding
Circuit,
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, the output of adder
The input terminal for connecting the coding circuit of current LED circuit is held, the output end of the coding circuit is that the current LED is compiled automatically
The output end of code address circuit;The adder is used for the corresponding circuit address of current LED circuit and needs to receive data
Field Count sums it up, and adduction result is exported and is encoded to the coding circuit of current LED circuit, which compiles
Code circuit is encoded according to the adduction result and is exported in rear LED autocoding address circuit (the i.e. autocoding of IC2
Location 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 first aspect present invention 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 by LED sub-circuit input terminal PI input
Each data, and export bit clock signal DCK;Specifically: according to from the received data of LED 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 when by institute's rheme
Clock signal DCK is exported to address register, and the data step-by-step that the bit clock signal DCK enables to input terminal PI to receive is deposited
Enter 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
Road input terminal PI, the clock signal input terminal of output end link address register, and bit clock circuit also receive the present invention the
The standard clock signal CLK provided in one side.Specifically, as shown in fig. 6, institute's bit clock circuit includes impulse circuit and
Four-counter;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 rheme
The output end of clock circuit.The output end reverse phase of the impulse circuit is connected to the reset terminal of four-counter, the pulse electricity
Road makes it generate a pulse signal in the rising edge of received signal, and by the output of pulse signal to NOT gate I206,
The reset terminal of NOT gate I206 output end connection four-counter.The 4th meter is accessed 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, for controlling four-counter
It stops working.
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, height is exported from third counter output after third counter is started to work and meter is full 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 first aspect present invention LED autocoding address circuit: coding circuit will be for that will add
The adduction result encoding by bit of musical instruments used in a Buddhist or Taoist mass is simultaneously 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 what numeric data code defined by the present invention was completed.Therefore the numeric data code is defined as follows, a data cycle T c is 90
Microsecond, 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, the height of data 1
Level T1h is 60 microseconds.Numeric data code waveform diagram such as Fig. 4 shows.
Specifically, the coding circuit includes:
Data buffer, the output end of data input pin connection adder or the output end of door I24 of the data buffer connect
Connect the control terminal of data buffer or the control signal DGO control data buffer starting of door I24 output;The data buffer storage
The shift register structure gone here and there out of going forward side by side that device is 12, control signal DGO are disposable by adder result data AND [11:0]
It is loaded into data buffer, serially exports serial address through output end from high bit shift under the clock signal effect of data buffer
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.
As a second aspect of the invention, a kind of address LED automatic coding is provided, wherein the address LED is automatic
Coding method specifically includes the following steps:
S1: judge that LED sub-circuit for first place LED sub-circuit is also non-first place LED sub-circuit;LED circuit is considered as by more
The queue of a LED sub-circuit composition, the first place LED sub-circuit are to refer to being located at the queue being made of multiple LED sub-circuits
The first LED sub-circuit, removing other LED sub-circuits other than the first place LED sub-circuit is non-first place LED sub-circuit.
S2: if LED sub-circuit is first place LED sub-circuit (i.e. IC0 sub-circuit in Fig. 2), the address of the first LED sub-circuit
Circuit address in register is set as 0.
S210: the corresponding circuit address of the first LED sub-circuit and first place LED sub-circuit are needed to receive the Field Count of data
It sums it up;
S220: encoding the adduction result, and the adduction result after coding is exported to after the LED sub-circuit of first place
LED sub-circuit (i.e. IC1 sub-circuit in Fig. 2);
S3: if LED sub-circuit is non-first place LED sub-circuit (by taking the IC1 sub-circuit in Fig. 2 as an example), IC1 autocoding address electricity
Road receives the encoded signal of IC0 autocoding address circuit output;
S310: it regard received encoded signal decoded output as the corresponding circuit of IC1 sub-circuit into address register
Address;
S320: the Field Count that the corresponding circuit address of IC1 sub-circuit needs to receive data with IC1 sub-circuit is summed it up;
S4: encoding the adduction result step-by-step, and the adduction result after coding is exported and gives IC2 autocoding address electricity
Road.
The pull-up resistor as built in the input terminal PI of the LED sub-circuit, and the input terminal PI of first place LED sub-circuit is outstanding
Sky, so its PI is permanent High level state, LED sub-circuit before the input terminal PI of remaining non-first place LED sub-circuit is connected to
Output end PO, PI are low level or transmission data mode.
The S1: judge that LED sub-circuit for first place LED sub-circuit is also that non-first place LED sub-circuit step specifically includes:
S110: detection input PI state judges whether LED sub-circuit is the first LED sub-circuit;
If input terminal PI permanent High level reaches 200 ~ 300ms, confirm that the LED sub-circuit is first place LED sub-circuit, and in PI
Persistently high level state periodical is kept to issue pulse signal SHT;
S120: if low level occurs in input terminal PI within 200 ~ 300ms time, confirm that the LED sub-circuit is non-first place LED
Circuit will not be periodically sent out pulse signal SHT;
S130: if there is low level more than input terminal PI after 200 ~ 300ms, confirm the LED sub-circuit from the first LED sub-circuit
State becomes non-first place LED sub-circuit, will not be periodically sent out pulse signal SHT again.
S140: if the low level that input terminal PI occurs continues 250 ~ 350 μ s, reset signal FRH is issued;
S150: when detecting pulse signal SHT or reset signal FRH, starting the coding work of the LED sub-circuit, and
It carries out being stored in its address register step after the corresponding circuit address of the first LED sub-circuit is set to 0 or carry out non-first place
The data that LED sub-circuit decodes are stored in its address register as address.
Step S4: it the adduction result step-by-step is encoded and exported is specifically included:
S410: the adduction result information is obtained parallel, and exports serial address signals SDO;
S420: clock signal SCK is provided, address signal SDO is encoded and exported according to the clock signal SCK;According to
The clock signal SCK encodes address signal SDO and exports step and specifically included: three clock signal SCK's
Clock cycle exports a data, if address signal SDO is 0, this encoded signal exports 1 period high level and adds 2 weeks
Phase low level, if data address signal SDO is 1, this encoded signal exports 2 period high level and adds 1 period low level.
It should be understood by those ordinary skilled in the art that: the above is only a specific embodiment of the present invention, and
It is not used in the limitation present invention, all any modification, equivalent substitution, improvement and etc. within purport of the invention, done should all include
Within protection scope of the present invention.
Claims (15)
1.LED autocoding address circuit, which is characterized in that the LED autocoding address circuit is set in LED sub-circuit,
It include: 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 decoding electricity
The decoded circuit address in road;
Adder, the input terminal of the adder are separately connected Field registers and address register, and the output end of adder connects
Connect the input terminal of coding circuit;
Decoding circuit, the input terminal of the output end link address register of the decoding circuit.
2. LED autocoding address circuit as described in claim 1, which is characterized in that the LED autocoding address circuit
It include multiple LED sub-circuits, the input terminal PI of each LED sub-circuit is built-in with pull-up resistor, distinguishes in each LED sub-circuit
Equipped with the LED autocoding address circuit;The output end of LED sub-circuit before the input terminal of LED sub-circuit is connected to, and it is first
The input terminal of position LED sub-circuit is hanging;The output end of LED sub-circuit is connected to the input terminal of rear LED sub-circuit.
3. LED autocoding address circuit as claimed in claim 2, which is characterized in that each LED autocoding address
The input terminal of the decoding circuit of circuit is the input terminal of its corresponding LED sub-circuit;Each LED autocoding address electricity
The output end of the coding circuit on road is the output end of its corresponding LED sub-circuit.
4. LED autocoding address circuit as described in claim 1, which is characterized in that the decoding circuit includes:
The input terminal of bit clock circuit, institute's bit clock circuit connects LED sub-circuit input terminal, output end link address register
Clock signal input terminal;
The first LED sub-circuit decision circuitry, the first place LED sub-circuit decision circuitry includes frequency eliminating circuit and the second counter;
The input terminal of LED sub-circuit is separately connected the reset terminal of frequency eliminating circuit and the second counter circuit, the clock of the frequency eliminating circuit
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, the second meter
The output end connection of number device or the other end of door I25 and the other end with door I23, described or door I25 output end connection second
The clock end of counter, the output end with door I23 connect the input terminal of impulse circuit I113;
Reset circuit, the reset circuit include third counter, and it is multiple that the input terminal reverse phase of LED sub-circuit is followed by third counter
The output end at position end, third counter connects impulse circuit I112.
5. LED autocoding address circuit as claimed in claim 4, which is characterized in that institute's bit clock circuit includes: pulse
Circuit and four-counter;The input terminal of the impulse circuit is the input terminal of bit clock circuit, the output end of four-counter
For the output end of institute's bit clock circuit;The output end reverse phase of the impulse circuit is connected to the reset terminal of four-counter, mark
The clock end of four-counter, the output end connection of the four-counter are accessed after clock signal CLK connection or door I207
Or another input terminal of door I207.
6. LED autocoding address circuit as claimed in claim 4, which is characterized in that the output end of the reset circuit and
The output end of the first LED sub-circuit decision circuitry is separately connected or the input terminal of door I24, described or door I24 output end connection
The control terminal of the coding circuit.
7. LED autocoding address circuit as described in claim 1, which is characterized in that 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 are defeated for acquiring coding circuit
Encoded signal and counting out;
Clock circuit, the output end of the input terminal connection latch of the clock circuit, the input terminal connection the of the latch
The output end of one counter, the clock end of output end connection the trigger I406 and trigger I404 of the clock circuit, triggering
Device I406 connects the output end of data buffer with the input terminal of trigger I404.
8. LED autocoding address circuit as described in claim 1, which is characterized in that the data buffer is 12
It goes forward side by side and goes here and there out shift register.
The address 9.LED automatic coding, which is characterized in that the address LED automatic coding specifically includes the following steps:
Judge that LED sub-circuit for first place LED sub-circuit is also non-first place LED sub-circuit;
If LED sub-circuit is first place LED sub-circuit, the corresponding circuit address of the first LED sub-circuit is set as 0;
If LED sub-circuit is non-first place LED sub-circuit, signal received by the decoding of LED sub-circuit, and by decoded signal
Step-by-step storage, as the corresponding circuit address of the LED sub-circuit;
The Field Count that the corresponding circuit address of LED sub-circuit needs to receive data with LED sub-circuit is summed it up;
Adduction result information step-by-step is encoded and exported.
10. the address LED as claimed in claim 9 automatic coding, which is characterized in that have multiple LED sub-circuits, the first LED
The input terminal of sub-circuit is hanging, the output end of LED sub-circuit before the input terminal of remaining LED sub-circuit is connected to;LED sub-circuit
Output end is connected to the input terminal of rear LED sub-circuit.
11. the address LED as claimed in claim 10 automatic coding, which is characterized in that described to judge LED sub-circuit for first place
LED sub-circuit is also that non-first place LED sub-circuit step specifically includes:
If LED sub-circuit input terminal is continuously high level, confirm that the LED sub-circuit is first place LED sub-circuit, and periodically send out
Pulse signal SHT out;
If there is low level in LED sub-circuit input terminal, confirm that the LED sub-circuit is non-first place LED sub-circuit, it will not the period
Property issue pulse signal SHT.
12. the address LED as claimed in claim 11 automatic coding, which is characterized in that if what LED sub-circuit input terminal occurred
Low level continues 250 ~ 350 μ s, issues reset signal FRH.
13. the address LED as claimed in claim 12 automatic coding, which is characterized in that when detect pulse signal SHT or
When reset signal FRH, start the coding work of the LED sub-circuit, and carries out the corresponding circuit address of the first LED sub-circuit
It is stored in its address register step after being set to 0 or carries out the data for decoding non-first place LED sub-circuit as circuit
Location is stored in its address register.
14. the address LED as claimed in claim 9 automatic coding, which is characterized in that encoded simultaneously to the adduction result
The step of output, specifically includes:
The adduction result information is obtained parallel, and exports serial address signals SDO;
Clock signal SCK is provided, address signal SDO is encoded and exported according to the clock signal SCK.
15. the address LED as claimed in claim 14 automatic coding, which is characterized in that over the ground according to the clock signal SCK
Location signal SDO is encoded and exported step and specifically included: the clock cycle of three clock signal SCK exports one digit number
According to, if address signal SDO is 0, this encoded signal exports 1 period high level and adds 2 period low levels, if data
Location signal SDO is 1, then this encoded signal 2 period high level of output add 1 period low level.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811417553.1A CN109379812B (en) | 2018-11-26 | 2018-11-26 | LED automatic coding address circuit and coding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811417553.1A CN109379812B (en) | 2018-11-26 | 2018-11-26 | LED automatic coding address circuit and coding method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109379812A true CN109379812A (en) | 2019-02-22 |
CN109379812B CN109379812B (en) | 2024-02-27 |
Family
ID=65383351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811417553.1A Active CN109379812B (en) | 2018-11-26 | 2018-11-26 | LED automatic coding address circuit and coding method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109379812B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114095478A (en) * | 2021-09-28 | 2022-02-25 | 崇义县精亿灯饰制品有限公司 | Address signal processing device for LED lamp |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1118475A (en) * | 1994-03-24 | 1996-03-13 | Dva公司 | Method and apparatus for interfacing with RAM |
US5546553A (en) * | 1990-09-24 | 1996-08-13 | Texas Instruments Incorporated | Multifunctional access devices, systems and methods |
US20060139308A1 (en) * | 1995-07-20 | 2006-06-29 | E Ink Corporation | Addressing schemes for electronic displays |
US20090289578A1 (en) * | 2008-05-23 | 2009-11-26 | Peng Wen-Chi | Parallel type single-wire addressable lighting device |
CN101945516A (en) * | 2010-09-06 | 2011-01-12 | 杭州罗莱迪思照明系统有限公司 | Intelligent LED lamp controller and control method |
CN201765779U (en) * | 2010-07-19 | 2011-03-16 | 广州中大中鸣科技有限公司 | LED (light emitting diode) luminaire and cascading structure thereof |
US20120299480A1 (en) * | 2009-11-06 | 2012-11-29 | Neofocal Systems, Inc. | System And Method For Current Modulated Data Transmission |
US8492983B1 (en) * | 2010-05-11 | 2013-07-23 | Analog Technologies Corporation | System and method to address and control serially connected LEDs |
CN104181826A (en) * | 2014-08-06 | 2014-12-03 | 杨义凯 | Method and system for transmitting control signals by use of power line |
WO2016083954A2 (en) * | 2014-11-25 | 2016-06-02 | Philips Lighting Holding B.V. | Lighting control apparatus and methods |
CN209545949U (en) * | 2018-11-26 | 2019-10-25 | 无锡德芯微电子有限公司 | LED autocoding address circuit |
-
2018
- 2018-11-26 CN CN201811417553.1A patent/CN109379812B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5546553A (en) * | 1990-09-24 | 1996-08-13 | Texas Instruments Incorporated | Multifunctional access devices, systems and methods |
CN1118475A (en) * | 1994-03-24 | 1996-03-13 | Dva公司 | Method and apparatus for interfacing with RAM |
US20060139308A1 (en) * | 1995-07-20 | 2006-06-29 | E Ink Corporation | Addressing schemes for electronic displays |
US20090289578A1 (en) * | 2008-05-23 | 2009-11-26 | Peng Wen-Chi | Parallel type single-wire addressable lighting device |
US20120299480A1 (en) * | 2009-11-06 | 2012-11-29 | Neofocal Systems, Inc. | System And Method For Current Modulated Data Transmission |
US8492983B1 (en) * | 2010-05-11 | 2013-07-23 | Analog Technologies Corporation | System and method to address and control serially connected LEDs |
CN201765779U (en) * | 2010-07-19 | 2011-03-16 | 广州中大中鸣科技有限公司 | LED (light emitting diode) luminaire and cascading structure thereof |
CN101945516A (en) * | 2010-09-06 | 2011-01-12 | 杭州罗莱迪思照明系统有限公司 | Intelligent LED lamp controller and control method |
CN104181826A (en) * | 2014-08-06 | 2014-12-03 | 杨义凯 | Method and system for transmitting control signals by use of power line |
WO2016083954A2 (en) * | 2014-11-25 | 2016-06-02 | Philips Lighting Holding B.V. | Lighting control apparatus and methods |
CN209545949U (en) * | 2018-11-26 | 2019-10-25 | 无锡德芯微电子有限公司 | LED autocoding address circuit |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114095478A (en) * | 2021-09-28 | 2022-02-25 | 崇义县精亿灯饰制品有限公司 | Address signal processing device for LED lamp |
CN114095478B (en) * | 2021-09-28 | 2023-11-07 | 崇义县精亿灯饰制品有限公司 | Address signal processing device for LED lamp |
Also Published As
Publication number | Publication date |
---|---|
CN109379812B (en) | 2024-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102916716B (en) | Transceiver | |
CN107707446A (en) | A kind of SENT bus encoding/decodings, triggering and analysis method based on FPGA | |
CN112540943B (en) | Circuit structure and method for preventing I2C interface from waking up SOC system by mistake | |
CN109379812A (en) | LED autocoding address circuit and coding method | |
CN209545949U (en) | LED autocoding address circuit | |
CN111061358B (en) | Clock-free chip wake-up circuit, wake-up method and chip | |
CN205490492U (en) | Polarity adaptive IRIG -B sign indicating number decoding device | |
CN110826112B (en) | Method and system for identifying hardware version number | |
CN103839307A (en) | Intelligent electronic coded lock | |
CN106895892A (en) | A kind of display methods of low power-consumption intelligent water meter | |
CN101515187B (en) | CPCI-bus-based IRIG-B signal decoding and time correcting card device | |
CN201084214Y (en) | A clavier split-type multifunctional prepayment electric energy meter | |
JP2003152748A (en) | Control/monitor signal transmission system | |
CN101937254A (en) | Method for realizing IRIG-B signal decoding time correction | |
CN101231326A (en) | Device and method for testing general DVD-P/DVD-R front panel | |
CN204745842U (en) | Kitchen screening system filter core warning circuit | |
CN200993819Y (en) | Variable length coding circuit | |
CN201464520U (en) | Ammeter box with character prompting function | |
CN105677055A (en) | Matrix keyboard scanning circuit and method | |
EP0319352A1 (en) | Metering apparatus | |
CN205384581U (en) | Stand alone type keyboard scanning circuit and coding circuit | |
JPS58223895A (en) | Fire alarm equipment | |
CN105680873A (en) | Independent keyboard scanning and encoding circuit | |
CN103848366B (en) | A kind of period of service method for limiting of winch intelligent control system and period of service killer | |
CN213780192U (en) | Novel zero-distance electricity larceny prevention metering device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |