JP2659663B2 - LCD drive circuit with port function - Google Patents

LCD drive circuit with port function

Info

Publication number
JP2659663B2
JP2659663B2 JP7545093A JP7545093A JP2659663B2 JP 2659663 B2 JP2659663 B2 JP 2659663B2 JP 7545093 A JP7545093 A JP 7545093A JP 7545093 A JP7545093 A JP 7545093A JP 2659663 B2 JP2659663 B2 JP 2659663B2
Authority
JP
Japan
Prior art keywords
circuit
terminal
mode
data
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP7545093A
Other languages
Japanese (ja)
Other versions
JPH06289815A (en
Inventor
秀一 伊藤
茂樹 神尾
範明 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Motorola Solutions Japan Ltd
Original Assignee
Nippon Motorola Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Motorola Ltd filed Critical Nippon Motorola Ltd
Priority to JP7545093A priority Critical patent/JP2659663B2/en
Publication of JPH06289815A publication Critical patent/JPH06289815A/en
Application granted granted Critical
Publication of JP2659663B2 publication Critical patent/JP2659663B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal (AREA)
  • Liquid Crystal Display Device Control (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ポート機能を有するL
CD(液晶表示器)駆動回路に関する。
BACKGROUND OF THE INVENTION The present invention relates to an L port having a port function.
The present invention relates to a CD (liquid crystal display) drive circuit.

【0002】[0002]

【従来の技術】集積回路が組み込まれる装置においてそ
の集積回路に要求される駆動信号端子数、データ信号入
力端子数、データ信号出力端子数等がどのような割り当
てであっても同一の集積回路を用いて済むように集積回
路に汎用性を持たせることが考えられている。例えば、
液晶表示器を駆動するLCD駆動回路を備え液晶表示器
と電気的に接続することができる10個の端子を有する
集積回路を組み込む装置において、その10個の端子の
うちの液晶表示器の駆動信号端子としては8個の端子だ
けで済む場合に残りの2個の端子を入力ポート又は出力
ポート用の端子として用いるのである。
2. Description of the Related Art In a device in which an integrated circuit is incorporated, the same integrated circuit can be allocated regardless of the number of drive signal terminals, the number of data signal input terminals, the number of data signal output terminals, and the like required for the integrated circuit. It has been considered to make the integrated circuit versatile so that it can be used. For example,
In a device incorporating an integrated circuit having ten terminals that can be electrically connected to the liquid crystal display and that includes an LCD driving circuit for driving the liquid crystal display, a driving signal of the liquid crystal display among the ten terminals is provided. When only eight terminals are required, the remaining two terminals are used as terminals for an input port or an output port.

【0003】[0003]

【発明が解決しようとする課題】このような集積回路に
おいては端子毎の動作モードが決定しなければ端子の使
用設定はされない。すなわち、装置が電源投入等により
リセットされた後、プログラムが読み込まれてCPU等
の制御手段が動作を開始し、制御手段が発生するモード
選択指令に応じて初めて端子がどのモードのために使用
されるか設定される。それまでは製造者側が予め定めら
れた端子の使用設定となるのである。よって、液晶表示
器と電気的に接続するための端子をデータ信号の入力ポ
ート用端子又は出力ポート用端子として用いる場合に、
リセット後で装置の端子使用設定が完了するまでの動作
モード未確定期間において、集積回路からの端子への出
力状態とその端子に接続される外部回路の状態とが適切
でないと集積回路内の素子の破壊等の不具合を生じると
いう問題点があった。
In such an integrated circuit, the use of the terminals is not set unless the operation mode for each terminal is determined. That is, after the device is reset by turning on the power, the program is read and the control means such as the CPU starts operating, and the terminal is used for any mode only in response to the mode selection command generated by the control means. Or set. Until then, the manufacturer's use settings are predetermined. Therefore, when a terminal for electrically connecting to a liquid crystal display is used as an input port terminal or an output port terminal of a data signal,
During the operation mode indefinite period after the reset until the terminal use setting of the device is completed, if the output state from the integrated circuit to the terminal and the state of the external circuit connected to the terminal are not appropriate, the element in the integrated circuit However, there is a problem in that a defect such as destruction is caused.

【0004】そこで、本発明の目的は、リセット後で端
子使用設定が完了するまでの期間において端子に接続さ
れた外部回路との間における不具合の発生を防止するこ
とができるポート機能を有するLCD駆動回路を提供す
ることである。
An object of the present invention is to provide an LCD drive having a port function capable of preventing occurrence of a problem with an external circuit connected to a terminal during a period from reset to completion of setting of terminal use. Is to provide a circuit.

【0005】[0005]

【課題を解決するための手段】本発明のポート機能を有
するLCD駆動回路は、液晶表示器との接続用又はポー
ト用のための端子と、リセット動作後において動作モー
ドとして液晶表示駆動モード及びポートモードのうちの
1を示すモード選択指令を発生する手段と、モード選択
指令が液晶表示駆動モードを示すとき表示データに従っ
て複数の電位のいずれか1の電位を選択的に端子に供給
する駆動電位発生手段と、モード選択指令がポートモー
ドを示すとき端子を介してデータを入力又は出力する状
態となるポート手段とを備えたポート機能を有するLC
D駆動回路であって、駆動電位発生手段はオン抵抗が大
なるトランジスタを有し、リセット動作後の前記モード
選択指令が発生するまでの期間においてトランジスタを
オンさせて所定電位をトランジスタを介して端子に供給
することを特徴としている。
An LCD drive circuit having a port function according to the present invention comprises a terminal for connection to a liquid crystal display or a port, a liquid crystal display drive mode and a port as operation modes after a reset operation. Means for generating a mode selection command indicating one of the modes, and driving potential generation for selectively supplying one of a plurality of potentials to a terminal according to display data when the mode selection command indicates a liquid crystal display driving mode. LC having a port function, comprising: port means for inputting or outputting data via a terminal when the mode selection command indicates the port mode.
D drive circuit, wherein the drive potential generating means includes a transistor having a large on-resistance, and turns on the transistor until a mode selection command is generated after a reset operation, and applies a predetermined potential to the terminal via the transistor. It is characterized by being supplied to.

【0006】[0006]

【作用】本発明によれば、オン抵抗が大なるトランジス
タが設けられ、リセット動作後のモード選択指令が発生
するまでの期間においてトランジスタはオンされて所定
電位を端子に供給し、プルダウン抵抗又はプルアップ抵
抗として作用する。
According to the present invention, a transistor having a large on-resistance is provided, and the transistor is turned on to supply a predetermined potential to the terminal during a period until a mode selection command is generated after the reset operation. Acts as an up resistor.

【0007】[0007]

【実施例】以下、本発明の実施例を図面を参照しつつ詳
細に説明する。図1は本発明による入出力ポート機能を
有するLCD駆動回路を示している。この回路におい
て、端子PADはLCD(図示せず)が接続されるため
の複数の端子のうちの1端子である。LCD制御回路1
はLCDに表示させるためにCPU(図示せず)から供
給される表示データ信号をデコードして各行及び列の電
位選択信号を発生する。図に示したようにLCD制御回
路1は1個の端子PADに対して4出力からなる電位選
択信号を発生する。LCD制御回路1の出力には3つの
NAND回路2〜4と、AND回路5とが接続されてい
る。NAND回路2〜4は3入力のものであり、AND
回路5は2入力のものである。NAND回路2〜4及び
AND回路5のいずれも第2入力にLCD制御回路1の
出力信号が供給される。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows an LCD driving circuit having an input / output port function according to the present invention. In this circuit, the terminal PAD is one of a plurality of terminals to which an LCD (not shown) is connected. LCD control circuit 1
Generates a potential selection signal for each row and column by decoding a display data signal supplied from a CPU (not shown) for display on the LCD. As shown in the figure, the LCD control circuit 1 generates a potential selection signal composed of four outputs for one terminal PAD. The output of the LCD control circuit 1 is connected to three NAND circuits 2 to 4 and an AND circuit 5. The NAND circuits 2 to 4 have three inputs, and
The circuit 5 has two inputs. The output signal of the LCD control circuit 1 is supplied to the second input of each of the NAND circuits 2 to 4 and the AND circuit 5.

【0008】NAND回路2の出力はトランジスタ6の
ゲートに接続されている。トランジスタ6のドレインに
は電位V3が印加され、ソースは端子PADへのライン
Lに接続されている。NAND回路3の出力にはスイッ
チ回路7が接続されている。スイッチ回路7はNAND
回路3の出力レベルに応じてオン状態となり、そのとき
電位V2をラインLに中継する。NAND回路4の出力
にはスイッチ回路8が接続されている。スイッチ回路8
はNAND回路4の出力レベルに応じてオン状態とな
り、そのとき電位V1をラインLに中継する。AND回
路5の出力はOR回路9を介してトランジスタ10のゲ
ートに接続されている。トランジスタ10のソースには
アース電位である電位V0が印加され、ドレインは端子
PADへのラインLに接続されている。なお、トランジ
スタ6はPチャンネルの電界効果トランジスタであり、
トランジスタ10はNチャンネルの電界効果トランジス
タである。
The output of the NAND circuit 2 is connected to the gate of the transistor 6. The potential V3 is applied to the drain of the transistor 6, and the source is connected to the line L to the terminal PAD. A switch circuit 7 is connected to an output of the NAND circuit 3. The switch circuit 7 is a NAND
The circuit 3 is turned on according to the output level of the circuit 3, and at that time, the potential V2 is relayed to the line L. A switch circuit 8 is connected to an output of the NAND circuit 4. Switch circuit 8
Is turned on according to the output level of the NAND circuit 4, and at that time, the potential V1 is relayed to the line L. The output of the AND circuit 5 is connected to the gate of the transistor 10 via the OR circuit 9. A potential V0 which is a ground potential is applied to a source of the transistor 10, and a drain is connected to a line L to a terminal PAD. The transistor 6 is a P-channel field-effect transistor,
The transistor 10 is an N-channel field effect transistor.

【0009】また、本発明によるLCD駆動回路におい
ては、4つのDフリップフロップ11〜14が設けられ
ている。フリップフロップ11〜14各々のD端子はデ
ータバス(DATA BUS)に接続され、R端子には
リセット信号RSTが供給されるようになっている。フ
リップフロップ11はそのC端子に供給される書込指令
信号W・SELに応じてD端子に供給される選択データ
SELを保持してQ端子から出力する。フリップフロッ
プ11のQ端子はNAND回路2〜4及びAND回路5
の反転入力である第1入力に接続されている。フリップ
フロップ12はそのC端子に供給される書込指令信号W
・DDRに応じてD端子に供給される入出力切換データ
DDRを保持してQ端子から出力する。フリップフロッ
プ11のQ端子にはAND回路15が接続されている。
AND回路15は選択データSELと入出力切換データ
DDRとの論理積をとる。フリップフロップ13はその
C端子に供給される書込指令信号W・PORTに応じて
D端子に供給される出力データDRを保持してQ端子か
ら出力する。フリップフロップ13のQ端子には3ステ
ートバッファ16が接続されている。3ステートバッフ
ァ16はAND回路15の出力が高レベルのときに出力
データDRをラインLに中継する。またフリップフロッ
プ14はそのC端子に供給される書込指令信号W・LC
DEに応じてD端子に供給される制御信号LCDEを保
持してQ端子から出力する。フリップフロップ14のQ
端子はNAND回路2〜4各々の第3入力及びOR回路
9の反転入力に接続されている。OR回路9はAND回
路5の出力データとフリップフロップ14に保持されて
いる制御信号LCDEとの論理和をとり、その結果をト
ランジスタ10のゲートに供給する。
In the LCD driving circuit according to the present invention, four D flip-flops 11 to 14 are provided. The D terminal of each of the flip-flops 11 to 14 is connected to a data bus (DATA BUS), and the R terminal is supplied with a reset signal RST. The flip-flop 11 holds the selection data SEL supplied to the D terminal in response to the write command signal W · SEL supplied to the C terminal and outputs it from the Q terminal. The Q terminal of the flip-flop 11 is connected to the NAND circuits 2 to 4 and the AND circuit 5
Is connected to a first input which is an inverting input of The flip-flop 12 receives the write command signal W supplied to its C terminal.
-The input / output switching data DDR supplied to the D terminal according to DDR is held and output from the Q terminal. The AND circuit 15 is connected to the Q terminal of the flip-flop 11.
The AND circuit 15 calculates the logical product of the selection data SEL and the input / output switching data DDR. The flip-flop 13 holds the output data DR supplied to the D terminal in response to the write command signal W • PORT supplied to the C terminal and outputs the output data DR from the Q terminal. A three-state buffer 16 is connected to the Q terminal of the flip-flop 13. The three-state buffer 16 relays the output data DR to the line L when the output of the AND circuit 15 is at a high level. The flip-flop 14 is provided with a write command signal W · LC supplied to its C terminal.
The control signal LCDE supplied to the D terminal according to DE is held and output from the Q terminal. Q of flip-flop 14
The terminal is connected to the third input of each of the NAND circuits 2 to 4 and the inverted input of the OR circuit 9. The OR circuit 9 performs an OR operation on the output data of the AND circuit 5 and the control signal LCDE held in the flip-flop 14, and supplies the result to the gate of the transistor 10.

【0010】AND回路17は選択データSELとライ
ンLにおける論理レベルとの論理積をとる。AND回路
17の出力には3ステートバッファ18が接続されてい
る。3ステートバッファ18は読取指令信号R・POR
Tが供給されているときにAND回路17の出力データ
をデータバス(DATA BUS)に中継する。上記し
た書込指令信号W・SEL,W・DDR,W・POR
T,W・LCDE及び読取指令信号R・PORT、並び
に選択データSEL、入出力切換データDDR、出力レ
ベルデータDR及び制御信号LCDEは上記CPUのプ
ログラムの実行に従ってCPUから個別に発生される。
選択データSELは本回路内の動作モードをLCD駆動
モードとするとき論理“0”を示す低レベルになり、入
力又は出力ポートモードとするとき論理“1”を示す高
レベルになる。入出力切換データDDRは入力ポートモ
ードを選択するとき論理“0”を示す低レベルになり、
出力ポートモードを選択するとき論理“1”を示す高レ
ベルになる。出力データDRは出力ポートモードとして
用いる場合の出力レベルを定める送出データそのもので
ある。制御信号LCDEはLCD駆動モードとして用い
るときにLCDの駆動のオンオフを示すデータであり、
論理“0”を示す低レベルが駆動オフを示し、論理
“1”を示す高レベルが駆動オンを示す。また、制御信
号LCDEは入力又は出力ポートモードとして用いると
きにトランジスタ10をプルダウン抵抗とするか否かを
示すデータでもあり、論理“0”を示す低レベルが非プ
ルダウン抵抗状態を示し、論理“1”を示す高レベルが
プルダウン抵抗状態を示す。
The AND circuit 17 takes the logical product of the select data SEL and the logical level of the line L. A three-state buffer 18 is connected to the output of the AND circuit 17. The 3-state buffer 18 has a read command signal R / POR.
When T is supplied, the output data of the AND circuit 17 is relayed to a data bus (DATA BUS). Write command signals W · SEL, W · DDR, W · POR described above
T, W • LCDE, read command signal R • PORT, selection data SEL, input / output switching data DDR, output level data DR, and control signal LCDE are individually generated from the CPU according to the execution of the CPU program.
The selection data SEL goes to a low level indicating logic "0" when the operation mode in the circuit is set to the LCD drive mode, and goes to a high level indicating logic "1" when set to the input or output port mode. When selecting the input port mode, the input / output switching data DDR goes to a low level indicating logic "0",
When the output port mode is selected, it becomes a high level indicating a logic "1". The output data DR is transmission data itself that determines an output level when used in the output port mode. The control signal LCDE is data indicating ON / OFF of driving of the LCD when used as the LCD driving mode.
A low level indicating logic "0" indicates drive-off, and a high level indicating logic "1" indicates drive-on. The control signal LCDE is also data indicating whether or not the transistor 10 is used as a pull-down resistor when used in the input or output port mode. A low level indicating logic “0” indicates a non-pull-down resistance state, and a logic “1”. "Indicates a pull-down resistance state.

【0011】また、CPUはプログラムの実行に従って
読取指令信号R・PORTを発生して読取指令信号R・
PORTの発生時にデータバス(DATA BUS)か
らデータを読み取る。更に、リセット信号RSTは電源
投入時にリセット信号発生回路(図示せず)から発生さ
れる。電位V0〜V3はLCDを駆動するための電位で
あり、V0<V1<V2<V3の関係がある。電位V0
は入出力データの論理“0”を示す電位Vssに等しい。
入出力データの論理“1”を示す電位はVddであるが、
電位Vddは電位V3に等しい必要はない。
The CPU generates a read command signal R • PORT in accordance with the execution of the program to generate the read command signal R • PORT.
When a PORT occurs, data is read from the data bus (DATA BUS). Further, a reset signal RST is generated from a reset signal generation circuit (not shown) when the power is turned on. The potentials V0 to V3 are potentials for driving the LCD, and have a relationship of V0 <V1 <V2 <V3. Potential V0
Is equal to the potential Vss indicating the logic “0” of the input / output data.
Although the potential indicating the logic "1" of the input / output data is Vdd,
Potential Vdd need not be equal to potential V3.

【0012】上記した構成のLCD駆動回路において、
電源が投入されると高レベルのリセット信号RSTが発
生し、リセット信号RSTに応じてフリップフロップ1
1〜14各々がリセットされる。これにより、フリップ
フロップ11〜14各々のQ端子のレベルは強制的に低
レベルとなるので、LCD駆動モードとして用いること
を示す選択データSEL、またLCDの駆動オフを示す
制御信号LCDEが各々発生したこととなる。NAND
回路2〜4の第3入力の低レベルにより、その出力は高
レベルとなる。しかしながら、トランジスタ6のゲート
及びスイッチ回路7,8の制御端子は反転入力であるの
で、トランジスタ6びスイッチ回路7,8は共にオフと
なる。よって、電位V1〜V3のいずれも端子PADへ
のラインLには供給されない。
In the LCD driving circuit having the above-described configuration,
When the power is turned on, a high-level reset signal RST is generated, and the flip-flop 1 is turned on in response to the reset signal RST.
Each of 1 to 14 is reset. As a result, the level of the Q terminal of each of the flip-flops 11 to 14 is forcibly set to the low level, so that the selection data SEL indicating the use as the LCD drive mode and the control signal LCDE indicating the drive OFF of the LCD are generated. It will be. NAND
The low level of the third input of circuits 2-4 causes its output to go high. However, since the gate of the transistor 6 and the control terminal of the switch circuits 7 and 8 are inverting inputs, both the transistor 6 and the switch circuits 7 and 8 are turned off. Therefore, none of the potentials V1 to V3 is supplied to the line L to the terminal PAD.

【0013】一方、OR回路9はその反転入力である第
2入力が低レベルとなるので高レベル出力を生じる。こ
の高レベル出力はトランジスタ10をオン状態にせしめ
る。ところが、トランジスタ10のオン抵抗は数KΩ〜
数10KΩ程度あり大きいので、トランジスタ10はプ
ルダウン抵抗として作用するのである。よって、電位V
0がトランジスタ10を介してラインLに供給される。
すなわち、リセット信号RSTの発生後、CPUから選
択データSEL、入出力切換データDDR及び制御信号
LCDEのいずれかが発せられ対応するフリップフロッ
プに保持出力されるまでの動作モード未確定期間におい
ては端子PADには電位V0がトランジスタ10による
プルダウン抵抗を介して印加されることになる。
On the other hand, the OR circuit 9 produces a high-level output because its second input, which is its inverted input, is at a low level. This high level output causes transistor 10 to turn on. However, the ON resistance of the transistor 10 is several KΩ or more.
The transistor 10 acts as a pull-down resistor because it is as large as several tens of KΩ. Therefore, the potential V
0 is supplied to the line L via the transistor 10.
In other words, after the reset signal RST is generated, the operation of the terminal PAD during the operation mode indefinite period from when the CPU issues one of the selection data SEL, the input / output switching data DDR, and the control signal LCDE and holds and outputs the data to the corresponding flip-flop. , A potential V0 is applied via a pull-down resistor by the transistor 10.

【0014】端子PADに対する本回路内の動作モード
がLCD駆動モードとなる場合には図2(a)に示すよ
うに、リセット信号RSTが発生しているリセット期間
後の動作モード未確定期間において、フリップフロップ
11,14から出力される選択データSEL及び制御信
号LCDEは図2(b)及び(c)に示すように共に低
レベルであり、上記のように端子PADには電位V0が
トランジスタ10によるプルダウン抵抗を介して印加さ
れるので、端子PADに接続されたLCDの一端子には
電位V0が印加される(図2(d))。その後、CPU
がプログラムに従った制御動作を開始し、フリップフロ
ップ14に書込指令信号W・LCDEと共にLCDの駆
動オンを示す高レベルの制御信号LCDEを供給する
と、その制御信号LCDEがフリップフロップ14から
保持出力されてLCD駆動モード期間となる。このLC
D駆動モード期間にはLCD制御回路1の4出力のうち
いずれか1が高レベルとなり、このLCD制御回路1の
4出力レベルに応じてNAND回路2〜4及びOR回路
9の出力レベルが変化し、トランジスタ6,10及びス
イッチ回路7,8のうちのいずれか1が選択的にオンと
なる。よって、図2(d)に示すように端子PAD、す
なわちLCDの一端子には電位V0〜V3のうちのいず
れか1の電位が選択的に印加され、これらよりLCDが
駆動される。
When the operation mode in the circuit for the terminal PAD is the LCD drive mode, as shown in FIG. 2A, during the operation mode undetermined period after the reset period in which the reset signal RST is generated, The selection data SEL and the control signal LCDE output from the flip-flops 11 and 14 are both low as shown in FIGS. 2B and 2C, and the potential V0 is applied to the terminal PAD by the transistor 10 as described above. Since the voltage is applied through the pull-down resistor, the potential V0 is applied to one terminal of the LCD connected to the terminal PAD (FIG. 2D). Then the CPU
Starts a control operation according to a program and supplies a high-level control signal LCDE indicating drive-on of the LCD together with the write command signal W · LCDE to the flip-flop 14, and the control signal LCDE is held and output from the flip-flop 14. Then, the LCD driving mode period is set. This LC
During the D drive mode period, one of the four outputs of the LCD control circuit 1 becomes high level, and the output levels of the NAND circuits 2 to 4 and the OR circuit 9 change according to the four output levels of the LCD control circuit 1. , Transistors 6, 10 and switch circuits 7, 8 are selectively turned on. Therefore, as shown in FIG. 2D, one of the potentials V0 to V3 is selectively applied to the terminal PAD, that is, one terminal of the LCD, and the LCD is driven by these.

【0015】端子PADに対する本回路内の動作モード
が入力ポートモードとなる場合に図3(a)に示すよう
に、リセット信号RSTが発生しているリセット期間後
の動作モード未確定期間において、フリップフロップ1
1,12,14から出力される選択データSEL、入出
力切換データDDR及び制御信号LCDEは図3
(b),(c)及び(d)に示すように共に低レベルで
あり、上記のように端子PADには電位V0がトランジ
スタ10によるプルダウン抵抗を介して印加される。こ
のとき、端子PADに接続された外部回路から入力デー
タが図3(e)に示すように既に供給されていることも
考えられるが、そうであってもトランジスタ10による
プルダウン抵抗によって出力インピーダンスが十分に大
きいので、外部回路のドライブ回路に悪影響を与えるこ
とが回避される。
When the operation mode of the circuit for the terminal PAD is the input port mode, as shown in FIG. 3A, during the operation mode indefinite period after the reset period in which the reset signal RST is generated, the flip-flop is turned on. Step 1
The selection data SEL, input / output switching data DDR, and control signal LCDE output from 1, 12, and 14 are shown in FIG.
As shown in (b), (c) and (d), the level is low, and the potential V0 is applied to the terminal PAD through the pull-down resistor by the transistor 10 as described above. At this time, it is conceivable that the input data has already been supplied from the external circuit connected to the terminal PAD as shown in FIG. 3E, but even in such a case, the output impedance is sufficient due to the pull-down resistance of the transistor 10. Therefore, adverse effects on the drive circuit of the external circuit can be avoided.

【0016】例えば、図4に示すように外部回路のドラ
イブ回路21がトランジスタ22.23から構成されて
いるとする。この回路において、トランジスタ22.2
3のゲートに低レベル信号が供給されると、トランジス
タ22がオンになり、トランジスタ23がオフとなる。
よって、電位Vddによる電流が矢印の如くトランジスタ
22から端子PAD、そしてトランジスタ10を介して
アースに流れ込む。しかしながら、トランジスタ10に
よるプルダウン抵抗でその電流は制限されるので、トラ
ンジスタ22の破壊を防止することができる。
For example, it is assumed that the drive circuit 21 of the external circuit includes transistors 22 and 23 as shown in FIG. In this circuit, the transistor 22.2
When a low-level signal is supplied to the gate of the transistor 3, the transistor 22 is turned on and the transistor 23 is turned off.
Therefore, a current due to the potential Vdd flows from the transistor 22 to the terminal PAD and to the ground via the transistor 10 as shown by an arrow. However, since the current is limited by the pull-down resistor of the transistor 10, the breakdown of the transistor 22 can be prevented.

【0017】入力ポートモードとなる前の動作モード未
確定期間において、CPUがプログラムに従った制御動
作を開始し、フリップフロップ11に書込指令信号W・
SELと共に高レベルの選択データSELを供給し、ま
たフリップフロップ14に書込指令信号W・LCDEと
共に制御信号LCDEを供給すると、その選択データS
EL及び制御信号LCDEが図3に(b)及び(d)示
すようにフリップフロップ11,14から保持出力され
て入力ポートモード期間となる。この入力ポートモード
期間には、端子PADに供給されたデータがAND回路
17を介して3ステートバッファ18に供給され、CP
Uからの読取指令信号R・PORTに応じて3ステート
バッファ18の保持データがデータバス(DATA B
US)を介してCPUに読み取られる。
During an operation mode undetermined period before the input port mode is entered, the CPU starts a control operation according to a program, and sends a write command signal W ·
When the high-level selection data SEL is supplied together with SEL, and the control signal LCDE is supplied to the flip-flop 14 together with the write command signal W · LCDE, the selection data S
The EL and the control signal LCDE are held and output from the flip-flops 11 and 14 as shown in FIGS. 3B and 3D, and the input port mode period is set. During this input port mode period, the data supplied to the terminal PAD is supplied to the three-state buffer 18 via the AND circuit 17,
U, the data held in the three-state buffer 18 is transferred to the data bus (DATA B)
US) to be read by the CPU.

【0018】端子PADに対する本回路内の動作モード
が出力ポートモードとなる場合に図5(a)に示すよう
に、リセット信号RSTが発生しているリセット期間後
の動作モード未確定期間において、フリップフロップ1
1,12,14から出力される選択データSEL、入出
力切換データDDR及び制御信号LCDEは図5
(b),(c)及び(d)に示すように共に低レベルで
あり、上記のように端子PADには電位V0がトランジ
スタ10によるプルダウン抵抗を介して印加される(図
5(e))。端子PADには外部回路としてデータを受
けるデータ入力回路が接続されていても端子PADは電
位V0、すなわち低レベルを示すに固定されるので、そ
のデータ入力回路に不安定なレベル信号を与えることが
回避される。
When the operation mode of the circuit for the terminal PAD is the output port mode, as shown in FIG. 5A, during the operation mode indefinite period after the reset period in which the reset signal RST is generated, the flip-flop is turned on. Step 1
The selection data SEL, input / output switching data DDR and control signal LCDE output from 1, 12, 14 are shown in FIG.
As shown in (b), (c) and (d), the level is low, and the potential V0 is applied to the terminal PAD via the pull-down resistor by the transistor 10 as described above (FIG. 5 (e)). . Even if a data input circuit receiving data as an external circuit is connected to the terminal PAD, the terminal PAD is fixed to the potential V0, that is, indicates a low level, so that an unstable level signal may be given to the data input circuit. Be avoided.

【0019】出力ポートモードとなる前の動作モード未
確定期間において、CPUがプログラムに従った制御動
作を開始し、フリップフロップ11に書込指令信号W・
SELと共に高レベルの選択データSELを供給し、フ
リップフロップ12に書込指令信号W・DDRと共に高
レベルの入出力切換データDDRを供給し、またフリッ
プフロップ14に書込指令信号W・LCDEと共に制御
信号LCDEを供給すると、その選択データSEL、入
出力切換データDDR及び制御信号LCDEが図5
(b),(c)及び(d)に示すようにフリップフロッ
プ11,12,14から保持出力されて出力ポートモー
ド期間となる。この出力ポートモード期間には、3ステ
ートバッファ16がAND回路15の出力信号によりオ
ンとなる。また、CPUは出力データDRをデータバス
(DATA BUS)を介してフリップフロップ13に
供給し、そのデータDRは書込指令信号W・PORTに
応じてフリップフロップ13に保持される。その保持さ
れたデータDRは3ステートバッファ16を介して端子
PADに出力され、これにより外部のデータ入力回路に
供給される。
During an operation mode undetermined period before the output port mode is entered, the CPU starts a control operation according to a program, and sends a write command signal W ·
It supplies high-level selection data SEL together with SEL, supplies high-level input / output switching data DDR together with write command signal W.DDR to flip-flop 12, and controls flip-flop 14 together with write command signal W.LCDE. When the signal LCDE is supplied, the selection data SEL, the input / output switching data DDR and the control signal LCDE are transmitted as shown in FIG.
As shown in (b), (c), and (d), the data is held and output from the flip-flops 11, 12, and 14 to enter the output port mode period. During this output port mode period, the three-state buffer 16 is turned on by the output signal of the AND circuit 15. Further, the CPU supplies the output data DR to the flip-flop 13 via the data bus (DATA BUS), and the data DR is held in the flip-flop 13 in response to the write command signal W • PORT. The held data DR is output to the terminal PAD via the three-state buffer 16, and is supplied to an external data input circuit.

【0020】なお、上記した実施例においては、入出力
データの論理“0”を示す電位Vssが電位V0に等しい
場合について説明したが、入出力データの論理“1”を
示す電位Vddが電位V3に等しい場合には動作モード未
確定期間においてトランジスタ6をオンさせ、それをプ
ルアップ抵抗として用いれば良い。また、上記した実施
例におけるLCD駆動回路は入出力ポート機能を有して
いるが、入力ポート及び出力ポート機能のいずれか1機
能だけを有するLCD駆動回路にも本発明を適用するこ
とができる。
In the above embodiment, the case where the potential Vss indicating the logic "0" of the input / output data is equal to the potential V0 has been described. However, the potential Vdd indicating the logic "1" of the input / output data is changed to the potential V3. If it is equal to, the transistor 6 is turned on during the operation mode indefinite period, and it may be used as a pull-up resistor. Further, although the LCD drive circuit in the above embodiment has an input / output port function, the present invention can be applied to an LCD drive circuit having only one of the input port function and the output port function.

【0021】[0021]

【発明の効果】以上の如く、本発明のポート機能を有す
るLCD駆動回路においては、オン抵抗が大なるトラン
ジスタが設けられ、リセット動作後のモード選択指令が
発生するまでの期間においてトランジスタをオンさせて
所定電位をトランジスタを介して端子に供給することに
より、そのトランジスタをプルダウン抵抗又はプルアッ
プ抵抗として用いることが行なわれる。よって、液晶表
示器、データ出力用のドライブ回路及びデータ入力回路
のいずれが端子に接続されていてもトランジスタによる
プルダウン抵抗又はプルアップ抵抗によりリセット動作
後のモード選択指令が発生するまでの期間における不具
合の発生を防止することができる。例えば、端子に液晶
表示器が接続されている場合には液晶表示器の全ての端
子に所定電位が印加されるので、液晶表示器のちらつき
表示が防止されると共に液晶表示器の劣化も防止するこ
とができる。また、端子にデータ出力用のドライブ回路
が接続された場合には、そのドライブ回路から上記期間
において入力データが供給されてもトランジスタによる
プルダウン抵抗又はプルアップ抵抗によって出力インピ
ーダンスが十分に大きいので、ドライブ回路に悪影響を
与えることが回避される。更に、端子に外部回路として
データ入力回路が接続されている場合には上記期間にお
いて端子は所定電位に固定されるので、そのデータ入力
回路に不安定なレベル信号を与えることが回避される。
As described above, in the LCD driving circuit having the port function of the present invention, a transistor having a large on-resistance is provided, and the transistor is turned on during a period until a mode selection command is issued after the reset operation. By supplying a predetermined potential to a terminal via a transistor, the transistor is used as a pull-down resistor or a pull-up resistor. Therefore, no matter which one of the liquid crystal display, the data output drive circuit and the data input circuit is connected to the terminal, a defect occurs during a period until a mode selection command is issued after a reset operation due to a pull-down resistor or a pull-up resistor of a transistor. Can be prevented from occurring. For example, when a liquid crystal display is connected to a terminal, a predetermined potential is applied to all terminals of the liquid crystal display, so that flickering of the liquid crystal display is prevented and deterioration of the liquid crystal display is also prevented. be able to. When a drive circuit for data output is connected to the terminal, even if input data is supplied from the drive circuit during the above period, the output impedance is sufficiently large due to a pull-down resistor or a pull-up resistor by a transistor. A detrimental effect on the circuit is avoided. Further, when a data input circuit is connected to the terminal as an external circuit, the terminal is fixed at a predetermined potential during the above-mentioned period, so that an unstable level signal is not given to the data input circuit.

【0022】更に、ポート入力モードまたはポート出力
モードが選択されているとき、LCDEビットはプルダ
ウン(プルアップ)制御ビットとして動作するので、プ
ルダウン(プルアップ)抵抗を接続するか否かはアプリ
ケーションに応じて任意に選択することができる。
Further, when the port input mode or the port output mode is selected, the LCDE bit operates as a pull-down (pull-up) control bit. Therefore, whether to connect a pull-down (pull-up) resistor depends on the application. Can be arbitrarily selected.

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

【図1】本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】動作モードがLCD駆動モードとなる場合の各
部の動作波形図である。
FIG. 2 is an operation waveform diagram of each unit when the operation mode is an LCD drive mode.

【図3】動作モードが入力ポートモードとなる場合の各
部の動作波形図である。
FIG. 3 is an operation waveform diagram of each unit when an operation mode is an input port mode.

【図4】入力ポートモードとなる前のモード未確定期間
における電流経路を示す図である。
FIG. 4 is a diagram illustrating a current path in a mode indefinite period before a change to an input port mode.

【図5】動作モードが出力ポートモードとなる場合の各
部の動作波形図である。
FIG. 5 is an operation waveform diagram of each unit when the operation mode is an output port mode.

【主要部分の符号の説明】[Description of Signs of Main Parts]

1 LCD制御回路 6,10 トランジスタ 7,8 スイッチ回路 11〜14 Dフリップフロップ 1 LCD control circuit 6,10 Transistor 7,8 switch circuit 11-14 D flip-flop

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 液晶表示器との接続用又はポート用のた
めの端子と、リセット動作後において動作モードとして
液晶表示駆動モード及びポートモードのうちの1を示す
モード選択指令を発生する手段と、前記モード選択指令
が前記液晶表示駆動モードを示すとき表示データに従っ
て複数の電位のいずれか1の電位を選択的に前記端子に
供給する駆動電位発生手段と、前記モード選択指令が前
記ポートモードを示すとき前記端子を介してデータを入
力又は出力する状態となるポート手段とを備えたポート
機能を有するLCD駆動回路であって、前記駆動電位発
生手段はオン抵抗が大なるトランジスタを有し、前記リ
セット動作後の前記モード選択指令が発生するまでの期
間において前記トランジスタをオンさせて所定電位を前
記トランジスタを介して前記端子に供給することを特徴
とするLCD駆動回路。
1. A terminal for connection to a liquid crystal display or a port, means for generating a mode selection command indicating one of a liquid crystal display drive mode and a port mode as an operation mode after a reset operation, Drive potential generating means for selectively supplying one of a plurality of potentials to the terminal according to display data when the mode selection command indicates the liquid crystal display drive mode, and the mode selection command indicating the port mode An LCD drive circuit having a port function for inputting or outputting data via the terminal, the driving potential generating means including a transistor having a large on-resistance, The transistor is turned on and a predetermined potential is applied through the transistor until the mode selection command is generated after the operation. An LCD driving circuit for supplying the signal to the terminal.
【請求項2】 前記所定電位は、前記複数の電位のうち
の最大又は最小の1電位であり、かつ前記ポート手段が
入力又は出力するデータの0又は1の論理レベルに等し
い電位であることを特徴とする請求項1記載のLCD駆
動回路。
2. The method according to claim 1, wherein the predetermined potential is a maximum or minimum one of the plurality of potentials and a potential equal to a logical level of 0 or 1 of data input or output by the port means. The LCD drive circuit according to claim 1, wherein
JP7545093A 1993-04-01 1993-04-01 LCD drive circuit with port function Expired - Fee Related JP2659663B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7545093A JP2659663B2 (en) 1993-04-01 1993-04-01 LCD drive circuit with port function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7545093A JP2659663B2 (en) 1993-04-01 1993-04-01 LCD drive circuit with port function

Publications (2)

Publication Number Publication Date
JPH06289815A JPH06289815A (en) 1994-10-18
JP2659663B2 true JP2659663B2 (en) 1997-09-30

Family

ID=13576627

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7545093A Expired - Fee Related JP2659663B2 (en) 1993-04-01 1993-04-01 LCD drive circuit with port function

Country Status (1)

Country Link
JP (1) JP2659663B2 (en)

Also Published As

Publication number Publication date
JPH06289815A (en) 1994-10-18

Similar Documents

Publication Publication Date Title
US20060164368A1 (en) Display apparatus with reduced power consumption in charging/discharging of data line
KR19990003172A (en) Output buffer of semiconductor memory device
US5317211A (en) Programmable pin for use in programmable logic devices
JP4416682B2 (en) Semiconductor integrated circuit device
JP2659663B2 (en) LCD drive circuit with port function
US5834949A (en) Bus driver failure detection system
JP2826404B2 (en) Semiconductor integrated circuit device and burn-in test method for semiconductor integrated circuit device
JPH0645900A (en) Selection of one out of plurality of voltages without overlap
JP3831270B2 (en) Logic circuit and semiconductor integrated circuit
WO1993000745A1 (en) Circuit which reduces noise caused by high current outputs
KR100958800B1 (en) Semiconductor memory device
US5111073A (en) Wafer-scale semiconductor device having fail-safe circuit
JP4469798B2 (en) Integrated circuit device and method for driving an output signal with the output of an inverter stage
JP3281127B2 (en) OTP microcomputer
JPS5924464B2 (en) electronic display device
US6198316B1 (en) CMOS off-chip driver circuit
JPH11136119A (en) Input circuit
JP3184101B2 (en) Semiconductor device
JP2001358570A (en) Capacitive load driving circuit
JPH09231768A (en) Semiconductor memory device
JP3093685B2 (en) Integrated circuit and its function test method
JP4986704B2 (en) Semiconductor integrated circuit
JP4803711B2 (en) Drive circuit for STN-LCD panel
JP2001051971A (en) Input/output control circuit and microcomputer
KR960013860B1 (en) Input buffer of semiconductor memory device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080606

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090606

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090606

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100606

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100606

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110606

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees