JPS60217439A - Device with keyboard - Google Patents

Device with keyboard

Info

Publication number
JPS60217439A
JPS60217439A JP59073807A JP7380784A JPS60217439A JP S60217439 A JPS60217439 A JP S60217439A JP 59073807 A JP59073807 A JP 59073807A JP 7380784 A JP7380784 A JP 7380784A JP S60217439 A JPS60217439 A JP S60217439A
Authority
JP
Japan
Prior art keywords
program
key
keyboard
state
memory
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.)
Pending
Application number
JP59073807A
Other languages
Japanese (ja)
Inventor
Kazunori Igami
和典 伊神
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP59073807A priority Critical patent/JPS60217439A/en
Publication of JPS60217439A publication Critical patent/JPS60217439A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain quickly a prescribed program by stopping key scanning when a program not requiring key input to reduce the interruption processing time executed at each prescribed interval. CONSTITUTION:When an interruption signal at each prescribed interval is outputted when a program stored in a program memory 36 of a device 1 with a keyboard is executed, a CPU43 discriminates the on/off stage of a key scan control flag 41. When the flag is in off-state, that is, the program requiring the key input is executed from a keyboard, the CPU43 outputs a scanning signal to a key matrix circuit 30 so as to apply key scan interruption processing for the detection of depressing state of a key switch 31. When the decision indicates that the flag 41 is in on-state, that is, when the save or load program not requiring the key input is executed, the CPU43 stops the key scan of the keyboard section to apply interruption processing to other various operations.

Description

【発明の詳細な説明】 (a)産業上の利用分野 この発明は押下されるキースイッチのコードに応じて所
定動作を実行するキーボード部き機器に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application This invention relates to a device with a keyboard section that executes a predetermined operation in response to the code of a key switch that is pressed.

(b)従来技術 従来、プロクラムメモリに記憶された各種プロクラムに
従って所定の動作を実行するキーボード付き機器にあっ
ては、一定の間隔毎に上記プロクラムの実行を一時的に
中断すると共にこの中断時にキーボード部に配列された
各種キーの押下状態を検索するためのキースキャン等の
各種動作を割込み処理していた。そして上記割込み処理
の終了後に再び上記プロクラムを実行していた。
(b) Prior Art Conventionally, in devices with a keyboard that execute predetermined operations according to various programs stored in a program memory, the execution of the program is temporarily interrupted at regular intervals, and at the time of the interruption, the keyboard Interrupt processing was performed for various operations such as key scanning to search for the pressed states of various keys arranged in the section. After the above interrupt processing is completed, the above program is executed again.

