CN100437673C - LED indicating device and method - Google Patents

LED indicating device and method Download PDF

Info

Publication number
CN100437673C
CN100437673C CNB2004100272680A CN200410027268A CN100437673C CN 100437673 C CN100437673 C CN 100437673C CN B2004100272680 A CNB2004100272680 A CN B2004100272680A CN 200410027268 A CN200410027268 A CN 200410027268A CN 100437673 C CN100437673 C CN 100437673C
Authority
CN
China
Prior art keywords
pwm
led
cpu
electronic equipment
indicating device
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.)
Expired - Fee Related
Application number
CNB2004100272680A
Other languages
Chinese (zh)
Other versions
CN1696999A (en
Inventor
谢冠宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CNB2004100272680A priority Critical patent/CN100437673C/en
Publication of CN1696999A publication Critical patent/CN1696999A/en
Application granted granted Critical
Publication of CN100437673C publication Critical patent/CN100437673C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to an LED indicating device and a method thereof. The LED indicating device is arranged on electronic equipment to be used for indicating different working conditions of the electronic equipment. The LED indicating devices comprises an MCU generating a PWM wave form and an LED circuit connected with the MCU, the MCU comprises a CPU, a non volatile memory connected with the CPU, an RAM connected with the CPU, a counter which is connected with the CPU and carries out timing based on the unit period of PWM, and an output port connected with the CPU. The LED indicating device and the method provided by the present invention drive a single LED indicator light by the MCU controlling the PWM wave form input to the LED circuit in order to display the different operating conditions of the electronic equipment. Due to the fact that the present invention only uses one LED indicator light, the manufacturing cost is saved.

Description

LED indicating device and method
[technical field]
The invention relates to LED (Light Emitting Diode) indicating device and method, especially about a kind of LED indicating device and method that shows the electronic device works state.
[background technology]
General electronic equipment, as televisor, computing machine etc., all use LED as its working station indicator. this LED light is only indicated the power supply status of electronic equipment, this LED light is bright during as power turn-on, this LED light is gone out behind the power-off. along with science and technology development, the research staff for electronic device design multiple duty to satisfy user's different demands, as normal operating conditions, dormant state, game state, lock-out state etc. existing LED light can't be finished the indication task of numerous duties like this. be head it off, a kind of existing method can be consulted the China CN2582294Y patent of bulletin on October 22nd, 2003, a kind of televisor with status indicator lamp is promptly disclosed, the multiple duty that it uses plurality of indicator lamps to come the indication TV machine.
But,, increased the manufacturing cost of electronic equipment virtually though aforementioned plurality of indicator lamps can be indicated the multiple duty of electronic equipment. and the manufacturing cost of electronic equipment is high more, it is just unfavorable more for electronic equipment set manufacturer.
[summary of the invention]
At above-mentioned the deficiencies in the prior art, the object of the invention is to provide a kind of LED indicating device and method, and it can use single pilot lamp to indicate the multiple duty of electronic equipment.
For realizing the object of the invention, the invention provides a kind of LED indicating device, it is installed on the electronic equipment, different operating state in order to the indication electronic equipment. this LED indicating device includes: one produce pulse-length modulation (Pulse Width Modulation, PWM) MCU of waveform and one and the led circuit that joins of this MCU. this MCU includes: a CPU; One Nonvolatile memory, it links to each other with this CPU; One RAM, it links to each other with this CPU; One counter that links to each other with this CPU, it carries out timing based on the PWM unit period, and controlled by this CPU; And an output port that links to each other with this CPU, it is controlled by this CPU. and this led circuit is in order to receive the PWM waveform, and it includes: one first resistance, the output port of one end and this MCU joins; One second resistance, one are terminated at first resistance, one end, and its other end and power supply join; One the 3rd resistance, one end and power supply join; One triode, its base stage are connected to the first resistance other end, and its emitter is connected to the 3rd resistance other end; And a LED light, its anode is connected to this transistor collector, its plus earth.
The present invention further provides a kind of LED indicating means of different operating state in order to the indication electronic equipment. this method includes following steps: (a) judge the residing duty of electronic equipment, and obtain the PWM unit period number corresponding to the PWM waveform high level of this duty from RAM; (b) carry out the ISR program that is stored in the Nonvolatile memory; (c) light of emission relevant work state.
LED indicating device provided by the present invention and method, the PWM waveform that inputs to led circuit by MCU control drives single led pilot lamp to show the different operating state of electronic equipment. owing to only used a LED light, thus saved manufacturing cost.
[description of drawings]
Fig. 1 is the structural representation of the use hardware PWM embodiment of LED indicating device of the present invention.
Fig. 2 is the structural representation of the use software PWM embodiment of LED indicating device of the present invention.
Fig. 3 is the operation process chart of the use software PWM embodiment of LED indicating means of the present invention.
Fig. 4 is that the execution of Fig. 3 is stored in the ISR program step operation process chart among the ROM.
[embodiment]
Consult shown in Figure 1, be use hardware pulse width modulated (the Pulse Width Modulation of LED indicating device of the present invention, PWM) structural representation of embodiment. LED indicating device of the present invention is installed on the electronic equipment, different operating state in order to the indication electronic equipment. this LED indicating device is by different PWM drive waveform LED light, make it send different lights, different operating state with corresponding indication electronic equipment. desire obtains different PWM waveforms, needing to adjust the PWM unit period number of PWM waveform high level. this PWM waveform is made up of M PWM wave period, a PWM wave period has 255 PWM unit period. and this PWM unit period includes N clock (Clock) cycle. this numerical value M, N is variable, can decide according to concrete needs. in the present embodiment, the LED indicating device uses hardware to adjust the PWM unit period number of PWM waveform high level.
This LED indicating device includes a MCU (Micro-programmable ControlUnit) 10 and one led circuit 20. these MCU 10 in order to produce the PWM waveform, and it is inputed to led circuit 20. these MCU 10 include a CPU 101, one ROM 103, one RAM 105, the one PWM counter 107 that carries out timing based on the PWM unit period, one PWM buffer (Register) 109 and a PWM output port that links to each other with led circuit 20 111. these ROM103 in order to the PWM unit period number of record PWM waveform high level, RAM 105, PWM counter 107 and PWM buffer 109 all link to each other with this CPU 101, and also linked to each other by CPU 101 control .PWM buffers 109 with PWM output port 111, and the PWM waveform of the high level of the certain PWM unit period of control PWM output port 111 output devices number. this ROM 103 also can replace by non-volatile by other (Nonvolatile) internal memory, as PROM, EPROM, EEPROM, Flash Memory etc.
This led circuit 20 includes resistance R 1, R2, R3, one triode T1 and a LED light D1. resistance R 1 one ends link to each other with the PWM output port 111 of MCU 10. and resistance R 2 one is terminated at the end that aforementioned resistance R1 links to each other with PWM output port 111, the other end joins with power Vcc. and the other end of resistance R 1 links to each other with the base stage of triode T1. and the emitter of triode T1 is connected to resistance R 3 one ends, collector is connected to LED light D1 anode. the other end of resistance R 3 also with the power Vcc .LED pilot lamp D1 plus earth of joining. aforementioned resistance R1, R2, R3 and triode T1 form the driving circuit of LED light D1, and this driving circuit comes driving LED pilot lamp D1 luminous in order to transmit the PWM waveform.
Behind aforementioned electronic equipment turn-on power, the CPU 101 of this MCU 10 judges the residing duty of this electronic equipment, and output corresponding to the PWM unit period number of the PWM waveform high level of this duty to the timing of PWM buffer 109. based on PWM counter 107, the PWM waveform that 111 outputs of this PWM buffer 109 control PWM output ports have an aforementioned high level PWM unit period number to led circuit 20. by aforementioned resistance R1, R2, the driving circuit that R3 and triode T1 are formed transmits this PWM waveform to LED light D1, make it launch corresponding light. promptly, the different luminous form of the corresponding LED light D1 of the different operating state of electronic equipment.
Consulting shown in Figure 2ly, is the structural representation of the use software PWM embodiment of LED indicating device of the present invention. in the present embodiment, this LED indicating device uses software to adjust the PWM unit period number of PWM waveform high level.This LED indicating device includes a MCU 10 ' and a led circuit 20 '. and this MCU 10 ' is in order to produce the PWM waveform, and it being inputed to led circuit 20 '. this MCU 10 ' includes a CPU 101 ', one in order to store interrupt service routine (Interrupt Service Routine, ISR) ROM103 ', one RAM 105 ' in order to the high level PWM unit period number that stores current PWM unit period number and different PWM waveforms, one counter 107 ' and an output port 111 ' that links to each other with led circuit 20 ' that carries out timing based on the PWM unit period. this ROM103 ', RAM 105 ', counter 107 ' and output port 111 ' all link to each other with this CPU 101 ', and controlled by CPU 101 '. this ROM 103 ' also can be replaced by other Nonvolatile memory, as PROM, EPROM, EEPROM, Flash Memory etc.
This led circuit 20 ' includes resistance R 1 ', R2 ', R3 ', an one triode T1 ' and a LED light D1 '. resistance R 1 ' one end links to each other with the output port 111 ' of MCU 10 '. and resistance R 2 ' is terminated at the end that aforementioned resistance R1 ' links to each other with output port 111 ', the other end joins with power Vcc. and the other end of resistance R 1 ' links to each other with the base stage of triode T1 '. and the emitter of triode T1 ' is connected to resistance R 3 ' one end, collector is connected to LED light D1 ' anode. the other end of resistance R 3 ' also with the power Vcc .LED pilot lamp D1 ' plus earth of joining. aforementioned resistance R1 ', R2 ', R3 ' and triode T1 ' form the driving circuit of LED light D1 ', and this driving circuit comes driving LED pilot lamp D1 ' luminous in order to transmit the PWM waveform.
Consult shown in Figure 3, be the operation process chart of the use software PWM embodiment of LED indicating means of the present invention. behind aforementioned electronic equipment turn-on power, the work flow of this LED indicating means begins. at step S510, the CPU 101 ' of this MCU 10 ' judges the residing duty of this electronic equipment, and from RAM 105 ', obtain mutually the PWM unit period number of PWM waveform high level that should duty. at step S512, this CPU 101 ' regularly interrupts 107 ' PWM wave period of this counter. should " regularly " can preestablish by program. be somebody's turn to do " PWM wave period " retentivity time of eye (1/16~1/20 second) less than human eye, so, interrupting 107 ' PWM wave period of this counter can't make people's naked eyes LED light D1 ' be had the sensation of flashing. at step S514, in a PWM wave period that is interrupted, this CPU 101 ' carries out the ISR program that is stored among the ROM 103 '. at step S516, this CPU 101 ' recovers this counter 107 ' to interrupting preceding state. and at step S518, this LED light D1 ' emission is corresponding to the light of the described duty of step S510.
See also Fig. 4, be that the execution of Fig. 3 is stored in the ISR program step operation process chart among the ROM. at step S5141, the current PWM unit period number of this RAM 105 ' record. at step S5143, this CPU 101 ' judges that this current PWM unit period number is whether less than the PWM unit period number of aforementioned PWM waveform high level. in this way, at step S5145, this CPU 101 ' control output end mouth 111 ' output high level is to led circuit 20 '. as denying, at step S5147, this CPU 101 ' control output end mouth 111 ' output low level is to led circuit 20 '. from the above, this ISR program is fairly simple, and its PWM wave period time of carrying out the bright dark variation of PWM mode driving LED pilot lamp D1 ' can persist the time (1/16~1/20 second) far below aforementioned human eye vision.
Behind this electronic equipment turn-on power, aforementioned work flow will constantly be repeated, and be closed the power supply rear until this electronic equipment and stop.
The residing duty of aforementioned electronic equipment includes open state, off-mode, dormant state etc. the corresponding different PWM wave periods of different operating state, and promptly corresponding to different high level PWM unit period numbers.Distinct electronic apparatuses has different duties, only needs to change the program of the performed judgement electronic equipment duty of living in of CPU 101 or CPU 101 ', and this LED indicating device and method are promptly applicable to any electronic equipment.

Claims (9)

1. LED indicating device, it is installed on the electronic equipment, is used to refer to the different operating state of electronic equipment, and it includes a mini program controlling unit (MCU) and a led circuit, and this led circuit comprises one first resistance, and one end and this MCU join; One second resistance, one are terminated at the end that first resistance and this MCU join, and its other end and power supply join; One the 3rd resistance, one end and power supply join; One triode, its base stage are connected to the first resistance other end, and its emitter is connected to the 3rd resistance other end; And a LED light, its anode is connected to the collector of this triode, and its plus earth is characterized in that described MCU produces different PWM waveforms according to the residing different operating state of electronic equipment, and this MCU includes:
One CPU comprises the function of the residing duty of detected electrons equipment;
One Nonvolatile memory, it links to each other with this CPU;
One RAM, it links to each other with this CPU;
One counter, it links to each other with this CPU, and carries out timing based on the PWM unit period; And
One output port, it links to each other with this CPU, and an end of aforementioned first resistance and this output port join, and it is by the control of CPU, output and the corresponding PWM waveform of the residing duty of electronic equipment; For different PWM waveforms, the number difference of the PWM wave period that its high level is shared.
2. LED indicating device as claimed in claim 1 is characterized in that aforementioned Nonvolatile memory is ROM, EPROM, EEPROM or Flash Memory.
3. LED indicating device as claimed in claim 1 is characterized in that aforementioned MCU also includes a PWM buffer between CPU and output port, and this PWM buffer is controlled by CPU, in order to the PWM unit period number of record PWM waveform high level.
4. LED indicating device as claimed in claim 1 is characterized in that aforementioned Nonvolatile memory stores break in service (ISR) program.
5. LED indicating device as claimed in claim 4 is characterized in that aforementioned RAM stores the high level PWM unit period number of current PWM unit period number and different PWM waveforms.
6. LED indicating device as claimed in claim 5 is characterized in that this CPU regularly interrupts PWM wave period of this counter and carries out break in service (ISR) program.
7. LED indicating device as claimed in claim 6, it is characterized in that this ISR program whether less than the PWM unit period number of aforementioned PWM waveform high level, in this way, then exports high level to led circuit in order to judge current PWM unit period number, otherwise output low level is to led circuit.
8. LED indicating means, it is characterized in that in order to the different operating state of indication electronic equipment this LED indicating means includes following steps:
(a) judge the residing duty of electronic equipment, and from RAM, obtain PWM unit period number corresponding to the PWM waveform high level of this duty;
(b) PWM wave period of timing interrupt counter;
(c) in a PWM wave period that is interrupted, carry out break in service (ISR) program that is stored in the Nonvolatile memory;
(d) recover counter to interrupting preceding state;
(e) emission is corresponding to the light of the described duty of step (a).
9. LED indicating means as claimed in claim 8, it is characterized in that step (c) comprises judges that current PWM unit period number whether less than the PWM unit period number of PWM waveform high level, in this way, then exports high level to led circuit, otherwise output low level is to the step of led circuit.
CNB2004100272680A 2004-05-15 2004-05-15 LED indicating device and method Expired - Fee Related CN100437673C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100272680A CN100437673C (en) 2004-05-15 2004-05-15 LED indicating device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100272680A CN100437673C (en) 2004-05-15 2004-05-15 LED indicating device and method

Publications (2)

Publication Number Publication Date
CN1696999A CN1696999A (en) 2005-11-16
CN100437673C true CN100437673C (en) 2008-11-26

Family

ID=35349708

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100272680A Expired - Fee Related CN100437673C (en) 2004-05-15 2004-05-15 LED indicating device and method

Country Status (1)

Country Link
CN (1) CN100437673C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115334B (en) * 2007-08-30 2011-05-18 华南理工大学 PWM control signal generating method of series multi-pixel LED lamp
CN101436040B (en) * 2007-11-14 2011-09-14 中强光电股份有限公司 Projector equipment with electricity-saving function and control circuit and method thereof
CN101866620B (en) * 2010-05-26 2015-07-08 北京中庆微数字设备开发有限公司 Universal LED display screen control device
CN103078575B (en) * 2013-02-20 2015-03-11 湖南大学 Integrated multifunctional controller for low-power direct-current servomotors
CN104679641A (en) * 2013-11-27 2015-06-03 英业达科技有限公司 Server system and control method of read-write indicator lamp thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN87206346U (en) * 1987-04-10 1988-02-17 钟荷清 Double-frequency acousto-optic pilot lamp
US5528332A (en) * 1992-12-28 1996-06-18 Canon Kabushiki Kaisha Camera having in-focus state indicating device
JPH11161217A (en) * 1997-11-28 1999-06-18 Hitachi Denshi Ltd Display control system for light emitting display device
CN1327223A (en) * 2000-06-06 2001-12-19 索尼公司 Modulation circuit and image display using said modulation circuit
US20020178388A1 (en) * 1999-06-14 2002-11-28 Huppi Brian Q. Breathing status LED indicator

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN87206346U (en) * 1987-04-10 1988-02-17 钟荷清 Double-frequency acousto-optic pilot lamp
US5528332A (en) * 1992-12-28 1996-06-18 Canon Kabushiki Kaisha Camera having in-focus state indicating device
JPH11161217A (en) * 1997-11-28 1999-06-18 Hitachi Denshi Ltd Display control system for light emitting display device
US20020178388A1 (en) * 1999-06-14 2002-11-28 Huppi Brian Q. Breathing status LED indicator
CN1327223A (en) * 2000-06-06 2001-12-19 索尼公司 Modulation circuit and image display using said modulation circuit

Also Published As

Publication number Publication date
CN1696999A (en) 2005-11-16

Similar Documents

Publication Publication Date Title
CN102612194B (en) Dimming circuit, control method, micro controller and phase angle detection method for micro controller
CN101902861B (en) LED driving method and LED driving circuit
CN101971705B (en) Led backlight drive
CN104640330A (en) Light emitting diode driver and control method thereof
KR101025938B1 (en) Light emitting diode driver having protection function
US20140139114A1 (en) Method of Adjusting Brightness By Desired Run Time
CN102687368A (en) Battery operated devices
CN100437673C (en) LED indicating device and method
US20070163773A1 (en) Control system and method for heating and cooling devices
CN100534256C (en) Respiration lamp controlling method and its device
CN110400540A (en) A kind of brightness control system for LED display
CN110136621A (en) The display of reduction central processing unit mouth line resource and key scanning method and device
TW201236509A (en) LED controller asic and PWM module thereof
CN103687233A (en) Pulse-width-adjustment automatic dimming LED illuminating lamp driven by constant-current power supply
CN203812540U (en) Display screen brightness control device, display device and air conditioning
CN103813579A (en) Light emitting diode driving circuit and driving system of light emitting diode
CN202855274U (en) Time-sequence control circuit, backlight scanning driving system and backlight source
CN101868096A (en) Sound control energy-saving LED power supply
CN207264755U (en) LED display
US7181351B2 (en) Status indicator and status indicating method
CN217591150U (en) LED brightness segmentation control circuit
CN210609800U (en) Self-flashing LED lamp and control circuit thereof
CN103619108A (en) Solar LED floodlight drive power supply module capable of automatically adjusting light
CN202218465U (en) LED (Light Emitting Diode) drive power supply with various light dimming manners and input voltage isolation-blocking function
CN103903594A (en) Remote control unit, household appliance and method and device for controlling displayer of household appliance

Legal Events

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

Granted publication date: 20081126

Termination date: 20140515