JPS60183626A - Information processing unit - Google Patents

Information processing unit

Info

Publication number
JPS60183626A
JPS60183626A JP4000784A JP4000784A JPS60183626A JP S60183626 A JPS60183626 A JP S60183626A JP 4000784 A JP4000784 A JP 4000784A JP 4000784 A JP4000784 A JP 4000784A JP S60183626 A JPS60183626 A JP S60183626A
Authority
JP
Japan
Prior art keywords
processing
conversion
data
program
execution
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.)
Granted
Application number
JP4000784A
Other languages
Japanese (ja)
Other versions
JPH0623947B2 (en
Inventor
Yukio Maehashi
幸男 前橋
Hiroko Shinohara
篠原 浩子
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric Co 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP59040007A priority Critical patent/JPH0623947B2/en
Priority to EP85102394A priority patent/EP0153764B1/en
Priority to DE85102394T priority patent/DE3587643T2/en
Publication of JPS60183626A publication Critical patent/JPS60183626A/en
Priority to US07/287,622 priority patent/US5036458A/en
Priority to US07/691,284 priority patent/US5159688A/en
Priority to US07/691,297 priority patent/US5163150A/en
Publication of JPH0623947B2 publication Critical patent/JPH0623947B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To obtain a data processing unit with less occupied area without decreasing the CPU processing capability by selecting the conventional software interruption processing and an adaptor for automatic transfer processing when an A/D conversion end signal is generated. CONSTITUTION:When an I/O request attended with the A/D conversion end in an A/D converter 400 is generated, a CPU510 stops the program processing under execution and the CPU510 itself transfers data automatically while holding various states and data at their locations. When the automatic data transfer is finished, the CPU510 executes again the execution of the stored program without using overhead. Thus, the software sees no intermission of the program, as if the automatic data transfer processing of the A/D conversion data were inserted automatically during the program processing. Thus, the frequency of generation of A/D conversion interruption attended with the software is minimized and the load of the CPU is relieved for the share.

Description

【発明の詳細な説明】 本発明は、A/D変換器を内蔵する情報処理装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an information processing device incorporating an A/D converter.

近年、LSI技術社目覚しい発展を遂げ、アナログ処理
技術に対しディジタル処理技術性奔流の如く進歩してい
る。このような状況の中で、A/D変換器は計測制御器
、測定器1通信1画像処理。
In recent years, LSI technology has made remarkable progress, and digital processing technology is progressing like a torrent compared to analog processing technology. Under these circumstances, the A/D converter is a measurement controller, measuring instrument 1 communication 1 image processing.

音声処理、テレビ、オーディオなどのアナログ信号の処
理分野とディジタル技術とを結合する際必要とされ、と
くに光′敏、熱(温度)、圧力、音t。
It is needed when combining analog signal processing fields such as audio processing, television, and audio with digital technology, especially light sensitivity, heat (temperature), pressure, and sound.

流量なとのアナログ量をディジタル缶に変換する技術と
して必要不可欠であり、かつ高性能であることがめられ
ている。
It is essential as a technology for converting analog quantities such as flow rate into digital cans, and is expected to have high performance.

一方、LSI技術の進歩は、中央処理装置(以下%CP
Uという)、メモリー、汎用入出力ボートを含む通常の
マイクロコンピュータの中に、さらにクロック発生回路
、タイマ/カウンタ機能。
On the other hand, progress in LSI technology has led to central processing units (hereinafter referred to as %CP)
A normal microcomputer includes a memory, a general-purpose input/output board (U), a clock generation circuit, and a timer/counter function.

DMA、シリアルインタフェースなどと同様にA/D変
換器を組み込み、これらを同一半導体基盤上に搭載する
という高集釉化をもたらしている。
It incorporates an A/D converter as well as DMA, serial interface, etc., and mounts these on the same semiconductor substrate, resulting in high concentration.

このような背景における従来のA/D変換器のアナログ
データ処理の例を第1図のブロック図全参照して以下に
述べる。
An example of analog data processing of a conventional A/D converter in this background will be described below with full reference to the block diagram of FIG.

A/D変換器100は、アナログ入力101−1〜10
1−8.マルチプレクサ102%チャネル指定ピッ)1
03−1と、A/D変換完了フラグ、103−2とを有
するA/Dチャネル・モード・レジスタ103、サンプ
ル・ホールド回路104゜ラダー抵抗回路網105、電
圧コンパレータ10(i、遂次比較1/ジスタ(以下、
SARという)107゜コントローラ108.および変
換結果レジスタ(以T、CRRという)109を含み、
逐次近似法により例えば8ビツトA/D変換値金得るも
のである。
The A/D converter 100 has analog inputs 101-1 to 101-10.
1-8. Multiplexer 102% channel specification pin) 1
A/D channel mode register 103 with 03-1 and A/D conversion completion flag 103-2, sample and hold circuit 104, ladder resistor network 105, voltage comparator 10 (i, sequential comparison 1 /Jista (hereinafter referred to as
(referred to as SAR) 107° controller 108. and a conversion result register (hereinafter referred to as T, CRR) 109,
For example, an 8-bit A/D conversion value is obtained by successive approximation.

まず、CPtJはA/Dチャネル・モード・レジスタ1
03のチャネル指定ビット103−1に値全書き込む。
First, CPtJ is A/D channel mode register 1
Write the entire value to the channel designation bit 103-1 of 03.

それと同時に、A/D変換児了フラグ103−2はリセ
ットされる。A/Dチャネル・モード寺レジスタ103
の指定により選択されたアナログ人力101−1i、サ
ンプル中ホールド回路104においてザンブリングされ
、その出力が電圧コンパレータ106の一方の入力とな
る。電圧コンパレータ106U、アナログ入力とラダー
抵抗し1路網105のタップデコーダによって弥次選択
された電圧タップとの差をもとに、対応するディジタル
データを上位ビットから5AR109にセットする。す
なわち、電圧コンパレータ106における1回の比較で
ディジタルデータの1ビツトを設定し、この比較操作金
繰り返すことにより1回のアナログ人力101−1に対
して8ビツトのA/D変換値が5AR109に設定され
る。その4若果はCRR109にラッチ入力され、同u
?IVcA/Dチャネル・モード・レジスタ103のA
/D変換完了フラグ103−2 がセットされる。cP
UはA/D変換実行指令後SA/D変換器100がデー
タ変換中はA/D変候完了フラグt03−2に常にチェ
ックし、A/D変換完了フラグがセットされるのを待た
なければならない。A/D変換完了フラグがセットされ
たのを確認した時点で、cPUl−j、cRR109に
保持されたA/D変iれ値をh7”れみ出し、メモリへ
格納する処理を行なう。
At the same time, the A/D conversion completion flag 103-2 is reset. A/D channel mode register 103
The analog input signal 101-1i selected according to the designation is sambling in the sample hold circuit 104, and its output becomes one input of the voltage comparator 106. Based on the difference between the analog input and the voltage tap selected by the tap decoder of the ladder resistor 105, the voltage comparator 106U sets the corresponding digital data in the 5AR 109 from the upper bit. That is, one comparison in the voltage comparator 106 sets one bit of digital data, and by repeating this comparison operation, an 8-bit A/D conversion value is set in 5AR 109 for one analog human input 101-1. be done. The four young fruits are latched into CRR109, and
? A of IVcA/D channel mode register 103
/D conversion completion flag 103-2 is set. cP
U must always check the A/D conversion completion flag t03-2 while the SA/D converter 100 is converting data after receiving the A/D conversion execution command and wait for the A/D conversion completion flag to be set. No. When it is confirmed that the A/D conversion completion flag is set, the A/D change value h7'' held in cPUl-j and cRR 109 is read out and stored in the memory.

このようVC,従来のA/D変換器内蔵マイクロコンピ
ュータは、A/D変換中は常に変換終了を監視していな
ければならず、CPUが本来実行すべきメイン処理がそ
の間行えないため、実行効率がきわめて悪かった。
Such VCs and conventional microcomputers with built-in A/D converters must constantly monitor the completion of conversion during A/D conversion, and the main processing that the CPU should normally perform cannot be performed during that time, resulting in less efficient execution. was extremely bad.

上記欠点を改善したものとして変換値設定完了フラグ1
03−2を用いずに、CRR109に変換値が格納され
ると同時に、CPUに対し割込みをを発生する方法があ
る。この方法について、第2図のブロック図及び第3図
のフローチャートを参照して説明する。マイクロコンピ
ュータ200は実行ff1s 201 、プログラムメ
モ1J202. データメモリ203 、A/D変換器
204.及びA2B割込み制御部206を含み、内部デ
ータバス205を介してそれぞれが相互に接続されてい
る。
Conversion value setting completion flag 1 as an improvement to the above drawbacks
There is a method of generating an interrupt to the CPU at the same time the converted value is stored in the CRR 109 without using 03-2. This method will be explained with reference to the block diagram of FIG. 2 and the flowchart of FIG. 3. The microcomputer 200 executes ff1s 201, program memo 1J202. Data memory 203, A/D converter 204. and an A2B interrupt control unit 206, each of which is interconnected via an internal data bus 205.

実行部201rrJ、、プログラムカウンタ(以下、P
Cという)201−1.プログラムステータスワード(
以下、pswという)201−2および汎用レジスタセ
ット201−3’を有し、プログラムメモリ202から
読み出された命令コードに基いてプログラム全実行し、
処理データはデータメモリ203に格納する。A/D変
換器204け1バイト分のCRR204−2’(z有り
、、7すl’入力204−1をA/D変換し、CRR2
04−2への格納が完了すると、変換完了信号210を
アクティブにし。
Execution unit 201rrJ, program counter (hereinafter referred to as P
C) 201-1. Program status word (
psw) 201-2 and a general-purpose register set 201-3', and executes the entire program based on the instruction code read from the program memory 202.
Processed data is stored in data memory 203. A/D converter 204 A/D converts 1 byte of CRR204-2' (with z, 7sl' input 204-1, CRR2
When the storage to 04-2 is completed, the conversion completion signal 210 is activated.

て、A2B割込み制御部206に変換が完了したこと全
通知する。これを受けて、A2B割込み制御部206は
割込み些求線211′ffニアクチイブにしてA2B割
込み要求発生を実行部201に)l’TI 7.(lし
、ぞれにより実行部201はA2B割込み処理を実行す
る。
Then, the A2B interrupt control unit 206 is notified that the conversion has been completed. In response to this, the A2B interrupt control unit 206 activates the interrupt request line 211'ff and instructs the execution unit 201 to generate an A2B interrupt request)l'TI7. (The execution unit 201 executes the A2B interrupt processing.

ここで、A2B割込みによるソフトウェア処狸手711
13 ’にフローチャート第3図を用いて述べる。この
ソフトウェア処理では、データメモリ203内に変換値
格納領域203−1が設定され、変換イID格納領域2
03−1を指定するアドレス情報および変換回数情ts
はデータメモリ203内の変換パラメータ退避領域20
3−2にあらかじめ設定されている。
Here, software processing 711 due to A2B interrupt
13' will be described using the flowchart in FIG. In this software processing, a conversion value storage area 203-1 is set in the data memory 203, and a conversion value ID storage area 203-1 is set in the data memory 203.
Address information specifying 03-1 and conversion number information ts
is the conversion parameter save area 20 in the data memory 203
It is preset to 3-2.

変換完了が通知されると、実行部201は変換割込み処
理を実行する。まず、それ壕での処理岡谷を保存してお
く為に、PC201−1,PSW201−2、汎用レジ
スタセラ)201−3の各内容k −u′?的にスタッ
ク領域203−3 として用意されている別の領域に退
避する。次に、変換パラメータ退避領域203−2から
変換値格納領域203−1のアドレスに読み出してポイ
ンタにロードする。その後、CRR204−2から変換
値全品、み出し、ポインタで指定された変換値格納領域
203−IK格納する。変(業回数が所定回数Vc達し
た数には、一連のデータ変換が完了したものとして変換
手順光子処理Aに分岐する。なお、所定回数の変換が終
了していない時は変換値格納領域203−1のアドレス
情報と変換回数データを更新して、変換パラメータ退避
領域203−2に返却する。その抜、スタック領域20
3−3に退避していたPC201−1、PSW 2 Q
 1−2 、汎用レジスフセット201−3の各内容を
元の場Rrに復帰して変換割込みサービスを完了する。
When notified of the completion of conversion, the execution unit 201 executes conversion interrupt processing. First, in order to preserve the processing Okaya in the trench, each content k -u'? It is then saved to another area prepared as the stack area 203-3. Next, the address is read from the conversion parameter save area 203-2 to the conversion value storage area 203-1 and loaded into the pointer. Thereafter, all converted values are extracted from the CRR 204-2 and stored in the converted value storage area 203-IK specified by the pointer. When the number of conversions reaches the predetermined number of times Vc, it is assumed that a series of data conversions have been completed and the process branches to the conversion procedure photon processing A. Note that when the predetermined number of conversions has not been completed, the conversion value storage area 203 -1's address information and conversion count data are updated and returned to the conversion parameter save area 203-2.
PC201-1, PSW 2 Q that was evacuated to 3-3
1-2, each content of the general register offset 201-3 is restored to the original field Rr, and the conversion interrupt service is completed.

以上説明した通り、従来のマイクロコンビー−タにおけ
る割り込みによるソフトウェア処理ではA/D変換値の
転送のほかに、C1)tJの割り込み処理pc、psw
、汎用レジスタ汎用レジスターシトレジスタへの退避、
かつそのスタックレジスタからの復帰、メインルーチン
への復帰等多くの処理(オーバーヘッド)が必をである
。このオーバーヘッドの割り合いは、全割り込みサービ
スルーチンの相当量全占めており、この方法もやはりメ
イン処理に^11当てることができる実行時間金著しく
減少させ、CPUの処理能力全低下させるという欠点を
−(jしている。
As explained above, in the software processing by interrupts in the conventional microcontroller, in addition to transferring A/D conversion values, C1) tJ interrupt processing pc, psw
, save general-purpose register to general-purpose register seat register,
In addition, many processes (overhead) such as returning from the stack register and returning to the main routine are necessary. This overhead occupies a considerable amount of all interrupt service routines, and this method also has the drawback of significantly reducing the amount of execution time that can be devoted to main processing, and reducing the overall processing capacity of the CPU. (I'm doing j.

さらVc、CRR109と同等のレジスタヲ初数個並列
に内蔵し、それら全てのCRRにA/D変換値が格納さ
れた時点で割り込み要求を出すというバッファリング手
法を用いることも考えられる。
Furthermore, it is conceivable to use a buffering method in which the first few registers equivalent to the Vc and CRR 109 are built in parallel, and an interrupt request is issued when A/D converted values are stored in all of these CRRs.

これはCRRの数′ff:n個に増すことにより1割ジ
込み発生回数は−に減少するため1割り込みに付うオー
バーヘッドの割9合いは減少し、CPUの実行効率向上
という点ではイl〃−かに改善がなされているわけであ
るが、しかしバッファとして設けるC RRの数ケ増加
させることはすなわちマイクロコンビクーータのチップ
面)rij’r:増大させるという欠点につながる。
This means that by increasing the number of CRRs to 'ff:n, the number of interrupt occurrences per interrupt decreases to -9, which reduces the proportion of overhead associated with one interrupt, which is an advantage in terms of improving CPU execution efficiency. Although this is a significant improvement, increasing the number of CRRs provided as buffers leads to the disadvantage of increasing the chip surface of the microcombicouter.

以」二のように、従来のA / D変換器を内蔵したデ
ータ処理装伊Aに、CPtJの賀」11が多(CPU処
t!1fiit力が低下してし咬うという欠点もしくは
、)・−ドウェアのii+iで経済的でないという欠点
のいづれか牙かかえている。
As shown in Part 2, the data processing equipment A with a built-in conventional A/D converter has many problems with CPtJ (or the disadvantage of lowering the CPU processing power). - It suffers from one of the disadvantages of being uneconomical with the hardware II+I.

本発明の目的はCPU処理能力奮低下することなく、か
つハードウェアによる占有i<ri tJjの少ないA
/D変換処坤機能を有するデータ処理装置を提供するこ
とにある。
The purpose of the present invention is to reduce A without deteriorating the CPU processing capacity and with less hardware occupation i<ri tJj.
An object of the present invention is to provide a data processing device having a /D conversion processing function.

本発明は、A/D変換終了に伴い変換データと変IA光
子信号を発生するA / D変換部と1通常のプログラ
ム処理および前記変換光子信号に基づきデータ転送処理
全行う実行部(CPU)と、処理データ及びプログラム
全記憶するメモリ部と全備えた11′1報処理装置にお
いて、実行部は通常のプログラム処理時の途中の状態全
保持したままA/D変侯データの転送処理実行を可能と
するA/D変換データ処理制御手段全41iiiえ、A
/1)変動部が前記変換光子18号を発生した時、実行
部はA/1〕変換データ処理制御手段により制悼1の下
にフ1((常のプログラム処理を中断してA/D変換デ
ータの転送処理を実行することを特徴としている。
The present invention comprises an A/D converter that generates converted data and a variable IA photon signal upon completion of A/D conversion, and an execution unit (CPU) that performs all normal program processing and data transfer processing based on the converted photon signal. In the 11'1 information processing device, which is fully equipped with a memory section that stores all processing data and programs, the execution section can execute A/D change data transfer processing while retaining all intermediate states during normal program processing. A/D conversion data processing control means 41iii, A
/1) When the variable part generates the conversion photon No. 18, the execution part A/1] converts photon No. It is characterized by executing conversion data transfer processing.

本発明によればA/D変換完了のI10州求に基づく処
理、すなわちCRRとデータメモリ間のデータ転送処理
分プログラム処理(ソフトウェア)を介入せずに?Iう
ことができる。このデータ11tパ送(以下、自動デー
タ転送処理11という)はA / D変換光子に伴うI
10要求が発生すると、CPUが実行中のプログラム処
理を停止し、その時のCPUの神々の状態(以下、ステ
ータスという)及びデータ全そのままその場所に保ト5
したまま、CPU自身が自動データ転送処理全行う。従
って%通常のグロダラム火行時に用いる命令実行制御の
ためのハードウェアケ有効に活用して、自動データ転送
処理用の特別のハードウェアを■またに付加することな
く処理することができる。CPUは自υ山データ転送処
坤金終了すると、i−1述したオーバーヘッドをイj;
すことなくイ♀描°していたステータス及びデータを再
起重jj Lで中断していたプログラムの吏行ケ再開続
行する。したがって、ソフトウェアからりプログラムの
中断が見えず、あたかもプログラム処理中に自ulb的
にA/D変邦データの自動データIi5、送処ア[1が
押入されたような形となる。この自動データ転送処理に
より、ソフトウェア処理?伴うAl1)変換完了割込み
の発生頻岐を極力少なくすることができ、その分CP 
TJ o)負4−1!全軽減することができる。−!た
。実際に使用ツーるA/D変rA jli’としては、
】巾′hl友回のザンフ゛リンクデータ奮演算によジ゛
+’均化したデータが用いられるため。
According to the present invention, processing based on the I10 state request for A/D conversion completion, that is, data transfer processing between the CRR and the data memory, can be performed without intervening program processing (software). I can. This data 11t transmission (hereinafter referred to as automatic data transfer processing 11) is carried out by I
10 When a request occurs, the CPU stops the program processing that is being executed, and keeps the state of the CPU at that time (hereinafter referred to as status) and all data in its place.5
The CPU itself performs all automatic data transfer processing. Therefore, it is possible to effectively utilize the hardware for controlling the instruction execution that is normally used when executing GLODARAM, and to perform processing without additionally adding special hardware for automatic data transfer processing. When the CPU completes the data transfer process, the overhead described in i-1 is calculated;
The status and data that were being drawn are restarted without interruption, and the execution of the program that was interrupted with L is resumed and continued. Therefore, the interruption of the program cannot be seen from the software, and it appears as if automatic data Ii5 and A[1 of the A/D transliteration data were automatically inserted during program processing. This automatic data transfer process allows software processing? Accompanying Al1) Frequency of conversion completion interrupts can be minimized, and CP
TJ o) Negative 4-1! It can be completely alleviated. -! Ta. As for the A/D variable rA jli' actually used,
] This is because the data that has been equalized by the Zanflink data calculation is used.

