JPS6129015B2 - - Google Patents
Info
- Publication number
- JPS6129015B2 JPS6129015B2 JP1838878A JP1838878A JPS6129015B2 JP S6129015 B2 JPS6129015 B2 JP S6129015B2 JP 1838878 A JP1838878 A JP 1838878A JP 1838878 A JP1838878 A JP 1838878A JP S6129015 B2 JPS6129015 B2 JP S6129015B2
- Authority
- JP
- Japan
- Prior art keywords
- digit
- data
- decimal point
- display
- signal
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 4
- 238000000034 method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 1
Landscapes
- Cash Registers Or Receiving Machines (AREA)
- Calculators And Similar Devices (AREA)
- Digital Computer Display Output (AREA)
Description
【発明の詳細な説明】
本発明は固定的な3桁区切表示と浮動小数点表
示を切換えて表示する表示方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a display method that switches between a fixed three-digit display and a floating point display.
例えば電子式金銭登録機のように金銭データを
処理する装置では主に金額を入力するために浮動
小数点による表示はほとんど行なわれていなかつ
た。したがつて3桁区切は各国によつて固定的に
設定されていた。例えば日本国内においては8桁
の表示管の4桁目と7桁目に3桁区切の表示を行
い、米国においては3桁目と6桁目に3桁区切表
示を行なわせている。しかしながら最近では多く
の処理能力を有する電子式金銭登録機が間発され
る傾向にあり、例えば商品の個数を小数点で表わ
して、3.5(個)×125(円)のような演算も考え
られる。この場合の小数点表示は浮動小数点とな
るものである。 For example, in devices that process monetary data, such as electronic cash registers, floating point numbers have rarely been displayed since amounts are mainly entered. Therefore, the three-digit separator was fixedly set by each country. For example, in Japan, the 4th and 7th digits of an 8-digit display tube are displayed in 3-digit divisions, and in the United States, the 3rd and 6th digits are displayed in 3-digit divisions. However, in recent years, electronic cash registers with a large amount of processing power have been released.For example, the number of products can be expressed as a decimal point, such as 3.5 (items) x 125 (yen). In this case, the decimal point is displayed as a floating point.
本発明は上記事情に鑑みてなされたもので、小
数点データが入力されたか否かを検出し、小数点
データが入力されていれば固定的な3桁区切表示
を行い、小数点データが入力された後であれば浮
動小数点表示を行うようにした表示方式を提供す
ることを目的とする。 The present invention has been made in view of the above circumstances, and detects whether or not decimal point data has been input, and if decimal point data has been input, displays a fixed three-digit separator, and after decimal point data has been input. The purpose of this invention is to provide a display method that performs floating point display.
以下図面を参照して本発明の一実施例を説明す
る。第1図は本発明を電子式金銭登録機に実施し
た場合のシステム構成を示すものである。第1図
において11はCPU(演算処理装置)で、この
CPU11は各種売上げデータを記憶するメモリ
回路12が、データDを転送するデータバス
DB、行アドレスRAを転送する行アドレスバス
RB、列アドレスCAを転送する列アドレスCBを
介して接続されている。上記メモリ回路12は
CPU11から送られてくる読出し/書込み信号
R/W2によつて読出しあるいは書込みの指定が
行なわれる。また、上記CPU11にはデータバ
スDBを介してモードスイツチ13が接続され
る。このモードスイツチ13は、詳細を後述する
が例えば四捨五入、切捨て、切上げ、3桁区切の
位置指定等の各種モードを切換え指定するもの
で、CPU11からのモード検出信号MSを選択し
てデータバスDBによりCPU11へ送出する。さ
らに、上記CPU11にはデータバスDB及び列ア
ドレスバスCBを介してI/Oポート14が接続
される。このI/Oポート14にはCPU11か
らオペレーシヨン信号Jが与えられる。そして上
記I/Oポート14にはキー入力部15、表示部
16、印字部17が接続される。上記キー入力部
15は、キー操作を行つた場合、I/Oポート1
4からのタイミング信号KPに従つてキー入力信
号KIをI/Oポート14内の入力用バツフア
(図示せず)へ入力する。また、表示部16は
I/Oポート14からのデイジツト信号DG及び
I/Oポート14の表示用バツフア内のデータを
デコードしたセグメント信号SGに従つて表示動
作を行う。印字部17は例えばラインプリンタ
で、印字ドラムの印字位置信号TをI/Oポート
14へ送り、この印字位置信号TとI/Oポート
14の印字用バツフア(図示せず)内のデータと
の一致によつて生じたハンマ駆動信号HDにより
ハンマを駆動し、レシート用紙並びにジヤーナル
用紙に対する印字を行つている。 An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a system configuration when the present invention is implemented in an electronic cash register. In Figure 1, 11 is the CPU (processing unit).
The CPU 11 includes a memory circuit 12 that stores various sales data, and a data bus that transfers data D.
DB, row address bus to transfer row address RA
RB is connected through column address CB, which transfers column address CA. The memory circuit 12 is
A read/write signal R/W 2 sent from the CPU 11 specifies reading or writing. Further, a mode switch 13 is connected to the CPU 11 via a data bus DB. This mode switch 13 is used to switch and specify various modes such as rounding, rounding down, rounding up, and specifying the position of 3-digit delimiters, the details of which will be described later.It selects the mode detection signal MS from the CPU 11 and uses the data bus DB Send to CPU11. Further, an I/O port 14 is connected to the CPU 11 via a data bus DB and a column address bus CB. An operation signal J is applied to this I/O port 14 from the CPU 11. A key input section 15, a display section 16, and a printing section 17 are connected to the I/O port 14. When the key input unit 15 performs a key operation, the I/O port 1
The key input signal KI is input to an input buffer (not shown) in the I/O port 14 in accordance with the timing signal KP from the I/O port 4. Further, the display section 16 performs a display operation in accordance with the digit signal DG from the I/O port 14 and the segment signal SG obtained by decoding the data in the display buffer of the I/O port 14. The printing unit 17 is, for example, a line printer, which sends a print position signal T from a print drum to the I/O port 14, and combines this print position signal T with data in a print buffer (not shown) of the I/O port 14. The hammer is driven by a hammer drive signal HD generated by the coincidence, and printing is performed on receipt paper and journal paper.
第2図は上記モードスイツチ13の詳細を示す
もので、モード指定用の複数のスイツチS1〜So
が4行16列のマトリクス状に配列されており、各
列の入力ラインにCPU11から送られてくる0
〜15のモード検出信号MSが入力され、4行の出
力ラインにより出力される「1−2−4−8」の
重み付けされた信号がモード指定信号として
CPU11へ送出されるようになつている。 FIG. 2 shows details of the mode switch 13, in which there are a plurality of switches S 1 to S o for specifying modes.
are arranged in a matrix of 4 rows and 16 columns, and 0 sent from the CPU 11 to the input line of each column.
~15 mode detection signals MS are input, and the "1-2-4-8" weighted signal outputted by the 4 output lines is the mode designation signal.
It is now sent to the CPU 11.
次に第3図によりI/Oポート14の主要部つ
まり表示部16とのデータ授受に関係する部分に
ついて説明する。データバスDBによりデータ入
出力端Dを介して入力されるデータは、小数点バ
ツフア21へ供給されると共にゲート回路22を
介してRAMにより構成される16桁の表示用バツ
フア23へ送られる。この表示用バツフア23に
はCPU11における入出力用のAレジスタ(図
示せず)の0〜14桁の内容が書込まれるもので、
その保持データはセグメントデコーダ24を介し
て表示部16へ送られる。また、上記バツフア2
1には上記Aレジスタの15桁目に記憶されている
小数点データが書込まれるもので、その保持デー
タは小数点デコーダ25を介してアンド回路26
へ入力される。このアンド回路26にはセグメン
トデコーダ24から出力ラインaを介してゲート
制御信号が入力される。上記セグメントデコーダ
24は0〜9の数値データをデコードする場合に
出力ラインaに“1”信号を出力し、0〜9の数
値データ以外のコード信号つまりブランキングコ
ード信号をデコードする場合に出力ラインaに
“0”信号を出力する。しかして、上記アンド回
路26の出力は、小数点あるいは3桁区切表示用
のセグメント信号として表示部16へ送られる。
また、上記小数点デコーダ25には、16進カウン
タ27の出力がデジツトデコーダ28を介してタ
イミング信号として与えられている。また、上記
デジツトデコーダ28の出力は、デジツト信号
DGとして表示部16へ送られる。一方、CPU1
1から与えられるオペレーシヨン信号J及びアド
レスバスCBを介して与えられる列アドレスCAは
コントールデコーダ29へ入力される。このコン
トールデコーダ29は列アドレスCAが「1」の
時に“1”信号を出力する出力ラインa及び列ア
ドレスCAが「15」の時に“1”信号を出力する
出力ラインbを備えており、出力ラインaから出
力される信号はフリツプフロツプ30のセツト端
子Sに入力され、出力ラインbから出力される信
号はフリツプフロツプ30のリセツト端子Rへ入
力されると共にバツフア21へデータ読込み信号
として送られる。そして、フリツプフロツプ30
のQ側出力はアンド回路31及びゲート回路22
にゲート制御ド信号として加えられると共に表示
用バツフア23に読出し/書込み信号R/Wとし
て送られる。また、フリツプフロツプ30の側
出力はアンド回路32にゲート制御信号として加
えられる。そして、アンド回路31には、アドレ
スバスCBを介して列アドレスCAが入力され、ア
ンド回路32にはカウンタ27の値が入力され
る。上記アンド回路31,32の出力は、オア回
路33を介して表示用バツフア23へアドレスデ
ータとして送られる。 Next, the main part of the I/O port 14, that is, the part related to data exchange with the display section 16 will be explained with reference to FIG. Data input via data input/output terminal D by data bus DB is supplied to decimal point buffer 21 and sent via gate circuit 22 to 16-digit display buffer 23 constituted by RAM. The contents of 0 to 14 digits of the A register (not shown) for input/output in the CPU 11 are written into this display buffer 23.
The held data is sent to the display unit 16 via the segment decoder 24. In addition, the above buffer 2
1 is where the decimal point data stored in the 15th digit of the A register is written, and the held data is sent to the AND circuit 26 via the decimal point decoder 25.
is input to. A gate control signal is input to this AND circuit 26 from the segment decoder 24 via an output line a. The segment decoder 24 outputs a "1" signal to the output line a when decoding numerical data from 0 to 9, and outputs a "1" signal to the output line a when decoding a code signal other than the numerical data from 0 to 9, that is, a blanking code signal. Outputs a “0” signal to a. The output of the AND circuit 26 is sent to the display section 16 as a segment signal for displaying decimal points or three-digit divisions.
Further, the output of the hexadecimal counter 27 is applied to the decimal point decoder 25 via a digital decoder 28 as a timing signal. Further, the output of the digital decoder 28 is a digital signal.
It is sent to the display section 16 as DG. On the other hand, CPU1
The operation signal J given from 1 and the column address CA given via the address bus CB are input to the control decoder 29. This control decoder 29 has an output line a that outputs a "1" signal when column address CA is "1" and an output line b that outputs a "1" signal when column address CA is "15". The signal output from line a is input to the set terminal S of flip-flop 30, and the signal output from output line b is input to reset terminal R of flip-flop 30 and is sent to buffer 21 as a data read signal. And flipflop 30
The Q side output of is an AND circuit 31 and a gate circuit 22.
It is added as a gate control signal to the display buffer 23 as a read/write signal R/W. Further, the side output of flip-flop 30 is applied to AND circuit 32 as a gate control signal. The column address CA is input to the AND circuit 31 via the address bus CB, and the value of the counter 27 is input to the AND circuit 32. The outputs of the AND circuits 31 and 32 are sent as address data to the display buffer 23 via an OR circuit 33.
第4図は上記第3図における小数点デコーダ2
5の詳細を示すものである。第4図において41
は上記小数点バツフア21からの4ビツトの小数
点データが入力されるデコーダで「0」〜
「2」、「8」〜「15」の小数点データをデコード
してそれぞれ所定の一本の出力ラインより“1”
信号を出力する。そして、このデコーダ41の
「15」〜「9」の各出力ラインから出力される信
号はそれぞれオア回路42a〜42gを介してア
ンド回路43a〜43gに入力される。また、デ
コーダ41の「8」の出力ラインから出力される
信号は、直接アンド回路43hに入力される。さ
らに、上記デコーダ41の「2」の出力ラインか
ら出力される信号はオア回路42c及び42f
へ、「1」の出力ラインから出力される信号はオ
ア回路42a,42d,42gへ、「0」の出力
ラインから出力される信号はオア回路42b及び
42eへそれぞれ入力される。また、上記アンド
回路43a〜43hには、デイジツト信号D7〜
D0がそれぞれ入力される。そして、アンド回路
43a〜43hの出力は、オア回路44を回して
出力され、前記アンド回路26を介して上記表示
部16へ小数点セグメント駆動信号として送られ
る。この場合、上記デイジツト信号D0〜D7によ
つて表示部16の1桁目〜8桁目の桁が選択指定
される。上記のように構成された小数点デコーダ
25は第5図に示すように「0」〜「2」の小数
点データが与えられた場合は3桁区切表示用信号
を出力し、「8」〜「15」の小数点データが入力
された場合は、その内容に応じて所定桁の小数点
表示を行う信号を出力し、浮動小数点に対する動
作モードとなる。上記3桁区切表示をう場合、小
数点データ「0」であれば4桁及び7桁のタイミ
ングで小数点信号を出力して円に対応する日本国
内における3桁区切表示モードとなり、小数点デ
ータが「2」であれば3桁及び6桁のタイミング
で小数点信号を出力してドルに対する米国におけ
る桁区切表示モードとなる。小数点データが
「1」であれば、2桁、5桁、8桁のタイミング
で小数点信号を出力して円及びドル以外の場合に
対する桁区切表示モードとなる。 Figure 4 shows the decimal point decoder 2 in Figure 3 above.
This shows the details of 5. 41 in Figure 4
is a decoder into which the 4-bit decimal point data from the decimal point buffer 21 is input;
Decode the decimal point data of “2”, “8” to “15” and output “1” from one predetermined output line.
Output a signal. The signals output from the output lines "15" to "9" of this decoder 41 are input to AND circuits 43a to 43g via OR circuits 42a to 42g, respectively. Further, the signal output from the output line "8" of the decoder 41 is directly input to the AND circuit 43h. Furthermore, the signal output from the output line "2" of the decoder 41 is OR circuit 42c and 42f.
The signals output from the "1" output lines are input to OR circuits 42a, 42d, and 42g, and the signals output from the "0" output lines are input to OR circuits 42b and 42e, respectively. The AND circuits 43a to 43h also receive digit signals D7 to D7 .
D 0 is input respectively. The outputs of the AND circuits 43a to 43h are output through an OR circuit 44, and sent to the display section 16 as a decimal point segment drive signal via the AND circuit 26. In this case, the first to eighth digits of the display section 16 are selected and designated by the digit signals D 0 to D 7 . As shown in FIG. 5, the decimal point decoder 25 configured as described above outputs a 3-digit display signal when decimal point data of "0" to "2" is given, and If decimal point data of "" is input, a signal for displaying a decimal point of a predetermined digit according to the content is output, and the operation mode for floating point is entered. When using the above 3-digit display, if the decimal point data is "0", a decimal point signal is output at the timing of the 4th and 7th digits, and the 3-digit display mode in Japan corresponding to the yen is set, and the decimal point data is "2". ”, a decimal point signal is output at the timing of the 3rd and 6th digits, resulting in a US digit separator display mode for the dollar. If the decimal point data is "1", a decimal point signal is output at the timing of 2nd, 5th, and 8th digits, and a digit separator display mode is established for cases other than yen and dollars.
次に上記のように構成された本考案の全体の動
作を第6図のフローチヤートを参照して説明す
る。キー入力部15において数値キーの操作が行
われると、この入力データはI/Oポート14へ
送られ、第6図のステツプAに示すように置数処
理が行われる。すなわち、キー入力部15から入
力されるデータは、I/Oポート14内の入力用
バツフア(図示せず)に一旦保持され、その後
CPU11内のAレジスタ(図示せず)に転送さ
れる。CPU11はI/Oポート14を介して入
力データが与えられると第6図のステツプBに示
すように上記Aレジスタの最上位桁つまり15桁目
A15の内容が「8」(2進数“1000”)より小さい
かあるいは「8」以上であるかを判定する。この
Aレジスタの15桁目には小数点データが書込まれ
るもので、小数点キーが操作されていれば「8」
以上の値が書込まれ、小数点キーが操作されてい
なければ「8」より小さい値例えばこの実施例で
は「0」〜「2」の値が書込まれる。しかして、
ステツプBでは、3桁区切モードが浮動小数点モ
ードかを判定するもので、Aレジスタの15桁A15
の内容が「8」以上であれば浮動小数点モードで
あると判定してステツプC進み、Aレジスタの15
桁の内容を+1する。このステツプCの処理によ
つて小数点の位置が1桁桁上げされる。すなわち
小数点キーが操作された場合は、ステツプDに示
すようにAレジスタの15桁目A15に「8」
(1000)が書込まれる。そして、このステツプD
が行われた場合、あるいは上記ステツプCの処理
が行われた場合はステツプEに進み、モードスイ
ツチ13の設定内容を読出してCPU11内のB
レジスタの15桁目B15にセツトする。次いでステ
ツプFに進み、Aレジスタの15桁目A15の内容が
「8」(1000)より小さいか大きいか、すなわち、
浮動小数点モードか3桁区切表示データかを判定
する。この判定の結果、Aレジスタの15桁目A15
の内容が「8」(1000)以上であつた場合は、小
数点キーが操作された場合であるから浮動小数点
モードであると判断し、ステツプGに進んでAレ
ジスタの内容を第4図に示すI/Oポート14に
送出する。この場合、先ずAレジスタの内容を読
出す前にアドレスバスCBを介してI/Oポート
14内のコントールデコーダ29に制御信号を与
えると共に、CPU11内のタイミング制御回路
(図示せず)よりオペレーシヨン信号J(“1”)
を出力する。上記制御信号はコントールデコーダ
29によりデコードされ、フリツプフロツプ30
をセツトする。このフリツプフロツプ30がセツ
トされるとそのQ側出力によりアンド回路31及
びゲート回路22が開かれると共に表示用バツフ
ア23に書込み信号(R/W=“1”)が与えられ
る。この状態でCPU11内のAレジスタの内容
が順次1桁目より14桁目まで読出されると、その
内容はCPU11からデータバスDB及びI/Oポ
ート14内のゲート回路22を介して表示用バツ
フア23に入力される。この時、表示用バツフア
23の列アドレスはCPU11のデータCAがデー
タバスCBを介してI/Oポート14に与えら
れ、これがアンド回路31及びオア回路33を介
して表示用バツフア23に与えられる。この時オ
ペレーシヨン信号Jは“0”である。そして、ア
ドレスデータCAの内容が「15」になつた時、コ
ントロールレコーダ29の出力によつてフリツプ
フロツプ30がリセツトされる。この結果、ゲー
ト回路22が閉じ表示用バツフア23への入力が
禁止されると共にコントールデコーダ29の出力
ラインbから出力される信号により小数点バツフ
ア21が動作し、Aレジスタの15桁目の内容が小
数点バツフア21に読込まれる。この小数点バツ
フア21に読込まれた小数点データは小数点デコ
ーダ25へ入力される。この時、表示用のデータ
が表示用バツフア23に貯えられていれば、セグ
メントデコーダ24の出力ラインaから“1”信
号が出力されてアンド回路26のゲートが開かれ
ているので、小数点デコーダ25の出力はアンド
回路26を介して表示部16へ送られ、所定の小
数点セグメントを点灯表示する。例えば上記した
ように小数点データが「8」であつた場合、小数
点デコーダ25は第4図に示すようにデコーダ4
1の「8」の出力ラインが“1”となり、アンド
回路43hに加えられる。このアンド回路43h
にはデイジツト信号D0が入力されているので、
上記デコーダ41の出力に従つてアンド回路43
hからデイジツト信号D0が出力され、オア回路
44を介して表示部16へ送られ、第5図に示す
ように第1桁に小数点表示が行われる。この場
合、表示用バツフア23からのデータ読出しはカ
ウンタ27の出力によつて行われる。すなわち、
コントールデコーダ29の出力によりフリツプフ
ロツプ30がリセツトされると、その側出力に
よりアンド回路32のゲートが開かれ、カウンタ
27の出力がアンド回路27及びオア回路33を
介して表示用バツフア23へ送られそのアドレス
が指定される。このアドレス指定により表示用バ
ツフア23の内容が読出され、セグメントデコー
ダ24を介して表示部16へ送られて表示され
る。この状態で次の数値データが入力されると、
ステツプA,Bを経てステツプCに進み、Aレジ
スタの15桁目A15の内容に+1する。小数点キー
を操作した後、最初の数値データを入力する場合
であれば、Aレジスタの15桁目A15に「8」
(1000)が書込まれているのでステツプCでは
「8+1=9」の加算が行われ、Aレジスタの
A15桁の内容は「9」となり、表示部16におけ
る小数点表示は第5図に示すよう2桁目となる。
以下同様により置数操作が行われる毎にAレジス
タのA15桁の内容が順次+1され、小数点表示位
置が第5図に示すように順次桁上げされる。 Next, the overall operation of the present invention constructed as described above will be explained with reference to the flowchart of FIG. When a numeric key is operated on the key input unit 15, this input data is sent to the I/O port 14, where numeric value processing is performed as shown in step A of FIG. That is, data input from the key input unit 15 is temporarily held in an input buffer (not shown) in the I/O port 14, and then
The data is transferred to the A register (not shown) in the CPU 11. When the CPU 11 receives input data via the I/O port 14, the CPU 11 inputs the most significant digit of the A register, that is, the 15th digit, as shown in step B of FIG.
Determine whether the content of A15 is less than "8" (binary number "1000") or greater than "8". Decimal point data is written to the 15th digit of this A register, and if the decimal point key is operated, it will be "8".
If the above value is written, and the decimal point key is not operated, a value smaller than "8", for example, in this embodiment, a value from "0" to "2" is written. However,
In step B, it is determined whether the 3-digit delimiter mode is floating point mode, and the 15th digit A15 of the A register is
If the content is "8" or more, it is determined that the floating point mode is in effect, and the program proceeds to step C, where the 15 of register A is stored.
Add 1 to the contents of the digit. Through the processing of step C, the position of the decimal point is moved up by one digit. In other words, when the decimal point key is operated, "8" is placed in the 15th digit A15 of the A register as shown in step D.
(1000) is written. And this step D
is carried out, or if the processing in step C is carried out, proceed to step E, read out the setting contents of the mode switch 13, and read out the setting contents of the mode switch 13.
Set the 15th digit of the register to B15 . Next, proceed to step F, and check whether the content of the 15th digit A15 of the A register is less than or greater than "8" (1000), that is,
Determine whether floating point mode or 3-digit delimited display data. As a result of this judgment, the 15th digit of the A register A 15
If the content of is ``8'' (1000) or more, it is determined that the decimal point key has been operated, so it is determined that the floating point mode is in effect, and the process proceeds to step G, where the contents of the A register are shown in Figure 4. Send to I/O port 14. In this case, first, before reading the contents of the A register, a control signal is given to the control decoder 29 in the I/O port 14 via the address bus CB, and a timing control circuit (not shown) in the CPU 11 sends an operation signal. Signal J (“1”)
Output. The control signal is decoded by the control decoder 29, and the flip-flop 30
Set. When flip-flop 30 is set, its Q-side output opens AND circuit 31 and gate circuit 22, and a write signal (R/W="1") is applied to display buffer 23. In this state, when the contents of the A register in the CPU 11 are sequentially read from the 1st digit to the 14th digit, the contents are transferred from the CPU 11 to the display buffer via the data bus DB and the gate circuit 22 in the I/O port 14. 23. At this time, data CA of the CPU 11 is applied to the I/O port 14 via the data bus CB, and the column address of the display buffer 23 is applied to the display buffer 23 via the AND circuit 31 and the OR circuit 33. At this time, the operation signal J is "0". Then, when the content of the address data CA becomes "15", the flip-flop 30 is reset by the output of the control recorder 29. As a result, the gate circuit 22 is closed and input to the display buffer 23 is prohibited, and the decimal point buffer 21 is operated by the signal output from the output line b of the control decoder 29, and the contents of the 15th digit of the A register are changed to a decimal point. The data is read into the buffer 21. The decimal point data read into the decimal point buffer 21 is input to the decimal point decoder 25. At this time, if display data is stored in the display buffer 23, a "1" signal is output from the output line a of the segment decoder 24 and the gate of the AND circuit 26 is opened, so the decimal point decoder 25 The output is sent to the display unit 16 via the AND circuit 26, and a predetermined decimal point segment is displayed by lighting. For example, when the decimal point data is "8" as described above, the decimal point decoder 25 is transferred to the decoder 4 as shown in FIG.
The output line of "8" of 1 becomes "1" and is added to the AND circuit 43h. This AND circuit 43h
Since the digit signal D 0 is input to
According to the output of the decoder 41, the AND circuit 43
A digit signal D0 is output from h and sent to the display section 16 via the OR circuit 44, where a decimal point is displayed in the first digit as shown in FIG. In this case, data reading from the display buffer 23 is performed by the output of the counter 27. That is,
When the flip-flop 30 is reset by the output of the control decoder 29, the gate of the AND circuit 32 is opened by the output on that side, and the output of the counter 27 is sent to the display buffer 23 via the AND circuit 27 and the OR circuit 33. Address is specified. By this address designation, the contents of the display buffer 23 are read out and sent to the display unit 16 via the segment decoder 24 for display. When the next numerical data is input in this state,
Proceeding to step C via steps A and B, the contents of the 15th digit A15 of the A register are incremented by 1. If you want to input the first numerical data after operating the decimal point key, enter "8" in the 15th digit of the A register, A15 .
(1000) has been written, so in step C, addition of "8+1=9" is performed, and the A register is
A The content of the 15th digit is "9", and the decimal point displayed on the display section 16 is the second digit as shown in FIG.
Thereafter, each time a numeric operation is performed, the contents of the 15th digit A of the A register are sequentially incremented by 1, and the decimal point display position is sequentially carried forward as shown in FIG.
一方、小数点キーの操作を行わなかつた場合
は、ステツプDが実行されないので、ステツプF
においてAレジスタの15桁目A15の内容が「8」
(1000)より小さいと判定され、ステツプHに進
む。このステツプH下はステツプEでEレジスタ
の15桁目にセツトされているモードスイツチ13
の設定内容をAレジスタの15桁目A15に転送す
る。その後ステツプGに進み、Aレジスタの内容
をI/Oポート14内の表示用バツフア23及び
小数点バツフア21へ転送する。上記モードスイ
ツチ13の設定内容が国内モードであつた場合、
モードスイツチ13の設定値は「0」であり、第
4図におけるデコーダ41の「0」の出力ライン
から“1”信号が出力され、オア回路42e及び
42bを介してアンド回路43e,43bに加え
られる。このためアンド回路43e,43bから
デジツト信号D3,D6が出力され、第5図に示す
ように表示部16の4桁目、7桁目に区切表示が
行われる。また、モードスイツチ13により米国
モードを指定した場合は、その設定内容は「2」
であり、デコーダ41の「2」の出力ラインから
“1”信号が出力され、オア回路42f,42c
を介してアンド回路43f,43cに加えられ
る。このためアンド回路43f,43cからデジ
ツト信号D2,D5が出力され、第5図に示すよう
に表示部16の3桁目及び6桁目に区切表示が行
われる。このようにモードスイツチ13の指定に
従つて任意の3桁区切表示が行われる。また、小
数点キーを操作した場合は上記したように3桁区
切表示から浮動小数点の表示に切換わる。 On the other hand, if the decimal point key is not operated, step D will not be executed and step F will be executed.
The content of the 15th digit A15 of the A register is "8".
(1000), and the process proceeds to step H. Below this step H is the mode switch 13 set in the 15th digit of the E register at step E.
Transfer the setting contents to the 15th digit A15 of the A register. Thereafter, the process proceeds to step G, where the contents of the A register are transferred to the display buffer 23 and decimal point buffer 21 in the I/O port 14. If the setting content of the mode switch 13 is domestic mode,
The setting value of the mode switch 13 is "0", and a "1" signal is output from the "0" output line of the decoder 41 in FIG. It will be done. Therefore, the digital signals D 3 and D 6 are outputted from the AND circuits 43e and 43b, and the fourth and seventh digits of the display section 16 are displayed separately as shown in FIG. Also, if the US mode is specified by the mode switch 13, the setting content is "2".
A "1" signal is output from the "2" output line of the decoder 41, and the OR circuits 42f, 42c
It is applied to AND circuits 43f and 43c via. Therefore, the digital signals D 2 and D 5 are outputted from the AND circuits 43f and 43c, and the third and sixth digits of the display section 16 are displayed separately as shown in FIG. In this manner, arbitrary three-digit division display is performed according to the designation of the mode switch 13. Furthermore, when the decimal point key is operated, the 3-digit display is switched to the floating point display as described above.
以上述べたように本発明によれば、小数点デー
タが入力されたか否かを検出し、小数点データが
入力されていなければ固定的な3桁区切表示を行
い、小数点データが入力された後であれば浮動小
数点を行うようにしたもので、簡単な、回路構成
で実現できる。浮動小数点による表示と固定的な
3桁区切による表示が自動的に切換えられる等
種々の利点を有する。 As described above, according to the present invention, it is detected whether or not decimal point data has been input, and if decimal point data has not been input, a fixed three-digit display is performed, and even after decimal point data has been input, It is designed to perform floating point arithmetic, and can be realized with a simple circuit configuration. It has various advantages such as automatic switching between floating point display and fixed 3-digit display.
第1図は本発明の一実施例を示す全体的なブロ
ツク図、第2図は同実施例におけるモードスイツ
チ部分の詳細を示す図、第3図は同実施例におけ
るI/Oポートの主要部の詳細を示す構成図、第
4図は同実施例における小数点デコーダ部分の詳
細を示す構成図、第5図は同実施例における表示
部の小数点及び3桁区切表示動作を説明するため
の図、第6図は同実施例の動作を示すフローチヤ
ートである。
11……CPU、12……メモリ回路、13…
…モードスイツチ、14……I/Oポート、23
……表示用バツフア、25……小数点デコーダ。
Fig. 1 is an overall block diagram showing one embodiment of the present invention, Fig. 2 is a diagram showing details of the mode switch portion in the same embodiment, and Fig. 3 is a main part of the I/O port in the same embodiment. 4 is a configuration diagram showing details of the decimal point decoder portion in the same embodiment, and FIG. 5 is a diagram for explaining the decimal point and three-digit separator display operation of the display unit in the same embodiment. FIG. 6 is a flow chart showing the operation of the same embodiment. 11...CPU, 12...Memory circuit, 13...
...Mode switch, 14...I/O port, 23
... Display buffer, 25... Decimal point decoder.
Claims (1)
切表示用データが記憶される記憶手段と、小数点
データが入力されたか否かを検出する検出手段
と、該検出手段で小数点データが入力されている
ことが検出された際に、所定の浮動小数点表示用
データを前記記憶手段へ入力する手段と、前記検
出手段で小数点データが入力されていないことが
検出された際に、所定の固定的な3桁区切表示用
データを前記記憶手段へ入力する手段と、前記記
憶手段内の小数点又は3桁区切の各データに基づ
いて小数点表示又は固定的な3桁区切表示を行う
表示手段とよりなる表示方式。1. Storage means for storing floating point display data or fixed 3-digit display data, detection means for detecting whether decimal point data has been input, and decimal point data being input by the detection means. means for inputting predetermined floating point display data into the storage means when it is detected that decimal point data has not been input; A display system comprising means for inputting data for digit separator display into the storage means, and display means for displaying a decimal point or a fixed three-digit separator based on each decimal point or three-digit separator data in the storage means. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1838878A JPS54111235A (en) | 1978-02-20 | 1978-02-20 | Display system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1838878A JPS54111235A (en) | 1978-02-20 | 1978-02-20 | Display system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS54111235A JPS54111235A (en) | 1979-08-31 |
| JPS6129015B2 true JPS6129015B2 (en) | 1986-07-03 |
Family
ID=11970320
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1838878A Granted JPS54111235A (en) | 1978-02-20 | 1978-02-20 | Display system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS54111235A (en) |
-
1978
- 1978-02-20 JP JP1838878A patent/JPS54111235A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS54111235A (en) | 1979-08-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3304418A (en) | Binary-coded decimal adder with radix correction | |
| US5726923A (en) | Minimum/maximum data detector | |
| US4636971A (en) | Data processing device with specifiable program order | |
| US4317183A (en) | Unused program number indicating system for a small program type electronic calculator | |
| US4450526A (en) | Money preset in an electronic cash register | |
| JPS6129015B2 (en) | ||
| US5126958A (en) | Calculator equipped with notation converting function | |
| JP2893989B2 (en) | Electronic cash register | |
| JPS642179Y2 (en) | ||
| JP2506098B2 (en) | Transaction processor | |
| JPS61112294A (en) | Data setting for vending machine | |
| JPH021627Y2 (en) | ||
| JP2506881B2 (en) | Electronic register display device | |
| JP3055558B2 (en) | n-bit arithmetic unit | |
| JPS6315958Y2 (en) | ||
| JPH0578056B2 (en) | ||
| JPH0126119B2 (en) | ||
| JPS6145550Y2 (en) | ||
| SU864336A1 (en) | Logic storage | |
| JPS5617464A (en) | Print system of electronic register | |
| JPS59154302A (en) | electronic scale | |
| JPS5942346B2 (en) | Mode specification method for electronic cash registers | |
| JPS5860354A (en) | Multiplying device | |
| JPS61223922A (en) | information input device | |
| JPS5824830B2 (en) | Data setting device for each ticket type in automatic ticket vending machines |