JPS5887643A - Electronic calculator - Google Patents

Electronic calculator

Info

Publication number
JPS5887643A
JPS5887643A JP18711581A JP18711581A JPS5887643A JP S5887643 A JPS5887643 A JP S5887643A JP 18711581 A JP18711581 A JP 18711581A JP 18711581 A JP18711581 A JP 18711581A JP S5887643 A JPS5887643 A JP S5887643A
Authority
JP
Japan
Prior art keywords
imitation sound
program
sound
output
input
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
JP18711581A
Other languages
Japanese (ja)
Inventor
Masuaki Morino
森野 益章
Yoshiyuki Fujikawa
嘉之 藤川
Isamu Haneda
勇 羽田
Tetsuo Nai
名井 哲夫
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP18711581A priority Critical patent/JPS5887643A/en
Publication of JPS5887643A publication Critical patent/JPS5887643A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/0225User interface arrangements, e.g. keyboard, display; Interfaces to other computer systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Calculators And Similar Devices (AREA)

Abstract

PURPOSE:To arbitrarily change the generation of imitation sound with the instruction in a program, and to diversify the functions of a calculator, by designating the output state of an imitation sound such as the number of repetition of the imitation sound and the generating time of imitation sound relating to the imitation sound generation instruction in the program. CONSTITUTION:A microprocessor unit MPU controlling the entire electronic calculator is connected with an input and output I/O PORT via a key input device KEY and an RAM and an ROM are connected to the RORT via a data bus, an address bus and a control bus. A clock circuit CLOCK is connected to the PORT and also a buzzer drive circuit DR connected to an imitation sound generator BUZ is connected. The output state of imitation sound such as the number of repetition of imitation sound and generating time of the imitation sound is designated from the input section relating to an imitation sound generating instruction in a program, the generation of the imitation sound is arbitrarily changed through the designation of the program to diversify the functions of the calculator.

Description

【発明の詳細な説明】 本発明はプログラム可能な電子式計算機において、擬音
の発生をプログラムできるものに関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a programmable electronic calculator in which the generation of onomatopoeia can be programmed.

一般に、プログラム可能な電子計算機は、使用目的に応
じて作成したプログラムを入力し、それを゛実行するこ
とによって各種の使い方ができるようになっている。
In general, programmable electronic computers can be used in a variety of ways by inputting and executing programs created according to the purpose of use.

従来、プログラムの実行状態を音により出力したり、効
果音、報知音として、プログラム中の命令により擬音(
BEEP )を出すものがあったが、これらの擬音出力
命令はただ限られた音を出すだけのものであった。
Conventionally, the execution status of a program was output as a sound, and onomatopoeia (
BEEP), but these onomatopoeic output commands only produced a limited number of sounds.

本発明は、目的に応じて異った擬音の発生を可能とした
電子式計算機の提供を目的とする。
An object of the present invention is to provide an electronic calculator that can generate different onomatopoeic sounds depending on the purpose.