平均化したい数の一すンブルリングデータ全自動デーク
征、送処理で転送した抜をよ、これらのデータの十均化
処Jjij %、、従来の割込み方法で対処することが
でひる。
If you want to average the number of data you want to average, you can use the conventional interrupt method to handle the data you want to average.

第4図を用いて以下にこの機i)二葡実現する不発りj
iり一実hit例な駅り]する。A / D変換器40
0(’It。
Using Figure 4, we will explain below how this machine i) realizes two failures.
I'm going to hit the station]. A/D converter 40
0('It.

C1シ1.?400−2ヶ不し、I10璧求制御部40
1にA/I)変撓兄了信号400−3を出力する。A/
D変換データ処理制御部500は、I10要求制御部4
01.そこからのI10処理実行要求線401−1.I
10処理処理形態指定線401−2、及びCPU510
 の動作を制御するI10髪求受付は部402を有する
。一方、メモリ部は割込み処理プログラム等のプログラ
ムメモリ403およびA/D変換データ格納領域404
−1t有するデータメモリ404′fi−會む。さらに
CPU510は次に実行スるプログラムのアドレスを指
すPC405−1,算術論理演算機能を持つ算術論理演
tiユニット(以下、ALUという)206、CPU全
体の動作状態を示すPSW405−2、処理中のデータ
を保持する汎用レジスタセット405−3.次に実行す
べき命令を保持する命令レジスタ407、命令レジスタ
407の内容全幣耽し各種制御信号を発生する命令デコ
ーダ408、命令デコーダ408の出力によ!IcPU
全体の動作を制御する実行制御部409を含む。また、
データメモリ404の一部に自動データ転送処理に必要
となる自動転送レジスタ群440が設けられている。こ
の自動転送レジスタ2!’f404 fd、データメモ
リのアドレスを指定するメモリポインタ(以下、MPと
いう)44〇−J、特殊レジスタのアドレスを指定する
SFRポインタ(以下5FRPという)440−2.A
/D変換値自動データ転送の転送回数を保持するターミ
ナルカウンタ(以下、TCという)440−3を含んで
いる。上記全機能要素は内部バス410に接続され、相
互間のデータ転送ができるように構成されている。
C1 C1. ? 400-2 pieces, I10 ideal control section 40
1, outputs an A/I) conversion completion signal 400-3. A/
The D conversion data processing control unit 500 includes the I10 request control unit 4
01. I10 processing execution request line 401-1 from there. I
10 processing processing type designation line 401-2 and CPU 510
The I10 hair request reception section 402 controls the operation of the I10 hair request reception section 402. On the other hand, the memory section includes a program memory 403 such as an interrupt processing program and an A/D conversion data storage area 404.
-1t data memory 404'fi-meet. Furthermore, the CPU 510 includes a PC 405-1 that indicates the address of the program to be executed next, an arithmetic and logic operation unit (hereinafter referred to as ALU) 206 that has an arithmetic and logic operation function, a PSW 405-2 that indicates the operating status of the entire CPU, and a PC 405-1 that indicates the address of the program to be executed next. General-purpose register set 405-3 for holding data. An instruction register 407 that holds the next instruction to be executed, an instruction decoder 408 that uses all contents of the instruction register 407 and generates various control signals, and outputs from the instruction decoder 408! IcPU
It includes an execution control unit 409 that controls the overall operation. Also,
A part of the data memory 404 is provided with an automatic transfer register group 440 necessary for automatic data transfer processing. This automatic transfer register 2! 'f404 fd, memory pointer (hereinafter referred to as MP) 440-J that specifies the address of the data memory, SFR pointer (hereinafter referred to as 5FRP) 440-2 that specifies the address of the special register. A
It includes a terminal counter (hereinafter referred to as TC) 440-3 that holds the number of times of /D conversion value automatic data transfer. All of the above functional elements are connected to an internal bus 410 and configured to allow data transfer between them.

