JP3870089B2 - A / D converter and signal processing system - Google Patents
A / D converter and signal processing system Download PDFInfo
- Publication number
- JP3870089B2 JP3870089B2 JP2001395835A JP2001395835A JP3870089B2 JP 3870089 B2 JP3870089 B2 JP 3870089B2 JP 2001395835 A JP2001395835 A JP 2001395835A JP 2001395835 A JP2001395835 A JP 2001395835A JP 3870089 B2 JP3870089 B2 JP 3870089B2
- Authority
- JP
- Japan
- Prior art keywords
- conversion
- count value
- count
- timer
- predetermined
- 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 - Fee Related
Links
- 238000006243 chemical reaction Methods 0.000 claims description 516
- 238000000034 method Methods 0.000 claims description 147
- 230000004044 response Effects 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 11
- 230000004913 activation Effects 0.000 description 5
- 230000010355 oscillation Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 1
Images
Landscapes
- Analogue/Digital Conversion (AREA)
Description
【0001】
【発明の属する技術分野】
本発明はA/D変換装置、及び信号処理システムに関し、より詳細には、A/D変換処理とA/D変換処理との間に時間的余裕を持たすことのできるA/D変換装置、及び信号処理システムに関する。
【0002】
【従来の技術】
A/D変換には一般的に、同一チャンネルのアナログ信号を繰り返しディジタル信号に変換するリピート変換や、異なったチャンネルのアナログ信号を1チャンネル毎にディジタル信号に変換していくスキャン変換や、一つのチャンネルのアナログ信号を1回だけディジタル信号に変換するシングル変換と呼ばれるものがある。
【0003】
図6は、従来のA/D変換方式(リピート変換)を採用した信号処理システムの要部を概略的に示したブロック図である。前記信号処理システムはCPU1と、A/D変換制御回路3及びA/D変換器4を備えたA/D変換装置2とを含んで構成されている。また、A/D変換制御回路3には、A/D変換器4で変換されたディジタル信号を一時的に蓄積するための蓄積部3aが装備されている。
【0004】
CPU1はA/D変換制御回路3へA/D変換回数を指定したり、A/D変換制御回路3に対してA/D変換制御の開始を指示するものである。また、A/D変換制御回路3はCPU1からの前記指示を受けると、A/D変換器4に対してA/D変換起動の開始を指示するものである。
また、A/D変換器4はA/D変換制御回路3からの前記指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路3へ出力するものである。
【0005】
次に、前記信号処理システムにおけるA/D変換処理の動作手順を図7に示したタイミングチャートに基づいて説明する。まず始めに、CPU1がA/D変換制御回路3へA/D変換回数(na 回)を指定し(a−▲1▼)、続いて、A/D変換制御の開始を指示する(a−▲2▼)。
【0006】
A/D変換制御回路3がCPU1からの前記指示を受けると、A/D変換器4へA/D変換起動の開始を指示し(a−▲3▼)、A/D変換器4が前記指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路3へ出力する(a−▲4▼)。
【0007】
A/D変換制御回路3がA/D変換器4から出力された変換結果を取得すると、取得した変換結果を蓄積部3aへ格納する共に、A/D変換器4からna 回分の変換結果を取得したか否かを判断し、na 回分の変換結果を取得したと判断すれば、CPU1に対してA/D変換終了の通知(割り込み)を行う(a−▲5▼)。他方、na 回分の変換結果を取得していないと判断すれば、再度、A/D変換器4へA/D変換起動の開始を指示する(a−▲3▼)。
CPU1はA/D変換制御回路3からのA/D変換終了の通知を受けると、その後、A/D変換制御回路3の蓄積部3aに蓄積されている変換結果を読み出し、読み出した変換結果を用いて所定の処理を行う。
【0008】
図8は、従来のA/D変換方式(スキャン変換)を採用した信号処理システムの要部を概略的に示したブロック図である。前記信号処理システムはCPU11と、A/D変換制御回路13、A/D変換器14、及び異なったチャンネルのアナログ信号s1 〜sm が入力されるアナログ入力選択回路15を備えたA/D変換装置12とを含んで構成されている。また、A/D変換制御回路13には、A/D変換器14で変換されたディジタル信号を一時的に蓄積するための蓄積部13aが装備されている。
【0009】
また、アナログ入力選択回路15に入力される、異なったチャンネルのアナログ信号s1 〜sm は、アナログ入力選択回路15によって、いずれかの信号が選択され、選択されたアナログ信号がA/D変換器14に与えられるようになっている。例えば、異なったチャンネルのアナログ信号s1 〜sm が、アナログ信号s1 からアナログ信号sm まで1チャンネル毎にA/D変換器14へ与えられていくと、A/D変換器14でアナログ信号s1 〜sm が連続的にディジタル信号に変換されていくこととなる。
【0010】
CPU11はA/D変換制御回路13へA/D変換回数、及びチャンネルを指定したり、A/D変換制御回路13に対してA/D変換制御の開始を指示するものである。また、A/D変換制御回路13はCPU11からの前記指示を受けると、A/D変換器14に対してA/D変換起動の開始を指示するものである。
また、A/D変換器14はA/D変換制御回路13からの前記指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路13へ出力するものである。
【0011】
次に、前記信号処理システムにおけるA/D変換処理の動作手順を図9に示したタイミングチャートに基づいて説明する。まず始めに、CPU11がA/D変換制御回路13へA/D変換回数(nb 回)、及びチャンネルiを指定し(b−▲1▼)、続いて、A/D変換制御の開始を指示する(b−▲2▼)。
【0012】
A/D変換制御回路13がCPU11からの前記指示を受けると、アナログ入力選択回路15に対し、アナログ信号si をA/D変換器14へ出力するように指示すると共に(b−▲3▼)、A/D変換器14へA/D変換起動の開始を指示し(b−▲4▼)、A/D変換器14が前記指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路13へ出力する(b−▲5▼)。
【0013】
A/D変換制御回路13がA/D変換器14から出力された変換結果を取得すると、取得した変換結果を蓄積部13aへ格納する共に、A/D変換器14からnb 回分の変換結果を取得したか否かを判断し、nb 回分の変換結果を取得したと判断すれば、CPU11に対してA/D変換終了の通知(割り込み)を行う(b−▲6▼)。他方、nb 回分の変換結果を取得していないと判断すれば、再度、アナログ入力選択回路15に対し、アナログ信号si (i←i+1)をA/D変換器14へ出力するように指示すると共に(b−▲3▼)、A/D変換器14へA/D変換起動の開始を指示する(b−▲4▼)。但し、上記演算の結果、iがmより大きくなった場合にはiを1にする。
CPU11はA/D変換制御回路13からのA/D変換終了の通知を受けると、その後、A/D変換制御回路13の蓄積部13aに蓄積されている変換結果を読み出し、読み出した変換結果を用いて所定の処理を行う。
【0014】
上記したように、図6に示した信号処理システムによれば、同一チャンネルのアナログ信号を繰り返しディジタル信号に変換することができ(リピート変換)、また、図8に示した信号処理システムによれば、異なったチャンネルのアナログ信号を1チャンネル毎にディジタル信号に変換していくことができる(スキャン変換)。
【0015】
しかしながら、図6、図8に示したいずれの信号処理システムにおいても、図7、図9に示したタイミングチャートから明らかなように、A/D変換処理とA/D変換処理との間に時間的余裕がほとんどないため(a−▲4▼、b−▲5▼)、A/D変換処理が短い時間で連続して行われることとなり、所望するA/D変換処理の結果を取得することができないという問題があった。というのは、例えば、A/D変換処理をある程度の長い時間内で複数回行わせて、それらの平均値を取得したい場合などがあるからである。
【0016】
【発明が解決しようとする課題】
上記したような問題を解決する方法としては、タイマを監視しながらシングル変換起動をかける方法がある。図10に、シングル変換を実現するための信号処理システムを示す。
【0017】
図10に示した信号処理システムはCPU21と、A/D変換制御回路23及びA/D変換器24を備えたA/D変換装置22と、タイマ25とを含んで構成され、CPU21と、A/D変換制御回路23と、タイマ25とはバス26を介して接続されている。また、A/D変換制御回路23には、A/D変換器24で変換されたディジタル信号を一時的に蓄積するための蓄積部23aが装備されている。
【0018】
CPU21はタイマ25を監視しながら一定周期TでA/D変換制御回路23に対してA/D変換制御の開始を指示するものであり、また、A/D変換制御回路23はCPU21からの前記指示を受けると、A/D変換器24に対してA/D変換起動の開始を指示するものである。
A/D変換器24はA/D変換制御回路23からの前記指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路23へ出力するものである。
【0019】
次に、前記信号処理システムにおけるA/D変換処理の動作手順を図11に示したタイミングチャートに基づいて説明する。まず始めに、CPU21がA/D変換制御回路23へA/D変換制御の開始を指示する(c−▲1▼)。
【0020】
A/D変換制御回路23がCPU21からの前記指示を受けると、A/D変換器24へA/D変換起動の開始を指示し(c−▲2▼)、A/D変換器24が前記指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路23へ出力する(c−▲3▼)。
【0021】
A/D変換制御回路23がA/D変換器24から出力された変換結果を取得すると、取得した変換結果を蓄積部23aへ格納すると共に、CPU21に対してA/D変換終了の通知(割り込み)を行う(c−▲4▼)。
CPU21はA/D変換制御回路23からのA/D変換終了の通知を受けると、その後、A/D変換制御回路23の蓄積部23aに蓄積されている変換結果を読み出し、読み出した変換結果を用いて所定の処理を行う。
【0022】
このように、図10に示した信号処理システムによれば、CPU21がタイマ25を監視しながら一定周期TでA/D変換制御回路23に対してA/D変換制御開始の指示を与えるため、一つのチャンネルのアナログ信号を一定周期Tでディジタル信号に変換することができる。よって、A/D変換処理とA/D変換処理との間に時間的余裕を持たせることができる。
【0023】
しかしながら、前記信号処理システムは、CPU21がタイマ25を監視しながら、一定周期T毎にいちいちA/D変換制御開始の指示を与える必要があり、CPU21の負担が大きくなるといった問題や、バス26がA/D変換処理のために占有されてしまうといった問題がある。
【0024】
このような問題を解決する方法として、図12に示したように、DMAコントローラ27を設けて、DMAコントローラ27にA/D変換制御回路23に対するA/D変換制御開始の指示を行わせるようにする方法が挙げられるが、バス26を占有するといった問題については依然解決されずに残る。
【0025】
本発明は上記課題に鑑みなされたものであって、CPUの負担が大きくならずに、またバスを占有することもなく、A/D変換処理とA/D変換処理との間に時間的余裕を持たせることのできるA/D変換装置、及び信号処理システムを提供することを目的としている。
【0026】
【課題を解決するための手段及びその効果】
上記目的を達成するために本発明に係るA/D変換装置(1)は、アナログ信号をディジタル信号に変換するA/D変換処理を行うA/D変換手段と、カウント動作を行い、所定のカウント値までのカウントが終了すると、カウント終了を示すカウント終了信号を出力するタイマ手段と、該タイマ手段からの前記カウント終了信号を受けて、前記A/D変換手段に対し、A/D変換開始の指示を与えるA/D変換制御手段と、前記A/D変換手段によるA/D変換処理が終了すると、所定の回数、A/D変換処理が行われたか否かを判断する判断手段と、該判断手段による、前記所定の回数、A/D変換処理が行われていないとの判断を受けて、前記タイマ手段に対し、カウント動作を再起動させる再起動手段とを備え、前記タイマ手段が、前記再起動手段からの指示を受けて、カウント動作を再開し、次回のA/D変換処理までの所定時間をカウントするものであることを特徴としている。
【0027】
上記A/D変換装置(1)によれば、前記タイマ手段により、前記所定のカウント値までのカウントが行われ、前記カウント終了信号が出力されると、前記A/D変換制御手段により、前記A/D変換手段に対し、A/D変換開始の指示が与えられ、前記A/D変換手段により、A/D変換処理が行われる。すなわち、前記タイマ手段のカウント動作を開始させることによって、A/D変換処理を行わせることができる。
【0028】
従って、例えば、外部(CPUなど)から前記タイマ手段に対し、カウント動作開始の指示を与え、前記タイマ手段のカウント動作を開始させるだけで、その後は、外部とは独立した動作にて、1回目のA/D変換処理を行わせることができる。
【0029】
また、1回目のA/D変換処理が終了すると、前記所定の回数、A/D変換処理が行われたか否かが判断され、前記所定の回数、A/D変換処理が行われていない(すなわち、前記所定の回数が2回以上に設定されており、A/D変換処理すべき回数が残っている)と判断されると、前記タイマ手段に対し、カウント動作の再起動が掛けられ、前記タイマ手段のカウント動作が再開され、次回のA/D変換処理までの所定時間がカウントされるように構成されている。
【0030】
そのため、前記タイマ手段により、再び、前記所定のカウント値までのカウントが行われ、前記カウント終了信号が出力されると、前記A/D変換制御手段により、前記A/D変換手段に対し、A/D変換開始の指示が与えられ、前記A/D変換手段により、A/D変換処理が行われる。すなわち、前記所定の回数が2回以上に設定されている場合、1回目のA/D変換処理が終了から所定の時間(少なくとも、前記所定のカウント値までのカウントに要する時間)を経て、2回目のA/D変換処理が行われる。
【0031】
従って、1回目のA/D変換処理と2回目のA/D変換処理との間に時間的余裕(少なくとも、前記所定のカウント値までのカウントに要する時間)を持たせて、2回目のA/D変換処理を行わせることができる。また、上記した一連の動作は、外部(例えば、CPU)とは独立した動作にて、A/D変換処理が前記所定の回数行われるまで、繰り返し行われるため、CPUの負担を小さく抑えることができ、また各種ハードウェアを繋ぐバスを占有することなく、A/D変換処理とA/D変換処理との間に時間的余裕を持たせて、A/D変換処理を前記所定の回数行わせることができる。
【0032】
また、本発明に係るA/D変換装置(2)は、上記A/D変換装置(1)において、カウントすべきカウント値を記憶する第1のカウント値記憶手段を備えると共に、外部から入力されたカウント値が、前記第1のカウント値記憶手段に書き込まれるように構成され、前記タイマ手段が、前記第1のカウント値記憶手段に記憶されているカウント値までのカウントが終了すると、前記カウント終了信号を出力するものであることを特徴としている。
【0033】
上記A/D変換装置(2)によれば、前記タイマ手段により、前記第1のカウント値記憶手段に記憶されているカウント値までのカウントが行われると、前記カウント終了信号が出力されるように構成されている。
また、上記A/D変換装置(2)は、上記A/D変換装置(1)を引用したものであるので、前記カウント終了信号が出力されると、前記A/D変換手段により、A/D変換処理が行われるように構成されている。
【0034】
すなわち、前記タイマ手段により、前記第1のカウント値記憶手段に記憶されているカウント値までのカウントが行われると、前記A/D変換手段により、A/D変換処理が行われることとなる。換言すれば、前記第1のカウント値記憶手段に記憶されているカウント値までのカウントが行われない限り、次のA/D変換処理が行われないこととなる。
【0035】
従って、A/D変換処理とA/D変換処理との間に、少なくとも前記第1のカウント値記憶手段に記憶されているカウント値までのカウントに要する時間を設けることができる。
【0036】
さらに、上記A/D変換装置(2)によれば、外部(例えば、CPU)から入力されたカウント値が、前記第1のカウント値記憶手段に書き込まれるように構成されているので、A/D変換処理とA/D変換処理との間の長さを外部から自由に設定することができる。
【0037】
また、本発明に係るA/D変換装置(3)は、上記A/D変換装置(2)において、外部から入力されたカウント値を記憶する第2のカウント値記憶手段を備えると共に、所定の条件が満たされると、前記第2のカウント値記憶手段に記憶されているカウント値が、前記第1のカウント値記憶手段に書き込まれるように構成されていることを特徴としている。
【0038】
上記A/D変換装置(3)によれば、前記所定の条件が満たされると、前記第2のカウント値記憶手段に記憶されているカウント値が、前記第1のカウント値記憶手段に書き込まれるように構成されているので、前記第1のカウント値記憶手段に記憶されているカウント値とは異なるカウント値を、前記第2のカウント値記憶手段に記憶させておき、前記所定の条件を満たすことによって、A/D変換処理とA/D変換処理との間の長さを変更することができる。
【0039】
さらに、上記A/D変換装置(3)によれば、外部(例えば、CPU)から入力されたカウント値が、前記第2のカウント値記憶手段に書き込まれるように構成されているので、A/D変換処理とA/D変換処理との間の長さの変更を外部から自由に行うことができる。
【0040】
また、本発明に係るA/D変換装置(4)は、上記A/D変換装置(3)において、前記所定の条件に、前記タイマ手段に対するカウント動作開始の指示が行われることが含まれていることを特徴としている。
【0041】
上記A/D変換装置(4)によれば、前記タイマ手段に対するカウント動作開始の指示が行われることを条件に含んだ、前記所定の条件が満たされると、前記第2のカウント値記憶手段に記憶されているカウント値が、前記第1のカウント値記憶手段に書き込まれるように構成されている。
また、上記A/D変換装置(4)は、上記A/D変換装置(1)を引用したものであるので、A/D変換処理の終了後、A/D変換処理すべき回数が残っている場合には、前記タイマ手段に対し、カウント動作再開の指示が行われる。
【0042】
そのため、例えば、前記所定の条件を、前記タイマ手段に対するカウント動作開始の指示が行われることとすれば、A/D変換処理の終了後に、A/D変換処理すべき回数が残っている場合には、前記タイマ手段に対し、カウント動作再開の指示が行われ、前記第2のカウント値記憶手段に記憶されているカウント値が、前記第1のカウント値記憶手段に書き込まれることとなる。
【0043】
従って、後述する図4に示したように、例えば、2回目のA/D変換処理と3回目のA/D変換処理との間の長さを変更させたい場合には、2回目のタイマ起動が開始してから、3回目のタイマ起動が開始するまでの間に、外部から新たなカウント値を入力させて、そのカウント値を前記第2のカウント値記憶手段に書き込んでおけば良いこととなる。
【0044】
また、本発明に係るA/D変換装置(5)は、上記A/D変換装置(1)〜(4)のいずれかにおいて、前記A/D変換手段で行われるべきA/D変換処理の回数を記憶する回数記憶手段を備えると共に、外部から入力された回数が、前記回数記憶手段に書き込まれるように構成され、前記所定の回数が、前記回数記憶手段に記憶されている回数であることを特徴としている。
【0045】
上記A/D変換装置(5)によれば、前記所定の回数(すなわち、A/D変換処理すべき回数)が、前記回数記憶手段に記憶されている回数であり、また、外部(例えば、CPU)から入力された回数が、前記回数記憶手段に書き込まれるように構成されているので、A/D変換処理を行う回数を外部から自由に設定することができる。
【0046】
また、本発明に係るA/D変換装置(6)は、上記A/D変換装置(1)〜(5)のいずれかにおいて、前記A/D変換手段による変換結果に基づいて、所定の演算処理を行う演算手段を備えていることを特徴としている。
また、本発明に係るA/D変換装置(7)は、上記A/D変換装置(6)において、前記演算手段が、複数の変換結果の和、複数の変換結果の平均値、複数の変換結果のうちの最大値、複数の変換結果のうちの最小値、及び複数の変換結果のうちの最大値と最小値との差のいずれかを求めるものであることを特徴としている。
【0047】
上記A/D変換装置(6)又は(7)によれば、前記演算手段を備えているので、前記A/D変換手段による変換結果に基づく演算処理を、外部(例えば、CPU)で行わなくても良いようにすることができるので、CPUの負担を小さく抑えることができる。なお、前記演算手段により求められるものとしては、例えば、複数の変換結果の和、複数の変換結果の平均値、複数の変換結果のうちの最大値、複数の変換結果のうちの最小値、及び複数の変換結果のうちの最大値と最小値との差などが挙げられる。
【0048】
また、本発明に係るA/D変換装置(8)は、上記A/D変換装置(6)又は(7)において、前記演算手段が、複数種の演算処理を行うことが可能であり、外部からの指定に基づいて、これら複数種の演算処理の中から、演算処理の種類を選択し、選択した種類の演算処理を行うものであることを特徴としている。
【0049】
上記A/D変換装置(8)によれば、複数種の演算処理の中から、演算処理の種類を自由に選択することができるため、所望の演算処理による演算結果を取得することができる。
【0050】
また、本発明に係るA/D変換装置(9)は、上記A/D変換装置(6)〜(8)のいずれかにおいて、前記演算手段による演算結果を記憶する演算結果記憶手段を備えると共に、前記演算手段により求められるものが、複数の変換結果のうちの所望の値であり、前記演算手段により求められる前記所望の値と、該所望の値が得られた変換処理に対する、複数の変換処理の中での処理順番とが前記演算結果記憶手段に書き込まれるように構成されていることを特徴としている。
【0051】
ところで、異なったチャンネルのアナログ信号を1チャンネル毎にディジタル信号に変換していくことによって得られる値のうち、最大値(又は最小値)を取得したい場合に、最大値(又は最小値)だけでなく、その値がどのチャンネルから得られたものであるのかといった情報についても取得したい場合がある。
【0052】
上記A/D変換装置(9)によれば、複数の変換結果のうちの前記所望の値(例えば、最大値、最小値)が前記演算結果記憶手段に記憶されるので、前記演算結果記憶手段に記憶されているデータを読み出すことによって、CPUなどが前記所望の値を取得することができる。
【0053】
また、前記所望の値が得られた変換処理に対する、複数の変換処理の中での処理順番についても、前記演算結果記憶手段に記憶されるので、前記演算結果記憶手段に記憶されているデータを読み出すことによって、CPUなどが前記処理順番を取得することができる。
【0054】
従って、例えば、異なったチャンネルch1 〜chm のアナログ信号を1チャンネル毎にディジタル信号に変換していくことによって得られる値のうちの最大値と、該最大値が得られた変換処理に対する、複数mの変換処理の中での処理順番(i番目)とが前記演算結果記憶手段に記憶されるので、前記演算結果記憶手段に記憶されているデータを読み出すことによって、CPUが前記最大値を取得することができると共に、該最大値が得られた順番(i番目)、すなわち、前記最大値がチャンネルchi から得られたものであるといった情報についても取得することができる。
【0055】
また、本発明に係るA/D変換装置(10)は、上記A/D変換装置(6)〜(9)のいずれかにおいて、前記演算手段が、前記判断手段による、前記所定の回数、A/D変換処理が行われたとの判断を受けて、前記所定の演算処理を行うものであることを特徴としている。
【0056】
上記A/D変換装置(10)によれば、前記演算手段が、前記判断手段による、A/D変換処理すべき回数が残っていないとの判断を受けて、前記所定の演算処理を行うようになっている。従って、A/D変換処理が1回終了する毎に、前記所定の演算処理を行うのではなく、最後にまとめて前記所定の演算処理を行うことができる。
【0057】
また、本発明に係るA/D変換装置(11)は、上記A/D変換装置(6)〜(9)のいずれかにおいて、前記演算手段が、前記A/D変換手段によるA/D変換処理が1回、又は複数回終了する毎に、前記所定の演算処理を行うものであることを特徴としている。
【0058】
上記A/D変換装置(11)によれば、前記演算手段が、前記A/D変換手段によるA/D変換処理が1回、又は複数回終了する毎に、前記所定の演算処理を行うようになっている。
【0059】
例えば、A/D変換処理16回分の変換結果(8ビット/1回)の和を求める場合、上記A/D変換装置(10)のように、16(=24 )回分の変換結果をまとめて加算処理するには、少なくとも128(=8×16)ビット分のレジスタを用意しておく必要があるが、上記A/D変換装置(11)の場合には、例えば、A/D変換処理が1回終了する毎に、加算処理を行うので、12(=8+4)ビット分のレジスタを用意しておけば良いので、レジスタ容量の削減を図ることができる。
【0060】
また、本発明に係る信号処理システム(1)は、アナログ信号をディジタル信号に変換するA/D変換処理を行うA/D変換手段と、カウント動作を行い、所定のカウント値までのカウントが終了すると、カウント終了を示すカウント終了信号を出力するタイマ手段と、該タイマ手段からの前記カウント終了信号を受けて、前記A/D変換手段に対し、A/D変換開始の指示を与えるA/D変換制御手段と、前記A/D変換手段によるA/D変換処理が終了すると、所定の回数、A/D変換処理が行われたか否かを判断する判断手段と、該判断手段による、前記所定の回数、A/D変換処理が行われていないとの判断を受けて、前記タイマ手段に対し、カウント動作を再起動させる再起動手段とを備え、前記タイマ手段が、前記再起動手段からの指示を受けて、カウント動作を再開し、次回のA/D変換処理までの所定時間をカウントするものであることを特徴としている。
【0061】
上記信号処理システム(1)によれば、前記タイマ手段により、前記所定のカウント値までのカウントが行われ、前記カウント終了信号が出力されると、前記A/D変換制御手段により、前記A/D変換手段に対し、A/D変換開始の指示が与えられ、前記A/D変換手段により、A/D変換処理が行われる。すなわち、前記タイマ手段のカウント動作を開始させることによって、A/D変換処理を行わせることができる。
【0062】
従って、例えば、外部(CPUなど)から前記タイマ手段に対し、カウント動作開始の指示を与え、前記タイマ手段のカウント動作を開始させるだけで、その後は、外部とは独立した動作にて、1回目のA/D変換処理を行わせることができる。
【0063】
また、1回目のA/D変換処理が終了すると、前記所定の回数、A/D変換処理が行われたか否かが判断され、前記所定の回数、A/D変換処理が行われていない(すなわち、前記所定の回数が2回以上に設定されており、A/D変換処理すべき回数が残っている)と判断されると、前記タイマ手段に対し、カウント動作の再起動が掛けられ、前記タイマ手段のカウント動作が再開され、次回のA/D変換処理までの所定時間がカウントされるように構成されている。
【0064】
そのため、前記タイマ手段により、再び、前記所定のカウント値までのカウントが行われ、前記カウント終了信号が出力されると、前記A/D変換制御手段により、前記A/D変換手段に対し、A/D変換開始の指示が与えられ、前記A/D変換手段により、A/D変換処理が行われる。すなわち、前記所定の回数が2回以上に設定されている場合、1回目のA/D変換処理が終了から所定の時間(少なくとも、前記所定のカウント値までのカウントに要する時間)を経て、2回目のA/D変換処理が行われる。
【0065】
従って、1回目のA/D変換処理と2回目のA/D変換処理との間に時間的余裕(少なくとも、前記所定のカウント値までのカウントに要する時間)を持たせて、2回目のA/D変換処理を行わせることができる。また、上記した一連の動作は、外部(例えば、CPU)とは独立した動作にて、A/D変換処理が前記所定の回数行われるまで、繰り返し行われるため、CPUの負担を小さく抑えることができ、また各種ハードウェアを繋ぐバスを占有することなく、A/D変換処理とA/D変換処理との間に時間的余裕を持たせて、A/D変換処理を前記所定の回数行わせることができる。
【0066】
【発明の実施の形態】
以下、本発明に係るA/D変換装置、及び信号処理システムの実施の形態を図面に基づいて説明する。図1は、実施の形態(1)に係るA/D変換装置を採用した信号処理システムの要部を概略的に示したブロック図である。図中32はA/D変換装置を示しており、A/D変換装置32はA/D変換制御回路33と、A/D変換器34と、タイマ35とを含んで構成されている。
【0067】
A/D変換制御回路33は、タイマ35からのカウント終了信号を受けて、A/D変換器34に対し、A/D変換開始の指示を与えるものであり、また、A/D変換制御回路33にはA/D変換器34で変換されたディジタル信号を一時的に蓄積するための蓄積部33aと、CPU31により設定されるA/D変換処理回数を記憶するための回数メモリ33bとが装備されている。
【0068】
タイマ35は、発振回路35aと、カウンタ35bと、CPU31により設定されるカウント値を記憶するためのカウント値メモリ35cと、比較回路35dとを備え、発振回路35aからのクロックパルスをカウンタ35bでカウントし、カウンタ35bでのカウント値と、カウント値メモリ35cに記憶されているカウント値とを比較回路35dで比較し、これらカウント値が一致すると、カウント終了信号をA/D変換制御回路33へ出力するように構成されている。
【0069】
また、カウンタ35bでのカウント値と、カウント値メモリ35cに記憶されているカウント値とが一致すると、比較回路35dからカウンタ35bへリセット信号が出力され、カウンタ35bのカウント値がリセットされるようになっている。
【0070】
A/D変換器34は、A/D変換制御回路33からA/D変換開始の指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路33へ出力するように構成されている。
【0071】
CPU31は、A/D変換制御回路33へA/D変換回数を設定したり、タイマ35へカウンタ35bがカウントすべきカウント値を設定したり、カウンタ35bへクロックパルスのカウント開始を指示するように構成されている。
【0072】
次に、前記信号処理システムにおけるA/D変換処理の動作手順を図2に示したタイミングチャートに基づいて説明する。まず始めに、CPU31がタイマ35へカウント値ctを指定し、A/D変換制御回路33へA/D変換回数(n1 回)を指定する(1−▲1▼)。
【0073】
タイマ35はCPU31からカウント値ctの指定を受けると、カウント値メモリ35cへ指定されたカウント値ctを記憶させ、また、A/D変換制御回路33はCPU31からA/D変換回数n1 の指定を受けると、回数メモリ33bへ指定された回数n1 を記憶させる。
【0074】
次に、CPU31がタイマ35に対し、カウントの開始を指示し(1−▲2▼)、タイマ35がカウント開始の指示を受けると、カウントを開始し、カウンタ35bでのカウント値と、カウント値メモリ35cに記憶されているカウント値ctとが一致する(すなわち、カウンタ35bでカウント値ctまでのカウントが行われる)と、A/D変換制御回路33に対し、カウント終了信号を出力する(1−▲3▼)。
【0075】
A/D変換制御回路33がタイマ35からのカウント終了信号を受信すると、A/D変換器34へA/D変換起動の開始を指示し(1−▲4▼)、A/D変換器34が前記指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路33へ出力する(1−▲5▼)。
【0076】
A/D変換制御回路33がA/D変換器34から出力された変換結果を取得すると、取得した変換結果を蓄積部33aへ格納する共に、A/D変換器34からn1 回分の変換結果を取得したか否かを判断し、n1 回分の変換結果を取得したと判断すれば、CPU31に対してA/D変換終了の通知(割り込み)を行う(1−▲7▼)。他方、n1 回分の変換結果を取得していないと判断すれば、タイマ35に対し、カウント動作の開始を指示する(1−▲6▼)。
【0077】
CPU31は、A/D変換制御回路33からのA/D変換終了の通知を受けると、その後、A/D変換制御回路33の蓄積部33aに蓄積されている変換結果を読み出し、読み出した変換結果を用いて所定の処理を行う。
【0078】
上記実施の形態(1)に係るA/D変換装置によれば、タイマ35により、カウント値メモリ35cに記憶されているカウント値ct(すなわち、CPU31により設定されたカウント値ct)までのカウントが行われ、A/D変換制御回路33へカウント終了信号が出力されると、A/D変換制御回路33により、A/D変換器34に対し、A/D変換開始の指示が与えられ、A/D変換器34により、A/D変換処理が行われる。すなわち、タイマ35のカウント動作を開始させることによって、A/D変換処理を行わせることができる。
【0079】
従って、CPU31からタイマ35に対し、カウント動作開始の指示を与え、タイマ35のカウント動作を開始させるだけで、その後は、CPU31とは独立した動作にて、1回目のA/D変換処理を行わせることができる。
【0080】
また、1回目のA/D変換処理が終了すると、A/D変換制御回路33で回数メモリ33bに記憶されている回数n1 (すなわち、CPU31により設定された回数n1 )、A/D変換処理が行われたか否かが判断され、A/D変換処理がn1 回行われていない(すなわち、A/D変換処理すべき回数が残っている)と判断されると、タイマ35に対し、カウント動作の再起動が掛けられ、タイマ35のカウント動作が再開されるように構成されている。
【0081】
そのため、タイマ35により、再び、カウント値ctまでのカウントが行われ、前記カウント終了信号が出力されると、A/D変換制御回路33により、A/D変換器34に対し、A/D変換開始の指示が与えられ、A/D変換器34により、A/D変換処理が行われる。すなわち、回数メモリ33bに記憶されている回数n1 が2以上である場合、1回目のA/D変換処理が終了から所定の時間(少なくとも、カウント値ctまでのカウントに要する時間)を経て、2回目のA/D変換処理が行われる。
【0082】
従って、1回目のA/D変換処理と2回目のA/D変換処理との間に時間的余裕(少なくとも、カウント値ctまでのカウントに要する時間)を持たせて、2回目のA/D変換処理を行わせることができる。また、上記した一連の動作は、CPU31とは独立した動作にて、A/D変換処理がn1 回行われるまで、繰り返し行われるため、CPU31の負担を小さく抑えることができ、また各種ハードウェアを繋ぐバスを占有することなく、A/D変換処理とA/D変換処理との間に時間的余裕を持たせて、A/D変換処理をn1 回行わせることができる。
【0083】
図3は、実施の形態(2)に係るA/D変換装置を採用した信号処理システムの要部を概略的に示したブロック図である。図中42はA/D変換装置を示しており、A/D変換装置42はA/D変換制御回路43と、A/D変換器44と、タイマ45とを含んで構成されている。
【0084】
A/D変換制御回路43は、タイマ45からのカウント終了信号を受けて、A/D変換器44に対し、A/D変換開始の指示を与えるものであり、また、A/D変換制御回路43にはA/D変換器44で変換されたディジタル信号を一時的に蓄積するための蓄積部43aと、CPU41により設定されるA/D変換処理回数を記憶するための回数メモリ43bとが装備されている。
【0085】
タイマ45は、発振回路45aと、カウンタ45bと、CPU41により設定されるカウント値を記憶するためのカウント値メモリ45cと、所定のタイミングで、カウント値メモリ45cに記憶されているカウント値が書き込まれるカウント値メモリ45dと、比較回路45eとを備え、発振回路45aからのクロックパルスをカウンタ35bでカウントし、カウンタ45bでのカウント値と、カウント値メモリ45dに記憶されているカウント値ctとを比較回路45eで比較し、これらカウント値が一致すると、カウント終了信号をA/D変換制御回路43へ出力するように構成されている。
【0086】
また、カウンタ45bでのカウント値と、カウント値メモリ45dに記憶されているカウント値ctとが一致すると、比較回路45eからカウンタ45bへリセット信号が出力され、カウンタ45bのカウント値がリセットされるようになっている。
【0087】
A/D変換器44は、A/D変換制御回路43からA/D変換開始の指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路43へ出力するように構成されている。
【0088】
CPU41は、A/D変換制御回路43へA/D変換回数を設定したり、タイマ45へカウンタ45bがカウントすべきカウント値を設定したり、カウンタ45bへクロックパルスのカウント開始を指示するように構成されている。
【0089】
次に、前記信号処理システムにおけるA/D変換処理の動作手順を図4に示したタイミングチャートに基づいて説明する。まず始めに、CPU41がタイマ45へカウント値ct1 を指定し、A/D変換制御回路43へA/D変換回数(n2 回)を指定する(2−▲1▼)。
【0090】
タイマ45はCPU41からカウント値ct1 の指定を受けると、カウント値メモリ45cへ指定されたカウント値ct1 を記憶させ、また、A/D変換制御回路43はCPU41からA/D変換回数n2 の指定を受けると、回数メモリ43bへ指定された回数n2 を記憶させる。
【0091】
次に、CPU41がタイマ45に対し、カウントの開始を指示し(2−▲2▼)、タイマ45がカウント開始の指示を受けると、まず、カウント値メモリ45cに記憶されているカウント値ct’(=ct1 )を読み出して、読み出したカウント値ct’(=ct1 )をカウント値メモリ45dへ書き込み、その後、カウントを開始し、カウンタ45bでのカウント値と、カウント値メモリ45dに記憶されているカウント値ct(=ct1 )とが一致する(すなわち、カウンタ45bでカウント値ctまでのカウントが行われる)と、A/D変換制御回路43に対し、カウント終了信号を出力する(2−▲3▼)。
【0092】
A/D変換制御回路43がタイマ45からのカウント終了信号を受信すると、A/D変換器44へA/D変換起動の開始を指示し(2−▲4▼)、A/D変換器44が前記指示を受けると、入力されるアナログ信号をディジタル信号に変換し、変換結果をA/D変換制御回路43へ出力する(2−▲5▼)。
【0093】
A/D変換制御回路43がA/D変換器44から出力された変換結果を取得すると、取得した変換結果を蓄積部43aへ格納する共に、A/D変換器44からn2 回分の変換結果を取得したか否かを判断し、n2 回分の変換結果を取得したと判断すれば、CPU41に対してA/D変換終了の通知(割り込み)を行う(2−▲7▼)。CPU41は、A/D変換制御回路43からのA/D変換終了の通知を受けると、その後、A/D変換制御回路43の蓄積部43aに蓄積されている変換結果を読み出し、読み出した変換結果を用いて所定の処理を行う。
【0094】
他方、n2 回分の変換結果を取得していないと判断すれば、タイマ45に対し、カウント動作の開始を指示し(2−▲6▼)、タイマ45がカウント開始の指示を受けると、まず、カウント値メモリ45cに記憶されているカウント値ct’を読み出して、読み出したカウント値ct’をカウント値メモリ45dへ書き込み、その後、カウントを開始し、カウンタ45bでのカウント値と、カウント値メモリ45dに記憶されているカウント値ctとが一致する(すなわち、カウンタ45bでカウント値ctまでのカウントが行われる)と、A/D変換制御回路43に対し、カウント終了信号を出力する(2−▲3▼)。
【0095】
上記実施の形態(2)に係るA/D変換装置によれば、タイマ45により、カウント値メモリ45dに記憶されているカウント値ctまでのカウントが行われ、A/D変換制御回路43へカウント終了信号が出力されると、A/D変換制御回路43により、A/D変換器44に対し、A/D変換開始の指示が与えられ、A/D変換器44により、A/D変換処理が行われる。すなわち、タイマ45のカウント動作を開始させることによって、A/D変換処理を行わせることができる。
【0096】
従って、CPU41からタイマ45に対し、カウント動作開始の指示を与え、タイマ45のカウント動作を開始させるだけで、その後は、CPU41とは独立した動作にて、1回目のA/D変換処理を行わせることができる。
【0097】
また、1回目のA/D変換処理が終了すると、A/D変換制御回路43で回数メモリ43bに記憶されている回数n2 (すなわち、CPU41により設定された回数n2 )、A/D変換処理が行われたか否かが判断され、A/D変換処理がn2 回行われていない(すなわち、A/D変換処理すべき回数が残っている)と判断されると、タイマ45に対し、カウント動作の再起動が掛けられ、タイマ45のカウント動作が再開されるように構成されている。
【0098】
そのため、タイマ45により、再び、カウント値ctまでのカウントが行われ、前記カウント終了信号が出力されると、A/D変換制御回路43により、A/D変換器44に対し、A/D変換開始の指示が与えられ、A/D変換器44により、A/D変換処理が行われる。すなわち、回数メモリ43bに記憶されている回数n2 が2以上である場合、1回目のA/D変換処理が終了から所定の時間(少なくとも、カウント値ctまでのカウントに要する時間)を経て、2回目のA/D変換処理が行われる。
【0099】
従って、1回目のA/D変換処理と2回目のA/D変換処理との間に時間的余裕(少なくとも、カウント値ctまでのカウントに要する時間)を持たせて、2回目のA/D変換処理を行わせることができる。また、上記した一連の動作は、CPU41とは独立した動作にて、A/D変換処理がn2 回行われるまで、繰り返し行われるため、CPU41の負担を小さく抑えることができ、また各種ハードウェアを繋ぐバスを占有することなく、A/D変換処理とA/D変換処理との間に時間的余裕を持たせて、A/D変換処理をn2 回行わせることができる。
【0100】
また、CPU41からタイマ45へカウント値の指定があると、指定されたカウント値がカウント値メモリ45cへ書き込まれるようになっており、CPU41又はA/D変換制御回路43からカウント開始の指示があると、カウント値メモリ45cに記憶されているカウント値が、カウント値メモリ45dに書き込まれるようになっている。
【0101】
従って、i回目のカウント動作が開始されてから、(i+1)回目のカウント動作が開始されるまでの間に、CPU41が新たなカウント値を設定すれば、(i+1)回目のカウントは新たに設定されたカウント値までカウントすることとなる。例えば、図4に示したように、2回目のカウント動作が開始されてから、3回目のカウント動作が開始されるまでの間に、CPU41によりカウント値ct2 が設定されると、3回目のカウントは、カウント値ct2 までカウントするようになる。これにより、A/D変換処理とA/D変換処理との間の長さの変更を外部から自由に行うことができる。
【0102】
また、上記実施の形態(1)又は(2)に係るA/D変換装置では、CPU31(41)が、A/D変換制御回路33(43)からのA/D変換終了の通知を受けると、その後、A/D変換制御回路33(43)の蓄積部33a(43a)に蓄積されている変換結果を読み出し、読み出した変換結果を用いて所定の処理を行うようになっているが、別の実施の形態に係るA/D変換装置では、演算手段を設けて、蓄積部33a(43a)に蓄積されている変換結果に基づいて、所定の演算処理を行うようにし、CPU31(41)がA/D変換器34(44)による変換結果ではなく、前記演算手段による演算結果を読み出すことができるようにしても良い。これにより、CPU31(41)の負担を更に小さく抑えることができる。なお、前記演算手段については、A/D変換制御回路33(43)内に設けなくても良い。
【0103】
また、前記所定の演算処理としては、例えば、複数の変換結果の和、複数の変換結果の平均値、複数の変換結果のうちの最大値、複数の変換結果のうちの最小値、及び複数の変換結果のうちの最大値と最小値との差などが挙げられる。
【0104】
図5に、前記別の実施の形態に係るA/D変換装置におけるA/D変換制御回路を示す。図中33AはA/D変換制御回路を示しており、A/D変換制御回路33Aは、A/D変換器34で変換されたディジタル信号を一時的に蓄積するための蓄積部33aと、CPU31により設定されるA/D変換処理回数n1 を記憶するための回数メモリ33bと、n1 回分の変換結果の平均値を求める演算手段51と、演算手段により求められた演算結果を記憶する演算結果記憶部52とが装備され、蓄積部33aと演算手段51と演算結果記憶部52とはバス53で繋がれている。
【0105】
また、演算手段51は、n1 回分の変換結果を取得すると、蓄積部33aに記憶されているn1 回分の変換結果の平均値を求め、求めた値を演算結果記憶部52へ記憶させるように構成されている。なお、演算結果記憶部52を設けずに、演算結果については蓄積部33aへ記憶させるようにしても良い。
【0106】
ところで、図5に示したA/D変換装置では、n1 回分の変換結果を取得してから、最後にまとめて演算処理を行うようになっているため、1回のA/D変換処理による変換結果(例えば、8ビットデータ)を蓄積するのに、8ビットのレジスタが必要となり、A/D変換回数が16(=24 )回に設定されている場合には、少なくとも128(=8×16)ビットのレジスタを用意する必要がある。
【0107】
しかしながら、演算処理を最後にまとめて行うのではなく、定期的に(例えば、1回分の変換結果を取得する度に)行うようにすることによって、用意すべきレジスタの量を少なくすることができる。例えば、1回分の変換結果を取得する度に、加算処理を施していけば、演算結果を蓄積するだけのレジスタ、すなわち12(=8+4)ビット分だけ用意すれば良いこととなる。
【0108】
また、別の実施の形態に係るA/D変換装置では、複数種の演算処理を行うことが可能となるように構成し、CPUからの指定に基づいて、これら複数種の演算処理の中から、演算処理が選択することができるようにしても良い。なお、前記指定するタイミングとしては、カウント値やA/D変換回数を初期設定するタイミングが望ましい。
【0109】
また、上記実施の形態(1)又は(2)に係るA/D変換装置では、CPU31(41)からA/D変換回数を設定することができるようにしているが、別の実施の形態に係るA/D変換装置では、A/D変換回数を固定させておき、CPU31(41)の負担が大きくならないようにしても良い。
【0110】
また、上記実施の形態(1)又は(2)に係るA/D変換装置では、同一チャンネルのアナログ信号を繰り返しディジタル信号に変換するリピート変換についてのみ説明しているが、異なったチャンネルのアナログ信号を1チャンネル毎にディジタル信号に変換していくスキャン変換についても、上記と同様に実現することができ、例えば、複数の変換結果のうちの最大値(又は最小値)を算出し、算出した最大値(又は最小値)が何回目のA/D変換処理による変換結果であるのかといった情報を取得することによって、前記最大値(又は前記最小値)がどのチャンネルから得られたものであるのかといった情報についても取得することができる。
【0111】
また、ここでは、A/D変換制御回路33(43)と、A/D変換器34(44)と、タイマ35(45)とを含んで構成されるA/D変換装置32(42)を採用した信号処理システムについてのみ説明しているが、別の実施の形態に係る信号処理システムでは、A/D変換装置には少なくともA/D変換器を有し、A/D変換制御回路やタイマについては、前記A/D変換装置とは独立した別の装置としても良い。
【図面の簡単な説明】
【図1】本発明の実施の形態(1)に係るA/D変換装置を採用した信号処理システムの要部を概略的に示したブロック図である。
【図2】図1に示した信号処理システムにおけるA/D変換処理の動作手順を示したタイミングチャートである。
【図3】実施の形態(2)に係るA/D変換装置を採用した信号処理システムの要部を概略的に示したブロック図である。
【図4】図3に示した信号処理システムにおけるA/D変換処理の動作手順を示したタイミングチャートである。
【図5】別の実施の形態に係るA/D変換装置におけるA/D変換制御回路の要部を概略的に示したブロック図である。
【図6】従来のA/D変換方式(リピート変換)を採用した信号処理システムの要部を概略的に示したブロック図である。
【図7】図6に示した信号処理システムにおけるA/D変換処理の動作手順を示したタイミングチャートである。
【図8】従来のA/D変換方式(スキャン変換)を採用した信号処理システムの要部を概略的に示したブロック図である。
【図9】図8に示した信号処理システムにおけるA/D変換処理の動作手順を示したタイミングチャートである。
【図10】従来のA/D変換方式(シングル変換)を採用した信号処理システムの要部を概略的に示したブロック図である。
【図11】図10に示した信号処理システムにおけるA/D変換処理の動作手順を示したタイミングチャートである。
【図12】別の従来のA/D変換方式(シングル変換)を採用した信号処理システムの要部を概略的に示したブロック図である。
【符号の説明】
31、41 CPU
32、42 A/D変換装置
33、33A、43 A/D変換制御回路
34、44 A/D変換器
35、45 タイマ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an A / D conversion apparatus and a signal processing system, and more specifically, an A / D conversion apparatus capable of providing a time margin between an A / D conversion process and an A / D conversion process, and The present invention relates to a signal processing system.
[0002]
[Prior art]
In general, A / D conversion includes repeat conversion in which analog signals of the same channel are repeatedly converted into digital signals, scan conversion in which analog signals of different channels are converted into digital signals for each channel, There is what is called single conversion in which an analog signal of a channel is converted into a digital signal only once.
[0003]
FIG. 6 is a block diagram schematically showing a main part of a signal processing system employing a conventional A / D conversion method (repeat conversion). The signal processing system includes a
[0004]
The
In response to the instruction from the A / D
[0005]
Next, the operation procedure of the A / D conversion process in the signal processing system will be described based on the timing chart shown in FIG. First, the
[0006]
When the A / D
[0007]
When the A / D
When the
[0008]
FIG. 8 is a block diagram schematically showing a main part of a signal processing system adopting a conventional A / D conversion method (scan conversion). The signal processing system includes a
[0009]
In addition, analog signals s of different channels input to the analog
[0010]
The
In response to the instruction from the A / D
[0011]
Next, the operation procedure of the A / D conversion process in the signal processing system will be described based on the timing chart shown in FIG. First, the
[0012]
When the A / D
[0013]
When the A / D
When the
[0014]
As described above, according to the signal processing system shown in FIG. 6, analog signals of the same channel can be repeatedly converted into digital signals (repeat conversion). Also, according to the signal processing system shown in FIG. The analog signals of different channels can be converted into digital signals for each channel (scan conversion).
[0015]
However, in any of the signal processing systems shown in FIGS. 6 and 8, as is apparent from the timing charts shown in FIGS. 7 and 9, there is a time between the A / D conversion process and the A / D conversion process. Since there is almost no sufficient margin (a- (4), b- (5)), the A / D conversion process is performed continuously in a short time, and the desired result of the A / D conversion process is acquired. There was a problem that could not. This is because, for example, there is a case where it is desired to perform A / D conversion processing a plurality of times within a certain long time and to obtain an average value thereof.
[0016]
[Problems to be solved by the invention]
As a method for solving the above-described problem, there is a method of starting single conversion while monitoring a timer. FIG. 10 shows a signal processing system for realizing single conversion.
[0017]
The signal processing system shown in FIG. 10 includes a
[0018]
The
Upon receiving the instruction from the A / D
[0019]
Next, the operation procedure of the A / D conversion process in the signal processing system will be described based on the timing chart shown in FIG. First, the
[0020]
When the A / D
[0021]
When the A / D
When the
[0022]
Thus, according to the signal processing system shown in FIG. 10, the
[0023]
However, the signal processing system needs to give an instruction to start A / D conversion control every fixed period T while the
[0024]
As a method for solving such a problem, as shown in FIG. 12, a
[0025]
The present invention has been made in view of the above problems, and does not increase the burden on the CPU and does not occupy the bus, so that there is a time margin between the A / D conversion process and the A / D conversion process. It is an object of the present invention to provide an A / D conversion device and a signal processing system that can be provided.
[0026]
[Means for solving the problems and effects thereof]
In order to achieve the above object, an A / D conversion apparatus (1) according to the present invention performs A / D conversion means for performing A / D conversion processing for converting an analog signal into a digital signal, performs a counting operation, and performs a predetermined operation. Upon completion of the count up to the count value, timer means for outputting a count end signal indicating the end of the count, and receiving the count end signal from the timer means, the A / D conversion means starts A / D conversion. A / D conversion control means for giving instructions , When the A / D conversion process by the A / D conversion unit is completed, a determination unit that determines whether or not the A / D conversion process has been performed a predetermined number of times, and the predetermined number of times A / D by the determination unit And a restarting means for restarting the counting operation for the timer means in response to the determination that the D conversion processing is not performed. , The timer means restarts the counting operation in response to an instruction from the restarting means. And count the predetermined time until the next A / D conversion process It is characterized by that.
[0027]
According to the A / D converter (1), the timer means counts up to the predetermined count value, and when the count end signal is output, the A / D conversion control means An instruction to start A / D conversion is given to the A / D conversion means, and A / D conversion processing is performed by the A / D conversion means. That is, A / D conversion processing can be performed by starting the count operation of the timer means.
[0028]
Therefore, for example, an instruction to start the count operation is given from the outside (CPU or the like) to the timer means, and the count operation of the timer means is simply started. Thereafter, the first operation is performed independently of the outside. A / D conversion processing can be performed.
[0029]
When the first A / D conversion process is completed, it is determined whether the A / D conversion process has been performed for the predetermined number of times, and the A / D conversion process has not been performed for the predetermined number of times ( That is, when it is determined that the predetermined number of times is set to 2 or more and the number of times for A / D conversion processing remains), the timer unit is restarted for counting operation, The counting operation of the timer means is resumed. The predetermined time until the next A / D conversion process is counted It is comprised so that.
[0030]
Therefore, when the timer means counts again to the predetermined count value and the count end signal is output, the A / D conversion control means causes the A / D conversion means to An instruction to start / D conversion is given, and A / D conversion processing is performed by the A / D conversion means. That is, when the predetermined number of times is set to 2 or more, a predetermined time (at least a time required for counting up to the predetermined count value) passes after the end of the first A / D conversion process, and 2 A second A / D conversion process is performed.
[0031]
Accordingly, a time margin (at least the time required for counting up to the predetermined count value) is provided between the first A / D conversion process and the second A / D conversion process, and the second A / D conversion process is performed. / D conversion processing can be performed. Further, the series of operations described above are performed independently of the outside (for example, the CPU) and repeated until the A / D conversion process is performed a predetermined number of times, so that the burden on the CPU can be kept small. In addition, the A / D conversion process is performed the predetermined number of times with a time margin between the A / D conversion process and the A / D conversion process without occupying a bus connecting various hardware. be able to.
[0032]
An A / D conversion device (2) according to the present invention includes a first count value storage means for storing a count value to be counted in the A / D conversion device (1), and is input from the outside. The count value is written into the first count value storage means, and when the timer means finishes counting up to the count value stored in the first count value storage means, It is characterized by outputting an end signal.
[0033]
According to the A / D converter (2), when the timer means counts up to the count value stored in the first count value storage means, the count end signal is output. It is configured.
Since the A / D converter (2) is a quotation of the A / D converter (1), when the count end signal is output, the A / D converter means A / D converter (2). D conversion processing is performed.
[0034]
That is, when the timer means counts up to the count value stored in the first count value storage means, the A / D conversion means performs A / D conversion processing. In other words, unless the count up to the count value stored in the first count value storage means is performed, the next A / D conversion process is not performed.
[0035]
Accordingly, a time required for counting up to at least the count value stored in the first count value storage means can be provided between the A / D conversion process and the A / D conversion process.
[0036]
Further, according to the A / D conversion device (2), the count value input from the outside (for example, CPU) is written in the first count value storage means. The length between the D conversion process and the A / D conversion process can be freely set from the outside.
[0037]
An A / D conversion device (3) according to the present invention includes a second count value storage means for storing a count value input from the outside in the A / D conversion device (2), and has a predetermined value. When the condition is satisfied, the count value stored in the second count value storage unit is configured to be written in the first count value storage unit.
[0038]
According to the A / D conversion device (3), when the predetermined condition is satisfied, the count value stored in the second count value storage means is written into the first count value storage means. The count value different from the count value stored in the first count value storage means is stored in the second count value storage means so as to satisfy the predetermined condition. Thus, the length between the A / D conversion process and the A / D conversion process can be changed.
[0039]
Further, according to the A / D conversion device (3), the count value input from the outside (for example, CPU) is written in the second count value storage means. The length between the D conversion process and the A / D conversion process can be freely changed from the outside.
[0040]
In the A / D conversion device (4) according to the present invention, in the A / D conversion device (3), the predetermined condition includes an instruction to start the count operation to the timer means. It is characterized by being.
[0041]
According to the A / D conversion apparatus (4), when the predetermined condition is satisfied, including the condition that the timer unit is instructed to start the count operation, the second count value storage unit stores The stored count value is written in the first count value storage means.
Since the A / D conversion device (4) refers to the A / D conversion device (1), the number of times to perform the A / D conversion processing remains after the A / D conversion processing ends. If it is, the timer means is instructed to resume the counting operation.
[0042]
Therefore, for example, if the predetermined condition is that the timer means is instructed to start the count operation, when the number of times of A / D conversion processing remains after the A / D conversion processing ends. The timer unit is instructed to resume the count operation, and the count value stored in the second count value storage unit is written into the first count value storage unit.
[0043]
Therefore, as shown in FIG. 4 to be described later, for example, when it is desired to change the length between the second A / D conversion process and the third A / D conversion process, the second timer is started. From the start of the timer to the start of the third timer start, a new count value may be input from the outside and the count value stored in the second count value storage means Become.
[0044]
An A / D conversion device (5) according to the present invention includes an A / D conversion process to be performed by the A / D conversion means in any of the A / D conversion devices (1) to (4). A number storage means for storing the number of times is provided, the number of times input from the outside is configured to be written in the number of times storage means, and the predetermined number of times is the number of times stored in the number of times storage means It is characterized by.
[0045]
According to the A / D conversion device (5), the predetermined number of times (that is, the number of times of A / D conversion processing) is the number of times stored in the number of times storage means, and is external (for example, Since the number of times input from the CPU is written in the number storage means, the number of times of A / D conversion processing can be freely set from the outside.
[0046]
The A / D conversion device (6) according to the present invention may be configured to perform a predetermined operation based on a conversion result by the A / D conversion means in any of the A / D conversion devices (1) to (5). It is characterized by comprising a calculation means for performing processing.
Further, in the A / D conversion device (7) according to the present invention, in the A / D conversion device (6), the calculation means includes a sum of a plurality of conversion results, an average value of the plurality of conversion results, and a plurality of conversions. It is characterized in that one of a maximum value among the results, a minimum value among the plurality of conversion results, and a difference between the maximum value and the minimum value among the plurality of conversion results is obtained.
[0047]
According to the A / D conversion device (6) or (7), since the calculation means is provided, calculation processing based on the conversion result by the A / D conversion means is not performed outside (for example, a CPU). Therefore, the burden on the CPU can be kept small. In addition, as what is calculated | required by the said calculating means, For example, the sum of several conversion results, the average value of several conversion results, the maximum value among several conversion results, the minimum value among several conversion results, and For example, the difference between the maximum value and the minimum value among the plurality of conversion results.
[0048]
Further, the A / D conversion device (8) according to the present invention is such that, in the A / D conversion device (6) or (7), the calculation means can perform a plurality of types of calculation processing. Based on the designation from, a type of arithmetic processing is selected from the plurality of types of arithmetic processing, and the selected type of arithmetic processing is performed.
[0049]
According to the A / D conversion device (8), since the type of the arithmetic processing can be freely selected from among a plurality of types of arithmetic processing, the arithmetic result by the desired arithmetic processing can be acquired.
[0050]
An A / D conversion device (9) according to the present invention includes any one of the A / D conversion devices (6) to (8) including calculation result storage means for storing a calculation result by the calculation means. What is obtained by the calculation means is a desired value of the plurality of conversion results, and a plurality of conversions for the desired value obtained by the calculation means and the conversion processing from which the desired value is obtained. The processing order in the processing is written in the calculation result storage means.
[0051]
By the way, if you want to obtain the maximum value (or minimum value) among the values obtained by converting analog signals of different channels into digital signals for each channel, only the maximum value (or minimum value) can be obtained. There is also a case where it is desired to obtain information such as from which channel the value is obtained.
[0052]
According to the A / D conversion device (9), the desired value (for example, the maximum value, the minimum value) of the plurality of conversion results is stored in the calculation result storage means, so that the calculation result storage means By reading the data stored in the memory, the CPU or the like can obtain the desired value.
[0053]
In addition, the processing order in the plurality of conversion processes for the conversion process in which the desired value is obtained is also stored in the calculation result storage means, so the data stored in the calculation result storage means By reading, the CPU or the like can acquire the processing order.
[0054]
Thus, for example, different channel channels 1 ~ Ch m The maximum value among the values obtained by converting each analog signal into a digital signal for each channel, and the processing order in the conversion processing of a plurality of m with respect to the conversion processing from which the maximum value was obtained ( i)) is stored in the calculation result storage means, and by reading the data stored in the calculation result storage means, the CPU can obtain the maximum value and obtain the maximum value. Order (i-th), that is, the maximum value is the channel ch i It is also possible to obtain information such as that obtained from.
[0055]
In the A / D conversion device (10) according to the present invention, in any one of the A / D conversion devices (6) to (9), the calculation unit may perform the predetermined number of times A by the determination unit. In response to the determination that the / D conversion process has been performed, the predetermined calculation process is performed.
[0056]
According to the A / D conversion device (10), the calculation means performs the predetermined calculation processing upon receiving a determination by the determination means that there is no remaining number of times to perform A / D conversion processing. It has become. Therefore, every time the A / D conversion process is completed once, the predetermined calculation process can be performed collectively at the end, not the predetermined calculation process.
[0057]
An A / D conversion device (11) according to the present invention is the A / D conversion device according to any one of the A / D conversion devices (6) to (9). The predetermined calculation process is performed every time the process is completed once or a plurality of times.
[0058]
According to the A / D conversion device (11), the calculation means performs the predetermined calculation process every time the A / D conversion process by the A / D conversion means is completed once or a plurality of times. It has become.
[0059]
For example, when calculating the sum of the conversion results (8 bits / 1 time) for 16 A / D conversion processes, 16 (= 2) as in the A / D conversion device (10). Four In order to collectively add the conversion results for the batches, it is necessary to prepare registers for at least 128 (= 8 × 16) bits. In the case of the A / D converter (11), For example, since the addition process is performed every time the A / D conversion process is completed once, it is only necessary to prepare registers for 12 (= 8 + 4) bits, so that the register capacity can be reduced.
[0060]
In addition, the signal processing system (1) according to the present invention performs A / D conversion means for performing A / D conversion processing for converting an analog signal into a digital signal, performs a counting operation, and finishes counting up to a predetermined count value. Then, a timer means for outputting a count end signal indicating the end of counting, and an A / D which receives the count end signal from the timer means and gives an A / D conversion start instruction to the A / D conversion means. Conversion control means , When the A / D conversion process by the A / D conversion unit is completed, a determination unit that determines whether or not the A / D conversion process has been performed a predetermined number of times, and the predetermined number of times A / D by the determination unit And a restarting means for restarting the counting operation for the timer means in response to the determination that the D conversion processing is not performed. , The timer means restarts the counting operation in response to an instruction from the restarting means. And count the predetermined time until the next A / D conversion process It is characterized by that.
[0061]
According to the signal processing system (1), when the timer means counts up to the predetermined count value and outputs the count end signal, the A / D conversion control means causes the A / D conversion control means to output the A / D conversion control means. An instruction to start A / D conversion is given to the D conversion means, and A / D conversion processing is performed by the A / D conversion means. That is, A / D conversion processing can be performed by starting the count operation of the timer means.
[0062]
Therefore, for example, an instruction to start the count operation is given from the outside (CPU or the like) to the timer means, and the count operation of the timer means is simply started. Thereafter, the first operation is performed independently of the outside. A / D conversion processing can be performed.
[0063]
When the first A / D conversion process is completed, it is determined whether the A / D conversion process has been performed for the predetermined number of times, and the A / D conversion process has not been performed for the predetermined number of times ( That is, when it is determined that the predetermined number of times is set to 2 or more and the number of times for A / D conversion processing remains), the timer unit is restarted for counting operation, The counting operation of the timer means is resumed. The predetermined time until the next A / D conversion process is counted It is comprised so that.
[0064]
Therefore, when the timer means counts again to the predetermined count value and the count end signal is output, the A / D conversion control means causes the A / D conversion means to An instruction to start / D conversion is given, and A / D conversion processing is performed by the A / D conversion means. That is, when the predetermined number of times is set to 2 or more, a predetermined time (at least a time required for counting up to the predetermined count value) passes after the end of the first A / D conversion process, and 2 A second A / D conversion process is performed.
[0065]
Accordingly, a time margin (at least the time required for counting up to the predetermined count value) is provided between the first A / D conversion process and the second A / D conversion process, and the second A / D conversion process is performed. / D conversion processing can be performed. Further, the series of operations described above are performed independently of the outside (for example, the CPU) and repeated until the A / D conversion process is performed a predetermined number of times, so that the burden on the CPU can be kept small. In addition, the A / D conversion process is performed the predetermined number of times with a time margin between the A / D conversion process and the A / D conversion process without occupying a bus connecting various hardware. be able to.
[0066]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of an A / D conversion device and a signal processing system according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram schematically showing a main part of a signal processing system employing an A / D conversion device according to the embodiment (1). In the figure, reference numeral 32 denotes an A / D converter, and the A / D converter 32 includes an A / D
[0067]
The A / D
[0068]
The timer 35 includes an
[0069]
When the count value in the
[0070]
When the A /
[0071]
The
[0072]
Next, the operation procedure of the A / D conversion process in the signal processing system will be described based on the timing chart shown in FIG. First, the
[0073]
When the timer 35 receives the specification of the count value ct from the
[0074]
Next, the
[0075]
When the A / D
[0076]
When the A / D
[0077]
When the
[0078]
In the A / D conversion device according to the above embodiment (1), the timer 35 counts up to the count value ct stored in the count value memory 35c (that is, the count value ct set by the CPU 31). When the count end signal is output to the A / D
[0079]
Therefore, the
[0080]
When the first A / D conversion process is completed, the number n stored in the
[0081]
Therefore, the timer 35 again counts up to the count value ct, and when the count end signal is output, the A / D
[0082]
Therefore, the second A / D is performed with a time margin (at least the time required to count up to the count value ct) between the first A / D conversion process and the second A / D conversion process. Conversion processing can be performed. The series of operations described above is an operation independent of the
[0083]
FIG. 3 is a block diagram schematically showing a main part of a signal processing system employing the A / D conversion device according to the embodiment (2). In the figure, reference numeral 42 denotes an A / D converter, and the A / D converter 42 includes an A / D
[0084]
The A / D
[0085]
The timer 45 is written with an
[0086]
When the count value in the
[0087]
When the A /
[0088]
The
[0089]
Next, the operation procedure of the A / D conversion process in the signal processing system will be described based on the timing chart shown in FIG. First, the
[0090]
The timer 45 receives a count value ct from the
[0091]
Next, the
[0092]
When the A / D
[0093]
When the A / D
[0094]
On the other hand, n 2 If it is determined that the conversion results for the number of times have not been acquired, the timer 45 is instructed to start the count operation (2- <6>). When the timer 45 receives the instruction to start the count, first, the count value memory The count value ct ′ stored in 45c is read, and the read count value ct ′ is written to the
[0095]
According to the A / D conversion device according to the above embodiment (2), the timer 45 counts up to the count value ct stored in the
[0096]
Therefore, the
[0097]
When the first A / D conversion process is completed, the number n stored in the
[0098]
Therefore, the timer 45 again counts up to the count value ct, and when the count end signal is output, the A / D
[0099]
Therefore, the second A / D is performed with a time margin (at least the time required to count up to the count value ct) between the first A / D conversion process and the second A / D conversion process. Conversion processing can be performed. The series of operations described above is an operation independent of the
[0100]
When the count value is designated from the
[0101]
Therefore, if the
[0102]
In the A / D conversion device according to the above embodiment (1) or (2), when the CPU 31 (41) receives a notification of the end of A / D conversion from the A / D conversion control circuit 33 (43). Thereafter, the conversion result stored in the
[0103]
In addition, as the predetermined arithmetic processing, for example, a sum of a plurality of conversion results, an average value of the plurality of conversion results, a maximum value among the plurality of conversion results, a minimum value among the plurality of conversion results, and a plurality of For example, the difference between the maximum value and the minimum value of the conversion results.
[0104]
FIG. 5 shows an A / D conversion control circuit in the A / D conversion apparatus according to another embodiment. In the figure, 33A indicates an A / D conversion control circuit. The A / D
[0105]
Further, the calculation means 51 is n 1 When the conversion results for the number of times are acquired, n stored in the
[0106]
By the way, in the A / D converter shown in FIG. 1 Since the calculation results are obtained at the end after obtaining the conversion results for the number of times, the conversion result (for example, 8-bit data) by one A / D conversion processing is stored in 8 A bit register is required, and the number of A / D conversions is 16 (= 2 Four ) Times, it is necessary to prepare a register of at least 128 (= 8 × 16) bits.
[0107]
However, it is possible to reduce the amount of registers to be prepared by performing the calculation processing periodically (for example, every time a conversion result for one time is acquired) instead of performing the calculation processing collectively. . For example, if an addition process is performed each time a conversion result for one time is acquired, it is sufficient to prepare only a register for storing operation results, that is, 12 (= 8 + 4) bits.
[0108]
In addition, the A / D conversion device according to another embodiment is configured to be capable of performing a plurality of types of arithmetic processing, and based on designation from the CPU, from among the plurality of types of arithmetic processing. The calculation process may be selected. Note that the timing to specify is preferably a timing to initially set the count value and the number of A / D conversions.
[0109]
In the A / D conversion device according to the embodiment (1) or (2), the CPU 31 (41) can set the number of A / D conversions. In such an A / D conversion device, the number of A / D conversions may be fixed so that the burden on the CPU 31 (41) does not increase.
[0110]
In the A / D conversion device according to the above embodiment (1) or (2), only repeat conversion for repeatedly converting analog signals of the same channel into digital signals has been described, but analog signals of different channels are described. Can also be realized in the same manner as described above, for example, by calculating the maximum value (or minimum value) of a plurality of conversion results and calculating the maximum From which channel the maximum value (or the minimum value) is obtained by acquiring information such as how many times the A / D conversion process is performed on the value (or minimum value) Information can also be obtained.
[0111]
Here, an A / D conversion device 32 (42) including an A / D conversion control circuit 33 (43), an A / D converter 34 (44), and a timer 35 (45) is provided. Only the adopted signal processing system has been described, but in the signal processing system according to another embodiment, the A / D converter has at least an A / D converter, and an A / D conversion control circuit or timer For the above, another device independent of the A / D conversion device may be used.
[Brief description of the drawings]
FIG. 1 is a block diagram schematically showing a main part of a signal processing system employing an A / D converter according to an embodiment (1) of the present invention.
2 is a timing chart showing an operation procedure of A / D conversion processing in the signal processing system shown in FIG. 1. FIG.
FIG. 3 is a block diagram schematically showing a main part of a signal processing system employing an A / D conversion device according to an embodiment (2).
4 is a timing chart showing an operation procedure of A / D conversion processing in the signal processing system shown in FIG. 3;
FIG. 5 is a block diagram schematically showing a main part of an A / D conversion control circuit in an A / D conversion device according to another embodiment.
FIG. 6 is a block diagram schematically showing a main part of a signal processing system adopting a conventional A / D conversion method (repeat conversion).
7 is a timing chart showing an operation procedure of A / D conversion processing in the signal processing system shown in FIG. 6;
FIG. 8 is a block diagram schematically showing a main part of a signal processing system adopting a conventional A / D conversion method (scan conversion).
9 is a timing chart showing an operation procedure of A / D conversion processing in the signal processing system shown in FIG. 8. FIG.
FIG. 10 is a block diagram schematically showing a main part of a signal processing system adopting a conventional A / D conversion method (single conversion).
11 is a timing chart showing an operation procedure of A / D conversion processing in the signal processing system shown in FIG.
FIG. 12 is a block diagram schematically showing a main part of a signal processing system adopting another conventional A / D conversion method (single conversion).
[Explanation of symbols]
31, 41 CPU
32, 42 A / D converter
33, 33A, 43 A / D conversion control circuit
34, 44 A / D converter
35, 45 timer
Claims (12)
カウント動作を行い、所定のカウント値までのカウントが終了すると、カウント終了を示すカウント終了信号を出力するタイマ手段と、
該タイマ手段からの前記カウント終了信号を受けて、前記A/D変換手段に対し、A/D変換開始の指示を与えるA/D変換制御手段と、
前記A/D変換手段によるA/D変換処理が終了すると、所定の回数、A/D変換処理が行われたか否かを判断する判断手段と、
該判断手段による、前記所定の回数、A/D変換処理が行われていないとの判断を受けて、前記タイマ手段に対し、カウント動作を再起動させる再起動手段とを備え、
前記タイマ手段が、前記再起動手段からの指示を受けて、カウント動作を再開し、次回のA/D変換処理までの所定時間をカウントするものであることを特徴とするA/D変換装置。A / D conversion means for performing A / D conversion processing for converting an analog signal into a digital signal;
Timer means for performing a count operation and outputting a count end signal indicating the end of counting when counting up to a predetermined count value is completed,
A / D conversion control means for receiving an instruction to start A / D conversion to the A / D conversion means in response to the count end signal from the timer means ;
Determination means for determining whether or not the A / D conversion process has been performed a predetermined number of times after the A / D conversion process by the A / D conversion means is completed;
In response to the determination that the A / D conversion process has not been performed the predetermined number of times, the timer includes a restarting unit that restarts the counting operation .
The A / D conversion apparatus, wherein the timer means receives an instruction from the restarting means, restarts the counting operation, and counts a predetermined time until the next A / D conversion processing .
外部から入力されたカウント値が、前記第1のカウント値記憶手段に書き込まれるように構成され、
前記タイマ手段が、前記第1のカウント値記憶手段に記憶されているカウント値までのカウントが終了すると、前記カウント終了信号を出力するものであることを特徴とする請求項1記載のA/D変換装置。A first count value storage means for storing a count value to be counted;
The count value input from the outside is configured to be written in the first count value storage means,
2. The A / D according to claim 1, wherein the timer means outputs the count end signal when the count up to the count value stored in the first count value storage means is completed. Conversion device.
所定の条件が満たされると、前記第2のカウント値記憶手段に記憶されているカウント値が、前記第1のカウント値記憶手段に書き込まれるように構成されていることを特徴とする請求項2記載のA/D変換装置。A second count value storage means for storing a count value input from the outside;
The count value stored in the second count value storage means is configured to be written in the first count value storage means when a predetermined condition is satisfied. The A / D conversion device described.
外部から入力された回数が、前記回数記憶手段に書き込まれるように構成され、
前記所定の回数が、前記回数記憶手段に記憶されている回数であることを特徴とする請求項1〜4のいずれかの項に記載のA/D変換装置。A number of times storage means for storing the number of A / D conversion processes to be performed by the A / D conversion means;
The number of times input from the outside is configured to be written in the number of times storage means,
The A / D conversion apparatus according to any one of claims 1 to 4, wherein the predetermined number of times is a number of times stored in the number of times storage unit.
前記演算手段により求められるものが、複数の変換結果のうちの所望の値であり、
前記演算手段により求められる前記所望の値と、該所望の値が得られた変換処理に対する、複数の変換処理の中での処理順番とが前記演算結果記憶手段に書き込まれるように構成されていることを特徴とする請求項6〜8のいずれかの項に記載のA/D変換装置。A calculation result storage means for storing a calculation result by the calculation means;
What is obtained by the computing means is a desired value of the plurality of conversion results,
The desired value obtained by the computing means and the processing order in a plurality of conversion processes for the conversion process from which the desired value is obtained are written in the computation result storage means. The A / D conversion device according to any one of claims 6 to 8, wherein
A/D変換処理が行われたとの判断を受けて、前記所定の演算処理を行うものであることを特徴とする請求項6〜9のいずれかの項に記載のA/D変換装置。The computing means is the predetermined number of times by the judging means,
The A / D conversion apparatus according to claim 6, wherein the predetermined arithmetic processing is performed in response to a determination that the A / D conversion processing has been performed.
カウント動作を行い、所定のカウント値までのカウントが終了すると、カウント終了を示すカウント終了信号を出力するタイマ手段と、
該タイマ手段からの前記カウント終了信号を受けて、前記A/D変換手段に対し、A/D変換開始の指示を与えるA/D変換制御手段と、
前記A/D変換手段によるA/D変換処理が終了すると、所定の回数、A/D変換処理が行われたか否かを判断する判断手段と、
該判断手段による、前記所定の回数、A/D変換処理が行われていないとの判断を受けて、前記タイマ手段に対し、カウント動作を再起動させる再起動手段とを備え、
前記タイマ手段が、前記再起動手段からの指示を受けて、カウント動作を再開し、次回のA/D変換処理までの所定時間をカウントするものであることを特徴とする信号処理システム。A / D conversion means for performing A / D conversion processing for converting an analog signal into a digital signal;
Timer means for performing a count operation and outputting a count end signal indicating the end of counting when counting up to a predetermined count value is completed,
A / D conversion control means for receiving an instruction to start A / D conversion to the A / D conversion means in response to the count end signal from the timer means ;
Determination means for determining whether or not the A / D conversion process has been performed a predetermined number of times after the A / D conversion process by the A / D conversion means is completed;
In response to the determination that the A / D conversion process has not been performed the predetermined number of times, the timer includes a restarting unit that restarts the counting operation .
The signal processing system, wherein the timer means receives an instruction from the restarting means, restarts the counting operation, and counts a predetermined time until the next A / D conversion process .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001395835A JP3870089B2 (en) | 2001-12-27 | 2001-12-27 | A / D converter and signal processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001395835A JP3870089B2 (en) | 2001-12-27 | 2001-12-27 | A / D converter and signal processing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2003198369A JP2003198369A (en) | 2003-07-11 |
| JP3870089B2 true JP3870089B2 (en) | 2007-01-17 |
Family
ID=27602110
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001395835A Expired - Fee Related JP3870089B2 (en) | 2001-12-27 | 2001-12-27 | A / D converter and signal processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3870089B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9197236B1 (en) * | 2014-11-14 | 2015-11-24 | Tektronix, Inc. | Digitizer auto aperture with trigger spacing |
| JP7629267B2 (en) * | 2018-02-01 | 2025-02-13 | ローム株式会社 | Semiconductor device, power supply management circuit, and electronic device |
-
2001
- 2001-12-27 JP JP2001395835A patent/JP3870089B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2003198369A (en) | 2003-07-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4749657B2 (en) | DMA controller | |
| US6621443B1 (en) | System and method for an acquisition of data in a particular manner | |
| US6507298B1 (en) | Method for selecting, prioritizing, and A/D conversion of analog signals, and A/D converter configuration that prioritizes and selects signals | |
| JP3870089B2 (en) | A / D converter and signal processing system | |
| JPH11110339A (en) | DMA controller | |
| JP2001243018A (en) | Data converter | |
| JPH11168325A (en) | Signal generation circuit | |
| JP3123998B2 (en) | Single-chip microcomputer with built-in A / D conversion function | |
| JP4905260B2 (en) | A / D converter | |
| JP3004972B2 (en) | Data processing device | |
| JP3190889B2 (en) | Time division multiplex timer and control method of time division multiplex timer | |
| JP2001297056A (en) | Arbitration circuit and DMA controller | |
| JPH08162953A (en) | Analog / digital converter | |
| JP3145292B2 (en) | Digital signal processing circuit | |
| JP2005056239A (en) | Semiconductor integrated circuit | |
| JP3047872B2 (en) | Pen recorder output control device and pen recorder output control method | |
| JP2004220309A (en) | Multiprocessor system | |
| JP3621539B2 (en) | Real-time data buffer device | |
| JP3186137B2 (en) | Information processing method | |
| JPH11149386A (en) | Interruption control system for multiprocessor system | |
| JP2001144616A (en) | Successive approximation type analog/digital converter | |
| JP2000285012A (en) | Address generation device and memory control device | |
| JPH05225119A (en) | Signal level detection system | |
| JP2000311086A (en) | Program download apparatus and method | |
| JPS6035685B2 (en) | Data import method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20041227 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060627 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060828 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20061010 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061016 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091020 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101020 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111020 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |