JPH10133617A - Storage control device, method therefor and liquid crystal display device - Google Patents

Storage control device, method therefor and liquid crystal display device

Info

Publication number
JPH10133617A
JPH10133617A JP28999196A JP28999196A JPH10133617A JP H10133617 A JPH10133617 A JP H10133617A JP 28999196 A JP28999196 A JP 28999196A JP 28999196 A JP28999196 A JP 28999196A JP H10133617 A JPH10133617 A JP H10133617A
Authority
JP
Japan
Prior art keywords
writing
data
storage
word
predetermined
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.)
Withdrawn
Application number
JP28999196A
Other languages
Japanese (ja)
Inventor
Takashi Yamamoto
高司 山本
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP28999196A priority Critical patent/JPH10133617A/en
Publication of JPH10133617A publication Critical patent/JPH10133617A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Read Only Memory (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

PROBLEM TO BE SOLVED: To decrease the number of times of write in the same storage position and to improve durability of a storage medium when data indicating a setting state and the like of a display device is stored in a rewritable storage medium. SOLUTION: In this display control device, a wound in which at least one bit of a state '1' is included by a parity bit is stored in an EEPROM as adjustment level data, while zero is written in all other words. When the device is started, data is successively read out from the leading address of the EEPROM, data including a bit of a state '1' is detected (S91-S96), and it is used for controlling the device as adjustment level data (S97). Then zero is written in a retrieved address position (S98), while a value in which 1 is added to the detected address is held as a writing address of adjustment level data in cutting off a power source of the device (S100).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、CPUと、書き換
え可能でありかつ電源遮断時にデータを保持することの
できる記憶媒体を用いた記憶制御装置及び方法、及び該
記憶制御装置を用いた表示装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage control device and method using a CPU, a storage medium that is rewritable and can hold data when power is shut off, and a display device using the storage control device. About.

【0002】[0002]

【従来の技術】CRTであっても液晶を用いた表示装置
であっても、多くの使用者がさまざまな使用環境で快適
に使用できるよう、表示装置には調整操作が必要であ
る。
2. Description of the Related Art Whether a display is a CRT or a display using a liquid crystal, the display needs to be adjusted so that many users can comfortably use it in various use environments.

【0003】図22は一般的な液晶表示装置の例を示す
ブロック図である。図22に示された液晶表示装置は、
グラフィックボード1800を含む画像データ発生部1
801と、図示しない駆動回路を含む液晶表示パネル1
811、液晶表示パネル1811を背面から照明するバ
ックライト1810、バックライトに含まれる蛍光ラン
プを明るさを調整しつつ駆動する点灯回路1809、液
晶表示パネル1811を制御するパネルコントローラ1
804、液晶表示パネル1811に駆動電力を供給する
電源コントローラ1806、DAコンバータ1805、
液晶パネルの近傍温度を検知するサーミスタ1812、
バックライト1810の明るさなどの液晶表示装置への
使用者の調整操作を入力するスイッチボード1813、
パネルコントローラ1804及び電源コントローラ18
06を制御して液晶表示装置全体の動作を司るMPU1
807、液晶表示装置全体に電源を供給する電源180
8から構成される。
FIG. 22 is a block diagram showing an example of a general liquid crystal display device. The liquid crystal display device shown in FIG.
Image data generator 1 including graphic board 1800
801 and a liquid crystal display panel 1 including a drive circuit (not shown)
811, a backlight 1810 for illuminating the liquid crystal display panel 1811 from the back, a lighting circuit 1809 for driving a fluorescent lamp included in the backlight while adjusting the brightness, and a panel controller 1 for controlling the liquid crystal display panel 1811
804, a power supply controller 1806 for supplying drive power to the liquid crystal display panel 1811, a DA converter 1805,
A thermistor 1812 for detecting the temperature near the liquid crystal panel,
A switch board 1813 for inputting a user's adjustment operation to the liquid crystal display device such as the brightness of the backlight 1810;
Panel controller 1804 and power supply controller 18
MPU1 which controls the operation of the entire liquid crystal display device by controlling the 06
807, power supply 180 for supplying power to the entire liquid crystal display device
8.

【0004】また、1802はグラフィックボード18
00からパネルコントローラ1804へ画像データを転
送する画像バス、1803はMPU1807からグラフ
ィックボード1800へのデータ要求信号と、MPU1
807とグラフィックボード1800で相互に通信する
シリアル通信を含む制御線である。
[0004] Also, 1802 is a graphic board 18.
The image bus 1803 transfers image data from the MPU 1 to the panel controller 1804. A data request signal 1803 from the MPU 1807 to the graphic board 1800 and an MPU 1
A control line including serial communication for mutually communicating between the 807 and the graphic board 1800.

【0005】MPU1807は内蔵するCPUで実行す
るプログラムを格納するROMと、プログラムの実行時
に使用するRAM、ADコンバータ、デジタルI/Oポ
ート、その他のタイマ/カウンタなどを内蔵する。MP
U1807に内蔵される記憶手段のうち、ROMは予め
決められた内容の読み出しのみが可能であり、RAMは
MPU1807の電源が遮断されるとその記憶内容が失
われる。
The MPU 1807 has a ROM for storing a program to be executed by a built-in CPU, a RAM used for executing the program, an AD converter, a digital I / O port, and other timers / counters. MP
Of the storage means incorporated in the U1807, the ROM can only read out predetermined contents, and the RAM loses its stored contents when the power of the MPU 1807 is cut off.

【0006】MPU1807は内蔵するROMに格納さ
れたプログラムに従って動作するが、液晶表示パネル1
811に表示を行う場合、先ず液晶表示パネル1811
の駆動条件を調整する。このために、サーミスタ181
2からの信号を内蔵するADコンバータを通じて入力
し、液晶表示パネル1811近傍の温度情報を得、液晶
表示パネル1811の駆動に最適な駆動条件を選ぶ。こ
こで、駆動条件とは、例えば1ラインの駆動時間(水平
周波数)及び液晶駆動電圧である。選択された駆動条件
に基づいて、パネルコントローラ1804に1ラインの
駆動時間(1H)を、DAコンバータ1805を通して
電源コントローラ1806に液晶駆動電圧(Vop)を
それぞれセットする。次に電源コントローラ1806に
液晶駆動電源のONを指示し、点灯回路1809にバッ
クライト1810の点灯を指示する。
The MPU 1807 operates according to a program stored in a built-in ROM.
When the display is performed on the liquid crystal display panel 1811,
Adjust the driving conditions of. For this, the thermistor 181
2 is input through a built-in AD converter, temperature information near the liquid crystal display panel 1811 is obtained, and optimal driving conditions for driving the liquid crystal display panel 1811 are selected. Here, the driving conditions are, for example, a driving time (horizontal frequency) of one line and a liquid crystal driving voltage. Based on the selected driving conditions, the driving time (1H) of one line is set in the panel controller 1804, and the liquid crystal driving voltage (Vop) is set in the power supply controller 1806 through the DA converter 1805. Next, the power supply controller 1806 is instructed to turn on the liquid crystal driving power, and the lighting circuit 1809 is instructed to turn on the backlight 1810.

【0007】MPU1807からグラフィックカード1
800に対し画像データを要求すると、画像バス180
2を通して1ライン分の画像データがパネルコントロー
ラ1804に転送される。MPU1807はタイミング
を測ってパネルコントローラヘ1ライン分の駆動開始を
指示すると、パネルコントローラ1804は受け取った
画像データを液晶表示パネル1811が受け取ることの
できる形に加工して転送する。これにより液晶表示パネ
ル1811に1ラインの画像が表示される。
[0007] Graphic card 1 from MPU 1807
When image data is requested to the image bus 180,
2, the image data for one line is transferred to the panel controller 1804. When the MPU 1807 measures the timing and instructs the panel controller to start driving for one line, the panel controller 1804 processes the received image data into a form that can be received by the liquid crystal display panel 1811 and transfers it. As a result, an image of one line is displayed on the liquid crystal display panel 1811.

【0008】図23はMPU1807とスイッチボード
1813の接続を示す図である。可変抵抗1815,1
817や、デジタルスイッチ1816は、使用者がこの
液晶表示装置を使用する際に最適な使用状態になるよう
調整を行うための調整入力手段である。例えば、可変抵
抗1817は点灯回路1809に接続され、バックライ
ト1810の輝度調整を可能にする。即ち、使用者がス
イッチボード1813上の可変抵抗1817を操作する
ことにより点灯回路1809に輝度調整信号が与えら
れ、バックライトの輝度が変化する。他の調整に関し個
々の機能と動作について詳しくは述べないが、これらの
入力手段はいずれも液晶表示装置全体の電源が遮断され
ても調整の程度を保存することが可能である。即ち、輝
度調整の可変抵抗1817は、電源が投入された時、可
変抵抗1817の調整位置によって自動的に電源遮断前
の輝度調整の程度を再現することができる。
FIG. 23 is a diagram showing the connection between the MPU 1807 and the switch board 1813. Variable resistor 1815, 1
817 and a digital switch 1816 are adjustment input means for performing adjustment so that the user can use the liquid crystal display device in an optimal use state. For example, the variable resistor 1817 is connected to the lighting circuit 1809 and enables the brightness of the backlight 1810 to be adjusted. That is, when the user operates the variable resistor 1817 on the switch board 1813, a luminance adjustment signal is given to the lighting circuit 1809, and the luminance of the backlight changes. Although individual functions and operations are not described in detail with respect to other adjustments, any of these input means can store the degree of adjustment even when the power of the entire liquid crystal display device is cut off. That is, when the power is turned on, the brightness adjustment variable resistor 1817 can automatically reproduce the degree of the brightness adjustment before the power is turned off by the adjustment position of the variable resistor 1817.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、近年の
表示装置にあっては、ボタンスイッチによる調整操作が
採用される傾向にある。上述したような液晶表示装置の
入力手段において、一般に調整操作のために使用されて
きた機械式の可変抵抗器やデジタルスイッチなどの部品
は、小型のタクトスイッチやメンブレンスイッチなどの
大きさに較べはるかに多くのスペースを要し、デザイン
や操作性の観点からのみならず、装置の小型化、省スペ
ース化に対しても不利な状況にある。
However, recent display devices tend to employ an adjustment operation using a button switch. In the input means of the liquid crystal display device as described above, components such as a mechanical variable resistor and a digital switch that have been generally used for adjustment operation are far smaller than the size of a small tact switch or a membrane switch. Requires a lot of space, which is disadvantageous not only in terms of design and operability, but also in miniaturization and space saving of the device.

【0010】一方、タクトスイッチやメンブレンスイッ
チは、ある瞬間に使用者が操作しているか否かが判別で
きるのみで、電源遮断時にその調整程度を記憶する機能
はない。このためボタンスイッチを用いた表示装置にお
いては、電源遮断時に使用者の操作状態(装置の設定状
態)を記憶し、電源再投入時にこれを再現するためのメ
モリ手段を持つ必要が生じた。
On the other hand, the tact switch and the membrane switch can only determine whether or not the user is operating at a certain moment, but have no function of storing the adjustment degree when the power is turned off. For this reason, in a display device using a button switch, it is necessary to have a memory means for storing a user's operation state (setting state of the apparatus) when the power is turned off and for reproducing this when the power is turned on again.

【0011】メモリ手段は、例えば、電池バックアップ
によるSRAMを使用する方法、EEPROMを使用す
る方法などがある。このうち、EEPROMは電池が不
要でコスト、設計の容易さでメリットがあるが、書き込
み耐久回数が比較的少ないという問題を有する。
The memory means includes, for example, a method using an SRAM with a battery backup and a method using an EEPROM. Among them, the EEPROM does not require a battery and has advantages in cost and simplicity of design, but has a problem that the number of times of endurance of writing is relatively small.

【0012】EEPROMの故障モードは、フローティ
ングゲートを構成するトンネル酸化膜の劣化による書き
込み不良(1を書き込んでも0となる)と、チャージポ
ンプの不良であり、前者が支配的である。このため、1
セル当たりの書き込み回数を減らし、デバイスの見かけ
上の耐久回数を増大させなければならないという問題点
があった。
[0012] The failure modes of the EEPROM are a write failure due to the deterioration of the tunnel oxide film constituting the floating gate (it becomes 0 even if 1 is written) and a charge pump failure, the former being dominant. Therefore, 1
There has been a problem that the number of times of writing per cell must be reduced and the apparent endurance of the device must be increased.

【0013】本発明は上記の問題に鑑みてなされたもの
であり、表示装置の設定状態等を示すデータを書換可能
な記憶媒体に格納する場合に、同一記憶位置に対する書
き込み回数を減少させ、記憶媒体の耐久性を向上する記
憶制御装置及び方法及び該記憶制御装置を用いた表示装
置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problem, and when data indicating a setting state of a display device is stored in a rewritable storage medium, the number of times of writing to the same storage location is reduced, It is an object of the present invention to provide a storage control device and method for improving the durability of a medium and a display device using the storage control device.

【0014】[0014]

【課題を解決するための手段】上記の目的を達成するた
めの本発明の記憶制御装置は以下の構成を備えている。
すなわち、所定ビット数からなる語を書き換え可能な単
位とする記憶媒体を有した記憶制御装置であって、少な
くとも1つの反転ビットを有する所定語を含むN個の語
からなるデータ構成の第1データの前記記憶媒体におけ
る記憶位置を、該所定語に基づいて検出する検出手段
と、前記認識手段で認識された前記第1データの記憶位
置より少なくとも1語分をずらした位置を新たな記憶位
置とし、前記記憶媒体における該新たな記憶位置に、前
記データ構成を有する第2データを書き込む第1書込み
手段と、前記第1データの記憶された語のうち、前記第
1書込み手段による前記第2データの書込みによって更
新されない語の全てのビットを非反転状態にする第2書
込み手段とを備える。
A storage control device according to the present invention for achieving the above object has the following arrangement.
That is, a storage control device having a storage medium having a word having a predetermined number of bits as a rewritable unit, wherein the first data having a data configuration including N words including a predetermined word having at least one inversion bit is provided. Detecting means for detecting a storage position in the storage medium based on the predetermined word, and a position shifted by at least one word from a storage position of the first data recognized by the recognition means as a new storage position. A first writing unit for writing the second data having the data configuration to the new storage location in the storage medium; and a second data by the first writing unit among words stored in the first data. And second writing means for setting all bits of a word which is not updated by writing to a non-inverting state.

【0015】また、好ましくは、前記所定語は前記デー
タ構成におけるN語の先頭の語であり、前記検出手段
は、前記記憶媒体の所定領域における先頭アドレスより
順次データを読み出し、少なくとも1つの反転ビットを
含む語を検出した場合に、該語を先頭とするN語のアド
レスを前記第1データの記憶位置として検出する。
Preferably, the predetermined word is a head word of N words in the data configuration, and the detecting means sequentially reads data from a head address in a predetermined area of the storage medium, and detects at least one inversion bit. Is detected, the address of N words starting with the word is detected as the storage location of the first data.

【0016】また、好ましくは、前記所定語は、反転状
態のビットの数を奇数個とするための1ビットの奇数パ
リティビットを含む。
Preferably, the predetermined word includes one odd parity bit for setting the number of inverted bits to an odd number.

【0017】また、好ましくは、前記所定語は、常に反
転状態に固定された少なくとも1つのビットを含む。
[0017] Preferably, the predetermined word includes at least one bit which is always fixed in an inverted state.

【0018】また、好ましくは、前記検索手段によって
検出された記憶位置より前記第1データを読み出す読出
手段を更に備え、前記第2データ書込み手段は、前記読
出手段の実行後の前記第1データ書込み手段の実行前に
行う。
Preferably, the apparatus further comprises reading means for reading the first data from a storage position detected by the search means, and wherein the second data writing means comprises a means for writing the first data after execution of the reading means. Before the implementation of the measures.

【0019】また、好ましくは、前記第1データと第2
データとを比較し、前記第1及び第2データが異なる場
合に前記第1及び第2書込み手段を実行する制御手段を
更に備える。
Preferably, the first data and the second data
The apparatus further includes control means for comparing data with the data and executing the first and second writing means when the first and second data are different.

【0020】また、上記の目的を達成する本発明の他の
構成の記憶制御装置は以下の構成を備える。すなわち、
所定ビット数からなる語を書き換え可能な単位とする記
憶媒体の、所定語数の制御範囲の記憶制御を行う記憶制
御装置であって、N個の語を有し、少なくとも1つの反
転ビットを有する所定語を含むデータ構成のデータを前
記記憶媒体の所定の記憶位置に書込む書込み手段と、前
記第1書込み手段による書込みの回数を計数する計数手
段と、前記書込み手段によるデータの書込みに際して、
前記計数手段によるって計数された書込み回数が所定値
を越えた場合、該書込み手段による書込み対象の記憶位
置を少なくとも1語分ずらした位置に更新する更新手段
とを備える。
A storage control device having another configuration according to the present invention for achieving the above object has the following configuration. That is,
A storage control device for performing storage control of a control range of a predetermined number of words in a storage medium having a word having a predetermined number of bits as a rewritable unit, the storage control device having N words and having at least one inversion bit Writing means for writing data having a data structure including a word into a predetermined storage location of the storage medium, counting means for counting the number of times of writing by the first writing means, and when writing data by the writing means,
Updating means for updating the storage position to be written by the writing means to a position shifted by at least one word when the number of writings counted by the counting means exceeds a predetermined value.

【0021】また、好ましくは、前記書込み手段による
書込み対象の記憶位置を示すポインタを前記制御範囲の
所定のアドレスに保持する保持手段と、前記更新手段に
よって前記書込み手段による書込み対象の記憶位置が更
新された場合に、前記保持手段で保持されている記憶位
置を更新する第2更新手段とを更に備える。
Preferably, holding means for holding a pointer indicating a storage position of a writing target by the writing means at a predetermined address in the control range, and updating of the storage position of the writing target by the writing means by the updating means. And a second updating unit that updates the storage position held by the holding unit when the operation is performed.

【0022】また、好ましくは、前記データの読み出し
位置、及び前記書込み手段によるデータの記憶位置を前
記保持手段で保持されているポインタによって決定す
る。
Preferably, the data read position and the data storage position of the writing means are determined by a pointer held by the holding means.

【0023】また、好ましくは、前記計数手段は、前記
書込み手段による書込み対象の記憶位置と所定の関係を
有した記憶位置に前記書込み回数を示す計数情報を保持
する。
Preferably, the counting means holds count information indicating the number of times of writing at a storage location having a predetermined relationship with a storage location to be written by the writing means.

【0024】また、好ましくは、前記計数手段における
計数情報の記憶位置は、前記書込み手段による書込み対
象の記憶位置に続く位置である。
Preferably, the storage position of the count information in the counting means is a position following the storage position to be written by the writing means.

【0025】また、好ましくは、前記書込み手段によっ
て書き込むべき新たなデータと前回までに記憶されてい
るデータとが異なる場合に、該書込み手段による書込み
を実行する制御手段を更に備える。
Preferably, the apparatus further comprises control means for executing writing by the writing means when new data to be written by the writing means is different from data previously stored.

【0026】また、上記の目的を達成する本発明の表示
装置は、上述した記憶制御装置を、表示器の設定状態を
示すデータを保持するのに用いる。
Further, in the display device of the present invention that achieves the above object, the storage control device described above is used to hold data indicating the setting state of the display device.

【0027】また、上記の目的を達成する本発明の記憶
制御方法は、所定ビット数からなる語を書き換え可能な
単位とする記憶媒体を有した記憶制御装置の制御方法で
あって、少なくとも1つの反転ビットを有する所定語を
含むN個の語からなるデータ構成の第1データの前記記
憶媒体における記憶位置を、該所定語に基づいて検出す
る検出工程と、前記認識工程で認識された前記第1デー
タの記憶位置より少なくとも1語分をずらした位置を新
たな記憶位置とし、前記記憶媒体における該新たな記憶
位置に、前記データ構成を有する第2データを書き込む
第1書込み工程と、前記第1データの記憶された語のう
ち、前記第1書込み工程による前記第2データの書込み
によって更新されない語の全てのビットを非反転状態に
する第2書込み工程とを備える。
A storage control method according to the present invention for achieving the above object is a control method for a storage control device having a storage medium having a word having a predetermined number of bits as a rewritable unit. A detection step of detecting, based on the predetermined word, a storage position of the first data having a data configuration including N words including a predetermined word having an inverted bit, based on the predetermined word; A first writing step in which a position shifted by at least one word from the storage position of one data is set as a new storage position, and the second data having the data configuration is written in the new storage position in the storage medium; A second writing method for setting all bits of a word that is not updated by the writing of the second data in the first writing step among the stored words of one data in a non-inverted state Provided with a door.

【0028】また、上記の目的を達成する本発明の他の
構成の記憶制御方法は、所定ビット数からなる語を書き
換え可能な単位とする記憶媒体の、所定語数の制御範囲
の記憶制御を行う記憶制御方法であって、N個の語を有
し、少なくとも1つの反転ビットを有する所定語を含む
データ構成のデータを前記記憶媒体の所定の記憶位置に
書込む書込み工程と、前記第1書込み工程による書込み
の回数を計数する計数工程と、前記書込み工程によるデ
ータの書込みに際して、前記計数工程によって計数され
た書込み回数が所定値を越えた場合、該書込み工程によ
る書込み対象の記憶位置を少なくとも1語分ずらした位
置に更新する更新工程とを備える。
According to another aspect of the present invention, there is provided a storage control method for performing storage control of a control range of a predetermined number of words in a storage medium having a word having a predetermined number of bits as a rewritable unit. A storage control method for writing data having a data configuration including a predetermined word having N words and including at least one inversion bit to a predetermined storage location on the storage medium; A counting step of counting the number of times of writing in the step; and, when writing the data in the writing step, when the number of times of writing counted in the counting step exceeds a predetermined value, at least one storage location to be written in the writing step is determined. An updating step of updating to a position shifted by words.

【0029】[0029]

【発明の実施の形態】以下、添付の図面を参照して本発
明の好適な実施形態を説明する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.

【0030】[第1の実施形態]図1は本発明の一実施
形態における液晶表示装置の構成を示すブロック図であ
る。本実施形態における液晶表示装置は、グラフィック
ボード100を含む画像データ発生部101と、図示し
ない駆動回路を含む液晶表示パネル111、液晶表示パ
ネルを背面から照明するバックライト110、バックラ
イト110に含まれる蛍光ランプを明るさを調整しつつ
駆動する点灯回路109、液晶表示パネル111を制御
するパネルコントローラ104、液晶表示パネル111
に駆動電力を供給する電源コントローラ106、DAコ
ンバータ105、液晶パネルの近傍温度を検知するサー
ミスタ112、バックライトの明るさなどの液晶表示装
置への使用者による調整操作を入力するスイッチボード
113、パネルコントローラ104及び電源コントロー
ラ105を制御して液晶表示装置全体の動作を司るMP
U107、電源遮断時に使用者の調整状態を記憶するE
EPROM114、液晶表示装置全体に電源を供給する
電源108から構成される。
[First Embodiment] FIG. 1 is a block diagram showing a configuration of a liquid crystal display device according to an embodiment of the present invention. The liquid crystal display device according to the present embodiment is included in an image data generation unit 101 including a graphic board 100, a liquid crystal display panel 111 including a drive circuit (not shown), a backlight 110 for illuminating the liquid crystal display panel from the back, and a backlight 110. A lighting circuit 109 for driving a fluorescent lamp while adjusting brightness, a panel controller 104 for controlling a liquid crystal display panel 111, a liquid crystal display panel 111
, A power supply controller 106 for supplying driving power to the LCD panel, a thermistor 112 for detecting a temperature near the liquid crystal panel, a switch board 113 for inputting a user's adjustment operation to the liquid crystal display device such as a backlight brightness, a panel. MP that controls the controller 104 and the power supply controller 105 to control the operation of the entire liquid crystal display device
U107, E that stores the adjustment state of the user when the power is turned off
The EPROM 114 includes a power supply 108 for supplying power to the entire liquid crystal display device.

【0031】また、102はグラフィックボード100
からパネルコントローラ104へ画像データを転送する
画像バスである。103はMPU107からグラフィッ
クボード100へのデータ要求信号と、MPU107と
グラフィックボード100で相互に通信するシリアル通
信を含む制御線である。
Reference numeral 102 denotes a graphic board 100
Is an image bus for transferring image data from the computer to the panel controller 104. A control line 103 includes a data request signal from the MPU 107 to the graphic board 100 and serial communication for mutually communicating between the MPU 107 and the graphic board 100.

【0032】上記液晶表示パネル111は、液晶に強誘
電性液晶(以下FLCと記す)を用いた表示パネルで、
例えばRGBWを一画素とし1280×1024画素の
表示を行うものである。ここに用いた液晶材料は、ビフ
ェニル系とフェニルピリミジン系を主成分とする混合物
である。その液晶材料の相転移温度は下記の通りであ
る。即ち、 Cryst→(-10℃)→Sm→(63℃)→SmA→(72℃)→Ch(90℃)
→Iso となる。
The liquid crystal display panel 111 is a display panel using a ferroelectric liquid crystal (hereinafter referred to as FLC) as a liquid crystal.
For example, a display of 1280 × 1024 pixels is performed using RGBW as one pixel. The liquid crystal material used here is a mixture containing biphenyl-based and phenylpyrimidine-based as main components. The phase transition temperature of the liquid crystal material is as follows. That is, Cryst → (-10 ℃) → Sm → (63 ℃) → SmA → (72 ℃) → Ch (90 ℃)
→ Iso.

【0033】また、FLCを用いた液晶表示パネル11
1は温度により最適な駆動条件が変化する。図2は液晶
表示パネル111の駆動条件を説明する図である。本実
施形態における駆動条件は液晶に印加される駆動波形の
電圧である駆動電圧(Vop)と、一駆動ラインを駆動
する時間である一水平走査時間(1H)からなる。図2
に示すように最適な駆動条件は、Vopと1Hの積が高
温になるほど小さくなるように変化する。MPU107
は、液晶表示パネル111の近傍の温度(サーミスタ1
12によって検出される)に従って最適な駆動条件を選
択し、パネルコントローラ104へ1Hを、電源コント
ローラへはDAコンバータ105を通してVopをセッ
トする。この動作を温度補償動作と呼ぶ。
The liquid crystal display panel 11 using FLC
In No. 1, the optimum driving condition changes depending on the temperature. FIG. 2 is a diagram illustrating driving conditions of the liquid crystal display panel 111. The driving conditions in this embodiment include a driving voltage (Vop), which is a voltage of a driving waveform applied to the liquid crystal, and one horizontal scanning time (1H), which is a time for driving one driving line. FIG.
As shown in (1), the optimum driving condition changes so that the product of Vop and 1H becomes smaller as the temperature becomes higher. MPU107
Is the temperature near the liquid crystal display panel 111 (thermistor 1
12 is detected, and 1H is set to the panel controller 104, and Vop is set to the power supply controller through the DA converter 105. This operation is called a temperature compensation operation.

【0034】実際の温度補償動作においては、液晶表示
パネル111毎の微妙な特性の違いや、電気回路のばら
つきを調整する必要がある。このため液晶表示パネル1
11の近傍温度によって決定される駆動条件に対して調
整を加えるため、温度信号をAD変換して得られた温度
情報に対してオフセットを与える。このオフセット調整
を画質調整と呼ぶ。
In an actual temperature compensation operation, it is necessary to adjust a slight difference in characteristics between the liquid crystal display panels 111 and a variation in an electric circuit. Therefore, the liquid crystal display panel 1
In order to adjust the drive condition determined by the temperature near 11, an offset is given to the temperature information obtained by AD-converting the temperature signal. This offset adjustment is called image quality adjustment.

【0035】また上記FLCを用いた液晶パネル111
は、1画素がRGBWのサブピクセルから構成され16
色の表示を行うが、誤差拡散法などの手法により擬似的
に32000色相当のカラー表示を行うことができる。
このための画像データ処理はグラフィックボード100
で行われるが、フルカラーの写真のような自然色に近い
表示を行う場合、1つの色の表示を周辺のいくつかの画
素の表示の合成により得るため、解像度が多少犠牲とな
る。このため、自然色に近い表示を行うか、あるいは細
かい文字などの表示に適した高解像度の16色表示を行
うか、あるいはこの2者の中間のいくつかの状態の表示
か、表示する内容に応じていずれかを選んで使用するこ
とが好適である。この調整を色彩調整と呼ぶ。
A liquid crystal panel 111 using the above-mentioned FLC
Is composed of one pixel consisting of RGBW sub-pixels.
Color display is performed, and color display corresponding to 32,000 colors can be pseudo-displayed by a technique such as an error diffusion method.
The image data processing for this is performed by the graphic board 100.
However, when a display close to a natural color such as a full-color photograph is performed, the display of one color is obtained by synthesizing the display of several surrounding pixels, so that the resolution is somewhat sacrificed. For this reason, whether the display is close to a natural color, or a high-resolution 16-color display suitable for displaying fine characters or the like, or a display in some state intermediate between the two, It is preferable to select and use any one of them. This adjustment is called color adjustment.

【0036】上記点灯回路110は電源108から電力
の供給を受けバックライト110を点灯させるが、その
点灯/消灯の制御をMPU107から受け、調光信号を
DAコンバータ105を通じてMPU107から受け
る。
The lighting circuit 110 receives the supply of power from the power supply 108 and turns on the backlight 110. The turning on / off control is received from the MPU 107, and a dimming signal is received from the MPU 107 through the DA converter 105.

【0037】図3はMPU107とスイッチボード11
3の接続を示す図である。タクトスイッチ115〜12
0は使用者が調整のために押すスイッチであり、スイッ
チを操作した(押した)状態ではLレベルが、操作しな
い(離した)状態ではHレベルがMPU107のデジタ
ルI/Oポート121に入力される。タクトスイッチ1
15は輝度ダウンのための調整スイッチ、タクトスイッ
チ116は輝度アップのための調整スイッチ、タクトス
イッチ117は色彩ダウンのための調整スイッチ、タク
トスイッチ118は色彩アップのための調整スイッチ、
タクトスイッチ119は画質ダウンのための調整スイッ
チ、タクトスイッチ120は画質アップのための調整ス
イッチである。
FIG. 3 shows the MPU 107 and the switch board 11
FIG. 3 is a diagram showing connection of No. 3; Tact switches 115-12
Reference numeral 0 denotes a switch pressed by the user for adjustment. When the switch is operated (pressed), the L level is input to the digital I / O port 121 of the MPU 107 when the switch is not operated (released). You. Tact switch 1
15 is an adjustment switch for lowering the brightness, tact switch 116 is an adjustment switch for increasing the brightness, tact switch 117 is an adjustment switch for decreasing the color, tact switch 118 is an adjustment switch for increasing the color,
The tact switch 119 is an adjustment switch for reducing image quality, and the tact switch 120 is an adjustment switch for increasing image quality.

【0038】次に本実施形態の液晶表示装置の動作につ
いて、MPU107が実行するプログラムに従って説明
する。
Next, the operation of the liquid crystal display device of this embodiment will be described according to a program executed by the MPU 107.

【0039】図4はMPU107が実行する主プログラ
ムのフローチャートである。なお、本フローチャートを
実現するための制御プログラムはMPU107内のRO
Mに格納され、CPUがこれを実行する。
FIG. 4 is a flowchart of the main program executed by the MPU 107. Note that the control program for realizing this flowchart is the RO program in the MPU 107.
M, and the CPU executes this.

【0040】液晶表示装置の電源が投入され、MPU1
07に電源が供給されると図4の「スタート」からプロ
グラムの実行が始まる。まず、ステップS11(初期設
定)では、MPU107に内蔵される周辺回路の初期設
定、パネルコントローラ104の初期設定、プログラム
実行上必要な変数の初期設定が行われる。次に、ステッ
プS12でEEPROM114の内容が読み出され、電
源が遮断される直前における液晶表示装置の状態(使用
者による調整)が再現される。使用者による調整とはバ
ックライトの明るさ(輝度調整)、グラフィックボード
100の画像データ処理のためのパラメータ調整(色彩
調整)、液晶駆動条件の微調整(画質調整)であり、そ
の調整度合を輝度レベル、色彩レベル、画質レベルと称
する。なお、ステップS12の「メモリ読み出し」の動
作については更に後述する。
When the power of the liquid crystal display device is turned on, the MPU 1
When power is supplied to 07, execution of the program starts from "start" in FIG. First, in step S11 (initial setting), initial settings of peripheral circuits incorporated in the MPU 107, initial settings of the panel controller 104, and initial settings of variables necessary for program execution are performed. Next, in step S12, the contents of the EEPROM 114 are read, and the state (adjustment by the user) of the liquid crystal display device immediately before the power is turned off is reproduced. The adjustments by the user include brightness of the backlight (brightness adjustment), parameter adjustment for image data processing of the graphic board 100 (color adjustment), and fine adjustment of the liquid crystal driving conditions (image quality adjustment). These are called a luminance level, a color level, and an image quality level. The operation of “memory read” in step S12 will be further described later.

【0041】次にステップS13へ進み、「ONシーケ
ンス」による液晶駆動のための準備を行う。
Next, the flow advances to step S13 to prepare for driving the liquid crystal by the "ON sequence".

【0042】「ONシーケンス」について図5を用いて
説明する。図5はONシーケンスの手順を示すフローチ
ャートである。「ONシーケンス」においては、まずス
テップS41において、「サーミスタ監視」を行い、サ
ーミスタ112からの電圧信号をMPU107に内蔵さ
れるADコンバータ121を通して入力する。次に、ス
テップS42へ進み、得られた温度情報と、上述のステ
ップS12で得られた画質レベルとにより最適な液晶駆
動条件である「1H(水平走査期間)」と「Vop」が
選択される。そして、選択された「1H」はパネルコン
トローラ104へ、「Vop」はDAコンバータ105
を通してアナログ電圧信号として電源コントローラ10
6ヘセットされる。
The "ON sequence" will be described with reference to FIG. FIG. 5 is a flowchart showing the procedure of the ON sequence. In the “ON sequence”, first, “thermistor monitoring” is performed in step S41, and a voltage signal from the thermistor 112 is input through an AD converter 121 built in the MPU 107. Next, proceeding to step S42, the optimal liquid crystal driving conditions "1H (horizontal scanning period)" and "Vop" are selected based on the obtained temperature information and the image quality level obtained in step S12. . The selected “1H” is sent to the panel controller 104 and the “Vop” is sent to the DA converter 105.
Power supply controller 10 as an analog voltage signal through
Set to 6

【0043】次にステップS43へ進み、カウンタ1と
カウンタ2の初期化を行う。ここで、カウンタ1とは液
晶の駆動ライン数をカウントするカウンタである。後で
述べるように本プログラムでは液晶の駆動ライン数をカ
ウントし、この本数により一定時間の経過を測り、使用
者がスイッチを操作しているかどうかを監視する。例え
ば、1ラインの駆動時間1Hが80μsecである場
合、カウンタ1を1250で初期化し、1ライン駆動を
行う毎に0までカウントダウンすれば、100msごと
にスイッチの監視を行うことになる。
Then, the process proceeds to a step S43, where the counters 1 and 2 are initialized. Here, the counter 1 is a counter for counting the number of driving lines of the liquid crystal. As will be described later, this program counts the number of liquid crystal drive lines, measures the elapse of a certain time based on the number, and monitors whether the user is operating the switch. For example, when the driving time 1H of one line is 80 μsec, if the counter 1 is initialized at 1250 and the countdown is reduced to 0 every time one line is driven, the switch is monitored every 100 ms.

【0044】また、カウンタ2とはスイッチ監視の回数
をカウントするカウンタである。スイッチ監視を行い、
何らかの調整操作が行われていた場合は温度補償を行う
が、使用者による調整操作が全く行われていない場合で
も、一定時間間隔でサーミスタの監視を行い温度補償を
行う。例えば、カウンタ2を300で初期化すれば、3
00回のスイッチ監視毎に、上記例においては少なくと
も30秒毎に、サーミスタの監視が行われる。
The counter 2 is a counter for counting the number of times of switch monitoring. Monitor the switch,
If any adjustment operation has been performed, temperature compensation is performed, but even if no adjustment operation is performed by the user, thermistor is monitored at regular time intervals to perform temperature compensation. For example, if counter 2 is initialized with 300, 3
Thermistors are monitored every 00 switches, at least every 30 seconds in the above example.

【0045】続いてステップS44へ進み、MPU10
7は電源コントローラ106へ液晶駆動電源の出力を開
始する信号を与える。この信号がONとなって初めて液
晶表示パネル111に駆動電源が供給される。
Then, the process proceeds to a step S44, wherein the MPU 10
A signal 7 is supplied to the power supply controller 106 to start outputting the liquid crystal driving power supply. The driving power is supplied to the liquid crystal display panel 111 only when this signal is turned on.

【0046】次にステップS45の「調光信号出力」に
おいて、MPU107は輝度レベルをDAコンバータを
通して点灯回路109へ与える。更に、ステップS46
の「BL点灯信号出力」において、MPU107は点灯
回路109への点灯信号をONし、バックライト110
を点灯状態とする。「ONシーケンス」は以上の通りで
ある。
Next, in “dimming signal output” in step S45, the MPU 107 gives the luminance level to the lighting circuit 109 through the DA converter. Further, step S46
In “BL lighting signal output”, the MPU 107 turns on the lighting signal to the lighting circuit 109, and the backlight 110
Is turned on. The “ON sequence” is as described above.

【0047】再び図4に戻り、主プログラムの続きを説
明する。ステップS14では、カウンタ1の値をチェッ
クし、カウンタ1が0でない場合ステップS15へ進
み、カウンタ1が0の場合はステップS20へ進む。
Returning to FIG. 4, the continuation of the main program will be described. In step S14, the value of the counter 1 is checked. If the counter 1 is not 0, the process proceeds to step S15, and if the counter 1 is 0, the process proceeds to step S20.

【0048】ステップS15では、液晶表示パネル11
1の1ライン駆動を行う。ここで、MPU107はグラ
フィックボード100へ1ライン分の画像データを要求
する。グラフィックカード100は液晶表示パネル11
1の画面上のアドレスが付加された1ライン分の画像デ
ータをパネルコントローラ104へ転送する。MPU1
07はタイミングを測ってパネルコントローラ104へ
1ライン分の表示駆動開始を指示する。パネルコントロ
ーラ104はMPU107の指示により、受け取った画
像データを液晶表示パネル111が受け取れる形態に加
工して転送する。これにより液晶表示パネル111に1
ラインの画像データが表示される。
In step S15, the liquid crystal display panel 11
One one-line drive is performed. Here, the MPU 107 requests the graphic board 100 for one line of image data. The graphic card 100 has a liquid crystal display panel 11
The image data for one line to which the address on one screen is added is transferred to the panel controller 104. MPU1
07 measures the timing and instructs the panel controller 104 to start display driving for one line. The panel controller 104 processes the received image data into a form that can be received by the liquid crystal display panel 111 and transfers the processed image data according to an instruction from the MPU 107. As a result, 1
The image data of the line is displayed.

【0049】1ラインの駆動を行うと、即ち、1ライン
の駆動開始を指示すると、ステップS16へ進み、カウ
ンタ1の内容を1減じる。次にステップS17におい
て、シリアル通信の受信バッファに受信したコマンドが
あるかを判断する。受信したコマンドがある場合にはス
テップS18へ進み、当該コマンドに対応する処理を実
行し、ステップS19においてその結果をグラフィック
カードへ通知するべくステータス送信を実行する。その
後、プログラムは再びステップS14へ戻り、カウンタ
1が0となるまで1ライン毎の駆動を継続する。
When the driving of one line is performed, that is, when the start of driving of one line is instructed, the process proceeds to step S16, and the content of the counter 1 is decremented by one. Next, in step S17, it is determined whether there is a received command in the serial communication reception buffer. If there is a received command, the process proceeds to step S18, where processing corresponding to the command is executed, and in step S19, status transmission is performed to notify the result to the graphic card. Thereafter, the program returns to step S14 again, and continues driving for each line until the counter 1 becomes 0.

【0050】さて、ステップS14においてカウンタ1
が0となった場合、即ち、コマンド処理を交えつつ1ラ
イン毎の駆動が継続されておよそ100msが経過した
場合、プログラムはステップS20へ分岐し、「スイッ
チ監視」を行う。
Now, in step S14, the counter 1
Becomes 0, that is, when about 100 ms has elapsed since driving for each line is continued while performing command processing, the program branches to step S20 to perform “switch monitoring”.

【0051】「スイッチ監視」とはスイッチボード11
3に設けられたタクトスイッチ115〜120が使用者
によって押し下げられているかを検査する処理である。
タクトスイッチ115〜120からの信号が接続されて
いるデジタルI/OポートのH/Lレベルを調べ、一つ
でもLレベルの信号があれば入力操作が行われているも
のと判断する(ステップS21)。入力操作が行われて
いると判断された場合、ステップS22へ進み、使用者
の操作を解析し、輝度/色彩/画質レベルを変更し、レ
ベルに応じた調整(調整動作)を行う。
"Switch monitoring" means switch board 11
This is a process for checking whether or not the tact switches 115 to 120 provided in 3 are depressed by the user.
The H / L level of the digital I / O port to which signals from the tact switches 115 to 120 are connected is checked, and if there is at least one L level signal, it is determined that an input operation has been performed (step S21). ). If it is determined that the input operation has been performed, the process proceeds to step S22, where the operation of the user is analyzed, the luminance / color / image quality level is changed, and adjustment (adjustment operation) according to the level is performed.

【0052】また、ステップS21において入力操作が
行われていないと判断された場合は、ステップS26へ
進み、カウンタ2の内容を1減じる。このときカウンタ
2の内容が0となった場合は、ステップS27からステ
ップS22へ進み、スイッチが操作された場合と同様に
「調整動作」及び温度補償動作を実行する。
If it is determined in step S21 that the input operation has not been performed, the process proceeds to step S26, and the content of the counter 2 is decremented by one. At this time, if the content of the counter 2 becomes 0, the process proceeds from step S27 to step S22, and the "adjustment operation" and the temperature compensation operation are executed as in the case where the switch is operated.

【0053】ステップS27においてカウンタ2の値が
0でない場合は、ステップS28へ進み、カウンタ1を
初期化した後、ステップS14へ戻る。そして、上述の
処理をくり返す。
If the value of the counter 2 is not 0 in step S27, the process proceeds to step S28, where the counter 1 is initialized, and then returns to step S14. Then, the above processing is repeated.

【0054】次に、「調整動作」について図6及び図7
により説明する。図6は調整動作の手順を示すフローチ
ャートである。また、図7は各調整項目の調整手順を示
すフローチャートである。本実施形態における調整項目
は、輝度、色彩、画質であり、各項目について使用者が
upの操作をしたか、downの操作をしたかを判断
し、当該項目のレベル(輝度レベル、色彩レベル、画質
レベルのいずれか)を更新するサブルーチンである。
Next, the "adjustment operation" will be described with reference to FIGS.
This will be described below. FIG. 6 is a flowchart showing the procedure of the adjustment operation. FIG. 7 is a flowchart showing an adjustment procedure of each adjustment item. The adjustment items in the present embodiment are luminance, color, and image quality. For each item, it is determined whether the user has performed an up operation or a down operation, and the level (luminance level, color level, This is a subroutine for updating any one of the image quality levels.

【0055】まず、図7のフローチャートを説明する
と、ステップS61においてupの操作が検出される
と、ステップS66へ進む。ここで、downの操作が
検出されると、本処理をそのまま終了する。即ち、up
またはdownいずれか一方のスイッチが操作された場
合にのみ操作が有効となり、同時に操作された場合は無
効である。up操作のみが行われた場合は、ステップS
67へ進み、該当項目のレベルを一つ上げる。ステップ
S68では当該項目のレベルが上限を越えたか否かを判
定し、上限を越えた場合は当該項目のレベルを上限値に
設定する(ステップS69)。
First, referring to the flowchart of FIG. 7, when an up operation is detected in step S61, the process proceeds to step S66. Here, when the down operation is detected, the present process is terminated as it is. That is, up
The operation is valid only when either one of the switches is operated or down, and invalid when operated simultaneously. If only the up operation has been performed, step S
Proceed to 67 to raise the level of the corresponding item by one. In step S68, it is determined whether or not the level of the item has exceeded the upper limit. If the level has exceeded the upper limit, the level of the item is set to the upper limit (step S69).

【0056】down操作のみが行われると、ステップ
S63へ進み、当該項目のレベルを一つ下げる。そし
て、ステップS64において、当該項目のレベルが下限
値を下回ったか否かを判定し、下回っていればステップ
S64へ進み、当該項目のレベルを下限値に設定する。
なお、以上の図7の処理によって設定された、輝度レベ
ル、色彩レベル、画質レベルの各レベル値は、MPU1
07内のRAMに保持される。
When only the down operation is performed, the process proceeds to step S63, and the level of the item is lowered by one. Then, in step S64, it is determined whether or not the level of the item is lower than the lower limit. If the level is lower, the process proceeds to step S64 to set the level of the item to the lower limit.
Note that the level values of the luminance level, the color level, and the image quality level set by the processing of FIG.
07 is stored in the RAM.

【0057】図6に示される「調整動作」においては、
スイッチボード113よりの入力信号に基づいて操作さ
れた調整項目を判別し、操作された調整項目について図
7の手順を実行するものである。
In the "adjustment operation" shown in FIG.
The adjustment item operated based on the input signal from the switch board 113 is determined, and the procedure of FIG. 7 is executed for the operated adjustment item.

【0058】まず、ステップS51において、輝度レベ
ルの直前の値を直前レベルとして保存する。次に、ステ
ップS52において、輝度レベルに関して上述の図7の
処理を実行する。そして、ステップS53において、現
在の輝度レベルとステップS51で保存した直前レベル
とを比較する。比較の結果、輝度レベルが更新されたと
判定された場合、ステップS54において、新しい輝度
レベルをDAコンバータ105を通して点灯回路109
へ設定する。
First, in step S51, the value immediately before the luminance level is stored as the immediately preceding level. Next, in step S52, the above-described processing of FIG. 7 is executed for the luminance level. Then, in step S53, the current luminance level is compared with the immediately preceding level stored in step S51. As a result of the comparison, if it is determined that the brightness level has been updated, the new brightness level is passed through the DA converter 105 to the lighting circuit 109 in step S54.
Set to

【0059】次に、ステップS55〜S57では、色彩
レベルに関して上述の輝度レベルと同様の処理を行う。
そして、色彩レベルが変更されていた場合には、シリア
ル通信を経由し新しい色彩レベルがグラフィックボード
100へ通知される(ステップS58)。
Next, in steps S55 to S57, processing similar to the above-described luminance level is performed for the color level.
If the color level has been changed, the new color level is notified to the graphic board 100 via serial communication (step S58).

【0060】次に画質レベルの更新を行うが、実際にレ
ベルが変更されているか否かに関わらず、「サーミスタ
監視」によって得られる温度情報と画質レベルを用いて
「温度補償動作」を必ず実行する。即ち、ステップS5
9において、図7で示した手順で画質レベルの設定を行
い、図4のステップS23、S24の温度補償処理を実
行する。
Next, the image quality level is updated, and the "temperature compensation operation" is always executed using the temperature information and the image quality level obtained by "thermistor monitoring" regardless of whether or not the level is actually changed. I do. That is, step S5
In 9, the image quality level is set according to the procedure shown in FIG. 7, and the temperature compensation processing in steps S23 and S24 in FIG. 4 is executed.

【0061】図8は、温度補償処理の手順を表すフロー
チャートである。まず、ステップS31において、ステ
ップS23で獲得したサーミスタの値と現在の画質レベ
ルを足し合わせてオフセットの値を決定する。次に、ス
テップS32において、1Hテーブルのオフセット位置
に格納された値を1Hとして設定し、ステップS33に
おいてVopテーブルのオフセット位置に格納された値を
液晶駆動電圧として設定する。
FIG. 8 is a flowchart showing the procedure of the temperature compensation process. First, in step S31, the value of the thermistor acquired in step S23 and the current image quality level are added to determine an offset value. Next, in step S32, the value stored in the offset position of the 1H table is set as 1H, and in step S33, the value stored in the offset position of the Vop table is set as the liquid crystal drive voltage.

【0062】以上の「温度補償動作」を実行した後は、
図4のステップS25へ進み、カウンタ1の初期化、カ
ウンタ2の初期化を実行し、再び1ライン毎の駆動動作
へ戻る。
After executing the above “temperature compensation operation”,
Proceeding to step S25 in FIG. 4, the initialization of the counter 1 and the initialization of the counter 2 are executed, and the operation returns to the driving operation for each line again.

【0063】次に電源が遮断されたときの本液晶表示装
置の動作について説明する。
Next, the operation of the present liquid crystal display device when the power is turned off will be described.

【0064】図9は、外部から液晶表示装置にAC電源
が供給された際及びAC電源が遮断された際の動作を示
すタイムチャートである。電源108は、AC電源入力
が遮断された場合、または電源108の電源スイッチが
オフされた場合、信号ACFをLレベルに下げMPU1
07に対して電源が遮断されたことを示すと同時に、こ
こから20msの間電源出力を保持する。図9の(b)
に示すようにこの20msの間にバックライト110を
消灯し、液晶表示パネル11の全面に黒を書き込み(全
黒消去)、液晶駆動電源を遮断する。
FIG. 9 is a time chart showing the operation when AC power is supplied to the liquid crystal display device from the outside and when the AC power is cut off. The power supply 108 lowers the signal ACF to the L level when the AC power input is cut off or the power switch of the power supply 108 is turned off.
07, indicating that the power supply has been cut off, and at the same time, the power supply output is held for 20 ms from here. FIG. 9B
As shown in (2), during this 20 ms, the backlight 110 is turned off, black is written on the entire surface of the liquid crystal display panel 11 (all black erasure), and the liquid crystal driving power supply is shut off.

【0065】MPU107のプログラムではACF信号
がLレベルとなるエッジによって割り込みプログラム
(OFFシーケンス)へ制御を移す。図10は、電源O
FF時の割り込みプログラムで実行されるOFFシーケ
ンスの制御手順を示すフローチャートである。
In the program of the MPU 107, the control is transferred to the interrupt program (OFF sequence) by the edge at which the ACF signal becomes L level. FIG.
9 is a flowchart showing a control procedure of an OFF sequence executed by an interrupt program at the time of FF.

【0066】まず、割り込みプログラムに制御が移った
とき1ライン駆動が行われていた場合には、当該1ライ
ン駆動の終了を待つ(ステップS71)。次に、バック
ライト110の消灯信号を点灯回路109へ出力し(ス
テップS72)、続いて、この時点での使用者の調整度
合い、即ち輝度レベル、色彩レベル、画質レベルをメモ
リ(EEPROM114)へ書き込む(ステップS7
3)。そして、ステップS75の「液晶全黒消去」にお
いて液晶表示パネル111の全面に黒を書き込み、ステ
ップS75の「液晶駆動電源OFF」において液晶駆動
電源を遮断する。
First, if one-line driving has been performed when control is transferred to the interrupt program, the control waits for the end of the one-line driving (step S71). Next, a turn-off signal of the backlight 110 is output to the lighting circuit 109 (step S72), and subsequently, the adjustment level of the user at this time, that is, the luminance level, the color level, and the image quality level are written into the memory (EEPROM 114). (Step S7
3). Then, black is written on the entire surface of the liquid crystal display panel 111 in "all liquid crystal erasure" in step S75, and the liquid crystal driving power is shut off in "liquid crystal driving power OFF" in step S75.

【0067】図11は本実施形態における調整レベルを
保持するためのEEPROMのデータ構成を示す図であ
る。図11の(b)に示されるように、調整レベルのデ
ータは16ビットの1語で形成される。画質レベルは最
大±31レベルの符号付き整数、輝度レベルは32レベ
ルの符号なし整数、色彩レベルは8レベルの符号なし整
数であり、各々7,5,3ビットを割り当てる。パリテ
ィビットはこの1語に含まれる1のビット数が奇数にな
るようにセットされる。このため、この1語には必ず1
ビット以上の1が存在する。図11の(a)は、EEP
ROM114全体の割付けを示す。EEPROM114
は1024ビットの容量を持ち、16ビット/語×64
語の構成である。本実施形態ではこのうち1語に調整レ
ベルのデータを格納し、他の語には全て0が格納されて
いる。
FIG. 11 is a diagram showing a data structure of an EEPROM for holding the adjustment level in the present embodiment. As shown in FIG. 11B, the data of the adjustment level is formed of one word of 16 bits. The image quality level is a signed integer of a maximum of ± 31 levels, the luminance level is an unsigned integer of 32 levels, and the color level is an unsigned integer of 8 levels, and 7, 5, and 3 bits are assigned to each. The parity bit is set such that the number of 1 bits included in one word is odd. Therefore, this word must be 1
There is more than one bit. FIG. 11A shows the EEP
The assignment of the entire ROM 114 is shown. EEPROM 114
Has a capacity of 1024 bits, 16 bits / word × 64
It is a word composition. In the present embodiment, the adjustment level data is stored in one word, and 0 is stored in all other words.

【0068】図12は、本実施形態におけるメモリ書込
みの手順を示すフローチャートである。図12のフロー
チャートは、図10のステップS73の詳細を示すもの
である。ステップS81において、MPU107内のR
AMより、輝度レベル値、色彩レベル値、画質レベル値
を読み出し、図11(b)に示す割り付けで1語の調整
レベルデータを構成する。次に、ステップS82におい
て、後で説明する「メモリ読み出し」終了時に決定され
るEEPROM114のアドレスに、この調整レベルデ
ータを書き込む。MPU107からEEPROM114
へのデータ転送は約20μsecで終了するが、実際の
メモリセルへの書き込みには最大10msを要する。こ
のため「OFFシーケンス」においては、「メモリ書き
込み」として先ずEEPROM114へのデータ転送を
行い、書き込み指示を行ったあと、「液晶全黒書消去」
及び「液晶駆動電源OFF」を行った後EEPROM1
14の書き込み動作の終了を待つ(ステップS76)。
FIG. 12 is a flowchart showing the procedure for writing data to the memory in this embodiment. The flowchart in FIG. 12 shows the details of step S73 in FIG. In step S81, the R in the MPU 107
The luminance level value, the color level value, and the image quality level value are read from the AM, and the adjustment level data of one word is configured by the allocation shown in FIG. Next, in step S82, the adjustment level data is written to the address of the EEPROM 114 determined at the end of "memory read" described later. MPU 107 to EEPROM 114
Data transfer to the memory cell is completed in about 20 μsec, but writing to the actual memory cell requires a maximum of 10 ms. For this reason, in the “OFF sequence”, first, data transfer to the EEPROM 114 is performed as “memory write”, a write instruction is issued, and then “all-black liquid crystal erase” is performed.
And after performing "LCD drive power OFF",
Wait for the end of the write operation of No. 14 (step S76).

【0069】次に、当該表示装置の立ち上げ時に行われ
る「メモリ読み出し」動作(図4のステップS12)に
ついて、図13に示すフローチャートに従って説明す
る。この「メモリ読み出し」は、EEPROM114よ
り調整レベルデータを読み取るものであり、図4に示さ
れるように、液晶表示装置に電源が投入された直後に実
行される。このため調整レベルデータが格納されたアド
レスは不明であるが、後述のメモリ読み出し処理(図1
3)により、EEPROM114には、データである1
語に少なくとも1ビットの1が含まれ、調整レベルデー
タ以外の部分には全て0が格納された状態となってい
る。即ち、アドレス0から順に1語ずつ1を含む語が見
つかるまで読み出せば良い。
Next, the "memory read" operation (step S12 in FIG. 4) performed when the display device is started up will be described with reference to the flowchart shown in FIG. This "memory read" is for reading the adjustment level data from the EEPROM 114, and is executed immediately after the power is turned on to the liquid crystal display device as shown in FIG. For this reason, although the address at which the adjustment level data is stored is unknown, the memory read processing described later (FIG. 1)
According to 3), the data 1 is stored in the EEPROM 114.
The word contains at least one bit of "1", and all parts other than the adjustment level data are stored with "0". That is, reading may be performed in order from address 0 until a word including 1 is found one by one.

【0070】まず、ステップS91において、読み出す
アドレス値に0をセットする。次にステップS92にお
いて、アドレス値がEEPROM114のアドレスの上
限を超えたか否かを判定する。ここで、アドレス値がE
EPROM114が持つアドレスの範囲にある場合、当
該アドレスに格納された1語が読み出される(ステップ
S93)。そして、このデータに1が含まれない場合
は、アドレス値をカウントアップし、アドレス値が上限
値を越えるまで、或いは1を含む語が検出されるまで1
語ずつ読み出される(ステップS92、S94、S9
5)。
First, in step S91, 0 is set to the address value to be read. Next, in step S92, it is determined whether or not the address value has exceeded the upper limit of the address of the EEPROM 114. Here, if the address value is E
If it is within the address range of the EPROM 114, one word stored at the address is read (step S93). If the data does not include 1, the address value is counted up until the address value exceeds the upper limit or until a word containing 1 is detected.
Words are read out word by word (steps S92, S94, S9
5).

【0071】ステップS92において、アドレス値がE
EPROM114の上限を越えた場合は、求めるデータ
が見つからなかった場合であり、処理はステップS10
5へ進む。ステップS105において、上述のメモリ書
き込み(図12)において使用するアドレスとして0を
セットし、更にステップS104で輝度レベル、色彩レ
ベル、画質レベルにデフォルト値をセットし、リターン
する。
In step S92, if the address value is E
If the upper limit of the EPROM 114 is exceeded, it means that the desired data has not been found, and the process proceeds to step S10.
Go to 5. In step S105, 0 is set as the address used in the above-described memory writing (FIG. 12), and in step S104, default values are set in the luminance level, color level, and image quality level, and the routine returns.

【0072】また、読み出された語に1が含まれる場
合、ステップS94からステップS96へ進み、その語
に格納されたデータについてパリティチェックを行う。
パリティチェックが正常に行われると、ステップS97
へ進み、この語から輝度レベル、色彩レベル、画質レベ
ルがデコードされる。更に、当該データを読み出した語
に0を書き込み(ステップS98)、ステップS98に
よるメモリへの書込みが終了したらアドレスを1進める
(ステップS99、S100)。この更新されたアドレ
ス値は、後の「メモリ書き込み(図12)」において使
用するアドレスとなる。
If 1 is included in the read word, the flow advances from step S94 to step S96 to perform a parity check on the data stored in the word.
If the parity check is normally performed, step S97
Then, the luminance level, the color level, and the image quality level are decoded from this word. Further, 0 is written in the word from which the data was read (step S98), and when the writing to the memory in step S98 is completed, the address is advanced by 1 (steps S99, S100). This updated address value becomes an address to be used in “memory writing (FIG. 12)” later.

【0073】一方、ステップS96において、パリティ
が正しくない場合はEEPROM114への書き込み時
または読み出し時に何らかのエラーが発生し、電源が遮
断される前のデータが失われたものとする。よって、ま
ず、処理をステップS101へ進めて、当該アドレスの
語の全ビットに0を書込み、この書込みが終了したらア
ドレスを1増加する(ステップS102、S103)。
この更新されたアドレス値は、上記ステップS100の
場合と同様に、後のメモリか着込み処理において使用さ
れる。そして、ステップS104にて、輝度レベル、色
彩レベル、画質レベルにデフォルト値を設定する。
On the other hand, if the parity is not correct in step S96, it is assumed that some error has occurred during writing or reading to the EEPROM 114, and that the data before the power was turned off was lost. Therefore, first, the process proceeds to step S101, where 0 is written to all bits of the word of the address, and when the writing is completed, the address is incremented by 1 (steps S102 and S103).
This updated address value is used later in the memory or landing process, as in step S100. Then, in step S104, default values are set for the luminance level, the color level, and the image quality level.

【0074】以上の手順により、データが格納されるア
ドレスは書き込み毎に1ずつ進み、かつデータが格納さ
れる1語以外は全て0に保たれる。また、本実施形態に
おけるEEPROM114は64語構成であり、一回の
電源OFF/ONの度に1語に2回ずつの書き込みが行
われることになる。従って、1語当りの書き込み回数
は、 2回÷(64語÷1語/回)=1/32 と低減される。これは、EEPROM114を使用する
上で、見かけ上の書き込み耐久回数が32倍に拡大する
ことに相当する。
By the above procedure, the address at which data is stored is advanced by one for each write, and all addresses except one word at which data is stored are kept at 0. Further, the EEPROM 114 in this embodiment has a 64-word configuration, and each time power is turned off / on, writing is performed twice for each word. Therefore, the number of times of writing per word is reduced to 2 ÷ (64 words ÷ 1 word / time) = 1/32. This corresponds to the fact that the apparent endurance of writing can be increased 32 times when the EEPROM 114 is used.

【0075】一方、メモリ読み出しに際して、本実施形
態では、平均32語を読み出さねばならないが、1語の
読み出しは20μsec程度であり、装置の立ち上がり
時間と比較すれば問題とならないと判断できる。
On the other hand, at the time of memory reading, in the present embodiment, 32 words must be read on average, but reading of one word is about 20 μsec, and it can be determined that there is no problem when compared with the rise time of the device.

【0076】なお、上記実施形態では、奇数パリティビ
ットを用いてデータとなる1語に少なくとも1が1ビッ
ト含まれるよう構成したが、データに要求される信頼性
上問題が生じないならば、本実施形態でパリティビット
としたビットを必ず1とした構成とすることも可能であ
る。
In the above embodiment, at least one bit is included in one word serving as data by using odd parity bits. However, if there is no problem in reliability required for data, this word is used. It is also possible to adopt a configuration in which the parity bit is always set to 1 in the embodiment.

【0077】更に、本実施形態では電源遮断時に動作で
きる時間(電源108の保持時間)が20msであり、
この間に1回しかメモり書き込み時間が取れないため、
データは1語のみとしたが、保持時間が長くかつ格納す
るデータが多い場合には2語以上のデータを書き込むこ
とも可能である。この場合、データを読み出した後、読
み出したデータが格納されていた部分のうち次にデータ
を書き込む部分と重ならない語に0を書き込む必要があ
る。
Further, in this embodiment, the time during which the power supply can be operated when the power is turned off (the holding time of the power supply 108) is 20 ms.
During this time, there is only one memory write time,
Although the data is only one word, it is possible to write data of two or more words when the holding time is long and there is a lot of data to be stored. In this case, after reading the data, it is necessary to write 0 to a word that does not overlap with a portion to which data is to be written next among the portions where the read data is stored.

【0078】例えば、図14に示すように、W語構成の
EEPROMにN語(0<N<W)で構成される調整レ
ベルデータを格納するものとし、書き込み毎にS語(0
<S≦N)ずつアドレスをシフトする場合を想定する。
ここで、平均書込み回数は、 (平均書き込み回数)=(1回のOFF/ONでの書き
込み回数)÷(書き込み場合数) となる。ここで、1回のOFF/ONでの書き込み回数
は、読み出し時においてシフトされた分の語に0を書き
込むS回と、書き込み時に書くN語の調整レベルデータ
のN回の和だから、 (1回のOFF/ONでの書き込み回数)=N[語]+S
[語] となる。また、書き込みの場合の数は、W語をS語ずつ
シフトして使用するから、 (書き込み場合数)=W[語]÷S[語]となる。
For example, as shown in FIG. 14, it is assumed that adjustment level data composed of N words (0 <N <W) is stored in an EEPROM having a W word structure, and an S word (0
It is assumed that the address is shifted by <S ≦ N).
Here, the average number of times of writing is (average number of times of writing) = (number of times of writing in one OFF / ON) / (number of times of writing). Here, the number of times of writing in one OFF / ON is the sum of S times of writing 0 to the shifted word at the time of reading and N times of the adjustment level data of N words written at the time of writing. Number of times of writing in OFF / ON times) = N [word] + S
[Word]. In addition, the number of cases of writing is such that W words are used by shifting S words at a time, so (number of cases of writing) = W [words] ÷ S [words].