このブロック図を参11貧して、以下にA/Di換デー
タ処理における自動データ転送処理の動作について述べ
る。
Referring to this block diagram, the operation of automatic data transfer processing in A/DI conversion data processing will be described below.

A/D変挨器400でアナログ入力400−1全サンプ
リングし、サンプリングしたA / D変換値をCRR
400−2に格納すると、A/D兎勺り1完了信号40
0−3をI10要求制灯1j1部401に出力する。I
10要求制御部401はこれを受けて、I10要求受付
は部402に接続されているI10処理要求線401−
1とI10処理処理形態指足線401−2を通じて信号
を送出する。I10処理要求線401−1がアクティブ
であることを検出したI10要求受付は部402は同町
にI10処理処理形態指足線401−2のレベルをサン
プルし、これがロウレベルであれば、このI 10裂求
を割込み処理と認識し、命令レジスタ407に割込み処
理コードを設定する。1へ実行制御部409は、PC4
05−1のアドレス史朶r全禁止して%PC405−1
、PSW405−2 、汎用レジスタセット405−3
 の値をデータメモリ404に退避させる。次に、I1
0’A2氷制御部401は内部バス410上にA / 
I)変換割込みプログラムの分岐アトL/スを出力し、
実行制御部409がこのν、り込み分岐アドレスtPc
405−1に転送することにより、A/D変換割込み処
理プログラムが起動される。この割込みサービスプログ
ラムが終了″j″ると、データメモリ404Vc退耕し
ていたデータをPC405−1、PSW405−2.汎
用レジスタセラ)405−3に復帰し、実行を中断して
いたプログラム処理を再開する。
All analog inputs 400-1 are sampled by the A/D converter 400, and the sampled A/D converted values are converted to CRR.
When stored in 400-2, A/D rabbit 1 completion signal 40
0-3 is output to the I10 request lighting control 1j1 section 401. I
In response to this, the I10 request control unit 401 accepts the I10 request via the I10 processing request line 401- connected to the unit 402.
1 and I10 processing mode, a signal is sent through the toe line 401-2. Detecting that the I10 processing request line 401-1 is active, the I10 request receiving section 402 samples the level of the I10 processing type finger/toe line 401-2 in the same town, and if this is a low level, this I10 request line 401-1 is active. The request is recognized as interrupt processing, and an interrupt processing code is set in the instruction register 407. 1, the execution control unit 409 executes the
05-1 address history r completely prohibited%PC405-1
, PSW405-2, general-purpose register set 405-3
The value of is saved in the data memory 404. Next, I1
0'A2 ice control unit 401 connects A/A2 on internal bus 410.
I) Output the branch at L/S of the conversion interrupt program,
The execution control unit 409 uses this ν, the branch address tPc
405-1, the A/D conversion interrupt processing program is activated. When this interrupt service program ends "j", the data that had been retired from the data memory 404Vc is transferred to the PC 405-1, PSW 405-2. The general-purpose register server) 405-3 is returned to, and the program processing whose execution was interrupted is resumed.

一方、I10処理実行形態指定14401−2がハイレ
ベルであること’t I 請求受付は部402が検出す
ると、■10処理受付は部402はこのI10要求が自
動データ転送装束であると認識し。
On the other hand, when the I10 processing execution mode designation 14401-2 is detected to be at a high level, the 10 processing reception section 402 recognizes that this I10 request is for an automatic data transfer device.

命令レジスタ407に自動データ転送処理コード全設定
する。実行制御部409は、PC405−1の更新を禁
止し、PC405−1,PSW405−2゜汎用レジス
タセット405−3の値をデータメモリ404に退避す
ることなく、そのままその位(ドiに保j1シたまま以
下に示す処理を開始する。まず、I10要求制御部40
1は内部バス410上に自動転送レジスタ計440のア
ドレス全出力し、実行制御部409がこの自動転送レジ
スタ群440のアドレスをiしむ。次に実行制御部40
9は自動転送レジスタ群440の5FRP440−2 
で指されるCRR400−2からA/D変換値k lj
cみ出し。
All automatic data transfer processing codes are set in the instruction register 407. The execution control unit 409 prohibits updating of the PC 405-1, and stores the values of the PC 405-1, PSW 405-2 and the general-purpose register set 405-3 in the data memory 404 (domain i). The process shown below is started as it is.First, the I10 request control unit 40
1 outputs all addresses of the automatic transfer register group 440 onto the internal bus 410, and the execution control unit 409 reads the addresses of the automatic transfer register group 440. Next, the execution control unit 40
9 is 5FRP440-2 of automatic transfer register group 440
A/D conversion value k lj from CRR400-2 indicated by
C protrudes.

このデータ看二MP440−1で指されるデータメモリ
404のA/D変換1−格納領域404−1へ格納し、
TC440−3の値を1#、算して再びTC440−3
へ格納する。以上一連の処理でA/D変撲仙転送におけ
る一回の自動データ転送処理が終了する。TC440−
3の値が’/l’t’f41に、よ、p0+cなった時
には一連のデータ転送を完了したとみなシフ、この時の
A/D変換値全A / D変換値格納領域404−1へ
格納した後、工10要求制御部401はI10処理処理
費求f;’I 401−1を再びアクティブにすると、
#に、工10処理実行形態指定紳401′−2を今度は
ロウレベルにしてA/D変@ !li込み戦求全発生さ
ぜ、A/D変侠割込みプロゲラl−を・起動する。
Store this data in the A/D conversion 1-storage area 404-1 of the data memory 404 pointed to by the second MP440-1,
Calculate the value of TC440-3 by 1# and calculate TC440-3 again.
Store it in With the above series of processes, one automatic data transfer process in A/D transfer is completed. TC440-
When the value of 3 becomes '/l't'f41, p0+c, it is assumed that a series of data transfers have been completed, and all A/D converted values at this time are transferred to the A/D converted value storage area 404-1. After storing, the process 10 request control unit 401 activates the I10 processing fee request f;'I 401-1 again.
In #, set the process execution mode designator 401'-2 to low level and change the A/D @! When all the battles occur, I start up the A/D Hentai Interrupt Progera l-.

以上’)7i:べてき念ように1本発明で(−t A 
/ D変換r了に伴うzf換児光子号が発生した晴に通
常のソフトウェア割込み処理と自動データ転送処珪の二
14蛎「1のり・1応手fgを有し、こtら召:選択す
ることができる。とくに、自動データ転送処理を行う時
にに、従来のkli込み処理で必要であったPC405
−1、PSW405−2.汎用レジスタ405 3の退
避処理1割込みプログラムへの分岐処理、レジスタの復
帰処理、命令の挽み出し、デコード等に貸していた時間
を大幅に削減することができ、CPUの処理能力の低下
を極力抑えることが可能である。しかも)・−ドウニア
量全大幅に増加することなく上81′Jの効果をイ(j
るζ、とができる。
(-t A
/ Normal software interrupt processing and automatic data transfer processing are performed when the ZF photon issue occurs due to the completion of D conversion. In particular, when performing automatic data transfer processing, the PC 405 required for conventional KLI processing can be used.
-1, PSW405-2. Saving processing of general-purpose register 405 3 1 The time used for branch processing to interrupt programs, register restoration processing, instruction extraction, decoding, etc. can be significantly reduced, and the decline in CPU processing capacity can be minimized. It is possible to suppress it. Furthermore, the effect of the upper 81'J can be achieved without significantly increasing the total amount of dounia).
ζ, and can be done.

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

第1図は従来のA/D変換器のブロック図、第2図灯A
 /’ D変換器を内蔵したマイクロコンピュータの従
来例を・示す簡1)’hなブロック図、第3図は第2図
のに換処理のフローチャートs第4図は本発明の一実b
(1例による自tjtデータ転送機能をイエするマイク
ロコンピュータの■・細なブロック図である。 100・・・・・・従来のA/D変換器、101−1〜
101−8・・・・・・アナログ入力% 102・・・
・・・マルチプレクサ、103・・・・・・A/Dチャ
ネル・モード・レジスタ、103−1・・・・・・チャ
ネル指定ピット。 103−2・・・・・・A/D変換完了フラグ、104
・・・・・・サンダル会ホールド回路、105・・・・
・・ラダー抵抗回路組、106・・・・・・電圧コンパ
レータ、107・・・・・・逐次比較レジスタ(SPR
)、108・・・・・・コントローラ、109・・・・
・・変換結果レジスタ(CR)?入110・・・・・・
CPU内部バス%200・・・・・・従来のマイクロコ
ンピュータ、201・・・・・り” h’nL 202
・・・・・・プログラムメモ1ハ 203・・・・・・
データメモリ。 203−1・・・・・・変換値格納領域、、203−2
・・・・・・変換バラメーク退避領j成、203−3・
・・・・・スタック領域、204・・・・・・A/D変
換器、204−1・・・・・・アナログ入力、204−
2・・・・・・CRR1205・・・・・・内部バス、
206・・・・・・A / D V’+1込み1剃“部
、210・・・・・・変換完了信号、210・・・・・
・割込み界°求信号、400・・・・・・A/D変間器
、4.00−1・・・・・・アナログ入力、400−2
・・・・・・’!、 換紀“果しジヌタ、400−3・
・・・・・A/D曵−狛簀;了信号、401・・・・・
・E10徽求!ij!I俯部、401−1・・・・・・
I10処理実行要求世、401−2・・・・・・I10
処rI!!実行形g斥指定線、402・・・・・・I1
0髪求受付は部、403・・・・・・プログラムメモリ
、404・・・・・・データメモリ、404−1・・・
・・・A/D変換f直洛納領域;、405−J・・・・
・・プログラムメモ1ハ、405−2・・・・・・プロ
グラムリステータスワード% 405 3・・・・・・
汎用レジメタセット、406・・・・・・ALU、4(
17・・・・・・命令レジスタ% 408・・・・・・
命令デコーダ、409・・・・・・実行制御部、410
・・・・・・内部バス、440・・・・・・自動転送レ
ジスタ群、440−1・・・・・・MP。 440−2・・・・・・5FRP440−3・・・・・
・TC。 500・・・・・・A/D変換データ処理制御部、51
0・・・・・・cpu。 Y・1 しI ¥2し■ 殆づ−図
Figure 1 is a block diagram of a conventional A/D converter, Figure 2 is light A.
/' A simple block diagram showing a conventional example of a microcomputer with a built-in D converter; Figure 3 is a flowchart of the conversion process from Figure 2; Figure 4 is an example of the present invention;
(This is a detailed block diagram of a microcomputer that performs the self-tjt data transfer function according to one example. 100...Conventional A/D converter, 101-1~
101-8...Analog input% 102...
...Multiplexer, 103...A/D channel mode register, 103-1...Channel designation pit. 103-2...A/D conversion completion flag, 104
...Sandals-kai hold circuit, 105...
...Ladder resistance circuit set, 106...Voltage comparator, 107...Successive approximation register (SPR)
), 108...controller, 109...
... Conversion result register (CR)? Enter 110...
CPU internal bus %200...Conventional microcomputer, 201...ri"h'nL 202
...Program memo 1c 203...
data memory. 203-1...Conversion value storage area, 203-2
・・・・・・Conversion bar make evacuation area j formation, 203-3・
...Stack area, 204...A/D converter, 204-1...Analog input, 204-
2...CRR1205...Internal bus,
206...1 shaving section including A/DV'+1, 210...Conversion completion signal, 210...
・Interrupt field request signal, 400...A/D converter, 4.00-1...Analog input, 400-2
・・・・・・'! , 400-3.
・・・・・・A/D fence; Completion signal, 401...
・E10 request! ij! I-bu, 401-1...
I10 Process execution request, 401-2...I10
Treatment rI! ! Execution form g repulsion designation line, 402...I1
0 Hair request reception section, 403...Program memory, 404...Data memory, 404-1...
... A/D conversion f direct area;, 405-J...
...Program memo 1c, 405-2...Program restorer status word% 405 3...
General purpose register set, 406...ALU, 4(
17...Instruction register% 408...
Instruction decoder, 409...Execution control unit, 410
...Internal bus, 440...Automatic transfer register group, 440-1...MP. 440-2...5FRP440-3...
・TC. 500...A/D conversion data processing control unit, 51
0...cpu. Y・1 し I ¥2 し■ Mostly diagram

Claims (1)

【特許請求の範囲】[Claims] び各独データを記憶するメモリ部と、前記変換完了信号
に基づく処理と前記プログラムによる処理とを選択的に
実行する中央処理装置とt (liftえた情報処理装
置において、前記中央処理装置は、 frjs記プログ
ラム実行途中の状態を保持したまま前記変換データの転
送処理を行い得るA/D変換データ処理制御手段を有し
、前記A/D変換処理部が前記変換完了信号を発生した
とき、前記プログラム実行を中断し前記A/D変換デー
タ処理制御手段により変換データ転送処理を行うように
したことを特徴とする情報処理装置。
and a central processing unit that selectively executes processing based on the conversion completion signal and processing according to the program; A/D conversion data processing control means capable of transferring the conversion data while maintaining a state in the middle of execution of the program, and when the A/D conversion processing section generates the conversion completion signal, the program An information processing apparatus characterized in that execution is interrupted and the A/D conversion data processing control means performs conversion data transfer processing.
JP59040007A 1984-03-02 1984-03-02 Information processing equipment Expired - Lifetime JPH0623947B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP59040007A JPH0623947B2 (en) 1984-03-02 1984-03-02 Information processing equipment
EP85102394A EP0153764B1 (en) 1984-03-02 1985-03-04 Information processor having an interruption operating function
DE85102394T DE3587643T2 (en) 1984-03-02 1985-03-04 Information processing unit with interrupt function.
US07/287,622 US5036458A (en) 1984-03-02 1988-12-20 Information processor executing interruption program without saving contents of program counter
US07/691,284 US5159688A (en) 1984-03-02 1991-04-25 Information processor performing interrupt operation in two modes
US07/691,297 US5163150A (en) 1984-03-02 1991-04-25 Information processor performing interrupt operation without saving contents of program counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59040007A JPH0623947B2 (en) 1984-03-02 1984-03-02 Information processing equipment

Publications (2)

Publication Number Publication Date
JPS60183626A true JPS60183626A (en) 1985-09-19
JPH0623947B2 JPH0623947B2 (en) 1994-03-30

Family

ID=12568849

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59040007A Expired - Lifetime JPH0623947B2 (en) 1984-03-02 1984-03-02 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH0623947B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01230118A (en) * 1987-11-27 1989-09-13 Nec Corp Data processor
US4929043A (en) * 1988-05-31 1990-05-29 Fuji Photo Film Co., Ltd. Light beam deflector
US4941722A (en) * 1988-05-27 1990-07-17 Fuji Photo Film Co., Ltd. Light beam deflector

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50156343A (en) * 1974-06-05 1975-12-17

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50156343A (en) * 1974-06-05 1975-12-17

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01230118A (en) * 1987-11-27 1989-09-13 Nec Corp Data processor
US4941722A (en) * 1988-05-27 1990-07-17 Fuji Photo Film Co., Ltd. Light beam deflector
US4929043A (en) * 1988-05-31 1990-05-29 Fuji Photo Film Co., Ltd. Light beam deflector

Also Published As

Publication number Publication date
JPH0623947B2 (en) 1994-03-30

Similar Documents

Publication Publication Date Title
JP4241045B2 (en) Processor architecture
KR0129000B1 (en) Advanced data communication apparatus and data character recognition and transfer method
JP4386636B2 (en) Processor architecture
JPH0636515B2 (en) Communication processor device
US6415366B1 (en) Method and apparatus for load distribution across memory banks with constrained access
JPH11503280A (en) Window comparator
CN102053816A (en) Data shuffling unit with switch matrix memory and shuffling method thereof
JP4628521B2 (en) Method and apparatus for handling interruptible multi-cycle instructions
US5361374A (en) Integrated data processor having mode control register for controlling operation mode of serial communication unit
JPH04211855A (en) Apparatus and method for controlling communication bus in data processing system
JPS60183626A (en) Information processing unit
JPS609292B2 (en) Time interval length control method between data blocks
US7280544B2 (en) Transmission convergence sublayer circuit and operating method for asynchronous receiver
JPS60183662A (en) Information processing unit
US8910015B2 (en) Efficient implementation to perform iterative decoding with large iteration counts
JPH0319974B2 (en)
US7613186B2 (en) Processing multiplex sublayer data unit data in hardware
JP2007140858A (en) Method for accessing memory, and device for accessing memory
JPH09251387A (en) Interruption request priority deciding circuit
JPS59226925A (en) Buffer controller
JPH01230118A (en) Data processor
JPS62212861A (en) Buffer control system
JPS6041387B2 (en) Direct memory access control circuit
JPS6326035A (en) Viterbi decoder
JPS61214032A (en) Interruption control system