第1図に本発明実施例の外観正面図を示す。表示部1は
ドツトマトリックスの液晶表示装置である。文字入カキ
−2はアルファベット文字のほか、いくつかの記号等を
入力するものである。数値入カキ−3は数字θ〜9を入
力する。入力実行キー[ENTERJ4は表示部1に表
示された入カキ−の操作内容を計算機本体へ入力するこ
とを実行する。
FIG. 1 shows an external front view of an embodiment of the present invention. The display section 1 is a dot matrix liquid crystal display device. The character input key 2 is used to input letters of the alphabet as well as some symbols. Numerical input key 3 inputs numbers θ to 9. The input execution key [ENTERJ4 executes input of the operation contents of the input key displayed on the display section 1 into the main body of the computer.

第2図に本発明実施例のシステム構成を示す。FIG. 2 shows the system configuration of an embodiment of the present invention.

マイクロプロセッサユニットMPUは全体を統合制御す
るものでこれの構成機能については後述する。表示部L
CDは液晶表示素子よりなり、表示制御部DSOによっ
て文字表示またはシンボルセグメントの点灯を制御する
。キー人力装置KEYは、入出力ボートI10 POR
Tよりキーストローブ信号が入力され、キーリターン信
号がMPUへ出力される。リードライトメモリーRAM
は、各種レジスタやフラグ、或いはプログラム等を記憶
する。リードオンリーメモリーROMには、プログラム
を実行するためのインタープリタ・ルーチンやその他の
制御用プログラムが予め記憶されている。時計回路0L
OOKは時刻データを発生する。
The microprocessor unit MPU provides integrated control of the entire system, and its constituent functions will be described later. Display part L
The CD is composed of a liquid crystal display element, and a display control unit DSO controls character display or lighting of symbol segments. Key human power device KEY input/output boat I10 POR
A key strobe signal is input from T, and a key return signal is output to the MPU. Read/write memory RAM
stores various registers, flags, programs, etc. The read-only memory ROM stores in advance an interpreter routine for executing programs and other control programs. Clock circuit 0L
OOK generates time data.

ブザー音発音体BUZ  は駆動回路DRにより駆動さ
れる。入出力ボートI10 PORTは、アドレスバス
、データバス及び制御用バスに接続され、キー人力装置
KEY に対しストローブ信号を出力し、時計回路C!
LOOKに対し時刻データの入出力を行ない、ブザー駆
動回路DRに対して駆動信号を出力するなど、MPUに
対してインターフェース機能をもつ。コネクタON、は
RAMやROMのメモ!J−4−%−7’ニールとして
接続するためのもの、コネクタON、は外部にデータレ
コーダやプリンタ導出 の入φ装置及び拡張メモリーを接続するためのものであ
る。マイクロプロセッサユニ、)MPUは、表示制御部
DSCへ同期信号HAと表示オンオフ信号DISPを出
力し、また液晶表示装置LCDへパックプレート信号H
8〜H7を出力する。表示制御部DSOは液晶表示装置
LCDの各セグメントに対応した表示用メモリーを内蔵
しており、各セグメントとメモリーの各ビットが対応し
ている。
The buzzer sound generating body BUZ is driven by a drive circuit DR. The input/output port I10 PORT is connected to the address bus, data bus, and control bus, outputs a strobe signal to the key human power device KEY, and outputs a strobe signal to the clock circuit C!
It has interface functions for the MPU, such as inputting and outputting time data to and from LOOK and outputting drive signals to the buzzer drive circuit DR. Connector ON is a memo of RAM and ROM! J-4-%-7' Connector ON is for connecting an external data recorder, printer, input φ device, and expansion memory. The microprocessor unit ( ) MPU outputs a synchronization signal HA and a display on/off signal DISP to the display control unit DSC, and also outputs a pack plate signal H to the liquid crystal display device LCD.
Outputs 8 to H7. The display control unit DSO has a built-in display memory corresponding to each segment of the liquid crystal display device LCD, and each segment corresponds to each bit of the memory.

そのため、表示パターンに対応したビットパターンを書
き込むことにより所望の文字やシンボルを表示すること
ができる。
Therefore, desired characters and symbols can be displayed by writing a bit pattern corresponding to the display pattern.

第3図に、第2図のマイクロプロセッサユニツ)MPU
の内部構成図を示す。
Figure 3 shows the microprocessor unit (MPU) in Figure 2.
The internal configuration diagram is shown.

プログラムカウンタPは16ビツトのレジスタであり、
MPUが現在実行している命令の次のアドレスを指示し
ており、命令を実行して次の命令を7エツチするとき自
動的に+1インクリメントされる。スタックポインタS
は16ビツトのレジスタであり、メモリーのブツシュボ
タンまたはポツプアップスタックにおいて次に使用でき
るスタックのアドレスを示す。データレジスタX、Y。
Program counter P is a 16-bit register,
It indicates the next address of the instruction currently being executed by the MPU, and is automatically incremented by +1 when the instruction is executed and the next instruction is etched by 7. stack pointer S
is a 16-bit register that indicates the address of the next available stack in the memory pushbutton or popup stack. Data registers X, Y.