【0079】よって、平均書き込み回数は、 (平均書き込み回数)=(N[語]+S[語])÷(W[語]
÷S[語]) となる。これは、EEPROM114を使用する上で、
見かけ上の書き込み耐久回数が((W[語]÷S[語])÷
(N[語]+S[語])倍に拡大することに相当する。
Therefore, the average number of times of writing is (average number of times of writing) = (N [word] + S [word]) ÷ (W [word]
÷ S [word]). This means that when using the EEPROM 114,
The apparent endurance of writing is ((W [word] ÷ S [word])]
This corresponds to (N [word] + S [word]) times magnification.

【0080】なお、上記のようにN語で調整レベルデー
タが構成される場合のメモリ読み出しは、例えば以下の
ように行う。まず、パリティビットを含む語を当該N語
の先頭語とする。そして、図13のステップS94にお
いて1が含まれる語を検出したならば、これに続くN語
のデータを読み出し、調整レベルデータを得るようにす
ればよい。
The memory reading when the adjustment level data is composed of N words as described above is performed, for example, as follows. First, a word including a parity bit is set as a head word of the N words. Then, if a word containing 1 is detected in step S94 of FIG. 13, the data of the N words following the word is read to obtain the adjustment level data.

【0081】なお、上記実施形態では、液晶表示装置の
立ち上げ時におけるメモリ読出処理において、EEPR
OM114から調整レベルデータを読出し、その読出し
た後に0を書込む(図13、ステップS98)がこれに
限らない。電源遮断時の電源保持時間が十分にとれるの
であれば、電源遮断時のメモり書込み処理時に、図13
のステップS100で保持されたアドレスに新たな調整
レベルデータを書込むと共に、一つ手前のアドレスに0
を書きこむようにしてもよい。
In the above embodiment, in the memory reading process at the time of starting the liquid crystal display device, the EEPR
The readout of the adjustment level data from the OM 114 and writing 0 after the readout (FIG. 13, step S98) are not limited to this. If the power holding time at the time of power-off is sufficient, at the time of the memory writing process at the time of power-off, FIG.
New adjustment level data is written to the address held in step S100, and 0 is added to the immediately preceding address.
May be written.

【0082】また、上記のごとき処理手順を採用した場
合、EEPROM114にはメモリか着込み時まで調整
レベルデータが記憶されていることになる。従って、新
たに書き込もうとする調整レベルデータと、既にEEP
ROM114に記憶されている調整レベルデータとを比
較し、両者が異なる場合にのみデータ書込みを実行する
ようにも構成できる。
In the case where the above-described processing procedure is adopted, the adjustment level data is stored in the EEPROM 114 until it arrives in the memory. Therefore, the adjustment level data to be newly written and the EEP
It is also possible to compare the adjustment level data stored in the ROM 114 and execute data writing only when the two are different.

【0083】図15は、電源遮断時のメモり書込み時に
おいて、調整レベルデータが変化した場合にのみEEP
ROMへの書込みを実行する手順を説明するフローチャ
ートである。なお、本フローチャートを適用する場合、
図13に示されたメモり読出手順におけるステップS9
8、S99は実行しない。
FIG. 15 shows EEP only when the adjustment level data has changed during memory writing when power is turned off.
9 is a flowchart illustrating a procedure for executing writing to a ROM. When applying this flowchart,
Step S9 in the memory reading procedure shown in FIG.
8. S99 is not executed.

【0084】まず、ステップS81においては。図12
と同様に、MPU107のRAMに記憶されている輝度
レベル、色彩レベル、画質レベルから、図11の(b)
のフォーマットに従った調整レベルデータを生成する。
次に、ステップS83において、図13のステップS1
00で得られたアドレス値より1つ手前のアドレスに格
納されている調整レベルデータをEEPROMより取得
する。そして、ステップS84において、ステップS8
1で生成した調整レベルデータと、ステップS83で取
得した調整レベルデータとを比較し、両者が一致した場
合はそのまま処理を終了する。
First, in step S81. FIG.
11B, the luminance level, the color level, and the image quality level stored in the RAM of the MPU 107 are used.
The adjustment level data according to the format of is generated.
Next, in step S83, step S1 in FIG.
The adjustment level data stored at the address immediately before the address value obtained in 00 is acquired from the EEPROM. Then, in step S84, step S8
The adjustment level data generated in step S1 is compared with the adjustment level data acquired in step S83, and if they match, the process is terminated.

【0085】また、ステップS84において、両者が一
致しなければ、調整レベルが更新されていると判断し、
ステップS85へ進む。ステップS85では、図13の
ステップS100で得られたアドレスにステップS81
で生成した調整レベルを書込み、続くステップS86で
は、その1つ手前のアドレスに0を書込む。
If the two do not match in step S84, it is determined that the adjustment level has been updated.
Proceed to step S85. In step S85, the address obtained in step S100 in FIG.
The adjustment level generated in step (1) is written. In the subsequent step S86, 0 is written to the address immediately before the adjustment level.

【0086】以上のような手順によれば、調整レベルが
変化した場合にEEPROMの書込みが実行されるの
で、更に耐久性が向上する。
According to the above-described procedure, when the adjustment level changes, the EEPROM is written, so that the durability is further improved.

【0087】なお、上述したメモリ書込み時における処
理は、調整レベルデータが1語で構成される場合を説明
したが、図14で説明したような、調整レベルデータが
複数の語(N語)で構成され、1回のシフト量がS語で
あるような場合にも、図15で説明した如き手順を適用
できることは明らかである。
In the above-described processing at the time of writing to the memory, the case where the adjustment level data is composed of one word has been described. However, as described with reference to FIG. 14, the adjustment level data is composed of a plurality of words (N words). It is apparent that the procedure described with reference to FIG. 15 can be applied to the case where the shift amount is S words for one time.

【0088】また、上記第1の実施形態ではEEPRO
M114の全領域(アドレス00H〜3FH)を使用し
たが、任意の領域を用いるようにしてもよい。また、上
記実施形態において、使用アドレスがEEPROM11
4のアドレス3FHまで到達した場合は、次のメモリ書
込みアドレスは先頭のアドレス(本例では00H)に戻
るものとする。すなわち、図13のステップS100、
S103における処理の後に、更新されたアドレスがア
ドレスの最大値(3FH)を越えたか否かを判断し、越
えていればアドレス値を00Hに戻す処理を行う。
In the first embodiment, the EEPRO
Although the entire area (addresses 00H to 3FH) of M114 is used, an arbitrary area may be used. Further, in the above embodiment, the used address is the EEPROM 11
When the address reaches the address 3FH of No. 4, the next memory write address returns to the head address (00H in this example). That is, step S100 in FIG.
After the process in S103, it is determined whether or not the updated address has exceeded the maximum value (3FH) of the address, and if it has, the process of returning the address value to 00H is performed.

【0089】[第2の実施形態]次に、本発明の第2の
実施形態について説明する。第2の実施形態は第1の実
施形態のうちEEPROM上のデータ構造と使用手順に
異なる構成を有し、EEPROMの見かけ上の耐久回数
を改善する別の方法を提供するものである。
[Second Embodiment] Next, a second embodiment of the present invention will be described. The second embodiment is different from the first embodiment in that the data structure and the use procedure on the EEPROM are different from each other, and provides another method for improving the apparent endurance of the EEPROM.

【0090】第2の実施形態における液晶表示装置の構
成は、第1の実施形態(図1)と同様である。ただし、
第2の実施形態では、EEPROM114におけるデー
タの格納形態、MPU107によるメモリ制御手順が異
なる。以下、この点について説明する。
The configuration of the liquid crystal display device according to the second embodiment is the same as that of the first embodiment (FIG. 1). However,
In the second embodiment, the data storage format in the EEPROM 114 and the memory control procedure by the MPU 107 are different. Hereinafter, this point will be described.

【0091】第2の実施形態におけるMPU107の制
御動作は、第1の実施形態において説明した図4、図
5、図6、図7、図8、図10に示すフローチャートに
従った動作を行う。ただし、メモリの書き込み及び読み
込みについては、第1の実施形態(図12、図13)と
は異なった動作を行う。
The control operation of the MPU 107 in the second embodiment is performed according to the flowcharts shown in FIGS. 4, 5, 6, 7, 8, and 10 described in the first embodiment. However, for writing and reading of the memory, operations different from those of the first embodiment (FIGS. 12 and 13) are performed.

【0092】まず、第2の実施形態におけるEEPRO
M114上のメモリ割り付けと格納されるデータ構造を
図16に従って説明する。図16は、第2の実施形態に
おける調整レベルを保持するためのEEPROMのデー
タ構成を示す図である。
First, the EEPRO in the second embodiment
The memory allocation on M114 and the stored data structure will be described with reference to FIG. FIG. 16 is a diagram showing a data configuration of an EEPROM for holding an adjustment level according to the second embodiment.

【0093】図16の(a)において、EEPROM1
14は1024ビットの容量を持ち、16ビット/語×
64語の構成である。アドレス00hにはデータが格納
されるアドレスを指すポインタが格納されている。図で
はアドレスkが格納されている。また、アドレスkには
1語のデータが、アドレス(k+1)にはアドレスkの
データが同一アドレスに何回書き込まれたかを示すカウ
ンタ値が格納されている。
In FIG. 16A, the EEPROM 1
14 has a capacity of 1024 bits, and 16 bits / word ×
It is composed of 64 words. At address 00h, a pointer indicating the address at which data is stored is stored. In the figure, the address k is stored. The address k stores one word of data, and the address (k + 1) stores a counter value indicating how many times the data of the address k has been written to the same address.

【0094】図16の(b)はデータのビット割り付け
を示す図である。第1の実施形態と同様に、格納される
データは電源遮断される直前に使用者が設定した液晶表
示装置の調整状態、即ち、輝度レベル、色彩レベル、画
質レベルである。画質レベルは最大±31レベルの符号
付き整数、輝度レベルは32レベルの符号無し整数、色
彩レベルは8レベルの符号無し整数であり、各々7,
5,3ビットを割り当てる。パリティビットはこの1語
に含まれる1のビット数が予め決められた偶数または奇
数のいずれかになるようにセットされる。
FIG. 16B is a diagram showing bit allocation of data. As in the first embodiment, the stored data is the adjustment state of the liquid crystal display device set by the user immediately before the power is turned off, that is, the luminance level, the color level, and the image quality level. The image quality level is a signed integer of a maximum of ± 31 levels, the luminance level is an unsigned integer of 32 levels, and the color level is an unsigned integer of 8 levels.
Allocate 5 or 3 bits. The parity bit is set so that the number of 1 bits included in one word is either a predetermined even number or an odd number.

【0095】次に、電源投入時に行われるメモリ読み出
し動作について、図17に示すフローチャートに従って
説明する。図17は第2の実施形態における、メモリ読
み出し手順を表すフローチャートである。まず、ステッ
プS111において、予め決められたアドレス(本実施
形態では00h)に格納されたポインタを読み出し、ス
テップS112において、パリティをチェックする。ポ
インタの格納されるアドレスは固定されており、従って
本例では常に00hとなる。
Next, the memory read operation performed when the power is turned on will be described with reference to the flowchart shown in FIG. FIG. 17 is a flowchart illustrating a memory read procedure in the second embodiment. First, in step S111, a pointer stored at a predetermined address (00h in this embodiment) is read, and in step S112, parity is checked. The address where the pointer is stored is fixed, and therefore is always 00h in this example.

【0096】ステップS112においてパリティが正し
ければステップS113へ進み、ステップS111で読
み出したポインタの示すアドレス(図16においてはア
ドレスk)から調整レベルデータ(1語)を読み出す。
そしてステップS114においてパリティをチェックす
る。ステップS114におけるパリティが正しければス
テップS115へ進み、当該調整レベルデータをデコー
ドして輝度レベル、色彩レベル、画質レベルを獲得し、
当該液晶表示制御装置にセットする。
If the parity is correct in step S112, the flow advances to step S113 to read the adjustment level data (one word) from the address indicated by the pointer read in step S111 (address k in FIG. 16).
Then, in step S114, the parity is checked. If the parity in step S114 is correct, the process proceeds to step S115, in which the adjustment level data is decoded to obtain a luminance level, a color level, and an image quality level.
It is set in the liquid crystal display control device.

【0097】次に、ステップS116へ進み、ポインタ
の指すアドレスの次のアドレス(図16においてはアド
レスk+1)からカウンタ値を読み出し、ステップS1
17でそのパリティをチェックする。パリティが正しい
場合は、ステップS118へ進み、カウンタ値を1減ず
る。この結果、カウンタ値が0とならなければ、ステッ
プS126へ進み、その値をもとのアドレス(k+1)
に書き込む。
Then, the process proceeds to a step S116, wherein a counter value is read from the address next to the address pointed by the pointer (address k + 1 in FIG. 16), and a step S1 is executed.
At 17 the parity is checked. If the parity is correct, the flow advances to step S118 to decrease the counter value by one. As a result, if the counter value does not become 0, the process proceeds to step S126, and the value is returned to the original address (k + 1).
Write to.

【0098】一方、ステップS119においてカウンタ
値が0であれば、ステップS122へ進み、ポインタの
値を2進める(図16においてはk+2となる)。そし
て、これを新たなポインタとしてアドレス00hに書き
込み(ステップS123)、ポインタの書込みが終了し
たらアドレスk+2にはカウンタの初期値としてCを書
き込む(ステップS124、S125)。また、読み出
したカウンタ値のパリティが正しくない場合は、ステッ
プS117からステップS122へ進む。読み出したカ
ウンタのパリティが正しくない場合は、書込み回数が不
明となり、当該アドレスにおいて正常な書込みができな
い可能性があるので、調整レベルデータ及びカウンタ値
を書き込む場所を更新すべく、ステップS122へ進
み、上述の処理を行う。
On the other hand, if the counter value is 0 in step S119, the flow advances to step S122 to advance the value of the pointer by 2 (k + 2 in FIG. 16). Then, this is written as a new pointer at address 00h (step S123), and when the writing of the pointer is completed, C is written at address k + 2 as the initial value of the counter (steps S124 and S125). If the parity of the read counter value is not correct, the process proceeds from step S117 to step S122. If the parity of the read counter is not correct, the number of times of writing becomes unknown, and there is a possibility that normal writing cannot be performed at the address. Therefore, the process proceeds to step S122 to update the location where the adjustment level data and the counter value are written. The above processing is performed.

【0099】また、読み出した調整レベルデータのパリ
ティが正しくなかった場合は、EEPROM114への
書き込み時または読み出し時に何らかのエラーが発生
し、電源が遮断される前のデータが失われたものとし
て、輝度レベル、色彩レベル、画質レベルにデフォルト
値を設定する(ステップS114、S121)。そし
て、ステップS122〜S127の処理、すなわち調整
レベルデータとカウンタの記憶位置を更新し、カウンタ
値として初期値Cを書き込む処理を行う。
If the parity of the read adjustment level data is not correct, some error occurs when writing or reading data to or from the EEPROM 114, and it is determined that the data before the power is turned off is lost. The default values are set for the color level and the image quality level (steps S114 and S121). Then, the processing of steps S122 to S127, that is, the processing of updating the storage positions of the adjustment level data and the counter and writing the initial value C as the counter value is performed.

【0100】更に、読み出したポインタのパリティが正
しくない場合にも、ステップS112からステップS1
20へ進む。ステップS120では、ポインタを0に戻
し、調整レベルデータ及びカウンタ値の記憶位置を初期
状態に戻す。そして、上述したステップS121からS
127の処理を行う。なお、本実施形態では、偶数アド
レスにデータを格納し、これに続く奇数アドレスにカウ
ンタを格納するので、ポインタの最小値は2となる(後
述のステップS122でポインタ値に2が加算され
る)。もちろん、奇数アドレスにデータを格納し、これ
に続く偶数アドレスにカウンタを格納するのであれば、
ステップS120におけるポインタの初期値を−1に設
定すればよい。
Further, even if the parity of the read pointer is incorrect, the process proceeds from step S112 to step S1.
Proceed to 20. In step S120, the pointer is returned to 0, and the storage positions of the adjustment level data and the counter value are returned to the initial state. Then, steps S121 to S
127 is performed. In this embodiment, since the data is stored in the even address and the counter is stored in the odd address following the even address, the minimum value of the pointer is 2 (2 is added to the pointer value in step S122 described later). . Of course, if you store data at odd addresses and then store counters at even addresses,
What is necessary is just to set the initial value of the pointer in step S120 to -1.

【0101】電源遮断時に行われるメモリ書き込み動作
について、図18に示すフローチャートに従って説明す
る。図18は第2の実施形態におけるメモリ書込み手順
を示すフローチャートである。なお、図18に示すメモ
リ書込み処理は、第1の実施形態と同じように、電源遮
断時のACF信号による割り込み処理である。
The memory write operation performed when the power is turned off will be described with reference to the flowchart shown in FIG. FIG. 18 is a flowchart showing a memory writing procedure according to the second embodiment. Note that the memory write process shown in FIG. 18 is an interrupt process by an ACF signal when the power is turned off, as in the first embodiment.

【0102】図18のステップS131では、MPU1
07のRAMに格納された輝度レベル、色彩レベル、画
質レベルから、図16の(b)に示す割り付けで調整レ
ベルデータ(1語)を構成する。続いて、ステップS1
32において、上述のメモリ読出し処理後のポインタの
値を獲得する。そして、ステップS133において、該
ポインタによって示されるアドレスにアクセスし、ステ
ップS131で生成した調整レベルデータを書き込む。
In step S131 of FIG.
The adjustment level data (one word) is configured from the luminance level, the color level, and the image quality level stored in the RAM 07 in the allocation shown in FIG. Subsequently, step S1
At 32, the value of the pointer after the above-described memory read processing is obtained. Then, in step S133, the address indicated by the pointer is accessed, and the adjustment level data generated in step S131 is written.

【0103】以上の手順により、データが格納されるア
ドレスは書き込みC回毎に2ずつ進む。EEPROM2
14は64語構成であり、データとカウンタの格納領域
は、ポインタの格納場所以外の領域に2語×31個とれ
るので、1語当たりの書き込み回数は C回÷(C回×31箇所)=1/31 と低減される。これは、EEPROM114を使用する
上で、見かけ上の書き込み耐久回数が31倍に拡大する
ことに相当する。従って、上記第2の実施形態によれ
ば、EEPROMのみかけ上の耐久性が向上する。
According to the above procedure, the address at which the data is stored advances by two every C times of writing. EEPROM2
Numeral 14 has a structure of 64 words, and the storage area of the data and the counter is 2 words × 31 in the area other than the storage area of the pointer. Therefore, the number of times of writing per word is C times ÷ (C times × 31 places) = It is reduced to 1/31. This corresponds to the fact that the apparent endurance of writing can be increased 31 times when the EEPROM 114 is used. Therefore, according to the second embodiment, the apparent durability of the EEPROM is improved.

【0104】なお、上記第2の実施形態では、第1の実
施形態と同様、電源遮断時に動作できる時間(電源10
8の保持時間)が20msであり、この間に1回しかメ
モリ書き込み時間が取れないため、データは1語のみと
した。しかし、電源の保持時間が長くかつ格納するデー
タが多い場合には2語以上のデータを書き込むことも可
能である。例えば、W語構成のEEPROMにN語(0
<N<W)ずつのデータを格納し、書き込みC回毎にポ
インタをシフトする場合には、平均書込み回数はつぎの
ように求めることができる。
In the second embodiment, similarly to the first embodiment, the time during which the power supply can be operated when the power is turned off (the power supply 10).
8 is 20 ms, and the memory write time can be obtained only once during this period. Therefore, the data is limited to one word. However, when the power supply has a long holding time and a large amount of data is stored, it is possible to write data of two or more words. For example, N words (0
In the case where data of <N <W) are stored and the pointer is shifted every C times of writing, the average number of times of writing can be obtained as follows.

【0105】一般に、平均書込み回数は、 (平均書き込み回数)=(一つアドレスに書き込む回
数)÷(書き込み場合数) と表される。ここで、メモリ全体が一通り使われるまで
の1つのアドレスにおける書き込み回数はC回、メモリ
全体が一通り使われるまでに行われる書き込みの場合数
は、W語の内の1語がポインタに使用されるので、 (書き込み場合数)=(W[語]−1[語])÷N[語]×C
[回] となる。
In general, the average number of times of writing is represented by (average number of times of writing) = (number of times of writing to one address) / (number of times of writing). Here, the number of times of writing at one address until the entire memory is used one time is C, and the number of writes performed until the entire memory is used one time is one word out of W words used as a pointer. (Number of writing cases) = (W [word] −1 [word]) ÷ N [word] × C
[Times].

【0106】即ち、平均書き込み回数は、 (平均書き込み回数)=C[回]÷((W[語]−1[語])
÷N[語]×C[回]) =N[語]÷(W[語]−1[語]) となり、Cとは無関係となる。一方、ポインタはデータ
の格納アドレスが変更される毎、即ちデータの書き込み
C回毎に書き込みが行われる。よって、ポインタの格納
される語の平均書き込み回数は、 (平均書き込み回数)=1÷C[回] である。ここで、カウンタの初期値であるCを C≒(W[語]−1[語])÷N[語] とすれば、メモリ全体に渡ってほぼ同じ書き込み頻度と
することができる。これは、EEPROM214を使用
する上で、見かけ上の書き込み耐久回数が((W[語]−
1[語])÷N[語])倍に拡大することに相当する。
That is, the average number of times of writing is (average number of times of writing) = C [times] ÷ ((W [word] −1 [word])
{N [word] × C [times]) = N [word] ÷ (W [word] −1 [word]), and has nothing to do with C. On the other hand, the pointer is written each time the data storage address is changed, that is, every C times of data writing. Therefore, the average number of write times of the word stored in the pointer is (average number of write times) = 1 ÷ C [times]. Here, if the initial value C of the counter is C ≒ (W [word] −1 [word]) ÷ N [word], the writing frequency can be substantially the same over the entire memory. This is because, when using the EEPROM 214, the apparent endurance of writing is ((W [word]-
1 [word]) ÷ N [word]).

【0107】なお、第1の実施形態と同様に、電源遮断
語の電源保持時間を十分に長くとれるのであれば、カウ
ンタやポインタの更新をメモリ書込み時において実行す
るように構成することも可能である。この場合、EEP
ROMに保持された調整レベルデータから変化していな
いような場合には、書込み処理を行わないようにするこ
とができ、EEPROMの耐久性を更に向上する。
As in the first embodiment, if the power holding time of the power-off word can be made sufficiently long, the counter and the pointer can be updated at the time of writing to the memory. is there. In this case, EEP
If there is no change from the adjustment level data stored in the ROM, the writing process can be prevented from being performed, and the durability of the EEPROM is further improved.

【0108】図19は、第2の実施形態によるメモリ書
込み処理の他の手順を示すフローチャートである。な
お、本フローチャートの実行に際しては、調整レベルデ
ータの読出しが正常に行われた場合の読出し処理(図1
7)におけるカウンタ値、ポインタの更新を行わない。
すなわち、ステップS117においてパリティが正しけ
れば、そのままメモリ読出し処理を終了する。
FIG. 19 is a flowchart showing another procedure of the memory writing process according to the second embodiment. Note that, when the flowchart is executed, a reading process when the adjustment level data is normally read (see FIG. 1)
The counter value and pointer in 7) are not updated.
That is, if the parity is correct in step S117, the memory read processing ends as it is.

【0109】図19において、まずステップS131
で、輝度レベル、色彩レベル、画質レベルをMPU10
7内のRAMから読みだし、調整レベルデータを生成す
る。そして、ステップS134において、ポインタ値を
取得し、該ポインタ値によって示されるEEPROM1
14のアドレスから調整データを取得する。ステップS
135では、ステップS131で得られた調整レベルデ
ータとステップS134で得られた調整レベルデータと
を比較し、両者が一致すれば、メモリ書込みを行わず、
本処理を終了する。
In FIG. 19, first, at step S131
To set the brightness level, color level and image quality level to MPU10.
7 to read out the adjustment level data. Then, in step S134, a pointer value is obtained, and the EEPROM 1 indicated by the pointer value is obtained.
The adjustment data is obtained from the 14 addresses. Step S
In 135, the adjustment level data obtained in step S131 is compared with the adjustment level data obtained in step S134. If the two match, the memory writing is not performed.
This processing ends.

【0110】一方、ステップS135で両者が一致しな
ければ、ステップS136へ進み、ポインタ値+1のア
ドレスに格納されたカウンタ値を減算する。この結果、
当該カウンタ値が0となった場合は(ステップS13
7)、ステップS138で記憶位置を更新する。なお、
記憶位置の更新は、上述の図17のステップS122〜
ステップS126の処理と同様である。そして、ステッ
プS133において、ポインタ値の示すアドレスにステ
ップS131で生成した調整レベルデータを書き込む。
On the other hand, if they do not match in step S135, the flow advances to step S136 to decrement the counter value stored at the address of the pointer value + 1. As a result,
If the counter value has become 0 (step S13
7) In step S138, the storage location is updated. In addition,
The update of the storage location is performed in steps S122 to S122 in FIG.
This is the same as the processing in step S126. Then, in step S133, the adjustment level data generated in step S131 is written to the address indicated by the pointer value.

【0111】以上のような処理により、EEPROMへ
の書き込み回数が節約され、みかけ上の耐久性が向上す
る。
By the above processing, the number of times of writing to the EEPROM can be reduced, and the apparent durability can be improved.

【0112】また、図17のステップS122におい
て、ポインタを増加した結果、EEPROM114の最
大アドレス値(本例では3FH)を越えた場合は、ポイ
ンタ値を02Hとする。この結果、調整レベルデータと
カウンタ値の記憶位置を、EEPROMの記憶領域内で
循環させることができる。
In step S122 of FIG. 17, if the value of the pointer is increased and exceeds the maximum address value of the EEPROM 114 (3FH in this example), the pointer value is set to 02H. As a result, the storage positions of the adjustment level data and the counter value can be circulated in the storage area of the EEPROM.

【0113】以上説明したように、上記各実施形態によ
れば、プログラム上の追加を行うだけで、費用の増加な
しに、記憶デバイスの1語当たりの書き込み回数が低減
され、記憶デバイス全体の書き込み耐久回数を増大する
ことが可能となる。そして、EEPROMなどに書き込
み耐久回数の比較的少ない素子を記憶デバイスとした場
合にも、長期にわたり安定した動作をする液晶表示装置
を提供することが可能となる。
As described above, according to each of the above embodiments, the number of writes per word of the storage device can be reduced without increasing the cost only by adding the program, and the writing of the entire storage device can be performed. It is possible to increase the number of times of durability. In addition, even when an element having a relatively small number of write endurance times is used as a storage device in an EEPROM or the like, a liquid crystal display device that operates stably for a long time can be provided.

【0114】[他の実施形態]なお、本発明は、複数の
機器(例えばホストコンピュータ,インタフェイス機
器,リーダ,プリンタなど)から構成されるシステムに
適用しても、一つの機器からなる装置(例えば、複写
機,ファクシミリ装置など)に適用してもよい。
[Other Embodiments] Even if the present invention is applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus composed of one device (for example, For example, the present invention may be applied to a copying machine, a facsimile machine, and the like.

【0115】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。
Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (or CPU) of the system or apparatus.
And MPU) read and execute the program code stored in the storage medium.

【0116】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0117】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0118】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0119】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instructions of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0120】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードを格納することになるが、簡単に説
明すると、図20、図21の各メモリマップ例に示すよ
うに、プログラムモジュールを記憶媒体に格納すること
になる。
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the above-described flowcharts. As shown in the example of the memory map, the program modules are stored in the storage medium.

【0121】すなわち、図20に示すように、少なくと
も「検出処理モジュール」「第1書込み処理モジュー
ル」および「第2書込み処理モジュール」の各モジュー
ルのプログラムコードを記憶媒体に格納すればよい。
That is, as shown in FIG. 20, at least the program code of each of the "detection processing module", "first writing processing module" and "second writing processing module" may be stored in the storage medium.

【0122】ここで、上記各モジュールは、所定ビット
数からなる語を書き換え可能な単位とする記憶媒体(た
とえば、EEPROM)の記憶制御を行うためのプログ
ラムコードを構成するものである。そして、検出処理モ
ジュールは、少なくとも1つの反転ビットを有する所定
語を含むN個の語からなるデータ構成の第1データの上
記記憶媒体における記憶位置を、該所定語に基づいて検
出する検出処理を行う。また、第1書込み処理モジュー
ルは、前記認識処理で認識された前記第1データの記憶
位置より少なくとも1語分をずらした位置を新たな記憶
位置とし、前記記憶媒体における該新たな記憶位置に、
前記データ構成を有する第2データを書き込む第1書込
み処理を実現する。更に、第2書込み処理モジュール
は、前記第1データの記憶された語のうち、前記第1書
込み処理による前記第2データの書込みによって更新さ
れない語の全てのビットを非反転状態にする第2書込み
処理を実現するものである。
Here, each of the modules constitutes a program code for performing storage control of a storage medium (for example, an EEPROM) in which a word having a predetermined number of bits is a rewritable unit. The detection processing module detects a storage position in the storage medium of the first data having a data configuration including N words including a predetermined word having at least one inverted bit based on the predetermined word. Do. Further, the first writing processing module sets a position shifted by at least one word from a storage position of the first data recognized in the recognition processing as a new storage position, and stores the new storage position in the storage medium in the new storage position.
A first write process for writing the second data having the data configuration is realized. Furthermore, the second write processing module is configured to perform a second write that sets all bits of a word that is not updated by the writing of the second data by the first write processing among the stored words of the first data in a non-inverted state. The processing is realized.

【0123】また、図21に示すように、「書込み処理
モジュール」、「計数処理モジュール」及び「更新処理
モジュール」の各プログラムモジュールを格納するよう
にしてもよい。
Further, as shown in FIG. 21, each program module of “write processing module”, “counting processing module” and “update processing module” may be stored.

【0124】ここで、各プログラムモジュールは、所定
ビット数からなる語を書き換え可能な単位とする記憶媒
体(たとえば、EEPROM)の、所定語数の制御範囲
の記憶制御を行うものである。そして、書込みモジュー
ルは、N個の語を有し、少なくとも1つの反転ビットを
有する所定語を含むデータ構成のデータを前記記憶媒体
の所定の記憶位置に書込む書込み処理を実現する。ま
た、計数処理モジュールは、前記第1書込み処理による
書込みの回数を計数する計数処理を実現する。また、更
新処理モジュールは、前記書込み処理によるデータの書
込みに際して、前記計数処理によって計数された書込み
回数が所定値を越えた場合、該書込み処理による書込み
対象の記憶位置を少なくとも1語分ずらした位置に更新
する更新処理を行う。
Here, each program module performs storage control of a control range of a predetermined number of words in a storage medium (for example, an EEPROM) in which a word having a predetermined number of bits is a rewritable unit. Then, the writing module implements a writing process of writing data having a data structure including a predetermined word having N words and including at least one inversion bit to a predetermined storage location of the storage medium. The counting module implements a counting process for counting the number of times of writing by the first writing process. Further, when writing the data by the writing process, if the number of times of writing counted by the counting process exceeds a predetermined value, the update processing module shifts the storage position to be written by the writing process by at least one word. Perform update processing to update to.

【0125】[0125]

【発明の効果】以上説明したように、本発明によれば、
表示装置の設定状態等を示すデータを書換可能な記憶媒
体に格納する場合に、同一記憶位置に対する書き込み回
数を減少させることが可能になるので、記憶媒体の耐久
性が向上する。
As described above, according to the present invention,
When data indicating the setting state of the display device is stored in a rewritable storage medium, the number of times of writing to the same storage position can be reduced, so that the durability of the storage medium is improved.

【0126】[0126]

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施形態における液晶表示装置の構
成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a liquid crystal display device according to an embodiment of the present invention.

【図2】液晶表示パネル111の駆動条件を説明する図
である。
FIG. 2 is a diagram illustrating driving conditions of a liquid crystal display panel 111.

【図3】MPU107とスイッチボード113の接続を
示す図である。
FIG. 3 is a diagram showing a connection between an MPU 107 and a switch board 113.

【図4】MPU107が実行する主プログラムのフロー
チャートである。
FIG. 4 is a flowchart of a main program executed by the MPU 107.

【図5】ONシーケンスの手順を示すフローチャートで
ある。
FIG. 5 is a flowchart illustrating a procedure of an ON sequence.

【図6】調整動作の手順を示すフローチャートである。FIG. 6 is a flowchart illustrating a procedure of an adjustment operation.

【図7】各調整項目の調整手順を示すフローチャートで
ある。
FIG. 7 is a flowchart illustrating an adjustment procedure of each adjustment item.

【図8】温度補償処理の手順を表すフローチャートであ
る。
FIG. 8 is a flowchart illustrating a procedure of a temperature compensation process.

【図9】外部から液晶表示装置にAC電源が供給された
際及びAC電源が遮断された際の動作を示すタイムチャ
ートである。
FIG. 9 is a time chart showing operations when AC power is supplied to the liquid crystal display device from the outside and when the AC power is cut off.

【図10】電源OFF時の割り込みプログラムで実行さ
れるOFFシーケンスの制御手順を示すフローチャート
である。
FIG. 10 is a flowchart illustrating a control procedure of an OFF sequence executed by an interrupt program when the power is turned off.

【図11】本実施形態における調整レベルを保持するた
めのEEPROMのデータ構成を示す図である。
FIG. 11 is a diagram showing a data configuration of an EEPROM for holding an adjustment level in the embodiment.

【図12】本実施形態におけるメモリ書込みの手順を示
すフローチャートである。
FIG. 12 is a flowchart illustrating a memory writing procedure according to the present embodiment.

【図13】当該表示装置の立ち上げ時に行われる「メモ
リ読み出し」動作を示すフローチャートである。
FIG. 13 is a flowchart illustrating a “memory read” operation performed when the display device starts up.

【図14】調整レベルを保持するためのEEPROMの
データ構成の他の例を示す図である。
FIG. 14 is a diagram showing another example of a data configuration of an EEPROM for holding an adjustment level.

【図15】電源遮断時のメモり書込み時において、調整
レベルデータが変化した場合にのみEEPROMへの書
込みを実行する手順を説明するフローチャートである。
FIG. 15 is a flowchart illustrating a procedure for executing writing to the EEPROM only when adjustment level data has changed during memory writing when power is turned off.

【図16】第2の実施形態における調整レベルを保持す
るためのEEPROMのデータ構成を示す図である。
FIG. 16 is a diagram showing a data configuration of an EEPROM for holding an adjustment level in the second embodiment.

【図17】第2の実施形態における、メモリ読みだし手
順を表すフローチャートである。
FIG. 17 is a flowchart illustrating a memory reading procedure according to the second embodiment.

【図18】第2の実施形態におけるメモリ書込み手順を
示すフローチャートである。
FIG. 18 is a flowchart illustrating a memory writing procedure according to the second embodiment.

【図19】第2の実施形態によるメモリ書込み処理の他
の手順を示すフローチャートである。
FIG. 19 is a flowchart illustrating another procedure of the memory writing process according to the second embodiment;

【図20】本発明に係る制御プログラムを格納する記憶
媒体のメモリマップ例を示す図である。
FIG. 20 is a diagram showing an example of a memory map of a storage medium storing a control program according to the present invention.

【図21】本発明に係る制御プログラムを格納する記憶
媒体のメモリマップ例を示す図である。
FIG. 21 is a diagram showing an example of a memory map of a storage medium storing a control program according to the present invention.

【図22】一般的な液晶表示装置の例を示すブロック図
である。
FIG. 22 is a block diagram illustrating an example of a general liquid crystal display device.

【図23】MPU1807とスイッチボード1813の
接続を示す図である。
FIG. 23 is a diagram showing a connection between the MPU 1807 and the switch board 1813.

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 所定ビット数からなる語を書き換え可能
な単位とする記憶媒体を有した記憶制御装置であって、 少なくとも1つの反転ビットを有する所定語を含むN個
の語からなるデータ構成の第1データの前記記憶媒体に
おける記憶位置を、該所定語に基づいて検出する検出手
段と、 前記認識手段で認識された前記第1データの記憶位置よ
り少なくとも1語分をずらした位置を新たな記憶位置と
し、前記記憶媒体における該新たな記憶位置に、前記デ
ータ構成を有する第2データを書き込む第1書込み手段
と、 前記第1データの記憶された語のうち、前記第1書込み
手段による前記第2データの書込みによって更新されな
い語の全てのビットを非反転状態にする第2書込み手段
とを備えることを特徴とする記憶制御装置。
1. A storage control device having a storage medium having a word having a predetermined number of bits as a rewritable unit, comprising a data structure including N words including a predetermined word having at least one inversion bit. Detecting means for detecting a storage position of the first data in the storage medium based on the predetermined word; and a new position which is shifted by at least one word from the storage position of the first data recognized by the recognition means. A first writing unit that writes a second data having the data configuration to the new storage position in the storage medium as a storage location; and, among words stored in the first data, the first writing unit A second writing unit for setting all bits of a word that is not updated by writing the second data to a non-inverted state.
【請求項2】 前記所定語は前記データ構成におけるN
語の先頭の語であり、 前記検出手段は、前記記憶媒体の所定領域における先頭
アドレスより順次データを読み出し、少なくとも1つの
反転ビットを含む語を検出した場合に、該語を先頭とす
るN語のアドレスを前記第1データの記憶位置として検
出することを特徴とする請求項1に記載の記憶制御装
置。
2. The method according to claim 1, wherein the predetermined word is N in the data structure.
A detecting unit that reads data sequentially from a starting address in a predetermined area of the storage medium and detects a word including at least one inversion bit; 2. The storage control device according to claim 1, wherein an address of the first data is detected as a storage position of the first data.
【請求項3】 前記所定語は、反転状態のビットの数を
奇数個とするための1ビットの奇数パリティビットを含
むことを特徴とする請求項1または2に記載の記憶制御
装置。
3. The storage control device according to claim 1, wherein the predetermined word includes one odd parity bit for setting the number of inverted bits to an odd number.
【請求項4】 前記所定語は、常に反転状態に固定され
た少なくとも1つのビットを含むことを特徴とする請求
項1または2に記載の記憶制御装置。
4. The storage controller according to claim 1, wherein said predetermined word includes at least one bit which is always fixed in an inverted state.
【請求項5】 前記検索手段によって検出された記憶位
置より前記第1データを読み出す読出手段を更に備え、 前記第2データ書込み手段は、前記読出手段の実行後の
前記第1データ書込み手段の実行前に行うことを特徴と
する請求項1に記載の記憶制御装置。
5. The information processing apparatus according to claim 1, further comprising: reading means for reading the first data from the storage position detected by the searching means; wherein the second data writing means executes the first data writing means after execution of the reading means. 2. The storage control device according to claim 1, wherein the storage control is performed before.
【請求項6】 前記第1データと第2データとを比較
し、前記第1及び第2データが異なる場合に前記第1及
び第2書込み手段を実行する制御手段を更に備えること
を特徴とする請求項1に記載の記憶制御装置。
6. A control device for comparing the first data with the second data, and when the first and second data are different, the control unit executes the first and second writing units. The storage control device according to claim 1.
【請求項7】 所定ビット数からなる語を書き換え可能
な単位とする記憶媒体の、所定語数の制御範囲の記憶制
御を行う記憶制御装置であって、 N個の語を有し、少なくとも1つの反転ビットを有する
所定語を含むデータ構成のデータを前記記憶媒体の所定
の記憶位置に書込む書込み手段と、 前記第1書込み手段による書込みの回数を計数する計数
手段と、 前記書込み手段によるデータの書込みに際して、前記計
数手段によって計数された書込み回数が所定値を越えた
場合、該書込み手段による書込み対象の記憶位置を少な
くとも1語分ずらした位置に更新する更新手段とを備え
ることを特徴とする記憶制御装置。
7. A storage control device for performing storage control of a control range of a predetermined number of words in a storage medium in which a word having a predetermined number of bits is a rewritable unit, comprising: N words; Writing means for writing data having a data configuration including a predetermined word having an inverted bit into a predetermined storage location of the storage medium; counting means for counting the number of times of writing by the first writing means; When writing, if the number of times of writing counted by the counting means exceeds a predetermined value, updating means for updating the storage position to be written by the writing means to a position shifted by at least one word is provided. Storage controller.
【請求項8】 前記書込み手段による書込み対象の記憶
位置を示すポインタを前記制御範囲の所定のアドレスに
保持する保持手段と、 前記更新手段によって前記書込み手段による書込み対象
の記憶位置が更新された場合に、前記保持手段で保持さ
れている記憶位置を更新する第2更新手段とを更に備え
ることを特徴とする請求項7に記載の記憶制御装置。
8. A storage unit for holding a pointer indicating a storage position of a writing target by the writing unit at a predetermined address in the control range, and a case where the storage position of the writing target by the writing unit is updated by the updating unit. 8. The storage control device according to claim 7, further comprising a second updating unit that updates a storage position held by said holding unit.
【請求項9】 前記データの読み出し位置、及び前記書
込み手段によるデータの記憶位置を前記保持手段で保持
されているポインタによって決定することを特徴とする
請求項8に記載の記憶制御装置。
9. The storage control device according to claim 8, wherein a read position of the data and a storage position of the data by the writing unit are determined by a pointer held by the holding unit.
【請求項10】 前記計数手段は、前記書込み手段によ
る書込み対象の記憶位置と所定の関係を有した記憶位置
に前記書込み回数を示す計数情報を保持することを特徴
とする請求項7に記載の記憶制御装置。
10. The apparatus according to claim 7, wherein said counting means holds the count information indicating the number of times of writing at a storage location having a predetermined relationship with a storage location to be written by said writing means. Storage controller.
【請求項11】 前記計数手段における計数情報の記憶
位置は、前記書込み手段による書込み対象の記憶位置に
続く位置であることを特徴とする請求項10に記載の記
憶制御装置。
11. The storage control device according to claim 10, wherein the storage position of the count information in the counting unit is a position following a storage position of a writing target by the writing unit.
【請求項12】 前記書込み手段によって書き込むべき
新たなデータと前回までに記憶されているデータとが異
なる場合に、該書込み手段による書込みを実行する制御
手段を更に備えることを特徴とする請求項7に記載の記
憶制御装置。
12. The apparatus according to claim 7, further comprising control means for executing writing by said writing means when new data to be written by said writing means is different from data previously stored. 3. The storage control device according to claim 1.
【請求項13】 請求項1乃至6のいずれかに記載の記
憶制御装置と、 映像信号に基づく表示を行う表示器と、 前記検出手段で検出された記憶位置より読み取った前記
第1データの内容に基づいて前記表示器を設定する設定
手段と、 前記表示器の設定状態を変更する変更手段と、 前記表示器における現状の設定状態を前記第2データと
して生成する生成手段とを備えることを特徴とする表示
装置。
13. The storage control device according to claim 1, a display for performing a display based on a video signal, and a content of the first data read from a storage position detected by the detection unit. Setting means for setting the display on the basis of the following; changing means for changing the setting state of the display; and generating means for generating a current setting state of the display as the second data. Display device.
【請求項14】 請求項7乃至12のいずれかに記載の
記憶制御装置と、 映像信号に基づく表示を行う表示器と、 前記書込み手段による書込み対象位置である所定の記憶
位置よりデータを読み出し、該データに基づいて前記表
示器を設定する設定手段と、 前記表示器の設定状態を変更する変更手段と、 前記表示器における現状の設定状態を前記書込み手段に
よって書込むためのデータとして生成する生成手段とを
備えることを特徴とする表示装置。
14. A storage control device according to claim 7, further comprising: a display for performing display based on a video signal; and reading data from a predetermined storage position that is a writing target position by said writing means. Setting means for setting the display based on the data; changing means for changing the setting state of the display; and generation for generating the current setting state of the display as data for writing by the writing means. And a display device.
【請求項15】 所定ビット数からなる語を書き換え可
能な単位とする記憶媒体を有した記憶制御装置の制御方
法であって、 少なくとも1つの反転ビットを有する所定語を含むN個
の語からなるデータ構成の第1データの前記記憶媒体に
おける記憶位置を、該所定語に基づいて検出する検出工
程と、 前記認識工程で認識された前記第1データの記憶位置よ
り少なくとも1語分をずらした位置を新たな記憶位置と
し、前記記憶媒体における該新たな記憶位置に、前記デ
ータ構成を有する第2データを書き込む第1書込み工程
と、 前記第1データの記憶された語のうち、前記第1書込み
工程による前記第2データの書込みによって更新されな
い語の全てのビットを非反転状態にする第2書込み工程
とを備えることを特徴とする記憶制御方法。
15. A method for controlling a storage control device having a storage medium having a word having a predetermined number of bits as a rewritable unit, comprising N words including a predetermined word having at least one inversion bit. A detecting step of detecting a storage position of the first data having a data configuration in the storage medium based on the predetermined word; and a position shifted by at least one word from the storage position of the first data recognized in the recognition step. As a new storage location, a first writing step of writing the second data having the data configuration to the new storage location in the storage medium, and a first writing step of a word stored in the first data. A second writing step of setting all bits of a word not updated by the writing of the second data in a non-inverting state.
【請求項16】 所定ビット数からなる語を書き換え可
能な単位とする記憶媒体の、所定語数の制御範囲の記憶
制御を行う記憶制御方法であって、 N個の語を有し、少なくとも1つの反転ビットを有する
所定語を含むデータ構成のデータを前記記憶媒体の所定
の記憶位置に書込む書込み工程と、 前記第1書込み工程による書込みの回数を計数する計数
工程と、 前記書込み工程によるデータの書込みに際して、前記計
数工程によって計数された書込み回数が所定値を越えた
場合、該書込み工程による書込み対象の記憶位置を少な
くとも1語分ずらした位置に更新する更新工程とを備え
ることを特徴とする記憶制御方法。
16. A storage control method for performing storage control of a control range of a predetermined number of words in a storage medium having a word composed of a predetermined number of bits as a rewritable unit, comprising: N words; A writing step of writing data having a data configuration including a predetermined word having an inversion bit into a predetermined storage location of the storage medium; a counting step of counting the number of times of writing in the first writing step; When writing, if the number of times of writing counted by the counting step exceeds a predetermined value, an updating step of updating a storage position to be written in the writing step by at least one word is provided. Memory control method.
【請求項17】 所定ビット数からなる語を書き換え可
能な単位とする記憶媒体の記憶制御を行うためのプログ
ラムコードを格納するコンピュータ可読メモリであっ
て、 少なくとも1つの反転ビットを有する所定語を含むN個
の語からなるデータ構成の第1データの前記記憶媒体に
おける記憶位置を、該所定語に基づいて検出する検出工
程のコードと、 前記認識工程で認識された前記第1データの記憶位置よ
り少なくとも1語分をずらした位置を新たな記憶位置と
し、前記記憶媒体における該新たな記憶位置に、前記デ
ータ構成を有する第2データを書き込む第1書込み工程
のコードと、 前記第1データの記憶された語のうち、前記第1書込み
工程による前記第2データの書込みによって更新されな
い語の全てのビットを非反転状態にする第2書込み工程
のコードとを備えることを特徴とするコンピュータ可読
メモリ。
17. A computer-readable memory for storing a program code for performing storage control of a storage medium in which a word having a predetermined number of bits is a rewritable unit, including a predetermined word having at least one inversion bit. A code of a detection step of detecting a storage position of the first data having a data configuration of N words in the storage medium based on the predetermined word, and a storage position of the first data recognized in the recognition step. A position shifted by at least one word is set as a new storage position, a code of a first writing step of writing the second data having the data configuration to the new storage position in the storage medium, and storage of the first data Setting all the bits of the word that is not updated by the writing of the second data in the first writing step in the non-inverted state, 2. A computer readable memory, comprising: a code of two writing steps.
【請求項18】 所定ビット数からなる語を書き換え可
能な単位とする記憶媒体の、所定語数の制御範囲の記憶
制御を行うためのプログラムコードを格納するコンピュ
ータ可読メモリであって、 N個の語を有し、少なくとも1つの反転ビットを有する
所定語を含むデータ構成のデータを前記記憶媒体の所定
の記憶位置に書込む書込み工程のコードと、 前記第1書込み工程による書込みの回数を計数する計数
工程のコードと、 前記書込み工程によるデータの書込みに際して、前記計
数工程によって計数された書込み回数が所定値を越えた
場合、該書込み工程による書込み対象の記憶位置を少な
くとも1語分ずらした位置に更新する更新工程のコード
とを備えることを特徴とするコンピュータ可読メモリ。
18. A computer-readable memory for storing a program code for performing a storage control of a control range of a predetermined number of words in a storage medium having a word having a predetermined number of bits as a rewritable unit, comprising N words And a code of a writing step of writing data having a data configuration including a predetermined word having at least one inversion bit into a predetermined storage location of the storage medium, and a count for counting the number of times of writing in the first writing step When writing the data in the writing step and the data in the writing step, if the number of writes counted in the counting step exceeds a predetermined value, the storage location to be written in the writing step is updated to a position shifted by at least one word. A computer-readable memory comprising:
JP28999196A 1996-10-31 1996-10-31 Storage control device, method therefor and liquid crystal display device Withdrawn JPH10133617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28999196A JPH10133617A (en) 1996-10-31 1996-10-31 Storage control device, method therefor and liquid crystal display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28999196A JPH10133617A (en) 1996-10-31 1996-10-31 Storage control device, method therefor and liquid crystal display device

Publications (1)

Publication Number Publication Date
JPH10133617A true JPH10133617A (en) 1998-05-22

Family

ID=17750372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28999196A Withdrawn JPH10133617A (en) 1996-10-31 1996-10-31 Storage control device, method therefor and liquid crystal display device

Country Status (1)

Country Link
JP (1) JPH10133617A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000318271A (en) * 1999-05-13 2000-11-21 Fuji Photo Film Co Ltd Printer
JP2005266573A (en) * 2004-03-19 2005-09-29 Seiko Epson Corp Electro-optical device, controller of electro-optical device, control method of electro-optical device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000318271A (en) * 1999-05-13 2000-11-21 Fuji Photo Film Co Ltd Printer
JP2005266573A (en) * 2004-03-19 2005-09-29 Seiko Epson Corp Electro-optical device, controller of electro-optical device, control method of electro-optical device and electronic equipment

Similar Documents

Publication Publication Date Title
JP3062418B2 (en) Display device, display system, and display control method
EP0295690B1 (en) Display area control system for plasma display apparatus
US5710570A (en) Information processing unit having display functions
US5546104A (en) Display apparatus
US6140996A (en) Display control apparatus
US20070291021A1 (en) Display driver and display driving method
JP2005326859A (en) Method and system for driving dual display panels
US20060125760A1 (en) Method of driving a display device, display controller and display device for performing the same
US5774105A (en) Display apparatus with memory characteristic for storing system data
JP6146852B2 (en) Display control apparatus and data processing system
JP2005038346A (en) Semiconductor device and its control method
JPH10133617A (en) Storage control device, method therefor and liquid crystal display device
JP2003114648A (en) Liquid crystal display device, computer device and its control method for driving lcd panel
JP2000163019A (en) Liquid crystal display device
US6075508A (en) Display control apparatus and method therefor
JP3815450B2 (en) Display drive device, electro-optical device and electronic apparatus, and drive setting method for display drive device
JPH0661026B2 (en) Plasma panel display
JP3813568B2 (en) Display device and liquid crystal projector
JPH07121137A (en) Display device
TWI284882B (en) Controller and control method thereof and display utilizing the same
JP2002007221A (en) Method for increasing write guarantee frequency of flash memory
KR20040044644A (en) TV having electronic album function and method for controlling data of the same
JPH10319920A (en) Portable electronic equipment
JPH08160395A (en) Display device
JP2568512B2 (en) Image display device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040106