JPH0572588B2 - - Google Patents

Info

Publication number
JPH0572588B2
JPH0572588B2 JP59051701A JP5170184A JPH0572588B2 JP H0572588 B2 JPH0572588 B2 JP H0572588B2 JP 59051701 A JP59051701 A JP 59051701A JP 5170184 A JP5170184 A JP 5170184A JP H0572588 B2 JPH0572588 B2 JP H0572588B2
Authority
JP
Japan
Prior art keywords
time
external interrupt
register
program
loop
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
JP59051701A
Other languages
Japanese (ja)
Other versions
JPS60195590A (en
Inventor
Masahiro Fujiwara
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP59051701A priority Critical patent/JPS60195590A/en
Publication of JPS60195590A publication Critical patent/JPS60195590A/en
Publication of JPH0572588B2 publication Critical patent/JPH0572588B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Control Of El Displays (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、発行ダイオード(以下LEDと記す)
などの各種複数の表示素子の時分割点灯装置に関
する。
[Detailed description of the invention] Industrial application field The present invention is directed to a light emitting diode (hereinafter referred to as LED).
This invention relates to a time-division lighting device for a plurality of various display elements.

従来例の構成とその問題点 従来のマイコン応用のLEDの4分の1分割駆
動の例を第1図に示す、1は親のマイコン、2は
その親のマイコン1により外部割り込みをかけら
れる子のマイコン、3は子のマイコン2の出力ポ
ートCOM1〜COM4であり、ここで時分割駆動波
形が生成され、5の出力ポートSEGの電位が
“LOW”になつた時のみ4のLEDを点灯させる
ことが出来る。第2図は3の各ポートCOM1〜
COM4に現われる端子電位の時間的変化を現わし
ており、1/4周期づつ、ずれている。ここで、t
は第1スロツト時間であり、4tは4スロツトで構
成される1フレーム時間である。そして、3の各
ポイントCOM1〜COM4の出力波形に同期して、
第1図のポートSEG5の端子電位を“LOW”に
引き下げることにより希望のLEDを点灯するこ
とができる。第3図はそのフローチヤートを示
し、8でコモン側ドライブ出力命令によりCOM1
というポートを“HIGH”にし、9で、セグメン
トデータ出力命令によりSEGのポートを“LOW”
にする。10は時間稼ぎのループ・カウンタであ
る。
Conventional configuration and its problems Figure 1 shows an example of a conventional microcomputer-applied LED divided into four parts. 1 is the parent microcomputer, and 2 is the child that receives an external interrupt from the parent microcomputer 1. The microcontroller 3 is the output port COM1 to COM4 of the child microcontroller 2, where the time division drive waveform is generated, and the LED 4 is turned on only when the potential of the output port SEG 5 becomes "LOW". I can do it. Figure 2 shows each port of 3 from COM1 to
It shows the temporal change in the terminal potential appearing on COM4, and is shifted by 1/4 period. Here, t
is the first slot time, and 4t is one frame time composed of four slots. Then, in synchronization with the output waveform of each point COM1 to COM4 of 3,
A desired LED can be turned on by lowering the terminal potential of port SEG5 in FIG. 1 to "LOW". Figure 3 shows the flowchart, and at step 8, the common side drive output command causes COM1
Set the port "HIGH" to "HIGH" and set the SEG port "LOW" by the segment data output command at step 9.
Make it. 10 is a loop counter to buy time.

しかしながら上記の従来の方法では、外部割り
込みが頻繁に生じた場合、外部割り込みの処理に
用する時間が大きなものとなつて、第2図の1ス
ロツト時間tが大巾に伸びてしまう。つまり、外
部割り込みで必要とする時間をτ秒、t秒の間に
n回外部割り込みが生じたとすると、1スロツト
時間が(t+nτ)秒になつてしまうので、外部
割り込みが生じなかつた場合とでは、nτ秒もち
がつてきて、LEDがちらつくという問題があつ
た。
However, in the conventional method described above, when external interrupts occur frequently, the time required to process the external interrupts becomes large, and the time t for one slot in FIG. 2 increases significantly. In other words, if the time required for an external interrupt is τ seconds, and if an external interrupt occurs n times during t seconds, the time for one slot will be (t + nτ) seconds, which is different from the case where no external interrupt occurred. , there was a problem that the LED would flicker after nτ seconds.

発明の目的 本発明は、上記従来の問題点を解消するもの
で、特にマイコンを用いてソフト的に点灯を行な
わせる場合、外部割り込みが生じたときでも、点
灯のちたつきを防止できる点灯装置を提供するこ
とを目的とするものである。
OBJECT OF THE INVENTION The present invention solves the above conventional problems, and provides a lighting device that can prevent flickering of lighting even when an external interrupt occurs, especially when lighting is performed by software using a microcomputer. The purpose is to provide

発明の構成 本発明は、上に目的を達成するために、時分割
駆動波形を発生させる点灯プログラムと、外部割
り込みの処理プログラムと、1ループの所要時間
が前記外部割り込みの処理プログラムにおける1
回の処理動作に費やす所要時間に相当するちらつ
き防止のためのループ・カウンタのプログラムと
を有するマイコンを備え、外部割り込み時にルー
プ・カウンタ内のレジスタのカウント数を外部割
り込みの回数に応じて操作して表示素子の時分割
駆動時間を一定の保つようにしたものである。
Structure of the Invention In order to achieve the above objects, the present invention provides a lighting program that generates a time-division drive waveform, an external interrupt processing program, and a time required for one loop in the external interrupt processing program.
A microcontroller is equipped with a loop counter program to prevent flickering corresponding to the time required for one processing operation, and when an external interrupt occurs, the count number of the register in the loop counter is manipulated according to the number of external interrupts. The time-division driving time of the display element is kept constant.

実施例の説明 以下本発明の一実施例を図面に基づいて説明す
る。第4図において、ループ・カウンタで用いる
レジスタをRレジスタとすると、11でRレジス
タを1だけ減じ、12でRレジスタがある数より
小さいかを判別し、13でRレジスタの値を初期
設定している。この中で11と12を会わせたル
ープがτ秒になるように工夫してあるのが重要な
ポイントである。第5図においても、外部割り込
み所要時間をτ秒とし、15でRレジスタから1
を減じているのも重要なポイントでもある。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below based on the drawings. In Figure 4, assuming that the register used in the loop counter is the R register, step 11 decrements the R register by 1, step 12 determines whether the R register is smaller than a certain number, and step 13 initializes the value of the R register. ing. The important point is that the loop where 11 and 12 meet is designed to be τ seconds. In Fig. 5, the time required for an external interrupt is τ seconds, and at 15, 1 is input from the R register.
Another important point is that

つまり、外部割り込みが何回生じても、第5図
の15において、リターンする時にかならずRレ
ジスタから1を減じているので、第4図の14の
ループの数が1減つたことになり、差引きゼロに
なる。それを数式で表わすならば、外部割り込み
の回数をnとすると、t+nτ−nτ=tになり、
ある1つのコモン側のドライブ時間がt秒に保た
れることになり、LEDの駆動時間が一定となり、
駆動波形にムラがなくなり、ちらつきを防ぐこと
ができるものである。
In other words, no matter how many times external interrupts occur, 1 is always subtracted from the R register at 15 in Figure 5 when returning, so the number of loops at 14 in Figure 4 is reduced by 1, and the difference is The pull becomes zero. To express it mathematically, if the number of external interrupts is n, then t + nτ - nτ = t,
The drive time of one common side will be kept at t seconds, and the drive time of the LED will be constant.
This eliminates unevenness in the drive waveform and prevents flickering.

発明の効果 本発明は、時分割駆動によるLED等の表示素
子の点灯を行なつている場合、外部割り込みによ
る時間の遅れを、ループ・カウンタ内のレジスタ
を操作することで、見かけ上、外部割り込みが生
じなかつたかのごとく、時分割駆動時間を一定に
保つようにしたもので、LED等の表示素子のち
らつき防止に役立ち、目の疲労を軽減できるもの
である。
Effects of the Invention The present invention, when lighting a display element such as an LED by time-division driving, can reduce the time delay caused by an external interrupt by manipulating a register in a loop counter. The time-division driving time is kept constant, as if no such phenomenon occurred, which helps prevent flickering of display elements such as LEDs and reduces eye fatigue.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は親のマイコンと時分割駆動を行なう子
のマイコンの回路図、第2図は時分割駆動時の波
形例図、第3図は概略のフローチヤート、第4
図、第5図は本発明の一実施例を示し、第4図は
ループ・カウンタの処理サブルーチンのフローチ
ヤート、第5図は外部割り込みの処理サブルーチ
ンの要部フローチヤートである。 1……親のマイコン、2……子のマイコン、3
……コモン側の出力ポート、4……LED、5…
…セグメント出力ポート、8……コモン側ドライ
ブ出力命令、9……セグメントデータ出力命令、
10……ループ・カウンタ、11……Rレジスタ
から1を減じる命令、12……Rレジスターがあ
る数より小さいかの判別、13……レジスターの
初期設定、14……1ループ時間τ秒、15……
Rレジスタから1を減じる命令。
Fig. 1 is a circuit diagram of a parent microcomputer and a child microcomputer that performs time-division driving, Fig. 2 is an example of waveforms during time-division driving, Fig. 3 is a general flowchart, and Fig. 4
5 show an embodiment of the present invention, FIG. 4 is a flowchart of a loop counter processing subroutine, and FIG. 5 is a flowchart of a main part of an external interrupt processing subroutine. 1...Parent microcomputer, 2...Child microcomputer, 3
...Common side output port, 4...LED, 5...
...Segment output port, 8...Common side drive output command, 9...Segment data output command,
10... Loop counter, 11... Instruction to subtract 1 from R register, 12... Determining whether R register is smaller than a certain number, 13... Initial setting of register, 14... 1 loop time τ seconds, 15 ……
Instruction to subtract 1 from R register.

Claims (1)

【特許請求の範囲】[Claims] 1 時分割駆動波形を発生させる点灯プログラム
と、外部割り込みの処理プログラムと、1ループ
の所要時間が前記外部割り込みの処理プログラム
における1回の処理動作に費やす所要時間に相当
するちらつき防止のためのループ・カウンタのプ
ログラムとを有するマイコンを備え、外部割り込
み時にループ・カウンタ内のレジスタのカウント
数を外部割り込みの回数に応じて操作して表示素
子の時分割駆動時間を一定に保ようにした点灯装
置。
1. A lighting program that generates a time-division drive waveform, an external interrupt processing program, and a flicker prevention loop whose time required for one loop corresponds to the time required for one processing operation in the external interrupt processing program. - A lighting device that is equipped with a microcomputer that has a counter program, and that maintains the time-division driving time of the display element constant by manipulating the count number of the register in the loop counter according to the number of external interrupts when an external interrupt occurs. .
JP59051701A 1984-03-16 1984-03-16 lighting device Granted JPS60195590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59051701A JPS60195590A (en) 1984-03-16 1984-03-16 lighting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59051701A JPS60195590A (en) 1984-03-16 1984-03-16 lighting device

Publications (2)

Publication Number Publication Date
JPS60195590A JPS60195590A (en) 1985-10-04
JPH0572588B2 true JPH0572588B2 (en) 1993-10-12

Family

ID=12894197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59051701A Granted JPS60195590A (en) 1984-03-16 1984-03-16 lighting device

Country Status (1)

Country Link
JP (1) JPS60195590A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2650776B2 (en) * 1990-08-31 1997-09-03 シャープ株式会社 Display control device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54119838A (en) * 1978-03-08 1979-09-18 Nec Corp Display and control system for liquid crystal
JPS5913745B2 (en) * 1979-11-16 1984-03-31 オムロン株式会社 Display drive device
JPS57101892A (en) * 1980-12-17 1982-06-24 Omron Tateisi Electronics Co Display controller

Also Published As

Publication number Publication date
JPS60195590A (en) 1985-10-04

Similar Documents

Publication Publication Date Title
US9736901B2 (en) LED scanning array driver chip and regulation method capable of self-regulating brightness linear change
JP2000241796A (en) Liquid crystal display device and electronic device for outputting control signal of liquid crystal display device
US11132960B1 (en) Backlight driving method for a display
US12020653B2 (en) Display panel and driving method thereof
TWI663588B (en) Display device and operation method thereof
JPH0572588B2 (en)
US20020140671A1 (en) Information processing device
KR102552287B1 (en) LED display device, and method for operating the same
US11715430B2 (en) Backlight driving method and module for a scan-type display
CN109152136B (en) Gray scale increasing method of LED lamp
JPH0245196B2 (en)
JP5270795B2 (en) Power control device, backlight unit, and liquid crystal display device
KR0143309B1 (en) Dynamic static signal conversion system
KR102801450B1 (en) Backlight control method, device and storage medium
JP2612379B2 (en) LED dot matrix display device and display screen scrolling method thereof
JPH01593A (en) display device
US20250157373A1 (en) Pixel shifting method and control method of display screen
JPH0535208A (en) Light emitting device
JP2015191809A (en) Backlight device and display device
TWI914792B (en) Display system with light sensor and control method thereof
US20260106957A1 (en) Projection device and control method thereof
KR20150002410A (en) System and Method for generating Pulse Width Modulation signal
JP2000111869A (en) Display device and storage medium
CN112805775A (en) LCD display backlight control system
JPS63138691A (en) Electroluminescence element drive circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees