JPS639267B2 - - Google Patents
Info
- Publication number
- JPS639267B2 JPS639267B2 JP1869979A JP1869979A JPS639267B2 JP S639267 B2 JPS639267 B2 JP S639267B2 JP 1869979 A JP1869979 A JP 1869979A JP 1869979 A JP1869979 A JP 1869979A JP S639267 B2 JPS639267 B2 JP S639267B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- bit
- bits
- section
- address
- 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 10
- 230000008878 coupling Effects 0.000 claims description 6
- 238000010168 coupling process Methods 0.000 claims description 6
- 238000005859 coupling reaction Methods 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 101100325756 Arabidopsis thaliana BAM5 gene Proteins 0.000 description 1
- 101150046378 RAM1 gene Proteins 0.000 description 1
- 101100476489 Rattus norvegicus Slc20a2 gene Proteins 0.000 description 1
Landscapes
- Communication Control (AREA)
- Selective Calling Equipment (AREA)
Description
【発明の詳細な説明】
本発明は遠隔制御装置に使用される表示系のビ
ツトデータを処理するデータ処理装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data processing device for processing bit data of a display system used in a remote control device.
遠隔制御装置に使用される表示系のビツトデー
タの伝送フオーマツトは第1図に示すように構成
されている。第1図の伝送フオーマツトは、長短
符号方式により符号0、1、2、3……n−2ま
でがON/OFFの表示データ、n−1がパリテイ
ビツト、nはリセツトビツトを表わしている。 The bit data transmission format of the display system used in the remote control device is constructed as shown in FIG. In the transmission format shown in FIG. 1, codes 0, 1, 2, 3, .
上記第1図のnビツトのデータはシリアルに連
続されて送信されてくるため、前記データをビツ
ト単位あるいは1フレーム(nビツト)単位でマ
イクロプロセツサ用CPU(以下μCPUと称す)を
用いて処理させようとすると次のような欠点が生
じる。上記μCPUは普通8〜16ビツトのデータ処
理用に製造されているため、第1図のようなnビ
ツトのデータが8〜16ビツトをオーバーする場合
並列処理するにはCPUの性能上、この処理を行
なうことは出来ない。又、シリアル転送されてく
るデータを1ビツト単位で処理しようとすると処
理時間(オーバーヘツド)が掛り過ぎて他の処理
ができないため大変効率が悪くなる。 Since the n-bit data shown in Figure 1 above is serially transmitted, the data is processed in units of bits or in units of 1 frame (n bits) using a microprocessor CPU (hereinafter referred to as μCPU). If you try to do this, the following drawbacks will occur: The μCPU mentioned above is usually manufactured for processing 8-16 bit data, so when n-bit data exceeds 8-16 bits as shown in Figure 1, it is difficult to perform parallel processing due to the performance of the CPU. It is not possible to do this. Furthermore, if serially transferred data is processed bit by bit, the processing time (overhead) will be too long and other processing will not be possible, resulting in a very poor efficiency.
本発明は上記事情に鑑みてなされたもので、
μCPUの処理に適するように複数ビツトのデータ
を所定ビツト数に分割させて処理させるようにし
たデータ処理装置を提供することを目的とする。 The present invention was made in view of the above circumstances, and
It is an object of the present invention to provide a data processing device that divides data of a plurality of bits into a predetermined number of bits and processes them so as to be suitable for processing by a μCPU.
以下、本発明を第2図に基づいて詳細に説明す
る。 Hereinafter, the present invention will be explained in detail based on FIG. 2.
第2図において、1はクロツク発生部で、クロ
ツクを符号検出部2に出力する。符号検出部2
は、クロツク発生部1からのクロツクに同期し
て、1ビツトのデータを検出するとともに、カウ
ント信号をビツトカウンタ3に出力して、ビツト
カウンタ3を1個インクリメントする。また、符
号検出部2は、入力したビツトデータを符号判定
部11に出力する。ビツトカウンタ3は、予め
CPUの処理能力に合わせて設定値を記憶してお
り、符号検出部2からのカウント信号を入力する
毎にカウントしていく。そして、このカウント値
と設定値とを比較し、カウント値が設定値と同数
になると、オーバーフロー信号をアドレスカウン
タ4と割込タイミング作成部5に夫々出力する。
アドレスカウンタ4は、オーバーフロー信号によ
り1個インクリメントし、このデータを割込タイ
ミング作成部5とアドレスデータ作成部6に出力
する。割込タイミング作成部4は、ビツトカウン
タ3とアドレスカウンタ4からの信号を条件に割
込み信号を割込制御部8に出力する。アドレスデ
ータ作成部6は、アドレスカウンタ4からのカウ
ント値を基にデータを格納するアドレスを作成し
て、データ結合部7に出力する。符号判定部11
は、符号検出部2からのビツトデータが“ON”
であるか“OFF”であるかの判定をし、短いパ
ルスを“ON”、長いパルスを“OFF”としてこ
の“ON”“OFF”の結果を直列−並列変換部1
2に出力する。直列−並列変換部12、符号判定
部11からの“ON”/“OFF”の信号を並列に
変換する。13は、メモリで直列−並列変換部1
2の変換したデータを取り込み記憶するととも
に、アドレスデータ作成部6からの信号により記
憶しているデータをデータ結合部7に出力する。
データ結合部7は、アドレスデータ作成部6から
のワード・アドレスとメモリ13からのデータと
を入力して“ワード・アドレス”と“データ”と
を結合した状態で記憶している。そして、デバイ
スセレクタ14からの信号で“ワード・アドレ
ス”と“データ”とをバス15に出力する。この
データ結合部7は、16ビツトのメモリからなり、
例えば“アドレス”を6ビツト、“データ”を10
ビツトとするように適時決められるようになつて
いる。そしてμCPU9が、8ビツトの処理能力の
ものであるとするならば、16ビツトを上位8ビツ
トと下位8ビツトに分け、デバイスセレクタ14
の信号に基づいて、上位8ビツトまたは下位8ビ
ツトのデータをバス15に出力する。もし、
μCPU9が、16ビツト処理可能なものであれば、
8ビツト毎の2回に分ける必要がないのは当然で
ある。割込制御部8は、割込タイミング作成部5
からの割込み信号によりμCPU9への割込みをか
ける。μCPU9は、この割込みによりROM10
に記憶しているデータ入力プログラムを動作させ
る。データ入力プログラムは、μCPU9が8ビツ
トの処理能力のものとした場合に、デバイスセレ
クタ14に、上位8ビツトを出力させるための信
号を出力し、データ結合部7の上位8ビツトをバ
ス15上に出力して上位8ビツトのデータを記憶
部(以下RAMと略称する)16に記憶し、再度
デバイスセレクタ14に下位8ビツトを出力させ
るための信号を出力して、下位8ビツトをバス1
5上に出力して下位8ビツトのデータをRAM1
6に記憶する。 In FIG. 2, reference numeral 1 denotes a clock generating section which outputs a clock to the code detecting section 2. In FIG. Code detection section 2
detects one bit of data in synchronization with the clock from the clock generator 1, outputs a count signal to the bit counter 3, and increments the bit counter 3 by one. Further, the code detection unit 2 outputs the input bit data to the code determination unit 11. The bit counter 3 is
Setting values are stored according to the processing capacity of the CPU, and each time the count signal from the code detection section 2 is input, the count is performed. Then, this count value and a set value are compared, and when the count value becomes the same number as the set value, an overflow signal is output to the address counter 4 and the interrupt timing generator 5, respectively.
The address counter 4 increments by one in response to the overflow signal, and outputs this data to the interrupt timing generator 5 and the address data generator 6. The interrupt timing generator 4 outputs an interrupt signal to the interrupt controller 8 on the basis of the signals from the bit counter 3 and address counter 4. The address data creation section 6 creates an address for storing data based on the count value from the address counter 4, and outputs it to the data combination section 7. Sign determination unit 11
The bit data from the code detection unit 2 is “ON”.
The short pulse is set as "ON" and the long pulse is set as "OFF", and the results of this "ON" and "OFF" are converted into serial-parallel converter 1.
Output to 2. The "ON"/"OFF" signals from the serial-to-parallel conversion section 12 and the sign determination section 11 are converted into parallel signals. 13 is a memory and a serial-parallel converter 1
The converted data of step 2 is taken in and stored, and the stored data is output to the data combination section 7 in response to a signal from the address data creation section 6.
The data combination section 7 receives the word address from the address data creation section 6 and the data from the memory 13, and stores the "word address" and "data" in a combined state. Then, the “word address” and “data” are output to the bus 15 using a signal from the device selector 14 . This data coupling section 7 consists of a 16-bit memory,
For example, “address” is 6 bits and “data” is 10 bits.
It is now possible to decide in a timely manner, such as with a bit. If the μCPU 9 has an 8-bit processing capacity, the 16 bits are divided into the upper 8 bits and the lower 8 bits, and the device selector 14
Based on the signal, the upper 8 bits or lower 8 bits of data are output to the bus 15. if,
If μCPU9 is capable of 16-bit processing,
Naturally, there is no need to divide the data into two parts of 8 bits each. The interrupt control unit 8 includes an interrupt timing generation unit 5
Interrupts the μCPU 9 using an interrupt signal from the CPU. μCPU9 uses this interrupt to
Run the data input program stored in the . When the μCPU 9 has an 8-bit processing capacity, the data input program outputs a signal to the device selector 14 to output the upper 8 bits, and sends the upper 8 bits of the data coupling section 7 onto the bus 15. The data of the upper 8 bits is stored in the storage unit (hereinafter referred to as RAM) 16, and a signal is output again to cause the device selector 14 to output the lower 8 bits, and the lower 8 bits are transferred to the bus 1.
5 and output the lower 8 bit data to RAM1.
6.
以上のように構成されたものにおいて、次に動
作を説明する。 The operation of the device configured as described above will be explained next.
今、第1図に示すような、長短符号方式の表示
データ40ビツトを10ビツト毎に分割してμCPU9
に取り込むものとする。ビツトカウンタ3には、
“10”を設定する。符号検出部2は、クロツクに
同期してビツトデータを1ビツト入力する。そし
てカウント信号をビツトカウンタに出力してビツ
トカウンタ3を1個インクリメントするととも
に、1ビツトのデータを符号判定部11に出力し
て、“ON”か“OFF”かの判定を行ない、結果
を直列−並列変換部12に出力する。このように
して、表示データの10ビツト目が符号検出部2に
入力すると、ビツトカウンタ3、設定値と同数で
あるので、オーバーフロー信号を、アドレスカウ
ンタ4と割込タイミング作成部5に出力する。と
同時に、ビツトカウンタ3のカウント値を“0”
にする。アドレスカウンタ4は、カウンタを1個
インクリメントしたデータを割込タイミング作成
部5とアドレスデータ作成部6に出力する。割込
タイミング作成部5は、オーバーフロー信号とア
ドレスカウンタ4からの信号とを入力することに
より割込制御部8へ出力する。そして割込制御部
8は、μCPU9へ割込みをかけて、データ入力プ
ログラムを動作させる。 Now, as shown in Figure 1, the 40-bit long/short code display data is divided into 10-bit units and sent to the μCPU 9.
shall be incorporated into the Bit counter 3 has
Set “10”. The code detection section 2 inputs one bit of bit data in synchronization with the clock. Then, the count signal is output to the bit counter to increment the bit counter 3 by one, and 1-bit data is output to the sign determination section 11 to determine whether it is "ON" or "OFF", and the result is serialized. - Output to the parallel converter 12. In this way, when the 10th bit of the display data is input to the code detection section 2, the bit counter 3 outputs an overflow signal to the address counter 4 and the interrupt timing generation section 5 since the number is the same as the set value. At the same time, set the count value of bit counter 3 to “0”.
Make it. The address counter 4 increments the counter by one and outputs the data to the interrupt timing generator 5 and the address data generator 6. The interrupt timing generator 5 receives the overflow signal and the signal from the address counter 4 and outputs the signal to the interrupt controller 8. The interrupt control unit 8 then issues an interrupt to the μCPU 9 to run the data input program.
一方、アドレスデータ作成部6は、アドレスカ
ウンタ4からのデータを基に、6ビツトのワー
ド・アドレスを作成して、データ結合部7に出力
するとともに、信号をメモリ13に出力してメモ
リ13に記憶している10ビツトの表示データをデ
ータ結合部7に出力させる。 On the other hand, the address data creation section 6 creates a 6-bit word address based on the data from the address counter 4 and outputs it to the data combination section 7, and also outputs a signal to the memory 13. The stored 10-bit display data is output to the data coupling section 7.
データ入力プログラムは、デバイスセレクタ1
4に信号を2回出力して、上位8ビツトと下位8
ビツトのデータを取り込みRAM16に格納す
る。このようにして、第1図に示す40ビツトの表
示データのうちの10ビツトを収納し再度同様にし
て次の10ビツトを格納し、最後に、40ビツト全部
をRAM16に格納する。 The data input program is device selector 1
4 outputs the signal twice, upper 8 bits and lower 8 bits.
The bit data is taken in and stored in the RAM 16. In this way, 10 bits of the 40 bits of display data shown in FIG.
この説明で、40ビツトのデータを10ビツト毎に
分割し、割り切れる数としたが、端数のでた場合
には、第1図のnのように、リセツト信号を用い
て、“ON”/“OFF”符号より長いパルスとす
ることにより、このパルスをターミネートとして
符号判定部11で判定し割込みを発生させて、同
様の処理を行なえば良い。 In this explanation, the 40-bit data was divided into 10-bit units to make it a divisible number, but if you get a fraction, use the reset signal to turn it "ON"/"OFF" as shown in Figure 1. ``By setting the pulse to be longer than the code, the code determination unit 11 determines this pulse as the terminator, generates an interrupt, and performs the same process.
以上述べたように本発明によれば、表示系のビ
ツトデータを所要数に分割し、分割された前記ビ
ツトデータにワード・アドレスを振り分けるよう
にしたので、マイクロプロセツサの処理能力に応
じてデータ処理させることができ、マイクロプロ
セツサを効率良く使用できるとともにマイクロプ
ロセツサを複数個使用して種々の制御を行なう場
合のマイクロプロセツサの処理を主コンピユータ
で行なうときにも1ケのプログラムの開発で可能
となる等の経済的にも有利となる等の効果があ
る。 As described above, according to the present invention, display system bit data is divided into the required number of bit data and word addresses are assigned to the divided bit data. Development of a single program that allows the microprocessor to be used efficiently, and also allows the main computer to perform the microprocessor processing when multiple microprocessors are used to perform various controls. This has the advantage of being economically advantageous, such as making it possible to do so.
第1図は遠隔制御装置の表示系ビツトデータの
伝送フオーマツトの説明図、第2図は本発明の一
実施例を示すブロツク図である。
1……クロツク発生部、2……符号検出部、3
……ビツトカウンタ、4……アドレスカウンタ、
5……割込タイミング作成部、6……アドレスデ
ータ作成部、7……データ結合部、8……割込制
御部、9……CPU、10……ROM、11……符
号判定部、12……直列−並列変換部、13……
メモリー、14……デバイスセレクタ、15……
CPUバス、16……記憶部。
FIG. 1 is an explanatory diagram of a transmission format of display system bit data of a remote control device, and FIG. 2 is a block diagram showing an embodiment of the present invention. 1...Clock generation section, 2...Sign detection section, 3
...bit counter, 4...address counter,
5... Interrupt timing creation section, 6... Address data creation section, 7... Data coupling section, 8... Interrupt control section, 9... CPU, 10... ROM, 11... Sign determination section, 12 ...Serial-parallel conversion section, 13...
Memory, 14...Device selector, 15...
CPU bus, 16... storage section.
Claims (1)
いて処理する装置において、伝送ビツトデータを
検出する符号検出部と、この符号検出部から出力
するビツトデータを並列に変換してメモリに記憶
する直列一並列変換部と、予め設定したビツトの
数を前記符号検出部が検出したときに、割込信号
を出力するとともに、検出したビツトの数に順位
付けを行うワードアドレスを作成し、そのワー
ド・アドレスと前記メモリに記憶しているデータ
とをデータ結合部に記憶する手段と、前記割込み
信号によりデータ結合部のデータを記憶部に格納
する手段とを備えたことを特徴とするデータ処理
装置。1. In a device that processes transmitted bit data using a microprocessor, there is a code detection section that detects the transmitted bit data, and a serial-parallel conversion that converts the bit data output from the code detection section into parallel data and stores it in memory. When the code detection section detects a preset number of bits, it outputs an interrupt signal, creates a word address for ranking the detected number of bits, and compares that word address with the number of bits set in advance. A data processing device comprising: means for storing data stored in a memory in a data coupling section; and means for storing data in the data coupling section in a storage section in response to the interrupt signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1869979A JPS55110335A (en) | 1979-02-20 | 1979-02-20 | Data processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1869979A JPS55110335A (en) | 1979-02-20 | 1979-02-20 | Data processor |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS55110335A JPS55110335A (en) | 1980-08-25 |
JPS639267B2 true JPS639267B2 (en) | 1988-02-26 |
Family
ID=11978871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1869979A Granted JPS55110335A (en) | 1979-02-20 | 1979-02-20 | Data processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS55110335A (en) |
-
1979
- 1979-02-20 JP JP1869979A patent/JPS55110335A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS55110335A (en) | 1980-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4213176A (en) | System and method for increasing the output data throughput of a computer | |
CA1233280A (en) | System for displaying alphanumeric messages | |
JPS639267B2 (en) | ||
EP0513829A2 (en) | Fuzzy reasoning processor and method, and rule setting apparatus and method | |
JPS5833969B2 (en) | Data transfer method | |
JPH09305532A (en) | Method and device for transferring data | |
JPH0254719B2 (en) | ||
JPS62259157A (en) | Interruption system | |
JPS60247764A (en) | Memory address control system | |
JPS6111801Y2 (en) | ||
JP3164445B2 (en) | Decimal operation instruction processor | |
JPS59216227A (en) | Data transfer system | |
JPH10315548A (en) | Apparatus and method for processing data and, printing apparatus | |
JP3449156B2 (en) | Module device | |
JPS5930298B2 (en) | Data transmission method | |
JPS62151028A (en) | Data converting device | |
JPH07162479A (en) | Device and method for communication control | |
JPH0536942U (en) | Error detection and correction code generation circuit | |
JPH02189667A (en) | Control circuit for microcomputer | |
JPS6341075B2 (en) | ||
JPS6442758A (en) | Input and output control system | |
JPS6275862A (en) | Data processor | |
JPS6327729B2 (en) | ||
JP2001136186A (en) | Multiple communication equipment | |
JPS6240567A (en) | Interruption managing device |