JPH02289003A - document creation device - Google Patents

document creation device

Info

Publication number
JPH02289003A
JPH02289003A JP1054370A JP5437089A JPH02289003A JP H02289003 A JPH02289003 A JP H02289003A JP 1054370 A JP1054370 A JP 1054370A JP 5437089 A JP5437089 A JP 5437089A JP H02289003 A JPH02289003 A JP H02289003A
Authority
JP
Japan
Prior art keywords
data
motor
rewriting
drive motor
area
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
JP1054370A
Other languages
Japanese (ja)
Inventor
Naohisa Kaneko
兼子 直久
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 JP1054370A priority Critical patent/JPH02289003A/en
Priority to GB9005123A priority patent/GB2229835B/en
Publication of JPH02289003A publication Critical patent/JPH02289003A/en
Priority to US07/489,682 priority patent/US5243692A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、印字装置を構成するキャリッジ駆動モータ
等の駆動と関連しで、不具合無くビデオRAMの書替え
を実行するようにした文書作成装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a document creation device that rewrites a video RAM without any problems in connection with driving a carriage drive motor, etc. that constitute a printing device. It is something.

(従来の技術) 従来、例えば、キーボード等により入力された入力デー
タをラスタ式CRTに表示しつつ編集し、編集後の入力
データを印字装置により印?する機能を有する文書作成
装置においては、印字装置を構成する各種駆動モータの
III陣と、キーボードから入力した人力データを表示
するラスタ式CRTの表示制御回路を構成するビデオR
AM (以上、VRAMと略づ゛)の占替え制御とを同
時に実行する必要性から、印字装置の制御用のCPU 
(中央処理装置)と、表示制御回路用のCPUの2つの
CPUを有していた。
(Prior Art) Conventionally, for example, input data entered using a keyboard or the like is edited while being displayed on a raster type CRT, and the edited input data is printed using a printing device. In a document production device that has the function of
Due to the need to simultaneously execute AM (hereinafter abbreviated as VRAM) relocation control, the CPU for controlling the printing device
It had two CPUs: a CPU (central processing unit) and a CPU for the display control circuit.

(発明が解決しようとする課題〉 しかしながら、従来例にあっては、印字装置制御用と表
示制御用の2つのCPUを必要とするため、コストの低
減化を疎外する要因となっていた。
(Problems to be Solved by the Invention) However, in the conventional example, two CPUs are required, one for controlling the printing device and the other for controlling the display, which is a factor that hinders cost reduction.

これを解決するために、1つのCPUによって前記2つ
の制御を同時に処理することも考えられるが、以下のよ
うな不都合が生じる。
In order to solve this problem, it is conceivable to simultaneously process the two controls using one CPU, but this causes the following inconvenience.

すなわち、ワードプロセッサ等の文書作成装置は、入力
データを印字しつつ、同時にCRT表示画面を変更する
動作が要求されており、このときには、前記VRAMの
書替え処理と、前記印字装置の各種駆動モータの出力相
の更新処理が実行されることになる。しかし、VRAM
の書換え処理のために、駆動モータのパルス更新処理の
タイミングがRれ、尚該パルス幅が乱れ、駆動モータが
脱調する虞れがある。
That is, a document creation device such as a word processor is required to print input data and change the CRT display screen at the same time. At this time, the rewriting process of the VRAM and the output of various drive motors of the printing device are required. Phase update processing will be executed. However, VRAM
Due to the rewriting process, the timing of the pulse update process of the drive motor is delayed, and the pulse width is disturbed, which may cause the drive motor to step out.

また、前記VRAMの書替え処理は、垂直帰線期間(以
F、帰線期間と称ず)を利用して、この間に実行するの
であるが、前記パルス信号の重合を回避するするために
、駆動モータ制御を優先して制御する(文書作成装置は
文書の印字出力が主目的のため)と、前記帰線期間に至
るまでVRAMの書替え処理を持つ(ウェイト)必要が
あり、そのつ]イト時間が長くなると、帰線期間内にデ
ータの書替えが終了しない場合が発生し、この場合には
、帰線期間終了後にもVRAMの書替え処理が継続して
実行されるため、CRT画面表示のチラつぎが発生する
Furthermore, the rewriting processing of the VRAM is executed during the vertical retrace period (hereinafter referred to as retrace period), but in order to avoid overlapping of the pulse signals, the driving If motor control is prioritized (because the main purpose of a document creation device is to print out documents), it is necessary to perform VRAM rewrite processing (wait) until the retrace period, and the If the retrieval period becomes longer, data rewriting may not be completed within the retrace period. In this case, the VRAM rewriting process continues even after the retrace period ends, resulting in flickering of the CRT screen display. occurs.

本発明は、前記問題点を解決するためになされたもので
あり、」ストの低減化を図ることができると共に、駆動
モータの脱調やCRT画面のチラつきがない交円作成H
fff1を提供することを目的としている。
The present invention has been made in order to solve the above-mentioned problems, and it is possible to reduce the stress and create intersecting circles without step-out of the drive motor or flickering of the CRT screen.
The purpose is to provide fff1.