Uはそれぞれ16ビツトのレジスタであり、データポイ
ンタとしても使用される。アキュムレータAは演算結果
の保持または外部メモリーとのデータ転送に使用される
。スティタスレジスタTは、演算結果による桁上げ、ボ
ロー、ゼ四、オーバフロー等の各種状態を記憶する。ア
ドレスバッファはアドレスバスA Do〜AD15 に
結合される。算術論理演算回路ALUは加減乗除等の演
算を行なう。
Each U is a 16-bit register and is also used as a data pointer. Accumulator A is used to hold calculation results or to transfer data to and from external memory. The status register T stores various states such as carry, borrow, zero, overflow, etc. due to operation results. Address buffers are coupled to address buses A Do to AD15. The arithmetic logic operation circuit ALU performs operations such as addition, subtraction, multiplication, and division.

演算用バッファBUFは上記算術論理演算用に用いられ
る。発振回路O8Cは外部端子XLo t XLtに水
晶発振子等が接続され、1/2分周回路(÷2)を経て
クロックφo5を出力する。りpツク制御回路はWAI
T信号に応じて内部クロックの発生及び停止の制御を行
なう。分周回路はクロックφ偏を更に分周して表示用同
期信号HAを出力するとともに、後述するタイマーコン
トローラにりtr、7り信号を供給する。タイマーコン
トローラはタイマーカウンタのカウント制御及びタイマ
ーインターラブド制御を行なう。タイマーカウンタは9
ビツトのポリノミアルカウンタであり、タイマーインタ
ーラブドのための時間カウントを行なう。割込み制御部
は端子NM1.MIより入力される割込み要求及びタイ
マーコントローラより出力される信号により割込み制御
を行なう。Hカウンタは液晶表示装置のパックプレート
信号を発生させるために使用される。このカウンタの入
力端子HINは通常端子HAに接続される。表示用制御
回路は、表示用電源VDIS I VA IVB及びv
Mの供給を受け、パックプレート信号H,# H,を出
力する。=PU。
The operation buffer BUF is used for the above arithmetic and logic operations. The oscillation circuit O8C has a crystal oscillator or the like connected to an external terminal XLot XLt, and outputs a clock φo5 through a 1/2 frequency divider circuit (÷2). The rip-tuk control circuit is WAI
Controls generation and stop of internal clocks in accordance with the T signal. The frequency dividing circuit further divides the frequency of the clock φ and outputs a display synchronizing signal HA, and also supplies signals tr and 7 to a timer controller to be described later. The timer controller performs count control of a timer counter and timer interwoven control. timer counter is 9
It is a bit polynomial counter and counts time for timer interleaved. The interrupt control unit is connected to terminal NM1. Interrupt control is performed using interrupt requests input from the MI and signals output from the timer controller. The H counter is used to generate the pack plate signal of the liquid crystal display. The input terminal HIN of this counter is normally connected to the terminal HA. The display control circuit uses display power supplies VDIS I VA IVB and v
It receives the supply of M and outputs pack plate signals H, #H,. =PU.

PVは汎用フリップ70ツブ、DISPは表示オンオフ
制御用7リツプフpツブである。入力ポートI No〜
IN、は8ビツトデータを内部バスに取り込む。データ
バス制御回路は双方向性の制御回路であって、外部メモ
リーへのデータの書込みまたは外部メモリーからのデー
タの読み込みをデータバス)〜乃を通して行なう。イン
ストラフシランデコーダ及びCPU制御回路は、メモリ
ーライト信号R/W、メモリーイネーブル信号MEo 
t MEl等を出力する。
PV is a general purpose flip 70 block, and DISP is a 7 flip flip block for display on/off control. Input port I No~
IN takes 8-bit data into the internal bus. The data bus control circuit is a bidirectional control circuit that writes data to or reads data from the external memory through the data bus). The infrastructural decoder and CPU control circuit have a memory write signal R/W and a memory enable signal MEo.
t Output MEI etc.