(c)発明が解決しようとする問題点 然し乍、キーボード部からのキー人力を必要としない例
えはメモリに記憶されたテークを外部記[’装置へ記憶
させるためのセイブプロクラム或いは外部記憶装置に記
AMされたデ°−夕をメモリへ転送させるためのロート
プロクラム等を実行する場合にあっても割込み処理11
?にキーボード81(をキースキャンしているため、主
記割込み処理の実行時間か長くなる問題を有していた。
(c) Problems to be Solved by the Invention However, an example of a method that does not require manual input of keys from the keyboard section is to store takes stored in memory in an external memory ['save program for storing them in a device or in an external storage device]. Even when executing a program such as a program for transferring recorded data to memory, the interrupt processing 11
? Since the keyboard 81 (keyboard 81) is key scanned, there is a problem in that the execution time of the main interrupt processing becomes long.

この結果、上記したヤイブプロクラム或いはロートブロ
クラムを迅速に実行出来ない問題を有していた。fil
lも、キーホード部のキースキャンは多数の列線及び行
線かマトリクス状に配設されたキーマトリクス回路に対
し、各列線へ走査信号を順次用ツノすると共に走査(t
’s号が出力された列線に15じた各行線を1118次
検索することによりキーの押下状態を検出するため、他
の割込み処理に較べてキースキャンに多くの時間を必要
としていた。これによりプログラムの実jj中に一定の
間隔でイラう割込み処理時間が長くなっていた。
As a result, there was a problem in that the Yabu program or roto program described above could not be executed quickly. fil
In the key scan of the key chain, a scanning signal is sequentially applied to each column line and a key matrix circuit is arranged in a matrix with many column lines and row lines.
Since the pressed state of a key is detected by searching 1118 times for each row line 15 times the column line where 's' is output, the key scan requires more time than other interrupt processing. As a result, the interrupt processing time, which occurs at regular intervals during program execution, becomes long.

(d)問題点を解決するための手段 本発明の目的は上記した従来の欠点に鑑み、1h1易な
構成によりキー人力を必要としないプロクラムを実行す
る場合にはキースキャンを中止させることにより一定間
隔毎の実行される割込み処理時間を短縮し、所定のプロ
クラムを迅速に実行し得るキーボード付き機器を提供す
ることにある。
(d) Means for Solving the Problems In view of the above-mentioned drawbacks of the conventional art, the object of the present invention is to have a simple configuration that allows for constant key scanning when executing a program that does not require key human power. To provide a device with a keyboard capable of shortening interrupt processing time executed at each interval and quickly executing a predetermined program.

このため本発明は、プロクラムメモリに記1,6された
プロクラムの実行中、一定間隔毎にそのプロクラムの実
行を中断させてキーボード部のキースキャンを71い、
そのキーボード部のキー押下状yフを検出するようにし
たキーボード付き機器において、 Ifjj B己キースキャンの■用ill用フラタをメ
モリに設け、111J記ibV御用フラクの状、1ルに
よって+riI記キースキースキャンするよう制御する
制OD手段とからキーボード付き機器を構成している。
For this reason, the present invention interrupts the execution of programs 1 and 6 written in the program memory at regular intervals and scans the keys of the keyboard section 71.
In a device with a keyboard that detects key presses on the keyboard, a flutter for ill for Ifjj B self key scan is provided in the memory, and the +riI key is A device with a keyboard is constituted by a control OD means for controlling ski scanning.

(c)発明の作用 本発明によれは、キーボード部からのキー人力を必要と
するプログラムの実行する場合、制御手段は一定間隔毎
に該プロクラムの実行を一時的に中断させると共にこの
一時的中断時に111記プロクラムに基ついて設定され
たキースキャン制御用フラクの設定状態によりキーの押
下状1ルを検出するためのキースキャンをB’j込み処
理させる一力、キーボード部からのキー人力を必要とし
ないプロクラムを実行する場合、制御手段はこのプロク
ラムの実行を一時的に中断させると共に該プロクラムに
基づて設定されたキースキャン制御用フラクの設定状態
により割込み処理時におけるキースキャンを中止させ、
これにより割込処理時間を短縮している。
(c) Effect of the Invention According to the present invention, when executing a program that requires manual input of keys from the keyboard section, the control means temporarily interrupts the execution of the program at regular intervals and temporarily interrupts the execution of the program. Sometimes, depending on the setting state of the key scan control flag set based on the 111th program, the key scan to detect the press of a key is processed including B'j, and the key human power from the keyboard section is required. When executing a program that does not execute the program, the control means temporarily suspends the execution of the program and suspends the key scan during interrupt processing according to the setting state of a key scan control flag set based on the program,
This shortens interrupt processing time.

(f)発明の効果 これにより本発明は、jlri易な構成によりキー人力
を必要としないプロクラムを実行する場合にはキルスキ
ャンを中止することにより一定/111隔毎の実行され
る割込み処理時間を短縮し、ルミ定のプロクラムを迅速
に実行し得るキーボートイ・]き機器である。
(f) Effects of the Invention As a result, the present invention has an easy configuration, and when executing a program that does not require key human power, the interrupt processing time to be executed at a constant/111 interval can be reduced by canceling the kill scan. It is a keyboard-based device that can be shortened and quickly execute a fixed program.

(g)’J施イ列 以下、本発明をキーボード部からキー人力される印字デ
ータをサーマル紙上にサーマル印字すると共にキー人力
される印字デ゛−夕を内蔵されたテキストメモリに記1
:コすることかbf能で、外部記憶装置との回線時にテ
キストメモリの印字データを外部記t0装置に、また外
部記+B装置に記憶された印字データをテキストメモリ
に記憶することか可能なサーマルプリント形式の電子タ
イプライタにnz施した一実施例に従って説明する。
(g) From row 'J' onwards, the present invention is to thermally print the print data inputted manually from the keyboard section onto thermal paper, and record the print data inputted manually using the keys in the built-in text memory.
: A thermal function that allows printing data stored in the text memory to be stored in the external storage t0 device and printing data stored in the external storage +B device in the text memory when the line is connected to an external storage device. A description will be given of an embodiment in which a printing type electronic typewriter is subjected to nz processing.

電子タイプライタの機略を示す第1図において、電子タ
イプライタlはキーボード部2と印字4i14143と
から構成されている。そしてキーボード部2には多数の
文字キー 4と、モード切換スイッチ5、コートキー6
、印字開始キー7等の各種キースイッチか配列されてい
る。前記モード切換スイッチ5は電子タイプライタ1を
通當印字モードとテキスト作成モートとに切換えるもの
である。また、コードキー6は適宜の文字キー4と同1
111に押下された際に電子タイプライタ1を所定動作
させるためのコート信号をキー人力するものである。更
に、印字開始キー7はテキスト作成モート時に押下され
ると、後述するテキストメモリ42に記tf+された印
字データを印字させるものである。前記キーボード部2
にはLCDからなる表示装置8が取付けられている。こ
の表示装置8は一印字行分の印字データ≧9より少ない
表示桁を有し、キー人力される印字データに応した文字
及びファンクションデータに15じた記号等を表示する
In FIG. 1, which shows the structure of an electronic typewriter, the electronic typewriter 1 is composed of a keyboard portion 2 and a print 4i14143. The keyboard section 2 has a large number of character keys 4, a mode selector switch 5, and a coat key 6.
, a print start key 7, and other various key switches are arranged. The mode changeover switch 5 is used to switch the electronic typewriter 1 between a direct printing mode and a text creation mode. In addition, the code key 6 is the same as the appropriate character key 4.
When the key 111 is pressed, a code signal for operating the electronic typewriter 1 in a predetermined manner is manually input. Furthermore, when the print start key 7 is pressed during the text creation mode, print data written in tf+ in a text memory 42, which will be described later, is printed. The keyboard section 2
A display device 8 consisting of an LCD is attached to the. This display device 8 has fewer display digits than the print data for one print line≧9, and displays characters and function data corresponding to the print data inputted by keystrokes, symbols, etc.

印字機構3のフレーム20には平板状のプラテン21が
取付けられている。このプラテン21は紙送り用モータ
に駆動連結された紙送りローラ(1liJれも図示せず
)の回転に伴って挿入されるサーマル紙22を支持する
ものである。1riJ記フレーム20にはプラテン21
と平行なキャリッジカイトl1ll!I23が取付けら
れている。そしてこのキャリッジガイド軸23にはキャ
リッジ24が往復移動可能に支持されている。キャリッ
ジ24は駆動ワイヤ25を介してキャリッジ送用モータ
(図示せず)が駆動連結され、該キャリッジ送用モータ
の回転に伴ってキャリッジカイト軸23上を往復移動す
る。111ノ記キヤリツジ24にはサーマルヘッド26
か取付けられ、このサーマルヘッド26にはl1ir記
サ一マル紙22の印字行と直交する方向へ多数の発熱素
子(図示せず)が配列されている。そしてこのサーマル
/\ット26は後述するへ゛ターンデ゛−タに基づいて
発熱素子を選択的に発熱させ、印字データをサーマル紙
22にサーマル印字する。印字機構3のケース27側面
には電源スィッチ28が取付けられている。そしてこの
電子タイプライタ1はケース27内に内蔵された電池〔
図示せず〕により電池駆動される。また、ケース27の
側面にはコネクタ部29か取付けられ、このコネクタ部
29には外部記憶装置〔図示せず〕が接続されている。
A flat platen 21 is attached to a frame 20 of the printing mechanism 3. This platen 21 supports thermal paper 22 that is inserted as a paper feed roller (all not shown) rotates and is driven and connected to a paper feed motor. 1riJ frame 20 has a platen 21
Carriage kite parallel to l1ll! I23 is installed. A carriage 24 is supported on this carriage guide shaft 23 so as to be movable back and forth. The carriage 24 is drivingly connected to a carriage feed motor (not shown) via a drive wire 25, and reciprocates on the carriage kite shaft 23 as the carriage feed motor rotates. Thermal head 26 is installed in the carriage 24 described in No. 111.
A large number of heating elements (not shown) are arranged in the thermal head 26 in a direction perpendicular to the printing lines of the thermal paper 22. The thermal printer 26 selectively causes a heating element to generate heat based on data to be described later, and thermally prints print data on the thermal paper 22. A power switch 28 is attached to the side surface of the case 27 of the printing mechanism 3. This electronic typewriter 1 has a built-in battery inside the case 27.
It is powered by a battery (not shown). Further, a connector section 29 is attached to the side surface of the case 27, and an external storage device (not shown) is connected to this connector section 29.

尚、01j記キヤリツジ24は引張ばね(図示せず)の
ばね力によりn′にキャリッジカイト軸23を中心にサ
ーマル紙22とサーマルヘッド26とか離間したヘッド
リリース側へ回動付勢されている。そしてキャリッジ2
4は印字動作時において内蔵された電磁ソレノイド(図
示せず)によりOXJ記ばね力に抗してキャリッジカイ
ト軸23を中心にサーマル紙22とサーマルヘッド26
とが圧接するヘツi圧接側へ回動されると共に電磁ソレ
ノイドの非励磁状態においてプランジャーが永久磁石〔
101れも図示せず〕により磁気吸着されることにより
このヘット圧接状態か保持される。
Incidentally, the carriage 24 described in 01j is urged to rotate about the carriage kite shaft 23 at n' by the spring force of a tension spring (not shown) toward the head release side where the thermal paper 22 and the thermal head 26 are separated. and carriage 2
4 is a thermal paper 22 and a thermal head 26 centered around a carriage kite shaft 23 against the spring force of OXJ by a built-in electromagnetic solenoid (not shown) during printing operation.
When the plunger is rotated to the pressure contact side and the electromagnetic solenoid is in a non-energized state, the plunger becomes a permanent magnet.
101 (both not shown), this head press-contact state is maintained by magnetic attraction.

電子タイプライタ1の電子的構成を示す第2図において
、キーボード部2にはキーマトリクス回路30か形成さ
れている。このキーマトリクス回路30には多数の列線
及び行線かマトリクス状に配列されると共に各列線と行
線の交差箇所にはキースイッチ31が並設されている。
In FIG. 2 showing the electronic configuration of the electronic typewriter 1, a key matrix circuit 30 is formed in the keyboard portion 2. As shown in FIG. In this key matrix circuit 30, a large number of column lines and row lines are arranged in a matrix, and key switches 31 are arranged in parallel at the intersections of each column line and row line.

そしてこのキースイッチ31はその押下に伴って対応す
る列線及び行線を閉成する。また、+tjJ記各列線に
は列デコーダ32が接続され、このタリデコーダ32は
カウンタ回路における列カウンタ(何れも図示せず)の
カウント値に応じた列線へ走査信号を順次出力する。更
に、lj+記各記録行線マルチプレクサ33か接続され
、このマルチプレクサ33はカウンタ回路の行カウンタ
(図示せず)のカウント値に応じて選択された行線を検
索する。そしてマルチプレクサ33は走査信号が入力さ
れた列線に応じた行線に走査信号か現われることにより
キースイッチの押下状態を検出する。
When the key switch 31 is pressed, the corresponding column line and row line are closed. Further, a column decoder 32 is connected to each column line +tjJ, and the tally decoder 32 sequentially outputs a scanning signal to the column line according to the count value of a column counter (none of which is shown) in the counter circuit. Furthermore, each recording row line multiplexer 33 (lj+) is connected, and this multiplexer 33 searches for a selected row line according to the count value of a row counter (not shown) of the counter circuit. The multiplexer 33 detects the depressed state of the key switch when a scanning signal appears on the row line corresponding to the column line to which the scanning signal is input.

ROM34にはパターンメモリ35及びプロクラムメモ
リ36を有している。そして、このパターンメモリ35
には各印字データに応じたパターンデータか記tMされ
ている。またプロクラムメモリ36には例えば後述する
テキストメモリ42に記1訂された印字データを外部記
憶装置37に記憶Fさせるためのセイブプロクラム及び
外部記憶装置37に記憶された印字データをテキストメ
モリ421\転送させるためのロードブロクラム等の各
種プログラムデータか記憶されている。書換え可能なR
AM38には人力バッファ39、プリントバッファ40
、キースキャン制御フラク41及び゛テキストメモリ4
2を有している。曲屈入力バッファ39は一印字行分の
印字データ数に応じた記憶位置を有し、キーボード部2
からキー人力される印字データを記憶する。またプリン
トバッファ4゜は前記人力バッファ39と同様に一印字
行分の印字データ数に応した記憶位置を有し、印字動作
時に人力バッファ39或いはテキストメモリ42がら転
送される印字データを記憶する。キースキャン制御フラ
ク41はプログラムメモリ36からアクセスされたセイ
ブプログラム或いはロードブロクラムに基ついてオンさ
れる。これによりキーホードft1l 2に対するキー
スキャンを中止させる・また・このキースキャン1li
U御フラタ41は上記セイププロクラム及びロードプロ
クラム以外のプログラムに基づいてオフされ、キーボー
ド部2に対するキースキャンを可能としている。テキス
トメモリ42はテキスト作成モート時にキーボード部2
からキー人力される印字データ及びロードモート時に外
部記tM装置37から転送される印字デ゛−夕を記憶す
る。
The ROM 34 has a pattern memory 35 and a program memory 36. And this pattern memory 35
Pattern data corresponding to each print data is written in . In addition, the program memory 36 includes, for example, a save program for storing revised print data in a text memory 42 (to be described later) in the external storage device 37, and transfers print data stored in the external storage device 37 to a text memory 421\. Various program data such as roadblocks and the like are stored. Rewritable R
AM38 has 39 manual buffers and 40 print buffers.
, key scan control flak 41 and text memory 4
It has 2. The bending input buffer 39 has memory locations corresponding to the number of print data for one print line, and has memory locations corresponding to the number of print data for one print line.
Stores the print data manually input from the key. Also, like the manual buffer 39, the print buffer 4° has storage locations corresponding to the number of print data for one print line, and stores print data transferred from the manual buffer 39 or the text memory 42 during printing operations. The key scan control flag 41 is turned on based on the save program or load block accessed from the program memory 36. This will cause the key scan for the key fob ft1l 2 to be canceled and for this key scan 1li
The U control flag 41 is turned off based on a program other than the above save program and load program to enable key scanning of the keyboard section 2. The text memory 42 is stored in the keyboard section 2 during text creation mode.
It stores the print data entered manually from the keypad and the print data transferred from the external storage tM device 37 during load mode.

中央処理装置(以下、CPUという)43はモード9ノ
換スイッチ5或いはコートキー6と適宜の文字キー4と
の組合せによりキー人ツノされる各種のコートに応じた
プログラムをプロクラムメモリ36からアクセスし、こ
のプログラムに従ってキースキャンItr制御フラク4
1をオン或いはオフに設定した後、二のプロクラムに応
して所定動作させる。
The central processing unit (hereinafter referred to as CPU) 43 accesses programs corresponding to various codes from the program memory 36 by pressing the mode 9 switch 5 or the code key 6 in combination with the appropriate character key 4. , according to this program key scan Itr control flux 4
After setting 1 to ON or OFF, a predetermined operation is performed according to the 2nd program.

また、CPU43は一定の間隔毎に入ツノされる割込み
48号によりこのプロクラムの実行を一時的に中断させ
ると共にこの中断時にキーマトリクス回路30’\走査
信号を出ツノしてキースイッチ31の押下状態を検出す
るためのキースキャン、タイマ制御動作、ブザーの鳴動
等の各種動作を割込み処理させる。更に、CPU43は
キーボード部2からキー人力される印字データ或いはテ
キストメモリ42に記憶された印字データに基づいてキ
ャリッジ駆動回路45、ヘッド駆動回路46、ソレノイ
ド駆動回路47及び紙送り駆動回路48を夫々駆動制御
することにより印字データをサーマル印字させる。
Further, the CPU 43 temporarily interrupts the execution of this program by interrupt No. 48 that is input at regular intervals, and at the same time outputs a scanning signal to the key matrix circuit 30' to indicate the pressed state of the key switch 31. Various operations such as key scan, timer control operation, and buzzer ringing for detecting are processed by interrupt processing. Further, the CPU 43 drives a carriage drive circuit 45, a head drive circuit 46, a solenoid drive circuit 47, and a paper feed drive circuit 48, respectively, based on the print data entered manually from the keyboard section 2 or the print data stored in the text memory 42. The print data is thermally printed by controlling.

次にプロクラム及び割込み処理の実行状態を示す第3図
(A) ・(B)に従って通常印字モード及びテキスト
作成モードに付いて説明する。
Next, the normal print mode and text creation mode will be explained according to FIGS. 3A and 3B showing the execution state of the program and interrupt processing.

モードψノ換スイッチ5が通常印字モードに切換えられ
ると、CPUj3は通常印字モードに応したコードデー
タによりプロクラムメモリ36から通常印字プログラム
をアクセスし、このプログラムに従ってキースキャン制
御フラグ41をオフ該″定する。モしてCPU43は第
3図(A) ・(B)に示すようにこのプロクラムを実
行させると共に一定間隔毎に入力される割込み信号によ
りプロクラムの実行を一時的に中断させた後、キースキ
ャン制御フラグ41のオフ状態に基づいてキーボード部
2のキースキャン等の各種動作を割込み処理させる。そ
して上記割込み処理の終了後にCPU43は再び上記プ
ロクラムを実行させる。この状fgにおいて文字キー4
の押下に従ってキーボードも((2から印字データが入
力されると、CPU43はこの印字データを入力バッフ
ァ39に記憶させると共にこの印字データをプリン)・
バッファ40へ転送させる。モしてCPU43はプリン
トバッファ40’\転送された印字データによりパター
ン−メモリ35からパターンデータをアクセスし、キャ
リッジ駆動回路45、ヘット駆動回路46、ソレノイド
駆動回路47及び紙送り駆動回路48を夫々駆動制御す
ることによりキー人力された印字データをサーマル紙2
2にサーマル印字させる。またCPU43は人力バッフ
ァ39に記憶された印字データによりハ゛ターンメモリ
35からアクセスされたパターンデータを表示装置8へ
出力し、印字データを表示させる。
When the mode ψ switch 5 is switched to the normal printing mode, the CPUj3 accesses the normal printing program from the program memory 36 using the code data corresponding to the normal printing mode, and turns off the key scan control flag 41 according to this program. Then, the CPU 43 executes this program as shown in FIGS. 3(A) and 3(B), temporarily suspends the execution of the program by interrupt signals input at regular intervals, and then presses the key. Based on the OFF state of the scan control flag 41, various operations such as key scanning of the keyboard section 2 are processed by interrupt processing.Then, after the above-mentioned interrupt processing is completed, the CPU 43 causes the above-mentioned program to be executed again.In this state fg, the character key 4
When the print data is input from 2, the CPU 43 stores this print data in the input buffer 39 and also prints this print data.
The data is transferred to the buffer 40. Then, the CPU 43 accesses the pattern data from the pattern memory 35 using the print data transferred from the print buffer 40', and drives the carriage drive circuit 45, head drive circuit 46, solenoid drive circuit 47, and paper feed drive circuit 48, respectively. By controlling the key, the printed data is transferred to thermal paper 2.
2. Print thermally. Further, the CPU 43 outputs the pattern data accessed from the pattern memory 35 based on the print data stored in the manual buffer 39 to the display device 8 to display the print data.

モー1く切換スイッチ5かテキスト作成モートに切換え
られると、CPU43はテキスト作成モートに吃じたコ
ードデータによりプロクラムメモリ36からテキスト作
成プロクラムをアクセスし、このプロクラムに従りてキ
ースキャン制御フラグ41をオフ設定する。そしてCP
U43は上記した動作と同様にこのプログラムを実行さ
せると共に一定間隔毎に入力される割込み信号によりプ
ロクラムの実行を一時的に中断させた後、キースキャン
制御フラグ41のオフ状態に基づいてキーホ′−ド部2
のキースキャン等の各種動作を割込み処理させる。そし
て割込み処理の終了後にCPU43は再び上記プロクラ
ムを実行させる。この状態においてキーボード部2から
印字データかキー人力されると’、CPU43はこの印
字データを人力バッファ39及びテキストメモリ42に
記憶させる。
When the mode changeover switch 5 is switched to the text creation mode, the CPU 43 accesses the text creation program from the program memory 36 using the code data stuttered to the text creation mode, and sets the key scan control flag 41 according to this program. Set off. And C.P.
U43 executes this program in the same manner as described above, temporarily interrupts the execution of the program by an interrupt signal input at regular intervals, and then turns on the keypad based on the OFF state of the key scan control flag 41. Do part 2
Interrupts various operations such as key scanning. After the interrupt processing is completed, the CPU 43 executes the program again. In this state, when print data is entered manually from the keyboard section 2, the CPU 43 stores this print data in the manual buffer 39 and text memory 42.

また、CPU43は人力バッファ39に記憶された印字
データによりパターンメモリ35がらアクセスされたパ
ターンデータを表示装置8へ出力し、キー人ツノされた
印字データか表示させる。そして上記動作によりテキス
トメモリ42に記憶された印字データを印字するには、
印字開始キー7が押下されると、CPU43はテキスト
メモリ42から一印字行分の印字データをプリントバッ
ファ40へ11i#次転送させる。モしてCPU43は
転送された印字データによりパターンメモリ35からパ
ターンデータをアクセスし、前述した印字動作と同様に
キャリッジ駆動回路45、ヘッド駆動回路46、ツレノ
ーrド駆動回路47、紙送り駆動回路48を夫々駆動制
御することにより印字データをサーマル印字させる。
Further, the CPU 43 outputs the pattern data accessed from the pattern memory 35 based on the print data stored in the manual buffer 39 to the display device 8, and displays the print data that has been keyed. Then, in order to print the print data stored in the text memory 42 by the above operation,
When the print start key 7 is pressed, the CPU 43 transfers one print line worth of print data from the text memory 42 to the print buffer 40 11i#. Then, the CPU 43 accesses the pattern data from the pattern memory 35 based on the transferred print data, and similarly to the above-described printing operation, the CPU 43 uses the carriage drive circuit 45, head drive circuit 46, thread node drive circuit 47, and paper feed drive circuit 48. The print data is thermally printed by controlling the drive of each of the two.

吹にテキストメモリ42に記憶された印字データを外部
記憶値ff37に記憶させるセイフモード及び外部記憶
装置37に記憶された印字データをテキストメモリ42
へ転送させるロードモードについて説明する。
A safe mode in which the print data stored in the text memory 42 is stored in the external storage value ff37 and the print data stored in the external storage device 37 is stored in the text memory 42.
This section explains the load mode for transferring files to .

セイブプログラム或いはロードブロクラムの実イj状態
並びに割込み処理の実行状態を示す第4図(A) ・(
E)において、まずテキスト作成モード時にコードキー
6と文字” S (Save)″の文字キー4とが同時
に押下され、キーボード部2からセイプコマンドがキー
人力されると、CPU43はこのセイブコマンドに基づ
いてプログラムメモリ36からセイブプロタラムをアク
セスし、このセイブプロクラムに従ってキースキャン制
御フラグ40をオン設定する。また、CPU43はこの
セイブブロクラムにより電子タイプライタ1と外部記憶
装置37とをオンラインII1能状態へ9ノ換えた後、
テキストメモリ42に記憶された印字データを外部記憶
装置37へ送1aすることによりセイブプロタラムを実
行させる。このセイブプロクラムの実行中に一定間隔毎
に割込み信号が入力されると、CPU43はこのセイプ
プロクラムの実行を一時的に中断させると共にこの中断
時に各種の動作を割込み処理させる。上記割込み処理時
においてCPU43はmI記キースキャン制御フラク4
1のオン状態に基づいてキーマトリクス回路3゜に対す
る走査信号の出力を禁止してキースキャンを中止させる
。そして上記外部記憶装置37との待時間をカウントす
るためのタイマ制御動作及びブザーの鳴動等、キースキ
ャン以外の各種動作を割込み処理させた後、CPU43
は再びテキストメモリ42に記憶された印字データを外
部記憶装置37へ送信することによりセイブプロクラム
を実行させる。
Figure 4 (A) shows the actual state of the save program or load block and the execution state of interrupt processing.
In E), when the code key 6 and the character key 4 for the character "S (Save)" are pressed at the same time in the text creation mode, and a save command is entered from the keyboard section 2, the CPU 43 executes this save command. Based on this, the save program is accessed from the program memory 36, and the key scan control flag 40 is set on according to this save program. Further, after the CPU 43 changes the electronic typewriter 1 and the external storage device 37 to the online II1 enabled state using this save block,
The print data stored in the text memory 42 is sent to the external storage device 37 1a to execute the save program. When an interrupt signal is input at regular intervals during the execution of this save program, the CPU 43 temporarily interrupts the execution of this save program, and at the same time causes various operations to be processed by interruption. At the time of the above interrupt processing, the CPU 43 executes the mI key scan control flag 4.
Based on the ON state of the key matrix circuit 3, the output of the scanning signal to the key matrix circuit 3° is prohibited to stop the key scan. After interrupt processing various operations other than key scanning, such as a timer control operation for counting the waiting time with the external storage device 37 and a buzzer sound, the CPU 43
executes the save program by transmitting the print data stored in the text memory 42 to the external storage device 37 again.

また、テキスト作成モード時にコードキー6と文字“’
L (Load)′の文字キー4か同時に押下され、キ
ーボード部2からロードコマンドかキー人ツノされると
、CPU43は647述した動作と同様にこのロートコ
マンドに基づいてプログラムメモリ36からロードブロ
クラムをアクセスした後、このロードプログラムに従っ
てキースキャン制御フラグ41をオン設定する。また、
CPU43はこのロートプログラムにより電子タイプラ
イタ1と外部記憶装置37とをオンライン可能状態へ切
換えた後、外部記憶装置37に記憶された印字データを
テキストメモリ42へ転送することによりロードブロク
ラムを実行させる。このロートプログラムの実行中に一
定間隔毎に割込み信号か入力されると、CPU43は上
記ロードブロクラムの実行を一時的に中断させると共に
この中断時に各種の動作を割込み処理させる。上記割込
み処理時においてCPU43は前記キースキャン制御フ
ラグ41のオン状態に基づいてキーマトリクス回路30
に対する走査信号の出力を禁止してキースキャンを中止
させる。そしてキースキャン以外の各種動作を割込み処
理させた後、CPU43は再び外部記憶装置37に記憶
された印字データをテキストメモリ42へ転送すること
によりロードブロタラムを実行させる。
Also, when in text creation mode, code key 6 and the character "'
When the character keys 4 for L (Load)' are pressed at the same time and a load command is issued from the keyboard section 2, the CPU 43 reads the load block from the program memory 36 based on this load command in the same way as the operation described in 647. After accessing, the key scan control flag 41 is set on according to this load program. Also,
The CPU 43 switches the electronic typewriter 1 and the external storage device 37 to an online enabled state using this rotary program, and then executes the load block program by transferring the print data stored in the external storage device 37 to the text memory 42. . When an interrupt signal is input at regular intervals during the execution of this rotor program, the CPU 43 temporarily interrupts the execution of the load block program, and at the same time causes various operations to be processed by interruption. During the interrupt processing, the CPU 43 controls the key matrix circuit 30 based on the ON state of the key scan control flag 41.
The key scan is stopped by prohibiting the output of the scanning signal to the key. After interrupt processing various operations other than the key scan, the CPU 43 again transfers the print data stored in the external storage device 37 to the text memory 42 to execute the road program.

吹に第5図に従って割込み処理状態を説明する。First, the interrupt processing state will be explained according to FIG.

プログラムメモリ36に記憶されたプロクラムの実行中
に一定の間隔毎の割込み信号か出力されると、CPU4
3はフロック50によりキースキャン制御フラグ41が
オンされているか否かを判定する。この判定かNOの場
合、即ちキーボード部2からのキー人力を必要とするプ
ロクラムを実行している場合、CPU43はフロック5
1によりキースキャン制御フラグ41のオフ状態に基づ
いてキーマトリクス回路30へ走査信号を出力し、キー
スイッチの押下状態を検出するためのキースキャンを割
込み処理させる。そして上記動作後CPU43はブロッ
ク52によりタイマ制御動作、ブザーの鳴動等の各種動
作を割込み処理させた後に終了する。反対に前記ブロッ
ク50の判定がYESの場合、即ちキーボード部2から
のキー人力を必要としないセイフプログラム或いはロー
ドプロクラムを実行している場合、CPU43はキース
キャン制御フラク41のオン状態に基づいてキーボード
部2のキースキャンを中止させてフロック52へ移り、
他の各種動作を割込み処理して終了する。
When an interrupt signal is output at regular intervals during execution of the program stored in the program memory 36, the CPU 4
3, the block 50 determines whether the key scan control flag 41 is turned on. If this determination is NO, that is, if a program that requires key input from the keyboard section 2 is being executed, the CPU 43 will block the block 5.
1 outputs a scanning signal to the key matrix circuit 30 based on the OFF state of the key scan control flag 41, and interrupts a key scan for detecting the pressed state of a key switch. After the above operation, the CPU 43 interrupts various operations such as timer control operation and buzzer sounding in block 52, and then ends the process. On the other hand, if the determination in the block 50 is YES, that is, if a safe program or a load program that does not require manual key input from the keyboard unit 2 is being executed, the CPU 43 operates the keyboard based on the ON state of the key scan control flag 41. Abort the key scan of part 2 and move to block 52.
Interrupts other operations and ends.

従って本実施例はキーボード部2からのキー人力を必要
としないセイツブロクラム或いはロードブロクラムを実
イiする場合にはキースキャンを中止′fることにより
一足間隔毎に実行される割込み処理時間を短縮し、上記
セイツプロクラム或いはロートプロクラムを迅速に実行
することが出来る。
Therefore, this embodiment shortens the interrupt processing time that is executed at one step interval by canceling the key scan when executing the seat block or road block that does not require manual input from the keyboard section 2. However, the above-mentioned Seitz program or Roto program can be quickly executed.

〔図面の簡i11人説明〕 第1図は電子タイプライタの槻略を示す斜視図、第2図
は電子タイプライタの電子的ブロック図、第3図(A)
キー人力を必要とするプロクラムの実行状態を示す説明
図、CB)は割込み処理状態を示す説明図、第4図(A
)はキー人力を必要としないセイフプログラム或いはロ
ードブロクラムの実行状態を示す説明図、CB)は割込
み処理の実行状態を示す説明図、第5図は割込み処理状
態を示すフローチャートである。
[Simplified explanation of drawings by 11 people] Figure 1 is a perspective view of an electronic typewriter, Figure 2 is an electronic block diagram of the electronic typewriter, and Figure 3 (A).
An explanatory diagram showing the execution state of a program that requires key human power, CB) is an explanatory diagram showing the interrupt processing state, FIG.
) is an explanatory diagram showing the execution state of a safe program or road block that does not require key human power, CB) is an explanatory diagram showing the execution state of interrupt processing, and FIG. 5 is a flowchart showing the interrupt processing state.