(課題を解決するための手段) 前記目的を達成するだに、第1の発明は、第1A図に示
すように、キーボード等により入力された入力データを
ラスタ式CRTに表示しつつ編集する機能と、編集後の
入力データを印字vl置により印字する機能とを1つの
制御装置で制御する文書作成装置であって、入力データ
をCRTに表示するためのビデオRAMと、印字装置の
駆動モータが駆動中であるか否かを判別する[−夕駆動
状態検出手段と、その検出結果に基づいて、前記ビデオ
RAMの書替えデータの8の最大値を前記駆動モータの
駆動中と停止中とで変化させる書替えデータ過切替え手
段とを備えたものである。
(Means for Solving the Problems) In order to achieve the above object, the first invention provides a function for editing input data input using a keyboard or the like while displaying it on a raster type CRT, as shown in FIG. 1A. This is a document creation device in which a single control device controls the functions of printing input data after editing using a print position, and includes a video RAM for displaying input data on a CRT, and a drive motor for the printing device. Determining whether or not the drive motor is being driven [-] A drive state detection means, and based on the detection result, changing the maximum value of 8 of the rewrite data in the video RAM between when the drive motor is being driven and when it is stopped. The rewrite data over-switching means is provided.

尚、印字装置の駆動モータとしては、キャリッジ駆動モ
ータ、活字選択モータ、リボン送りモータ、リボンリフ
トモータ、紙送りモータ等が考えられる。
The drive motor of the printing device may be a carriage drive motor, a character selection motor, a ribbon feed motor, a ribbon lift motor, a paper feed motor, or the like.

また、第2の発明は、第1B図に示すように、第1の発
明と一部同じ構成である文書作成装置であって、印字装
置を構成するキャリッジを移動させるためのキャリッジ
駆動モータがリピート動作中であるか否かを判別するモ
ータリピート動作判別手段と、キャリッジ駆動モータが
リピート動作中に占替え可能なデータ量に対応するよう
に、前記ビデオRAM内で指定された所定領域と、キャ
リッジ駆動モータがリピート動作中である場合に要求さ
れたビデオRAMの書替え領域が、指定された所定領域
であるか否かを判別する書替え領域判別手段と、その判
別手段により宥替え領域が指定された所定領域であると
判定された場合は、当該書替え領域のデータの書替えを
行う書替え実行手段とを備えたものである。
Further, as shown in FIG. 1B, the second invention is a document creation device having a part of the same configuration as the first invention, in which a carriage drive motor for moving a carriage constituting the printing device is a repeater. motor repeat operation determining means for determining whether or not the carriage drive motor is in operation; a predetermined area designated within the video RAM; Rewriting area determining means for determining whether or not a requested rewriting area of the video RAM is a designated predetermined area when the drive motor is in repeat operation; and a rewriting area is specified by the determining means. If it is determined that the rewriting area is a predetermined area, the rewriting execution means rewrites the data in the rewriting area.

(作用) 第1の発明は、前記書替えデータ聞切替え手段により、
前記駆動モータが動作中である場合と停止中である場合
とで、印字装置の駆e−t−夕が脱調に至らない尾の書
替えデータを設定してビデオRAM105の書替えを実
行する。
(Operation) The first invention provides the above-mentioned rewrite data switching means,
The rewriting data of the video RAM 105 is executed by setting the last rewriting data that will not cause the drive motor of the printing device to step out, depending on whether the drive motor is in operation or stopped.

第2の発明は、予め、前記tヤリツジ駆動モータがリピ
ート動作中に脱調に至らない川の書替えデータ吊に対応
する所定領域が指定しであるため、キャリッジ駆vJt
=夕がリピート動作中には、前記書替領域判別手段と書
替え実行手段とによって、前記所定領域の書替えデータ
のみの書替えが実行される。
In the second aspect of the invention, since a predetermined area corresponding to the rewriting data suspension in which the carriage drive motor does not step out during the repeat operation is specified in advance, the carriage drive vJt
During the repeat operation, only the rewrite data in the predetermined area is rewritten by the rewrite area determination means and the rewrite execution means.

(発明の効果) 以上説明したように、第1の発明は、印字装置の駆動上
−夕の脱調に至らない量の書替えデータを設定してビラ
2オRAMの書替えを実行することにより、印字装置の
制御とCRTの表示制御を1つの制御装置で行う場合に
も、駆動モータへのパルス出力処理と、ビデオRAMの
1替え処理とが重なっても、ビデオRAMの書替え処理
は駆動[−タが115211に至らないm %ので、多
少パルス幅が乱れたとしても駆動モータは脱調しない。
(Effects of the Invention) As explained above, the first invention sets rewrite data in an amount that does not cause a step-out in driving the printing device and rewrites the flyer 2 O RAM. Even when the printing device and the CRT display are controlled by one control device, even if the pulse output processing to the drive motor and the video RAM one-time replacement processing overlap, the video RAM rewriting processing is performed by the drive [- Since the motor does not reach 115211 m%, the drive motor will not step out even if the pulse width is slightly disturbed.

また、駆動モータ動作中におけるビデオRAMの書替え
けを少くすることにより、モータへのパルス処理後に、
ビデオRAMの書替え処理を実行しても、帰線期間内に
書替え処理は完rするため、CR「画面がチラつく現象
も発生することが無い。
In addition, by reducing the number of rewrites to the video RAM while the drive motor is operating, after pulse processing to the motor,
Even if the video RAM rewriting process is executed, the rewriting process is completed within the retrace period, so the phenomenon of screen flickering does not occur.

第2の発明は、キャリッジ駆動モータがリピート動作中
には、ビデ:JRAM中の所定領域のみの書替えを行な
うように構成したことによって、キャリッジ駆動モータ
がリピート動作中に襲:替えられるデータ間は、必ずキ
ャリッジ駆動モータが脱調に至らない量の書替えデータ
吊となる。従って、印字装置の制御とC[く]−の表示
制御を1つの制御装置で行う場合にも、キャリッジ駆動
モータが脱調することがない。また、随時ビデオRAM
の書替えを実行するため、−回の帰tlAII間を越え
てビデオRAMの書替えが行われることが無く、CR「
画面がチラつく現象も発生しない。
The second invention is configured such that only a predetermined area in the bidet JRAM is rewritten during the repeat operation of the carriage drive motor. , the amount of rewritten data that does not cause the carriage drive motor to step out is sure to be increased. Therefore, even when controlling the printing device and controlling the display of C[k]- by one control device, the carriage drive motor does not step out. You can also use video RAM at any time.
Therefore, the video RAM is not rewritten beyond the - return tlAII interval, and CR "
There is no screen flickering phenomenon.

(実施例) 以下、本発明に係る文書作成装置の一実施例について、
図面を参照しながら説明する。
(Example) Hereinafter, an example of the document creation device according to the present invention will be described.
This will be explained with reference to the drawings.

この装置は、電子タイプライタ2に、表示装置としてラ
スク式CRTデイスプレィ(以下、単にCRTという)
4が接続されたものである。このCRT4は、表示画面
6を備え、この表示画面6に文書データやフレーム(枠
)が表示されるようになっている。
This device has an electronic typewriter 2 equipped with a Rusk type CRT display (hereinafter simply referred to as CRT) as a display device.
4 are connected. The CRT 4 includes a display screen 6 on which document data and frames are displayed.

lyJ記電子電子タイプライタ2CRT4を使用するこ
となく単独でも使用【■能なものであり、キーボード8
と印字機構10とを備えている。キーボード8にはは、
アルフIベット、数字並びに各種記号を入力するための
キャラクタキー12と、後述するギヤリッジ14を右へ
1文字分移動させるスペースキー16と、改1うを指示
するリターンキー18と、CRT4の表示画面6上にお
りる入力位置を示すカーソルを上下左右に移動させるカ
ーソル移動キー20等多数の機能キーが配置されている
lyJ electronic electronic typewriter 2 Can be used alone without using CRT4 [■It is possible to use keyboard 8
and a printing mechanism 10. Keyboard 8 has
A character key 12 for inputting alpha I bets, numbers and various symbols, a space key 16 for moving the gear ridge 14 to the right by one character, which will be described later, a return key 18 for instructing a change, and the display screen of the CRT 4. A large number of function keys such as a cursor movement key 20 for moving a cursor indicating an input position on the screen 6 vertically and horizontally are arranged.

印字機構10は、図示しない印字用紙を支持するプラテ
ン21とプラテン21に平行に設けられた一対のガイド
バー22に沿って移動可能に支持されたキャリッジ14
とを備えている。ギヤリッジ14には、デイジ−ホイー
ル23と、デイジ−ホイール23の活字を印字位置に配
置させるための活字選択モータ(図示せず)と、印字位
置に配置された活字の裏面を叩打する印字ハンマ24と
、印字リボンを収納したリボンカレット25と、印字リ
ボンを巻取るためのリボン巻取りモータ(図示Uず)等
が載置されている。また、キャリッジ14は、ステップ
[−夕からなるキャリッジ駆動モータ26により、タイ
ミングベルト27を介して往復移動される。
The printing mechanism 10 includes a platen 21 that supports printing paper (not shown) and a carriage 14 that is movably supported along a pair of guide bars 22 that are provided parallel to the platen 21.
It is equipped with The gear ridge 14 includes a daisy wheel 23, a type selection motor (not shown) for arranging the type on the daisy wheel 23 at the printing position, and a printing hammer 24 for hitting the back side of the type placed at the printing position. A ribbon cullet 25 containing the printing ribbon, a ribbon winding motor (not shown) for winding up the printing ribbon, and the like are mounted. Further, the carriage 14 is reciprocated via a timing belt 27 by a carriage drive motor 26 consisting of steps.

次に、このような装置の制御系について第3図に基づい
て説明する。
Next, the control system of such an apparatus will be explained based on FIG. 3.

本制御系は、1つのCI) U 30を用いて構成され
たマイク【コードデ−タによる制御系である。
This control system is a control system based on microphone code data configured using one CI U 30.

前記CPU30は、ROM31のシステムプログラムに
より制御され、ポートラップ33を介してキーボード8
から入力データが入力される。この入力データが印字機
構10を構成する前記各ステップモ・−タ(第3図では
キャリッジ駆動モータ26のみを図示する)を駆動させ
る必要のあるデータの場合には、CF、) U 30は
モータ動作プログラムを起動して、モータ動作パルスを
ボートラッチ33、七−タドライバ34を介してステッ
プモーターへ出力してステップモータを駆e する。
The CPU 30 is controlled by a system program in a ROM 31 and is connected to the keyboard 8 via a port wrap 33.
Input data is input from. If this input data is data that requires driving each of the step motors (only the carriage drive motor 26 is shown in FIG. 3) constituting the printing mechanism 10, CF, ) U 30 is the motor operation. The program is started and a motor operating pulse is output to the step motor via the boat latch 33 and the seventh motor driver 34 to drive the step motor.

また、CI−’ U 30は、人力データがCRT4の
表示変更を要するデータである場合には表示変更プログ
ラムを起動し、変更データをバスドライバ42を介して
ビデオRAM38へ送出し、当該データをビデオRAM
38に書込む。
Further, if the human input data is data that requires a display change on the CRT 4, the CI-'U 30 starts a display change program, sends the changed data to the video RAM 38 via the bus driver 42, and transfers the data to the video RAM 38. RAM
Write to 38.

ビデオRAM38に書込まれたデータは、CRTコント
ローラ36により、キャラクタジェネレイタ(CG)3
9ヘラスタアドレスと共に入力され、指定されたラスタ
のドラ1〜パターンがパラレルデータの形で並直列変換
器(シフトレジスタ)40に入力される。そし゛(、こ
の並直列変換器40により、シリアルなドツトパターン
デー夕に変換されて、ビデオコントロール41に人力さ
れる。
The data written to the video RAM 38 is transferred to the character generator (CG) 3 by the CRT controller 36.
9 raster address, and the designated raster patterns 1 to 1 are input to the parallel-to-serial converter (shift register) 40 in the form of parallel data. Then, it is converted into serial dot pattern data by the parallel/serial converter 40 and inputted to the video control 41.

ビデオコントロール41は、入力されたドツトパターン
データと、CRTコントローラ36から供給されるビデ
オ信号とを合成して表示用信号を形成し、CRT4の表
示画面6をコントロールする。
The video control 41 synthesizes the input dot pattern data and the video signal supplied from the CRT controller 36 to form a display signal and controls the display screen 6 of the CRT 4.

RAM32は、キーボード8によるキー人力の−」−ド
データが書込まれるテキストメモリの他、必要な各種バ
ッフ?やレジスタ、カウンタ等が設けられている。
The RAM 32 includes a text memory into which data entered manually using the keyboard 8 is written, as well as various necessary buffers. , registers, counters, etc. are provided.

前記ビデオF(AM38は、CRT4に表示される1画
面分のデータを表示画面6上の表示アドレスと1対1で
対応するメモリアドレスを有するバッノ7メモリである
。そして、1文字に対するメモリ容量は2バイトであり
、表示データを予め決められたコードデータによって記
憶する。また、表示データにはキャラクタデータの他に
アンダーライン等のアトリビュートデータが格納される
The video F (AM38) is a Bano 7 memory that has a memory address that corresponds one-to-one with the display address on the display screen 6 for data for one screen displayed on the CRT 4.The memory capacity for one character is It is 2 bytes, and stores display data using predetermined code data.The display data also stores attribute data such as underlining in addition to character data.

CR1”コン1〜ローラ36は、CR丁4にキVラクタ
等を表示さ「るためのユニットであり、アドレスマルチ
プレクサ37を介して表示に必要な所定上位ピットのメ
モリアドレスをビデオRAM38に供給づると共に、C
G39には、所定下位ピットのラスタアドレスを供給し
ている。また、CR1′コントLl−ラ36は、ビデオ
コントロール41のCRT 基板に対し、水平帰線H8
YNC及び垂直帰線VSYNCの両タイミング信号を直
接供給している。
The CR1 controller 1 to the roller 36 are units for displaying characters, etc. on the CR display 4, and supply memory addresses of predetermined upper pits necessary for display to the video RAM 38 via the address multiplexer 37. with C
The raster address of a predetermined lower pit is supplied to G39. Further, the CR1' controller Ll-ra 36 connects the horizontal retrace line H8 to the CRT board of the video control 41.
Both the YNC and vertical retrace VSYNC timing signals are directly supplied.

CG39は、表示キャラクタのデータがビクセル単位の
2値データによって格納されたものであり、選択される
4ヤラクタデータは、前記ビデオRA M 38に記憶
されるコードによって決定される。そして、入力された
アドレスに対し、ビデオRAM38の適法アドレスに格
納されているコードに対応する4ヤラクタデータを順次
出力する。
In the CG 39, display character data is stored as binary data in pixel units, and the selected 4-character data is determined by the code stored in the video RAM 38. Then, 4 character data corresponding to the code stored in the legal address of the video RAM 38 is sequentially outputted to the input address.

次に、ビデ、t RA M 38のデータ書酔えについ
て第4図及び第5図の7【コーチヤードに基づいて説明
する。
Next, the data write sickness of the bidet and tRAM 38 will be explained based on 7 [coach yard] in FIGS. 4 and 5.

第4図に示すルーチンは、所定のタイマ割込みによって
実行される。先ず、ス1ツブ81(以下、単にSlで表
わす。他のステップについても同様)にJ3いて、4ニ
ーボード8上のキー操作によりデータが入力されたか否
かが判断され、データが入力されるまでこの処理が繰返
される。データが人力されると、Slの判定がYesと
なり、次に82にて、そのデータ内容がモータ動作を必
要とするデータであるか否かを判別する。
The routine shown in FIG. 4 is executed by a predetermined timer interrupt. First, J3 is in the step 81 (hereinafter simply referred to as Sl. The same applies to other steps), and it is determined whether data has been input by key operation on the 4-knee board 8, and the process continues until the data is input. This process is repeated. When the data is entered manually, the determination in Sl becomes Yes, and then in step 82, it is determined whether the data content is data that requires motor operation.

そして、モータ動作が必要である場合には、G3にエー
タ動作中フラグをONすると共に、G4にて、ステップ
数やダンピングのカウント、前励磁の時間等のモータ作
動パラメータをセットして、モータの駆動を開始する。
If motor operation is required, turn ON the motor operation flag in G3, set motor operation parameters such as the number of steps, damping count, and pre-excitation time in G4, and start the motor. Start driving.

このモータの駆動は、第5図に示す割込処理の実行によ
り行われる。
This motor is driven by executing the interrupt process shown in FIG.

このモータ動作割込処理が開始されると、先ず820に
おいて、キャリッジ駆動モータ26の動作が終了したか
否かを判別する。この320の判定がNo、−tなわち
、キャリッジ駆動モータ26の動作が終了していない場
合には、821にて、前記モータ作妨パラメータに従っ
て前記モータ26の駆動が行われる。そして、当該モー
タ26の必要な動作が終了したときには、322の処理
によりt−夕動作フラグをOFFにする。
When this motor operation interrupt process is started, first in 820 it is determined whether or not the operation of the carriage drive motor 26 has ended. If the determination at 320 is No, -t, that is, the operation of the carriage drive motor 26 has not been completed, then at 821, the motor 26 is driven in accordance with the motor disturbance parameter. Then, when the necessary operation of the motor 26 is completed, the t-evening operation flag is turned OFF through the process of 322.

前記321においては、CPtJ30から所定の制御命
令をデータバスとアドレスバスに出力する。
In step 321, the CPtJ 30 outputs a predetermined control command to the data bus and address bus.

すると、この出力データがボートラッチ33にラッチさ
れる。従って、この後は、モータドライバ34がボート
ラッチ33にラッチされている制御データ従ってt−夕
26の駆動を行う。
Then, this output data is latched in the boat latch 33. Therefore, after this, the motor driver 34 drives the t-rail 26 in accordance with the control data latched in the boat latch 33.

このモータ動作割込処理が終rすると、次に第4図の8
5が実行される。この処理は、CRI 4の表示変更を
必要とするか否かを判別する処理である。すなわち、前
記入力データがモータ動作を必要とするデータであると
共にCRT 4の表示画面の変更を必要とするデータで
あった場合には、このS5の判定はYesとなる。また
、この判定がNo、すなわら前記入力データがCRT4
の表示変更を要しない場合にはSlに戻る。
When this motor operation interrupt processing is completed, the next step is 8 in Fig. 4.
5 is executed. This process is a process for determining whether or not it is necessary to change the display of CRI 4. That is, if the input data is data that requires motor operation and data that requires a change in the display screen of the CRT 4, the determination in S5 is Yes. Also, if this determination is No, that is, the input data is CRT4
If there is no need to change the display, the process returns to Sl.

S5の判定がYeSの場合には、次の86にて、モータ
動作中フラグがONあるか否かを判別するし、前記モー
タが動作中であれば、未だモータ動作中フラグはONで
あるから、S6の判定はYeSとなる。
If the determination in S5 is Yes, it is determined in the next step 86 whether or not the motor operating flag is ON, and if the motor is operating, the motor operating flag is still ON. , the determination at S6 is Yes.

この場合は、次に$9の処理が実行され、アキュムレー
タAにL/Mの値を格納する。ここで、しは、−回の帰
線期間でビデオRAM (以下、■RA Mと称す)3
8の1替えが可能なデータ量の最大値であり、Mは、前
記モータ動作中に書替え可能なf−夕]の最大値である
。但し、L > MかつL=nM (nは整数)の条件
を満足するように設定されている。このMの値は、モー
タ26の制御データのためのパルス出力処理と、VRA
M38の書替え処理とが重合しても、モータ26の脱調
を来たさない程度のデータ量である。
In this case, the process of $9 is executed next, and the value of L/M is stored in accumulator A. Here, the video RAM (hereinafter referred to as ■RAM) 3 is
M is the maximum value of the amount of data that can be rewritten by 1 of 8, and M is the maximum value of the data amount that can be rewritten during the operation of the motor. However, it is set to satisfy the following conditions: L>M and L=nM (n is an integer). The value of M is determined by the pulse output processing for the control data of the motor 26 and the VRA
The amount of data is such that even if the rewriting process of M38 overlaps, the motor 26 will not step out.

すなわち、モータ動作中には、当該モータ26が停止中
の書替え可能なデータ量をn等分して、その−群のデー
タ量Mずつを帰線期間毎にN替える処理を実行する。
That is, while the motor is in operation, the amount of rewritable data when the motor 26 is stopped is divided into n equal parts, and the data amount of each negative group is changed by N every retrace period.

当該処理は、811〜814の処理により実行される。This process is executed by processes 811 to 814.

811は、帰線期間の到来の待機処理であり、CRTコ
ントローラ36から出力されるタイミング信号に基づい
て、垂直帰線期間のタイミングを持つ。そして、当該帰
線期間が到来すると、次の812にて、前記Mに相当す
る量の書替えデータ分だけVRAM38の書替えを実行
する。そして、313でアキュムレータAの値をデクリ
メントし、814でその結果がOになったか否かを判別
する。
811 is a waiting process for the arrival of the retrace period, and has the timing of the vertical retrace period based on the timing signal output from the CRT controller 36. Then, when the retrace period arrives, in the next step 812, the VRAM 38 is rewritten by the amount of rewrite data corresponding to the M. Then, in 313, the value of accumulator A is decremented, and in 814, it is determined whether the result is O or not.

この811〜814の処理により、必要とされるVRA
M38の書替えが、n回の帰線期間の到来の間にMデー
タずつ実行される。従って、エータ26の動作中であっ
ても、当該モータ26が脱調することなく、VRAM3
8の書替えが行える。
Through the processing of steps 811 to 814, the required VRA
The rewriting of M38 is performed every M data during the arrival of n retrace periods. Therefore, even when the motor 26 is in operation, the motor 26 does not step out and the VRAM 3
8 can be rewritten.

また、VRAM38の書替え処理は、帰線期間到来毎に
所定Mずつ実行するため、帰線期間を超えて当該書替え
処理が行われることが無く、CRT4の画面6のチラつ
きが発生ずることも無い。
Further, since the rewriting process of the VRAM 38 is executed by a predetermined number M every time the retrace period arrives, the rewriting process is not performed beyond the retrace period, and the screen 6 of the CRT 4 does not flicker.

尚、前記帰線期間に入る前、成るいは帰線期間中に、モ
ータ動作が終了(モータ動作フラグが0FF)した場合
(S10でYes)17)場合ニハ、815に移行し、
帰線期間において書替えデータの全てについてVRAM
38の書替えを実行する。
In addition, if the motor operation ends (motor operation flag is 0FF) before entering the retrace period, or during the retrace period (Yes in S10), the process moves to 815,
VRAM for all rewritten data during blanking period
Execute 38 rewrites.

そして、Slに戻る。Then, return to Sl.

次に、前記S6ににおい゛C1モータ動作フラグがOF
Fであった場合、すなわち、モータ26が停止中であっ
た場合には、当該S6の判定がN。
Next, in S6, the C1 motor operation flag is set to OFF.
If the result is F, that is, if the motor 26 is stopped, the determination in S6 is N.

となり、次に87と88の処理が実行される。このモー
タ26が停止中である場合には、VRAM38の書替え
処理によってモータ26の脱調が発生することはないか
ら、−回の帰線期間でしに相当するデータ量全部の書替
えを実行することができる。
Then, the processes 87 and 88 are executed. When this motor 26 is stopped, the rewriting process of the VRAM 38 will not cause the motor 26 to step out, so it is necessary to rewrite the entire amount of data corresponding to - during the retrace period. I can do it.

以上の如く、本実施例に係る文書作成装置によれば、1
つのCPUを用いて構成した場合においても、モータの
停止中と動作中とで、−回の帰線11問内におけるVR
AMの書替えデータ量を切替えることにより、モータの
脱調を生じることが無く、また、CRTの画面のチラつ
きが発生することも無い。
As described above, according to the document creation device according to this embodiment, 1
Even when configured using two CPUs, the VR within 11 questions of the return line of - times when the motor is stopped and when it is in operation.
By switching the AM rewrite data amount, the motor will not step out, and the CRT screen will not flicker.

尚、前記実施例においては、ステップモータとしてキャ
リッジ駆動モータのみを例に挙げて説明したが、この制
御は印字動作に係る活字選択モータ、リボン送りモータ
、リボンリフトモータ、紙送りモータ等のステップモー
タを対象としたものである。
In the above embodiment, only the carriage drive motor was used as an example of the step motor, but this control also applies to step motors such as the type selection motor, ribbon feed motor, ribbon lift motor, paper feed motor, etc. related to printing operation. It is aimed at.

次に、第2の発明に係る文書作成装置の一実施例につい
て第6図及び第7図のフローチャートに従って説明する
。尚、同図において、第4図及び第5図中における処理
と同一の処理については、同一符号を付してその説明は
省略する。
Next, an embodiment of the document creation device according to the second invention will be described according to the flowcharts of FIGS. 6 and 7. In this figure, the same processes as those in FIGS. 4 and 5 are denoted by the same reference numerals, and the explanation thereof will be omitted.

第6図において、キーボード8の操作により入力データ
が入力されて、その入力データの内容がキャリッジ駆動
モータ26の動作を要する内容であれば、830の処理
が実行される。このS30の処理は、前記入ツノデータ
がキャリッジリピート(以下、CAリピートと略記する
)動作を必要とする内容であるか否かを判別する処理で
ある。この判別結果がYesであれば、次に831の処
理によりCAリピート動作中フラグをONする。また、
S30の判定がNOであれば、次に83の処理により、
モータ動作中フラグをONする。
In FIG. 6, if input data is input by operating the keyboard 8 and the content of the input data requires operation of the carriage drive motor 26, the process of 830 is executed. The process of S30 is a process of determining whether or not the input horn data requires a carriage repeat (hereinafter abbreviated as CA repeat) operation. If the result of this determination is Yes, then the CA repeat operation flag is turned ON in step 831. Also,
If the determination in S30 is NO, then by the process in 83,
Turn on the motor operating flag.

そして、次に84にて必要なモータ動作パラメータのレ
ットが行われ、第7図のモータ動作割込処理が実行され
る。
Then, in step 84, necessary motor operation parameters are read, and the motor operation interrupt process shown in FIG. 7 is executed.

このモータ割込処理は、第5図のルーチン処理に、CA
リピート動作に関する処理840〜42を付加したもの
である。キャリッジ駆動モータ26のリピート動作は、
精度を要求されるため、当該モータ26の脱調が発生す
ることを完全に防止する必要がある。
This motor interrupt processing is performed by adding CA to the routine processing shown in FIG.
Processes 840 to 42 regarding repeat operations are added. The repeat operation of the carriage drive motor 26 is as follows:
Since precision is required, it is necessary to completely prevent the motor 26 from losing synchronization.

このため、モータ動作割込処理において、840〜84
2を設けている。S40は、CAリピート動作が終了し
たか否かを判別する処理であり、未だ終了していない場
合に、341の処理によりCAリピート動作処理を実行
する。そして、CΔリピート動作が終了している場合に
は、842の処理により、CAリピート動作フラグをO
FFにする。820〜822の処理は、第5図の処理と
同一である。
Therefore, in the motor operation interrupt processing, 840 to 84
2 are provided. S40 is a process for determining whether the CA repeat operation has ended or not. If it has not ended yet, the CA repeat operation process is executed by the process 341. If the CΔ repeat operation has been completed, the CA repeat operation flag is set to O by the process of 842.
Make it FF. The processes 820 to 822 are the same as the processes shown in FIG.

このモータ動作割込処理が終了すると、次に第6図中の
85の処理が実行される。ここで、CRT4の表示変更
を要すると判定されると、次に86の処理が実行され、
モータ動作中フラグがOF[になるまで待機する。この
間にモータ制御命令出力処理が終了すると第7図中の3
22でモータ動作中フラグがOFFにされるため、前記
S6の判定がNOとなり、次の832が実行される。
When this motor operation interrupt process is completed, the process 85 in FIG. 6 is executed next. Here, if it is determined that the display of the CRT 4 needs to be changed, then the process of 86 is executed,
Wait until the motor operating flag becomes OF[. If the motor control command output process is completed during this time, 3 in Fig.
Since the motor operating flag is turned off in step 22, the determination in step S6 is NO, and the next step 832 is executed.

832は、CAリピート動作フラグがONであるか否か
を判別する処理であり、この判定がYeSの場合には、
次に833の処理が実行される。
832 is a process of determining whether or not the CA repeat operation flag is ON, and if this determination is Yes,
Next, the process of 833 is executed.

この833は、V RA M 38の書替えデータが、
予め指定された所定領域に合致するものであるか否かを
判別する処理である。この指定された所定領域は、キャ
リッジ駆動モータ26がリピート動作中であって、その
制御命令用のパルス出力処理と書替え処理が重合しても
、当該モータ26の脱調を来たさない程度のデータ容量
であることが決まっている領域である。これは、例えば
、キャリッジリピート動作中に必ず表示されると共にキ
ャリッジ(カーソル)の移動と共に逐次変更される表示
部分として、ライン表示(ベージ、行、桁の表示部るい
は残り桁数の表示を行う部分であり、例えば、CRT画
面6のもnに表示される)がある。
This 833 is the rewrite data of V RAM 38.
This is a process of determining whether or not it matches a predetermined area designated in advance. This designated predetermined area is such that even if the carriage drive motor 26 is in repeat operation and the pulse output processing for the control command and the rewrite processing overlap, the motor 26 will not step out. This is an area whose data capacity is determined. For example, this is a display part that is always displayed during carriage repeat operation and changes sequentially as the carriage (cursor) moves. For example, there is a part displayed on the CRT screen 6).

832における判別方法としては、前記ライン表示は、
その表示位置が固定されているため、VRAM38中の
アドレスによって判別可能である。
As the determination method in 832, the line display is
Since the display position is fixed, it can be determined by the address in the VRAM 38.

すなわち、CRT画面6上のライン表示位置とVRAM
38のアドレスとは一対一で対応しているため、要求さ
れた古替えデータのアドレスが当該ライン表示に対応す
るアドレスであれば、このライン表示データの書替えデ
ータであることが判別できる。
That is, the line display position on the CRT screen 6 and the VRAM
Since there is a one-to-one correspondence with the address of No. 38, if the address of the requested old replacement data corresponds to the line display, it can be determined that it is the rewrite data of this line display data.

そして、833の判定がYesであれば、S7の処理に
より帰線期間の到来を侍って、834において、VRA
M38の書替え処理を実行する。
Then, if the determination in 833 is Yes, the arrival of the retrace period is waited for by the processing in S7, and in 834, the VRA
Execute the rewriting process of M38.

このとき、8替えられるのは、前記所定領域(ライン表
示のデータ領域)である。
At this time, it is the predetermined area (data area of line display) that is changed by 8.

使方、S33の判定がNoの場合、すなわち、キルリッ
ジ駆動モータ26のリピート動作中に要求された書替え
データが、前記所定領域のものでは無い場合には、S6
に戻り、332の処理により、キャリッジリピート動作
の終了を待つ。すなわち、キャリッジリピート動作中に
は、VRAM38の書替えは、前記ライン表示の書替え
のみを許容することになる。
If the determination in S33 is No, that is, if the rewrite data requested during the repeat operation of the kill ridge drive motor 26 is not for the predetermined area, the process proceeds to S6.
The process returns to step 332 and waits for the completion of the carriage repeat operation. That is, during the carriage repeat operation, rewriting of the VRAM 38 is only permitted to rewrite the line display.

従って、キャリッジリピート動作中には、キャリッジ駆
動モータ26の脱調を生じないようなf−9量のライン
表示のみが変更されることになる。
Therefore, during the carriage repeat operation, only the line display of the f-9 amount that does not cause the carriage drive motor 26 to step out is changed.

そして、キャリッジリピート動作が終了している場合(
モータ動作も終了している場合)には、832の判定が
Noとなり、S7にて帰線期間を持ッテ、834kT、
V RA M 38 (7) ai N エ処理を実行
する。このときの書替えデータは、前記ライン表示に限
定されず、要求された書替えデータの全てである。
And if the carriage repeat operation has finished (
If the motor operation has also ended), the determination at 832 is No, and the retrace period is completed at S7.
VRAM 38 (7) Execute aiN-e processing. The rewritten data at this time is not limited to the line display, but is all the requested rewritten data.

以上の如く、本実施例に係る文書作成装置によれば、1
つのCPUを用いて構成した場合においても、キャリッ
ジリピート動作中のV RA Mの書替え処理に関し、
r11調が生じないデータ徂の所定領域を設定して、こ
の領域の書替えが要求されたときのみに書替え処理を実
行することにより、キャリッジリピート動作中の七−夕
の脱調を生じることが無い。また、−回の帰線期間を超
える書替え処理が行われることも無く、CRTの画面の
チラつき発生も防止できる。
As described above, according to the document creation device according to this embodiment, 1
Even when configured using two CPUs, regarding the VRAM rewriting process during carriage repeat operation,
By setting a predetermined area in the data area where r11 key does not occur and executing the rewrite process only when rewriting of this area is requested, there is no chance of Tanabata losing synchronization during carriage repeat operation. . Furthermore, rewriting processing that exceeds the retrace period of - times is not performed, and the occurrence of flickering on the CRT screen can be prevented.

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

第1A図は第1の発明の構成図、第1B図は第2の発明
の構成図、第2図は本発明に係る文書作成装置の外観図
、第4図及び第5図は第1の発明の一実施例の構成を示
すフ[3−チャート、第6図及び第7図は第2の発明の
一実施例の構成を示すフローチャートである。 2・・・・・・電子タイプライタ 4・・・CRTデイスプレィ 6・・・・・・表示画面 8・・・・・・キーボード 10・・・・・・印字機構 14・・・・・・キャリッジ 26・・・・・・キャリッジ駆動を一タ30・・・・・
・CPU 31・・・・・・ROM 32・・・・・・RAM 36・・・・・・CRTコントローラ 38・・・・・・ビデオRAM 41・・・・・・ビデオコントロール 第1A図
FIG. 1A is a block diagram of the first invention, FIG. 1B is a block diagram of the second invention, FIG. 2 is an external view of the document creation device according to the present invention, and FIGS. Figures 6 and 7 are flowcharts showing the configuration of an embodiment of the second invention. 2... Electronic typewriter 4... CRT display 6... Display screen 8... Keyboard 10... Printing mechanism 14... Carriage 26...Carriage drive at once 30...
・CPU 31...ROM 32...RAM 36...CRT controller 38...Video RAM 41...Video control Figure 1A

Claims (2)

【特許請求の範囲】[Claims] (1)キーボード等により入力された入力データをラス
タ式CRTに表示しつつ編集する機能と、編集後の入力
データを印字装置により印字する機能とを1の制御装置
で制御する文書作成装置であって、 前記入力データを前記CRTに表示するためのビデオR
AMと、 前記印字装置の駆動モータが駆動中であるか否かを判別
するモータ駆動状態検出手段と、 該モータ駆動状態検出手段による検出結果に基づいて、
前記ビデオRAMの書替えデータの量の最大値を前記駆
動モータの駆動中と停止中とで変化させる書替えデータ
量切替え手段と、 を具備することを特徴とする文書作成装置。
(1) A document creation device in which a single control device controls the functions of editing input data inputted using a keyboard or the like while displaying it on a raster type CRT, and printing the input data after editing using a printing device. and a video R for displaying the input data on the CRT.
AM; motor drive state detection means for determining whether or not the drive motor of the printing device is being driven; and based on the detection result by the motor drive state detection means,
A document creation device comprising: rewrite data amount switching means for changing the maximum value of the amount of rewrite data in the video RAM between when the drive motor is being driven and when the drive motor is stopped.
(2)キーボード等により入力された入力データをラス
タ式CRTに表示しつつ編集する機能と、編集後の入力
データを印字装置により印字する機能とを1の制御装置
で制御する文書作成装置であって、 前記入力データを前記CRTに表示するためのビデオR
AMと、 前記印字装置を構成するキャリッジを移動させるための
キャリッジ駆動モータがリピート動作中であるか否かを
判別するモータリピート動作判別手段と、 前記キャリッジ駆動モータがリピート動作中に書替え可
能なデータ量に対応するように、前記ビデオRAM内で
指定された所定領域と、 前記キャリッジ駆動モータがリピート動作中である場合
に要求されたビデオRAMの書替え領域が、前記指定さ
れた所定領域であるか否かを判別する書替え領域判別手
段と、 該書替え領域判別手段により、書替え領域が前記指定さ
れた所定領域であると判定された場合は、当該書替え領
域のデータの書替えを行う書替え実行手段と、 を具備することを特徴とする文書作成装置。
(2) A document creation device in which a single control device controls the functions of editing input data input using a keyboard or the like while displaying it on a raster type CRT, and printing the edited input data using a printing device. and a video R for displaying the input data on the CRT.
AM; motor repeat operation determining means for determining whether or not a carriage drive motor for moving a carriage constituting the printing device is in a repeat operation; and data that can be rewritten while the carriage drive motor is in a repeat operation. a predetermined area specified in the video RAM so as to correspond to the amount, and whether a rewriting area of the video RAM requested when the carriage drive motor is in repeat operation is the specified predetermined area. rewriting area determining means for determining whether or not the rewriting area is the specified area; rewriting execution means for rewriting data in the rewriting area when the rewriting area determining means determines that the rewriting area is the designated predetermined area; A document creation device comprising:
JP1054370A 1989-03-07 1989-03-07 document creation device Pending JPH02289003A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP1054370A JPH02289003A (en) 1989-03-07 1989-03-07 document creation device
GB9005123A GB2229835B (en) 1989-03-07 1990-03-07 Text processing device
US07/489,682 US5243692A (en) 1989-03-07 1993-03-07 Text processing device with device with simultaneous display and printing capabilities

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1054370A JPH02289003A (en) 1989-03-07 1989-03-07 document creation device

Publications (1)

Publication Number Publication Date
JPH02289003A true JPH02289003A (en) 1990-11-29

Family

ID=12968779

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1054370A Pending JPH02289003A (en) 1989-03-07 1989-03-07 document creation device

Country Status (1)

Country Link
JP (1) JPH02289003A (en)

Similar Documents

Publication Publication Date Title
JPH02289003A (en) document creation device
JPH0522933B2 (en)
JPH06133241A (en) Screen display
JPH0733105B2 (en) Ruled line printing method
JPH02297217A (en) document creation device
JPS6139677B2 (en)
JPH02238520A (en) Video ram controller
JPS63296163A (en) Document processor
JP2562557Y2 (en) Display control device
JP2520908B2 (en) Panel input device
JPS62241063A (en) Sentence producing device
US5243692A (en) Text processing device with device with simultaneous display and printing capabilities
JP2610874B2 (en) Information processing method
JPH0916118A (en) Display drive
JP3468652B2 (en) Display control device and display device
JPH046964B2 (en)
JP2606579B2 (en) Character display device
JPH0471022A (en) Controller for video ram
JPS62113263A (en) Handy word processor
JPS62239194A (en) Document generator
JPS6213671B2 (en)
JPS5938081A (en) Page shift control system
JPH06308904A (en) Display device
JPS62138971A (en) Data processor
JPH0512285A (en) Character processor