第4図に、第2図のブザー駆動回路DRの具体例を示す
。信号S3 はテープレコーダのインターフェースより
出力される録音、再生信号であり、通常はブザー音がブ
ザーBUZから出力される。
FIG. 4 shows a specific example of the buzzer drive circuit DR shown in FIG. 2. The signal S3 is a recording/playback signal output from the interface of the tape recorder, and normally a buzzer sound is output from the buzzer BUZ.

しかし、Ilo PORTがら出力される信号8.によ
りANDゲートが開閉制御され、音の発生を禁止するこ
とができる。第2図のRAM内にはフラグFEがあり、
Ilo PORT内にはフラグFBのセット、リセット
状態に追従して状態が反転するピッ)FBIが設けられ
ており、このFBIの状態出力として上記信号Soが出
力される。
However, the signal 8. output from Ilo PORT. The AND gate is controlled to open and close, and the generation of sound can be prohibited. There is a flag FE in the RAM in Figure 2.
Inside the Ilo PORT, there is provided an FBI whose state is inverted in accordance with the set and reset state of the flag FB, and the signal So mentioned above is output as the state output of this FBI.

本発明における擬音発生命令に関する語は、rBBEP
、 形式1、形式2、形式3」から構成され名。この形
式1は擬音の回数を指定する。形式2は擬音の周波数を
指定する。形式3は形式2の周波数の1回の擬音の長さ
を指定する。
In the present invention, words related to onomatopoeic generation commands are rBBEP
, Format 1, Format 2, Format 3". This format 1 specifies the number of onomatopoeias. Format 2 specifies the frequency of onomatopoeia. Format 3 specifies the length of one onomatopoeia of the frequency of Format 2.

形式2を省略すると、自動的に形式3±160に設定さ
れる。形式2及び形式3を省略すると自動的に形式2=
8に設定される。具体的には、約230 )−fz〜7
鴎の周波数を256 に分割して予め定められている0
00〜255のコードのいずれがか選ばれる。形式2=
8は例えば約4廐に相当する。
If format 2 is omitted, format 3 is automatically set to ±160. If format 2 and format 3 are omitted, format 2 =
It is set to 8. Specifically, about 230)-fz~7
The frequency of the seagull is divided into 256 and the predetermined 0
Any code from 00 to 255 is selected. Format 2 =
For example, 8 corresponds to about 4 ki.

また、rBEup 0FFJ  という命令をキー人力
により実行するか、或いはプログラムから実行すれば、
BEEP音の出力命令がスキップされ、更に、外部に接
続したデータレコーダとしてのテープレコーダの録音、
再生音が禁止される。
Also, if you execute the command rBEup 0FFJ manually or from a program,
The BEEP sound output command is skipped, and furthermore, the recording of the tape recorder as an externally connected data recorder is performed.
Playback sound is prohibited.

rBEEP ONJという命令をキー人力により実行す
るか、或いはプログラムから実行すれば、BEEP音の
出力命令が有効になり、更に外部に接続したテープレコ
ーダの録音、再生音出方の禁止が解除される。
If the command rBEEP ONJ is executed manually or from a program, the BEEP sound output command becomes valid, and furthermore, the inhibition of recording and reproduction sound output from an externally connected tape recorder is lifted.

第5図に本発明の擬音出方命令の実行の70−チャート
を示す。この図において、FBはBEEPONモードを
示すフラッグ、Cは形式1のバッファ、CFは形式2の
バッファ、cFlはカウンタ、CPは形式3のバッファ
、cPlはカランタテある。
FIG. 5 shows a 70-chart of the execution of the onomatopoeia instruction of the present invention. In this figure, FB is a flag indicating the BEEPON mode, C is a format 1 buffer, CF is a format 2 buffer, cFl is a counter, CP is a format 3 buffer, and cPl is a counter.