図中1はキーボード付き機器としての電子タイプライタ
、2はキーボード部、36はプロクラムメモリ、38は
メモリとしてのRAM、jlはキースキャンiti’j
 4卸フラク、43はCPUて゛ある。
In the figure, 1 is an electronic typewriter as a device with a keyboard, 2 is a keyboard section, 36 is a program memory, 38 is a RAM as a memory, and jl is a key scan iti'j
There are 4 wholesalers and 43 are CPUs.

特許出願人 ブラザー工業株式会社 代理人 弁理士 イP 藤 研 −Patent applicant: Brother Industries, Ltd. Agent Patent Attorney IP Fuji Ken

Claims (1)

【特許請求の範囲】 1、プロクラムメモリに5己+Uされたプロクラムの実
行中、一定間隔毎にそのプログラムの実行を中断させて
キーボード部のキースキャンを行い、そのキーボード部
のキー押下状態ヲ検出するようにしたキーボード付き機
器において、 目11記キースキャンの制御用フラグをメモリに設け、
自記制御用フラグの状態によって自記キースキャンを中
止するよう制御する制御手段を設けたことを特徴とする
キーボード付き機器。
[Claims] 1. During the execution of a program stored in the program memory, the execution of the program is interrupted at regular intervals and the keys of the keyboard are scanned to detect the pressed state of the keys of the keyboard. In a device with a keyboard that is configured to perform
A device with a keyboard, characterized in that it is provided with a control means for controlling a self-recorded key scan to be canceled depending on the state of a self-recorded control flag.
JP59073807A 1984-04-11 1984-04-11 Device with keyboard Pending JPS60217439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59073807A JPS60217439A (en) 1984-04-11 1984-04-11 Device with keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59073807A JPS60217439A (en) 1984-04-11 1984-04-11 Device with keyboard

