JP2002164787A - D/a output port - Google Patents

D/a output port

Info

Publication number
JP2002164787A
JP2002164787A JP2000361853A JP2000361853A JP2002164787A JP 2002164787 A JP2002164787 A JP 2002164787A JP 2000361853 A JP2000361853 A JP 2000361853A JP 2000361853 A JP2000361853 A JP 2000361853A JP 2002164787 A JP2002164787 A JP 2002164787A
Authority
JP
Japan
Prior art keywords
output
register
digital
value
port
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.)
Withdrawn
Application number
JP2000361853A
Other languages
Japanese (ja)
Inventor
Chie Tozaki
千江 濤崎
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.)
Renesas Micro Systems Co Ltd
Original Assignee
Renesas Micro Systems 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 Renesas Micro Systems Co Ltd filed Critical Renesas Micro Systems Co Ltd
Priority to JP2000361853A priority Critical patent/JP2002164787A/en
Publication of JP2002164787A publication Critical patent/JP2002164787A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a D/A output port which is used both as an output terminal for a digital value and as an output terminal of an analog value. SOLUTION: This D/A output port is provided with a port register for holding a first digital value, an input-output mode setting register for setting the input- output mode of a port, a digital-to-analog converter for receiving the supplies of a high potential power source and a low potential power source and converting a second digital value into an analog value, the output terminal of the digital-to-analog converter and the conversion value setting register of the digital-to-analog converter, transfers a value written in the port register to all bits of the conversion value setting register with the input-output mode setting register as an output mode and outputs the first digital value to the output terminal with an output of the digital-to-analog converter as low potential in accordance with the output value of the conversion value setting register.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、D/A出力ポート
に関し、特に、マイクロコンピュータのD/Aコンバー
タ出力端子とデジタルポートとの機能等に対応したD/
A出力ポートに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a D / A output port, and more particularly, to a D / A converter corresponding to a function of a D / A converter output terminal of a microcomputer and a digital port.
Regarding the A output port.

【0002】[0002]

【従来の技術】従来、ディジタル/アナログ変換器(以
降、D/Aコンバータと称する)の出力端子と、ディジ
タルポートと、アナログ/ディジタル変換器(以降、A
/Dコンバータと称する)とを備えるマイクロコンピュ
ータが衆知であり、また、これらの入出力端子を有効に
使用することが、重要であることもよく知られている。
2. Description of the Related Art Conventionally, an output terminal of a digital / analog converter (hereinafter, referred to as a D / A converter), a digital port, and an analog / digital converter (hereinafter, referred to as A / D converter).
/ D converter) is well known, and it is well known that it is important to use these input / output terminals effectively.