まず形式1がONであればmlにてF’Bをセラ)L、
、OFFであれは町にてFBをリセットする。形式1の
内容が、単なる数値或いは結果的に数値となる計算式又
は数値変数であり、しがもフラグFBが七7)状態であ
れば、形式1の内容がm3 にてバッフ7Qへ入力され
る。形式2か指定されていたなら、その内容がm4 に
てバッファOFへ人力され、指定されていなければm6
にて予め定められた値8が入力される。形式2が指定さ
れ且つ形式3が指定されていれば、m6 にてその値+
256がバッファCPへ入力される。形式3が指定され
ていなければm7にて予め定められた値416が入力さ
れる。
First, if format 1 is ON, select F'B in ml)L,
, If it is OFF, reset FB in town. If the content of format 1 is a simple numerical value or a calculation formula or numerical variable that results in a numerical value, and the flag FB is in the state 77), the content of format 1 is input to buffer 7Q in m3. Ru. If format 2 is specified, its contents are manually input to the buffer OF in m4, and if not specified, it is input to buffer OF in m6.
A predetermined value 8 is input at . If format 2 is specified and format 3 is specified, the value +
256 is input to buffer CP. If format 3 is not specified, a predetermined value 416 is input in m7.

以降、与えられた3つのパラメータに従って擬音の発生
を行なう。すなわち、nl及びn2  にてCPとCF
の値がそれぞれOPIとCPlのカウンタに待避され、
n4→n5−n6→n4のループにおけるOFlのカウ
ントダウン動作によりその値に応じた時間1H″レベル
が出力される。この信号は第2図に示したように、Il
o ボートから信号St として出力される。次に、”
T t n@にて”L”レベルを出力する準備がなされ
、n9−Fjto−’Fixt→n、のループにおける
OFMのカウントダウン動作により同時間だけ”L”レ
ベルが出力される。
Thereafter, onomatopoeic sounds are generated according to the three given parameters. That is, CP and CF at nl and n2
The values of are saved in the OPI and CPl counters, respectively,
Due to the countdown operation of OFl in the loop of n4→n5-n6→n4, a 1H'' level is output for a time corresponding to the value.As shown in FIG.
It is output from the o boat as a signal St. next,"
Preparations are made to output the "L" level at T t n@, and the "L" level is output for the same period of time due to the countdown operation of OFM in the loop of n9-Fjto-'Fixt→n.

このようにしてBEEPの最小単位波形である矩形波が
出力される。この矩形波は、n 12−n l3−n2
のプログラムを繰返すことによりCPの値だけ連続する
。FJ14の時間待ちは第6図のTで示す時間、音を出
さないようにするためのものである。このように矩形波
を02回繰返し時間T休止する信号発生のプログラムは
”lli→ガロからnlに戻って繰返され、この繰返し
がC回実行されたのち、プログラムが終了する。
In this way, a rectangular wave, which is the minimum unit waveform of BEEP, is output. This square wave is n 12-n l3-n2
By repeating the program, only the value of CP is continuous. The FJ14 wait time is for not making any sound for the time indicated by T in FIG. In this way, the program for generating a signal in which the rectangular wave is repeated 02 times and paused for a time T is repeated from "lli→Garo" to "nl", and after this repetition has been executed C times, the program ends.

本発明によれば、プログラムにより擬音の発生の有無9
発生時間、!#返し回数を任意に指定することができる
ので、プログラム可能な電子計算機の機能を多様化する
ことができる。
According to the present invention, whether or not an onomatopoeia occurs depending on the program 9
Occurrence time! # Since the number of returns can be specified arbitrarily, the functions of the programmable computer can be diversified.

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

第1図は本発明実施例の外観正面図、第2図は本発明実
施例のシステム全体を示すブロック図、第3図は第2図
のMPUの内部構成を示すブロック図、第4図は第2図
のブザー駆動回路DRの具体例を示す回路図、第5図は
本発明の擬音発生に関する命令実行のプログラムを示す
フローチャート、第6図は本発明実施例による擬音の波
形図でである。 1・・・表示部 2・・・文字キー 6・・・数字キー BUZ・・・擬音発生器(ブザー) BEEF・・・擬音命令 C・・・擬音の繰返し回数を記憶するバッファOF・・
・擬音の周波数を記憶するバッファCP・・・擬音の1
回の持続時間を記憶するバッファ
FIG. 1 is an external front view of an embodiment of the present invention, FIG. 2 is a block diagram showing the entire system of the embodiment of the present invention, FIG. 3 is a block diagram showing the internal configuration of the MPU shown in FIG. 2, and FIG. FIG. 2 is a circuit diagram showing a specific example of the buzzer drive circuit DR, FIG. 5 is a flowchart showing a command execution program for generating onomatopoeia of the present invention, and FIG. 6 is a waveform diagram of onomatopoeia according to an embodiment of the present invention. . 1...Display section 2...Character key 6...Numeric key BUZ...Onomatopoeia generator (buzzer) BEEF...Onomatopoeic command C...Buffer OF for storing the number of onomatopoeic repetitions...
・Buffer CP that stores onomatopoeic frequencies...Onomatopoeic 1
buffer that remembers the duration of times

Claims (1)

【特許請求の範囲】[Claims] (1)入力部と出力部と擬音発生器とプログラムを記憶
するメモリーを備えたプログラム可能な電子式計算機に
おいて、擬音の繰返し回数、擬音の発生時間等の擬音の
出力状態を、プログラム中の擬音発生命令と関連して上
記入力部により指定できるよう構成されたことを特徴と
する電子式計算機。
(1) In a programmable electronic calculator equipped with an input section, an output section, an onomatopoeia generator, and a memory for storing programs, the output status of onomatopoeia, such as the number of onomatopoeic repetitions and the time of onomatopoeic occurrence, can be determined by the onomatopoeia in the program. An electronic calculator characterized in that the electronic calculator is configured to be able to be specified by the input section in relation to a generated instruction.
JP18711581A 1981-11-20 1981-11-20 Electronic calculator Pending JPS5887643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18711581A JPS5887643A (en) 1981-11-20 1981-11-20 Electronic calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18711581A JPS5887643A (en) 1981-11-20 1981-11-20 Electronic calculator

Publications (1)

Publication Number Publication Date
JPS5887643A true JPS5887643A (en) 1983-05-25

Family

ID=16200362

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18711581A Pending JPS5887643A (en) 1981-11-20 1981-11-20 Electronic calculator

Country Status (1)

Country Link
JP (1) JPS5887643A (en)

Similar Documents

Publication Publication Date Title
JPS5990133A (en) Direct memory access data transfer unit
JPS5887643A (en) Electronic calculator
JP2002152020A (en) Pulse signal generator
JPS60103424A (en) Initial setting system
JPS58192154A (en) Memory device having automatic data processing function
JPH10254425A (en) Timing adjustment circuit
JPH01260517A (en) Microcomputer
JP2687986B2 (en) Display device
JPS6313192B2 (en)
JP2642566B2 (en) System controller clock regeneration circuit
JPS5870350A (en) Integrated circuit for speech synthesizer
US4468133A (en) Electronic timepiece
JPH04255028A (en) Microprocessor
JPH0798644A (en) Character display data write device
JPH0319578B2 (en)
JPS57199071A (en) Memorandum device
JPS6026236B2 (en) Display control method
JPS6336529B2 (en)
JPS5538668A (en) Memory unit
JPS58181154A (en) Microprogram tracing device
JPS6044679B2 (en) Speech synthesis control device
KR940006816B1 (en) Circuit for enhancement of processing speed for plc system
JPS5876929A (en) Key input control system for audio equipment
JPS5890262A (en) Electronic device
JPH023219B2 (en)