JP2017167990A - Function switching device and function switching method of microprocessor - Google Patents
Function switching device and function switching method of microprocessor Download PDFInfo
- Publication number
- JP2017167990A JP2017167990A JP2016054562A JP2016054562A JP2017167990A JP 2017167990 A JP2017167990 A JP 2017167990A JP 2016054562 A JP2016054562 A JP 2016054562A JP 2016054562 A JP2016054562 A JP 2016054562A JP 2017167990 A JP2017167990 A JP 2017167990A
- Authority
- JP
- Japan
- Prior art keywords
- microprocessor
- function
- converter
- attachment
- functions
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Information Transfer Systems (AREA)
Abstract
Description
この発明は、複数の機能を具備したマイクロプロセッサの機能の選択を行うための機能切換装置および機能切換方法に関する。 The present invention relates to a function switching device and a function switching method for selecting a function of a microprocessor having a plurality of functions.
特許文献1には、シリアルインターフェースの入出力端子の機能を、SPIインターフェースとI2Cインターフェースのいずれかに選択的に切り換えるようにしたインターフェース装置が開示されている。このものでは、マイクロプロセッサの汎用入出力端子の一つを利用して2つの機能の切換を行う構成となっており、このような方式では、切換の対象とする機能の数が増えると、必要な信号本数が増加する。つまり、切換を行う機能が2種類であれば1本の信号線で切換が可能であるが、3〜4種類の機能の切換に対しては2本の信号線が必要であり、5〜8種類の機能の切換に対しては3本の信号線が必要となる。
このような多数の機能の切換を最小本数の信号線で実現するために、特許文献2には、可変抵抗器の設定により機能選択を行うようにした技術が開示されている。すなわち、電源を可変抵抗器に接続し、可変的に設定された可変抵抗により降下した電圧を機能選択信号としてA/Dコンバータに入力し、アナログ/デジタル変換した結果をもとに、マイクロプロセッサが機能を選択する構成となっている。
In order to realize such switching of a large number of functions with a minimum number of signal lines,
しかしながら、上記特許文献2の技術においては、電源電圧が可変抵抗器に常に入力されるため、常時、電力を消費する、という問題がある。
However, the technique of
また、抵抗値が連続的に変化する可変抵抗器を用いて、オペレータが機能に対応した抵抗値を設定する構成となっているため、設定される抵抗値のばらつきによって、意図しない機能を実行してしまう可能性がある。 In addition, a variable resistor whose resistance value changes continuously is used to set the resistance value corresponding to the function by the operator, so an unintended function is executed due to variations in the set resistance value. There is a possibility that.
この発明に係るマイクロプロセッサの機能切換装置は、
マイクロプロセッサが実装され、このマイクロプロセッサが、機能選択信号生成用の電源を供給する汎用出力端子を有するとともに、機能選択信号を識別するためのA/Dコンバータを有するベース基板と、
上記汎用出力端子および上記A/Dコンバータの入力端子に接続され、上記汎用出力端子から入力された電源から機能選択信号を生成して上記A/Dコンバータの入力端子に出力するアタッチメント基板と、
を備えて構成されている。
A function switching device for a microprocessor according to the present invention includes:
A base board having a general-purpose output terminal for supplying a power for generating a function selection signal and an A / D converter for identifying the function selection signal;
An attachment board connected to the general-purpose output terminal and the input terminal of the A / D converter, generating a function selection signal from the power source input from the general-purpose output terminal, and outputting the function selection signal to the input terminal of the A / D converter;
It is configured with.
このような構成では、機能選択を行う際に、マイクロプロセッサの汎用出力端子からアタッチメント基板へ電源が供給され、これに応答して、アタッチメント基板からA/Dコンバータの入力端子へ機能選択信号が出力される。マイクロプロセッサは、機能選択信号をA/D変換した結果から、アタッチメント基板により要求された機能を決定する。例えば、12bitのA/Dコンバータであれば、最大で4095種類の機能の選択が理論上可能である。これに対し、ベース基板とアタッチメント基板との間の信号本数は極めて少ないもの(理論上は2本)となる。アタッチメント基板は、特定の1つの機能に対応したものとして準備され、所望の機能に対応したアタッチメント基板をベース基板に接続することで、機能の切換がなされる。従って、誤って異なる機能が実行されるようなことはない。 In such a configuration, when selecting a function, power is supplied from the general-purpose output terminal of the microprocessor to the attachment board, and in response thereto, a function selection signal is output from the attachment board to the input terminal of the A / D converter. Is done. The microprocessor determines the function requested by the attachment board from the result of A / D conversion of the function selection signal. For example, if it is a 12-bit A / D converter, a maximum of 4095 types of functions can be selected theoretically. On the other hand, the number of signals between the base substrate and the attachment substrate is extremely small (theoretically two). The attachment substrate is prepared as one corresponding to one specific function, and the function is switched by connecting the attachment substrate corresponding to the desired function to the base substrate. Therefore, no different functions are executed by mistake.
この発明の好ましい一つの態様では、上記アタッチメント基板は、複数の機能の中の一つに対応した固定抵抗値を有する抵抗基板からなる。すなわち、個々のアタッチメント基板の固定抵抗値に対応した電圧として機能選択信号が出力される。 In a preferred aspect of the present invention, the attachment substrate is a resistance substrate having a fixed resistance value corresponding to one of a plurality of functions. That is, the function selection signal is output as a voltage corresponding to the fixed resistance value of each attachment board.
さらに好ましい一つの態様では、上記マイクロプロセッサは、上記固定抵抗値に対応して上記A/Dコンバータの入力端子に機能選択信号として入力された電圧のA/D変換値を、複数の機能の中の一つに対応づけるテーブルを備えている。 In a further preferred aspect, the microprocessor uses an A / D conversion value of a voltage input as a function selection signal to an input terminal of the A / D converter corresponding to the fixed resistance value, among a plurality of functions. The table is associated with one of these.
また、この発明の好ましい一つの態様では、上記アタッチメント基板は、コネクタを介して上記ベース基板に着脱可能に取り付けられる。これにより、アタッチメント基板の簡単な着脱によって、機能選択が可能となる。 In one preferred embodiment of the present invention, the attachment board is detachably attached to the base board via a connector. Thus, the function can be selected by simply attaching and detaching the attachment substrate.
そして、この発明では、好ましくは、機能選択時にのみ上記汎用出力端子から上記アタッチメント基板へ電源が供給される。これにより、機能選択のために必要な電力消費が最小となる。 In the present invention, preferably, power is supplied from the general-purpose output terminal to the attachment board only when a function is selected. This minimizes the power consumption required for function selection.
この発明に係るマイクロプロセッサの機能切換方法は、
A/Dコンバータを有するマイクロプロセッサが実装されたベース基板に、複数の機能の中の一つに対応した固定抵抗を備えたアタッチメント基板を選択的に接続し、
上記マイクロプロセッサの汎用出力端子から上記アタッチメント基板へ電源を供給し、
この電源の供給によって上記アタッチメント基板が出力する機能選択信号を上記A/DコンバータによってA/D変換し、
このA/D変換値を複数の機能の中の一つに対応づけて、機能の選択を行う、ものである。
The microprocessor function switching method according to the present invention includes:
An attachment substrate having a fixed resistor corresponding to one of a plurality of functions is selectively connected to a base substrate on which a microprocessor having an A / D converter is mounted;
Supply power from the general-purpose output terminal of the microprocessor to the attachment board,
The function selection signal output from the attachment board by the power supply is A / D converted by the A / D converter,
This A / D conversion value is associated with one of a plurality of functions, and the function is selected.
この発明に係るマイクロプロセッサの機能切換装置および機能切換方法によれば、少ない信号本数でもって多数の機能の選択が可能である。そして、個々の機能に対応して準備されるアタッチメント基板にマイクロプロセッサの汎用出力端子から電源が供給されるので、例えば機能選択時にのみ電源供給することが可能であり、機能選択に伴う電力消費を抑制できるとともに、誤って異なる機能を実行してしまうことがない。 According to the microprocessor function switching device and the function switching method according to the present invention, a large number of functions can be selected with a small number of signals. Since power is supplied from the general-purpose output terminal of the microprocessor to the attachment board prepared for each function, for example, power can be supplied only at the time of function selection, and power consumption associated with function selection is reduced. In addition to being able to suppress, it does not accidentally execute different functions.
以下、この発明の一実施例を図面に基づいて詳細に説明する。 Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
図1は、複数の機能を実行可能なマイクロプロセッサ2が実装されたベース基板1を示している。マイクロプロセッサ2は、1つの半導体装置として構成され、演算処理部3、ROM4、RAM5、入出力部6、A/Dコンバータ7、D/Aコンバータ8、等を含んで構成されている。ここでは、複数の機能として予め複数のソフトウェア(プログラム)がROM4に格納されており、選択された機能に対応するソフトウェアをROM4から読み出してRAM5にロードすることにより、それぞれの機能をマイクロプロセッサ2が実行するようになっている。ベース基板1は、マイクロプロセッサ2に電源を供給する電源部9を備えている。なお、本発明における「機能」の選択には、種々のものを含み、例えば、オペレーティングシステムの切換、アプリケーションソフトウェアの切換、外部機器と接続されるインタフェースの形式の切換、マイクロプロセッサ2が組み込まれている組み込み機器の動作モードの切換、などを広く包含する。
FIG. 1 shows a
入出力部6は、複数の汎用出力端子を備えているが、その中の1つの汎用出力端子11が、機能選択信号生成用の電源を供給可能なものとして構成されている。また、A/Dコンバータ7は、入力端子12を備えている。そして、ベース基板1に適宜な形式のコネクタ13が実装されており、上記の汎用出力端子11とA/Dコンバータ7の入力端子12とが、このコネクタ13に設けた各々の接続端子(図示せず)に接続されている。コネクタ13は、本実施例では、2端子のもので足りる。
The input /
図2は、上記マイクロプロセッサ2の機能選択のために用いられるアタッチメント基板21を示している。このアタッチメント基板21は、所定の固定抵抗値の抵抗22を例えば抵抗体の印刷により形成した抵抗基板からなり、抵抗22の両端に接続された2つの接続端子(図示せず)を有するコネクタ23が実装されている。
FIG. 2 shows an
抵抗22の抵抗値は、複数の機能の中の一つに対応している。換言すれば、複数の機能の個々に対応したものとして、特定の抵抗値を有するアタッチメント基板21が準備されている。一例として、ベース基板1のマイクロプロセッサ2が16通りの機能に切換可能なものであるとすると、抵抗値の異なる16種類のアタッチメント基板21が準備されていることとなる。
The resistance value of the
このように複数の機能の中の一つに対応したものとして構成されるアタッチメント基板21は、所望の機能に対応した特定の1つを選択した上で、図3に示すように、コネクタ13,23を介してベース基板1に接続して使用される。このようにアタッチメント基板21をベース基板1に接続した状態では、マイクロプロセッサ2の汎用出力端子11が抵抗22の一端に接続され、A/Dコンバータ7の入力端子12が抵抗22の他端に接続される。なお、図3では、ベース基板1側のコネクタ13とアタッチメント基板21側のコネクタ23とを、2本の信号線25,26でもって接続しているように図示しているが、コネクタ13とコネクタ23とを物理的に直接に結合するように構成してもよく、あるいは、信号線25,26に相当するケーブルを介して両者を接続するようにしてもよい。
As shown in FIG. 3, the
上記アタッチメント基板21を用いた機能選択は、何らかの信号をトリガーとした機能選択時に、マイクロプロセッサ2側から汎用出力端子11を介してアタッチメント基板21へ電源を供給し、抵抗22によって降下した電圧をA/Dコンバータ7の入力端子12を介して読み込むことによってなされる。機能選択の実行は、例えば、マイクロプロセッサ2の初期の電源投入時やリセット時、あるいは、アタッチメント基板21のベース基板1への接続を何らかの手段で検出したとき、あるいは、オペレータの手動操作による機能選択要求時、など、適当なタイミングで行うように構成することが可能である。
The function selection using the
なお、アタッチメント基板21は、常時ベース基板1に接続しておいてもよく、機能選択時にのみベース基板1に接続するように構成してもよい。
The
汎用出力端子11からの電源供給に応答してA/Dコンバータ7の入力端子12に機能選択信号として入力される電圧は、マイクロプロセッサ2側のA/Dコンバータ7によってデジタル値に変換される。そして、このデジタル値に基づいてアタッチメント基板21に対応した機能が検出される。
A voltage input as a function selection signal to the
一例では、A/Dコンバータ7として12bitのA/Dコンバータが用いられており、電圧変化に応じて0〜4095のデジタル値が出力可能であるが、アタッチメント基板21に形成される抵抗22の抵抗値の多少のばらつきを考慮して、下記表1に示すように、適当な幅を持った形で16通りにデジタル値が分割されている。そして、16種類のアタッチメント基板21の抵抗値は、表1の16通りのデジタル値の上限・下限の範囲の中央値付近に電圧値が得られるように、それぞれ設定されている。
In one example, a 12-bit A / D converter is used as the A /
表1に示したデジタル値(A/D変換値)と機能との対応関係は、マイクロプロセッサ2のROM4内にテーブルとして予め格納されている。従って、マイクロプロセッサ2は、機能選択時にA/Dコンバータ7を通して得られた電圧のA/D変換値をROM4内のテーブルと参照して、「0〜15」の識別結果のいずれかに分類し、各々の対応した機能を選択する。例えば、A/D変換値が「272」であれば、識別結果は「1」であり、2番目の機能が実行される。つまり、2番目の機能に対応したソフトウェアが読み込まれ、これに沿ってマイクロプロセッサ2が動作する。A/D変換値が「3830」であれば、識別結果は「14」であり、15番目の機能が実行される。つまり、15番目の機能に対応したソフトウェアが読み込まれ、これに沿ってマイクロプロセッサ2が動作する。
The correspondence relationship between the digital value (A / D conversion value) and the function shown in Table 1 is stored in advance in the
なお、上記の「16通り」の機能数は一例に過ぎず、より多数の機能に切り換えることが可能である。そして、切り換える機能の数が多くなっても、ベース基板1とアタッチメント基板21との間の信号本数は、基本的には、信号線25,26の2本で足りる。
Note that the above “16 types” of function numbers is merely an example, and it is possible to switch to a larger number of functions. Even if the number of functions to be switched increases, the number of signals between the
このように、上記実施例の構成によれば、少ない信号本数でもって多数の機能の切換が可能となる。そして、機能の選択は、各々の機能に対応した固定抵抗値を有するアタッチメント基板21を選択的にベース基板1に取り付けることによってなされるので、従来の可変抵抗器を用いた場合のように設定ミスによって意図しない機能が選択されてしまうような不具合がない。特に、上記実施例では、コネクタ13,23を介してアタッチメント基板21を容易に着脱できるので、機能の選択を簡単かつ確実に行うことができる。また、マイクロプロセッサ2の汎用出力端子11を介してアタッチメント基板21へ電源供給を行うので、機能選択時のみ電源供給を行うことが容易であり、機能選択のための常時の電力消費を回避することができる。
Thus, according to the configuration of the above embodiment, it is possible to switch a large number of functions with a small number of signals. Since the function is selected by selectively attaching the
1…ベース基板
2…マイクロプロセッサ
6…入出力部
7…A/Dコンバータ
11…汎用出力端子
12…入力端子
13…コネクタ
21…アタッチメント基板
22…抵抗
23…コネクタ
DESCRIPTION OF
Claims (6)
上記汎用出力端子および上記A/Dコンバータの入力端子に接続され、上記汎用出力端子から入力された電源から機能選択信号を生成して上記A/Dコンバータの入力端子に出力するアタッチメント基板と、
を備えてなるマイクロプロセッサの機能切換装置。 A base board having a general-purpose output terminal for supplying a power for generating a function selection signal and an A / D converter for identifying the function selection signal;
An attachment board connected to the general-purpose output terminal and the input terminal of the A / D converter, generating a function selection signal from the power source input from the general-purpose output terminal, and outputting the function selection signal to the input terminal of the A / D converter;
A function switching device for a microprocessor comprising:
上記マイクロプロセッサの汎用出力端子から上記アタッチメント基板へ電源を供給し、
この電源の供給によって上記アタッチメント基板が出力する機能選択信号を上記A/DコンバータによってA/D変換し、
このA/D変換値を複数の機能の中の一つに対応づけて、機能の選択を行う、マイクロプロセッサの機能切換方法。 An attachment substrate having a fixed resistor corresponding to one of a plurality of functions is selectively connected to a base substrate on which a microprocessor having an A / D converter is mounted;
Supply power from the general-purpose output terminal of the microprocessor to the attachment board,
The function selection signal output from the attachment board by the power supply is A / D converted by the A / D converter,
A microprocessor function switching method for selecting a function by associating the A / D conversion value with one of a plurality of functions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016054562A JP2017167990A (en) | 2016-03-17 | 2016-03-17 | Function switching device and function switching method of microprocessor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016054562A JP2017167990A (en) | 2016-03-17 | 2016-03-17 | Function switching device and function switching method of microprocessor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2017167990A true JP2017167990A (en) | 2017-09-21 |
Family
ID=59913738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016054562A Pending JP2017167990A (en) | 2016-03-17 | 2016-03-17 | Function switching device and function switching method of microprocessor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2017167990A (en) |
-
2016
- 2016-03-17 JP JP2016054562A patent/JP2017167990A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5502439B2 (en) | Protective relay | |
US8607081B2 (en) | Power control for PXI express controller | |
JP4944939B2 (en) | Digital output circuit | |
JP2017167990A (en) | Function switching device and function switching method of microprocessor | |
JP2009003915A (en) | Conversion circuit | |
JP2015177223A (en) | operation switch detection system | |
CN102736515A (en) | Positioner | |
JP7281679B2 (en) | Input/output circuit | |
JP3767625B2 (en) | Control board | |
JP2011015539A (en) | Display device | |
JP2020112955A (en) | Load control switch | |
KR20150003380U (en) | Smart switch | |
JP2008233393A (en) | Piezoelectric buzzer control circuit and information processor | |
JP2014040205A (en) | Circuit board for vehicle control | |
JP2014215781A (en) | Teaching device | |
US20170168512A1 (en) | Output voltage stabilizing circuit of power supply | |
JP2014008924A (en) | Brake operation detection device | |
US10038440B2 (en) | Electronic apparatus | |
WO2016090573A1 (en) | Indicator circuit and apparatus using the same | |
JP2008252342A (en) | Interface circuit | |
JP2006180186A (en) | On/off detection circuit of plurality of switches | |
JP6766352B2 (en) | Interface circuit | |
WO2014119075A1 (en) | Controller | |
JP2021025693A (en) | Heating cooker | |
CN104901667A (en) | Two wire technology of electronic switching device and method of operation the switch gear |