【0003】このD/Aコンバータ出力端子(以降、A
NO端子と称する)とディジタルポートについて図2を
参照して、説明する。ANO端子11はアナログ出力端
子である。
This D / A converter output terminal (hereinafter referred to as A
The digital port will be described with reference to FIG. The ANO terminal 11 is an analog output terminal.

【0004】図2を参照すると、このD/Aコンバータ
とディジタルポートとを、例えば、ワイヤード接続する
場合、D/Aコンバータ出力端子保護バッファ20の電
源供給には、比較的安定しているアナログ/ディジタル
の高電位電源AVDDおよびアナログ/ディジタルの低
電位電源AVSSを使用している(図3を参照)。D/
Aコンバータ出力端子とデジタルポート端子は同電位と
なるため、図4に示すように、デジタルポートのバッフ
ァ21の電源も、アナログ/ディジタルの高電位電源A
VDDおよびアナログ/ディジタルの低電位電源を使用
するのが一般的である。
Referring to FIG. 2, when this D / A converter is connected to a digital port, for example, by a wired connection, a relatively stable analog / digital converter is used to supply power to the D / A converter output terminal protection buffer 20. A digital high-potential power supply AVDD and an analog / digital low-potential power supply AVSS are used (see FIG. 3). D /
Since the A-converter output terminal and the digital port terminal are at the same potential, as shown in FIG.
It is common to use VDD and analog / digital low potential power supplies.

【0005】一方、通常、ポートは規則性をもってレジ
スタ領域が割り当てられており、プログラムによっては
上述した規則性を利用し、演算命令を用いながらポート
操作を行うこともできる。
[0005] On the other hand, usually, a register area is allocated to a port with regularity, and depending on a program, port operation can be performed using an operation instruction by using the above-described regularity.

【0006】すなわち、ユーザーが、D/Aコンバータ
をポートとして擬似的に使い、DASCレジスタ6にA
LL”0”、ALL”1”を書き込み、出力端子からV
DDレベルもしくはGNDレベルを出力させることも可
能である。
That is, a user uses a D / A converter as a port in a pseudo manner,
LL “0” and ALL “1” are written, and V is output from the output terminal.
It is also possible to output a DD level or a GND level.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、ANO
端子11はアナログ出力端子であり、デジタルポートと
の兼用が困難である。その理由を以下に説明する。
However, the ANO
The terminal 11 is an analog output terminal, and it is difficult to use the terminal 11 as a digital port. The reason will be described below.

【0008】上記構成でデジタルポートを出力として使
用すると、ディジタルポートの出力ノイズが、アナログ
/ディジタルの高電位電源AVDD、アナログ/ディジ
タルの低電位電源AVSSのそれぞれに伝播し、A/D
コンバータの精度を悪化させてしまうという問題点があ
る。
When the digital port is used as an output in the above configuration, the output noise of the digital port propagates to the analog / digital high-potential power supply AVDD and the analog / digital low-potential power supply AVSS, and the A / D
There is a problem that the accuracy of the converter is deteriorated.

【0009】また、ユーザーが、D/Aコンバータをポ
ートとして擬似的に使う方法は、図8に示すように、通
常ポートに関するレジスタとD/Aコンバータに関する
レジスタの格納領域が違うため、アドレスもビット位置
もデジタルポートのレジスタ操作と異なる操作が必要で
あり、特に、ユーザーに対して操作差分の変換を強いる
という問題点があった。
[0009] In addition, as shown in FIG. 8, a method in which a user uses a D / A converter as a port in a simulated manner is that, as shown in FIG. The position also requires an operation different from the register operation of the digital port, and in particular, there is a problem in that the user is forced to convert the operation difference.

【0010】[0010]

【課題を解決するための手段】本発明のD/A出力ポー
トは、第1のデジタル値を保持するポートレジスタと、
前記ポートの入出力モードの設定をする入出力モード設
定レジスタと、高電位電源と低電位電源の供給を受け、
第2のデジタル値をアナログ値に変換するディジタル/
アナログ変換器と、前記ディジタル/アナログ変換器の
出力端子と、前記ディジタル/アナログ変換器の変換値
設定レジスタとを備え、前記入出力モード設定レジスタ
を出力モードとし、前記ポートレジスタに書かれた値を
前記変換値設定レジスタの全ビットに転送し、前記変換
値設定レジスタの出力値に対応して、前記ポートレジス
タの値が”1”の場合は、前記ディジタル/アナログ変
換器の出力を前記高電位とし、前記ポートレジスタの値
が”0”の場合は、前記ディジタル/アナログ変換器の
出力を前記低電位として、前記第1のデジタル値を前記
出力端子に出力することにより、前記第1のデジタル値
の出力端子と前記第2のデジタル値をアナログ値に変換
したアナログの出力端子とを兼用する構成である。
According to the present invention, a D / A output port comprises: a port register for holding a first digital value;
An input / output mode setting register for setting an input / output mode of the port, and receiving supply of a high potential power supply and a low potential power supply,
A digital / digital converter for converting a second digital value to an analog value
An analog converter; an output terminal of the digital / analog converter; and a conversion value setting register of the digital / analog converter. The input / output mode setting register is set to an output mode, and a value written in the port register is provided. Is transferred to all the bits of the conversion value setting register, and when the value of the port register is “1” corresponding to the output value of the conversion value setting register, the output of the digital / analog converter is set to the high level. When the value of the port register is “0”, the output of the digital / analog converter is set to the low potential, and the first digital value is output to the output terminal. The configuration is such that the digital value output terminal and the analog output terminal obtained by converting the second digital value into an analog value are also used.

【0011】また、本発明のD/A出力ポートの前記入
出力モード設定レジスタは、その値が”0”の時に前記
ポートが出力モードで、その値が”1”の時に前記ポー
トが入力モードを指定する構成である。
In the input / output mode setting register of the D / A output port of the present invention, when the value is "0", the port is in the output mode, and when the value is "1", the port is in the input mode. It is a configuration to specify.

【0012】さらに、本発明のD/A出力ポートの前記
ポートが出力モードとなると、前記ディジタル/アナロ
グ変換器を動作許可状態にする構成とすることもでき
る。
Further, when the D / A output port of the present invention is set in the output mode, the digital / analog converter may be set to the operation enabled state.

【0013】さらに、本発明のD/A出力ポートの前記
ディジタル/アナログ変換器の動作を指定するディジタ
ル/アナログ変換器動作設定レジスタを有し、前記入出
力モード設定レジスタの反転信号を前記ディジタル/ア
ナログ変換器動作設定レジスタに出力する構成とするこ
ともできる。
The digital / analog converter operation setting register for designating the operation of the digital / analog converter of the D / A output port according to the present invention is provided. A configuration for outputting to the analog converter operation setting register is also possible.

【0014】さらに、本発明のD/A出力ポートの前記
入出力モード設定レジスタにより切り替え制御が行わ
れ、前記ポートレジスタと前記変換値設定レジスタとを
選択するセレクタを備える構成とすることもできる。
Further, the switching control is performed by the input / output mode setting register of the D / A output port of the present invention, and a selector for selecting the port register and the conversion value setting register may be provided.

【0015】[0015]

【発明の実施の形態】次に、本発明の第1の実施の形態
について図面を参照して説明する。本発明の第1の実施
の形態のD/A出力ポートを図1に示す。
Next, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows a D / A output port according to the first embodiment of the present invention.

【0016】本発明は、マイクロコンピューター分野に
おいてポートレジスタ(以降、Pレジスタと称する)に
書かれた値をD/Aコンバータの変換値設定レジスタ
(以降、DACSレジスタと称する)の全8ビットに転
送し、DACSレジスタ6の出力に対応して、デジタル
ポートとD/Aコンバータ出力端子との兼用を実現する
構成を特徴としている。
According to the present invention, in a microcomputer field, a value written in a port register (hereinafter, referred to as a P register) is transferred to all 8 bits of a conversion value setting register (hereinafter, referred to as a DAC register) of a D / A converter. In addition, this embodiment is characterized in that a digital port and a D / A converter output terminal are shared according to the output of the DACS register 6.

【0017】図1の構成に示すように、ポート入出力モ
ード設定レジスタ(以降PMレジスタと称する)4を出
力モードに設定することにより、D/Aコンバータ動作
設定レジスタ(以降DACEレジスタと称する)7を操
作しなくてもD/Aコンバータの動作を許可し、ANO
端子11が出力許可状態となる。
As shown in the configuration of FIG. 1, by setting a port input / output mode setting register (hereinafter referred to as a PM register) 4 to an output mode, a D / A converter operation setting register (hereinafter referred to as a DACE register) 7 is set. The operation of the D / A converter is permitted without operating the
The terminal 11 enters the output permission state.

【0018】この状態でPレジスタ5に”0”または”
1”が書き込まれるとDACSレジスタ6の全8ビット
に転送され、D/Aコンバータ出力端子11からVDD
レベルまたはGNDレベルが出力される。
In this state, "0" or "0" is stored in the P register 5.
When "1" is written, the data is transferred to all 8 bits of the DACS register 6, and is supplied from the D / A converter output terminal 11 to VDD.
Level or GND level is output.

【0019】以上のような構成を持たせることで通常の
ポートと全く同じ操作でANO端子11から2値の出力
が可能となり、D/Aコンバータ出力端子とデジタルポ
ートとの兼用が実現できる。
By providing the above-described configuration, binary output can be performed from the ANO terminal 11 with exactly the same operation as a normal port, and the dual use of the D / A converter output terminal and the digital port can be realized.

【0020】次に、より具体的に、本発明の第1の実施
の形態について説明する。
Next, the first embodiment of the present invention will be described more specifically.

【0021】本発明の第1の実施の形態のD/A出力ポ
ートを有するマイクロコンピュータのアドレスデコーダ
(2、3)は、アドレスバス12からアドレス信号が供
給され、アドレスデコーダ(8、9)は、アドレスバス
14からそれぞれアドレス信号が供給される。
The address decoders (2, 3) of the microcomputer having the D / A output port according to the first embodiment of the present invention are supplied with address signals from the address bus 12, and the address decoders (8, 9) , Address bus 14 supplies an address signal.

【0022】アドレスデコーダ(2、3、8、9)は、
アドレスバスから供給されるアドレス信号がそれぞれの
アドレスデコーダと接続されているレジスタのアドレス
を示すとき、信号がアクティブとなる。
The address decoders (2, 3, 8, 9)
When the address signal supplied from the address bus indicates the address of a register connected to each address decoder, the signal becomes active.

【0023】アドレスデコーダ2の出力はPMレジスタ
4と、アドレスデコーダ3の出力はPレジスタ5と、ア
ドレスデコーダ8の出力はDACEレジスタ7と、アド
レスデコーダ9の出力はDACSレジスタ6とそれぞれ
接続されている。
The output of the address decoder 2 is connected to the PM register 4, the output of the address decoder 3 is connected to the P register 5, the output of the address decoder 8 is connected to the DACE register 7, and the output of the address decoder 9 is connected to the DACS register 6. I have.

【0024】PMレジスタ4は、内部バス13と接続さ
れていて、データ信号が供給される。PMレジスタ4
は、その値が”0”の時にポートの出力モードで、その
値が”1”の時にポートの入力モードを指定する、1ビ
ットのレジスタである。
The PM register 4 is connected to the internal bus 13 and is supplied with a data signal. PM register 4
Is a 1-bit register that specifies the output mode of the port when its value is "0" and specifies the input mode of the port when its value is "1".

【0025】本発明においては、出力モードとなると、
出力バッファがアクティブ状態となる代わりにD/Aコ
ンバータを動作許可状態にする。
In the present invention, in the output mode,
The D / A converter is set to the operation enabled state instead of the output buffer being set to the active state.

【0026】DACEレジスタ7は、内部バス13と接
続されていて、内部バス13からはデータ信号が供給さ
れる。DACEレジスタ7は、その値が”0”の時にD
/A変換動作の禁止、”1”の時にD/A変換動作の許
可を指定する1ビットのレジスタである。
The DACE register 7 is connected to the internal bus 13, and a data signal is supplied from the internal bus 13. When the value of the DACE register 7 is “0”,
This is a 1-bit register that specifies the inhibition of the / A conversion operation and the permission of the D / A conversion operation when "1".

【0027】DACEレジスタ7の出力はOR回路16
と接続されている。PMレジスタ4の出力はNOT回路
15を介してOR回路16と接続されている。
The output of the DACE register 7 is an OR circuit 16
Is connected to The output of the PM register 4 is connected to an OR circuit 16 via a NOT circuit 15.

【0028】次に、DACSレジスタ6は内部バス13
と接続されていて、内部バス13からはデータ信号が供
給される。DACSレジスタ6は、出力したいデジタル
値を書き込むと書き込んだ値に相当するアナログ電圧値
が出力される。
Next, the DACS register 6 stores the internal bus 13
And a data signal is supplied from the internal bus 13. When a digital value to be output is written to the DACS register 6, an analog voltage value corresponding to the written value is output.

【0029】Pレジスタ5は内部バス13と接続されて
いて、データ信号が供給される。Pレジスタ5は1ビッ
トのレジスタで出力したいデジタル値を書き込む。
The P register 5 is connected to the internal bus 13 and is supplied with a data signal. The P register 5 writes a digital value to be output using a 1-bit register.

【0030】Pレジスタ5の出力は、DACSレジスタ
6の全8ビットと接続されていて、Pレジスタ5に書き
込まれたデータがDACSレジスタ6の全8ビットに転
送される。
The output of the P register 5 is connected to all 8 bits of the DACS register 6, and the data written in the P register 5 is transferred to all 8 bits of the DACS register 6.

【0031】OR回路16の出力とDACSレジスタ6
の出力がセレクタ1に接続されていて、セレクタ1はO
R回路16からのイネーブル信号を受け、D/Aコンバ
ータを動作許可状態にする。
Output of OR circuit 16 and DACS register 6
Is connected to the selector 1, and the selector 1
Upon receiving the enable signal from the R circuit 16, the D / A converter is set in the operation permission state.

【0032】また、DACSレジスタ6のデジタルのデ
ータを取り込み、デジタルのデータに相当するアナログ
電圧を出力すべく回路を選択する。
Further, the digital data of the DACS register 6 is taken in, and a circuit is selected so as to output an analog voltage corresponding to the digital data.

【0033】ANO端子11はアナログ出力端子で、セ
レクタ1やはしご形R-2R抵抗を介してデジタルデー
タから変換されたアナログ信号が出力される。
An ANO terminal 11 is an analog output terminal from which an analog signal converted from digital data is output via a selector 1 or a ladder R-2R resistor.

【0034】次に、本発明の第1の実施の形態の動作に
ついて説明する。
Next, the operation of the first embodiment of the present invention will be described.

【0035】まず、アドレスバス12を介してアドレス
デコーダ2にアドレス信号が供給される。
First, an address signal is supplied to the address decoder 2 via the address bus 12.

【0036】アドレスデコーダ2は供給されたアドレス
信号がPMレジスタ4のアドレスを示している時、PM
レジスタ4に信号を出力する。
When the supplied address signal indicates the address of the PM register 4, the address decoder 2
A signal is output to the register 4.

【0037】上記信号を受けて、PMレジスタ4は内部
バス13から出力モード指定の”0”を取り込むと、N
OT回路15に”0”を出力し、NOT回路15を介し
て”1”がOR回路16に供給される。
In response to the above signal, the PM register 4 takes in “0” for designating the output mode from the internal bus 13,
“0” is output to the OT circuit 15, and “1” is supplied to the OR circuit 16 via the NOT circuit 15.

【0038】DACEレジスタ7の値に関わらず、OR
回路16の出力値”1”がセレクタ1に供給され、D/
Aコンバータ動作許可状態になる。
Regardless of the value of the DACE register 7, OR
The output value “1” of the circuit 16 is supplied to the selector 1 and D /
A converter operation is enabled.

【0039】次に、アドレスバス12を介してアドレス
デコーダ3にアドレス信号が供給される。
Next, an address signal is supplied to the address decoder 3 via the address bus 12.

【0040】アドレスデコーダ3は供給されたアドレス
信号がPレジスタ5のアドレスを示している時Pレジス
タ5に信号を出力する。
The address decoder 3 outputs a signal to the P register 5 when the supplied address signal indicates the address of the P register 5.

【0041】上記信号を受けて、Pレジスタ5は内部バ
ス13から”0”または、”1”を取り込むと、DAC
Sレジスタ6の全8ビットに”0”または、”1”を転
送する。転送された”0”または、”1”は、DACS
レジスタ6からセレクタ1に供給され、セレクタ1で選
択された回路を介して、ANO端子11からVDDレベ
ルまたはGNDレベルが出力される。次に、本発明の第
2の実施の形態について図面を参照して説明する。
In response to the above signal, the P register 5 takes in “0” or “1” from the internal bus 13 and
"0" or "1" is transferred to all 8 bits of the S register 6. The transferred “0” or “1” is the DACS
The signal is supplied from the register 6 to the selector 1, and the VDD level or the GND level is output from the ANO terminal 11 via the circuit selected by the selector 1. Next, a second embodiment of the present invention will be described with reference to the drawings.

【0042】本発明の第2の実施の形態は、本発明の第
1の実施の形態で説明したPMレジスタ4の反転出力と
DACEレジスタ7の出力をOR回路16に接続する代
わりに、図5に示すようにPMレジスタ4からNOT回
路15を介してDACEレジスタ7にデータ信号を転送
する。DACEレジスタ7はPMレジスタ4から受け取
った信号をセレクタ1にイネーブル信号として供給す
る。
According to the second embodiment of the present invention, instead of connecting the inverted output of the PM register 4 and the output of the DACE register 7 to the OR circuit 16 as shown in the first embodiment of the present invention, FIG. The data signal is transferred from the PM register 4 to the DACE register 7 via the NOT circuit 15 as shown in FIG. The DACE register 7 supplies the signal received from the PM register 4 to the selector 1 as an enable signal.

【0043】その他の動作は、本発明の第1の実施の形
態で説明したのと同一であるので、詳細な説明は省略す
る。
The other operations are the same as those described in the first embodiment of the present invention, and the detailed description is omitted.

【0044】次に、本発明の第3の実施の形態について
図面を参照して説明する。
Next, a third embodiment of the present invention will be described with reference to the drawings.

【0045】本発明の第3の実施の形態は、本発明の第
2の実施の形態で説明したPレジスタ5の出力をDAC
Sレジスタ6の全8ビットに供給する代わりに、図6に
示すようにPMレジスタ4により切り替え制御が行われ
るPレジスタ5とDACSレジスタ6とをセレクタ17
に接続する。
According to the third embodiment of the present invention, the output of the P register 5 described in the second embodiment of the present invention is
Instead of supplying all 8 bits of the S register 6, the P register 5 and the DAC register 6, which are controlled by the PM register 4 as shown in FIG.
Connect to

【0046】セレクタ17の詳細図である図7に示すよ
うに、PMレジスタ4からセレクタ17に供給された信
号が”0”の時、Pレジスタからのデータ信号が選択さ
れセレクタ1に供給される。
As shown in FIG. 7, which is a detailed diagram of the selector 17, when the signal supplied from the PM register 4 to the selector 17 is "0", the data signal from the P register is selected and supplied to the selector 1. .

【0047】PMレジスタ4からセレクタ17に供給さ
れた信号が1の時、DACSレジスタ6からのデータ信
号が選択されセレクタ1に供給される。
When the signal supplied from the PM register 4 to the selector 17 is 1, the data signal from the DACS register 6 is selected and supplied to the selector 1.

【0048】その他の動作は、本発明の第1の実施の形
態で説明したとおりであるので、詳細な説明は省略す
る。
Other operations are the same as those described in the first embodiment of the present invention, and a detailed description will be omitted.

【0049】[0049]

【発明の効果】以上説明したように、本発明によってユ
ーザーはD/Aコンバータの操作をすることなく通常の
デジタルポートと全く同じ操作をするだけで、デジタル
ポートを使用するようにANO端子11からVDDレベ
ルもしくはGNDレベルの2値を出力できる。
As described above, according to the present invention, the user can operate the digital port exactly the same as the ordinary digital port without operating the D / A converter. It can output two values of VDD level or GND level.

【0050】すなわち、デジタルポートとD/Aコンバ
ータ出力端子との兼用が実現できる。ワイヤード接続に
よる兼用ではないため、A/Dコンバータの精度悪化の
問題が解決できる効果がある。
That is, the dual use of the digital port and the D / A converter output terminal can be realized. Since it is not shared by wired connection, there is an effect that the problem of deterioration in accuracy of the A / D converter can be solved.

【0051】また、デジタルポートと同じ操作をするた
めユーザーに対してレジスタ操作差分の変換を強いると
いう問題点も解決する。
Further, the problem that the user is forced to convert the register operation difference in order to perform the same operation as the digital port is also solved.

【0052】最終的な効果として上記のとおり、D/A
コンバータ出力端子はデジタルポートとの兼用が可能と
なり、ユーザーが内蔵しているD/Aコンバータ出力端
子本数を全て使用しない場合においても、端子をデジタ
ルポートとして使用することにより有効利用できる。
As a final effect, as described above, D / A
The converter output terminal can also be used as a digital port. Even when the user does not use all the built-in D / A converter output terminals, the user can effectively use the terminal as a digital port.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態のD/A出力ポート
のブロック図である。
FIG. 1 is a block diagram of a D / A output port according to a first embodiment of the present invention.

【図2】従来のD/A出力ポートのブロック図である。FIG. 2 is a block diagram of a conventional D / A output port.

【図3】D/A出力ポートに適用される保護バッファの
ブロック図である。
FIG. 3 is a block diagram of a protection buffer applied to a D / A output port.

【図4】D/A出力ポートに適用されるバッファのブロ
ック図である。
FIG. 4 is a block diagram of a buffer applied to a D / A output port.

【図5】本発明の第2の実施の形態のD/A出力ポート
のブロック図である。
FIG. 5 is a block diagram of a D / A output port according to a second embodiment of the present invention.

【図6】本発明の第3の実施の形態のD/A出力ポート
のブロック図である。
FIG. 6 is a block diagram of a D / A output port according to a third embodiment of the present invention.

【図7】本発明の第3の実施の形態のD/A出力ポート
のセレクタ17のブロック図である。
FIG. 7 is a block diagram of a selector 17 of a D / A output port according to a third embodiment of the present invention.

【図8】ポートのメモリ格納領域を示すメモリマップで
ある。
FIG. 8 is a memory map showing a memory storage area of a port.

【符号の説明】[Explanation of symbols]

1 セレクタ 2,3,8,9 アドレスデコーダ 4 PMレジスタ 5 Pレジスタ 6 D/Aコンバータの変換値設定レジスタ 7 D/Aコンバータ動作設定レジスタ 11 端子 12,14 アドレスバス 13 内部バス 15 NOT回路 16 OR回路 17 セレクタ 20 保護バッファ 21 バッファ Reference Signs List 1 selector 2, 3, 8, 9 address decoder 4 PM register 5 P register 6 conversion value setting register of D / A converter 7 D / A converter operation setting register 11 terminal 12, 14 address bus 13 internal bus 15 NOT circuit 16 OR Circuit 17 Selector 20 Protection buffer 21 Buffer

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 第1のデジタル値を保持するポートレジ
スタと、前記ポートの入出力モードの設定をする入出力
モード設定レジスタと、高電位電源と低電位電源の供給
を受け、第2のデジタル値をアナログ値に変換するディ
ジタル/アナログ変換器と、前記ディジタル/アナログ
変換器の出力端子と、前記ディジタル/アナログ変換器
の変換値設定レジスタとを備え、 前記入出力モード設定レジスタを出力モードとし、前記
ポートレジスタに書かれた値を前記変換値設定レジスタ
の全ビットに転送し、前記変換値設定レジスタの出力値
に対応して、前記ポートレジスタの値が”1”の場合
は、前記ディジタル/アナログ変換器の出力を前記高電
位とし、前記ポートレジスタの値が”0”の場合は、前
記ディジタル/アナログ変換器の出力を前記低電位とし
て、前記第1のデジタル値を前記出力端子に出力するこ
とにより、前記第1のデジタル値の出力端子と前記第2
のデジタル値をアナログ値に変換したアナログの出力端
子とを兼用することを特徴とするD/A出力ポート。
A first register for holding a first digital value; an input / output mode setting register for setting an input / output mode of the port; A digital / analog converter for converting a value into an analog value; an output terminal of the digital / analog converter; and a conversion value setting register of the digital / analog converter. The value written in the port register is transferred to all bits of the conversion value setting register. If the value of the port register is "1" in accordance with the output value of the conversion value setting register, When the output of the analog / digital converter is set to the high potential and the value of the port register is "0", the output of the digital / analog converter is As low potential, by outputting the first digital value to said output terminal, said output terminal of said first digital value second
A D / A output port, which also serves as an analog output terminal for converting a digital value of the signal into an analog value.
【請求項2】 前記入出力モード設定レジスタは、その
値が”0”の時に前記ポートが出力モードで、その値
が”1”の時に前記ポートが入力モードを指定する請求
項1記載のD/A出力ポート。
2. The input / output mode setting register according to claim 1, wherein the port specifies the output mode when the value of the input / output mode setting register is “0”, and specifies the input mode when the value is “1”. / A output port.
【請求項3】 前記ポートが出力モードとなると、前記
ディジタル/アナログ変換器を動作許可状態にする請求
項1または2記載のD/A出力ポート。
3. The D / A output port according to claim 1, wherein said digital / analog converter is set in an operation permission state when said port is in an output mode.
【請求項4】 前記ディジタル/アナログ変換器の動作
を指定するディジタル/アナログ変換器動作設定レジス
タを有する請求項1、2または3記載のD/A出力ポー
ト。
4. The D / A output port according to claim 1, further comprising a digital / analog converter operation setting register for specifying an operation of said digital / analog converter.
【請求項5】 前記入出力モード設定レジスタの反転信
号を前記ディジタル/アナログ変換器動作設定レジスタ
に出力する請求項4記載のD/A出力ポート。
5. The D / A output port according to claim 4, wherein an inverted signal of said input / output mode setting register is output to said digital / analog converter operation setting register.
【請求項6】 前記入出力モード設定レジスタにより切
り替え制御が行われ、前記ポートレジスタと前記変換値
設定レジスタとを選択するセレクタを備える請求項5記
載のD/A出力ポート。
6. The D / A output port according to claim 5, wherein switching control is performed by said input / output mode setting register, and said selector includes a selector for selecting said port register and said conversion value setting register.
【請求項7】 前記変換値設定レジスタは、8ビット構
成である請求項1、2、3、4、5または6記載のD/
A出力ポート。
7. The D / D converter according to claim 1, wherein said conversion value setting register has an 8-bit configuration.
A output port.
JP2000361853A 2000-11-28 2000-11-28 D/a output port Withdrawn JP2002164787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000361853A JP2002164787A (en) 2000-11-28 2000-11-28 D/a output port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000361853A JP2002164787A (en) 2000-11-28 2000-11-28 D/a output port

Publications (1)

Publication Number Publication Date
JP2002164787A true JP2002164787A (en) 2002-06-07

Family

ID=18833226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000361853A Withdrawn JP2002164787A (en) 2000-11-28 2000-11-28 D/a output port

Country Status (1)

Country Link
JP (1) JP2002164787A (en)

Similar Documents

Publication Publication Date Title
TWI424689B (en) Read and write interface communications protocol for digital-to-analog signal converter with non-volatile memory
US7592940B2 (en) Digital-to-analog converter and digital-to-analog conversion method thereof
US7355543B2 (en) Digital-to-analog converter using capacitors and operational amplifier
JPS6059772B2 (en) analog to digital converter
JP2005204306A (en) Digital/analog converter, display driver and display
US6950047B1 (en) Method and apparatus for combining outputs of multiple DACs for increased bit resolution
JP2006509441A (en) Multi-channel integrated circuit comprising a plurality of DACs and method for monitoring the output of a DAC
JPH04357716A (en) Multi-channel d/a converter
JPS62502220A (en) Digital-to-analog converter
JP2002164787A (en) D/a output port
JP2001156640A (en) Digital/analog converter
JPH10336032A (en) A/d converter
US6985100B2 (en) Integrated circuit comprising a DAC with provision for setting the DAC to a clear condition, and a method for setting a DAC to a clear condition
JP2002325040A (en) D/a converting circuit
JPH06132828A (en) D/a converter
JPH10112650A (en) Analog-to-digital conversion offset correction circuit, digital-to-analog conversion offset correction circuit and codec
US10700699B1 (en) Voltage-mode DAC driver with programmable mode output units
KR100282443B1 (en) Digital / Analog Converter
JP3088343B2 (en) Successive approximation type AD converter
JPH10285038A (en) Digital to analog converter
JP2006048916A (en) Memory device having single bit bus structure with current mode signaling system
JPH10254825A (en) Semiconductor integrated circuit incorporated with data communication function
JP3647277B2 (en) Digital / analog converter
JP2000022536A (en) Semiconductor integrated circuit
JPH0612502A (en) Microcomputer with built-in a/d conversion circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080205