Publications (1)

Publication Number Publication Date
JPS60217439A true JPS60217439A (en) 1985-10-31

Family

ID=13528802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59073807A Pending JPS60217439A (en) 1984-04-11 1984-04-11 Device with keyboard

Country Status (1)

Country Link
JP (1) JPS60217439A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63137313A (en) * 1986-11-29 1988-06-09 Sharp Corp Computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63137313A (en) * 1986-11-29 1988-06-09 Sharp Corp Computer equipment
JPH0511324B2 (en) * 1986-11-29 1993-02-15 Sharp Kk

Similar Documents

Publication Publication Date Title
JPS60217439A (en) Device with keyboard
JPH0825290B2 (en) Ticket issuing device
JPS59162078A (en) Controlling method of thermal transfer printer
US4967205A (en) Thermal head control device
US4971461A (en) Printing device for exchanging printing elements by use of character and identification code data
JPS59136264A (en) Bar code printing method by thermal head
JPH0516401A (en) Controlling method of printing apparatus
JP2769893B2 (en) Recording device
JPH078227Y2 (en) Typewriter
JPS625870A (en) Printer
JPH0250876A (en) Printer
JPS62211182A (en) Printer
JPH0646597A (en) Recording device
JPH01122395A (en) Protective device for drive circuit
JP3106715B2 (en) Dot printing device
JPH04169257A (en) Printer
JP2686378B2 (en) Thermal transfer printer controller
JP2641343B2 (en) Drive unit for thermal printer
JPH0463787B2 (en)
JP2827852B2 (en) Printer device
JPH0367036B2 (en)
JPH0557995A (en) Printer
JPS5972582A (en) Data input and output device
JPH11316756A (en) Page selection printer
JPH0584750B2 (en)