JPH10143462A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH10143462A
JPH10143462A JP8293898A JP29389896A JPH10143462A JP H10143462 A JPH10143462 A JP H10143462A JP 8293898 A JP8293898 A JP 8293898A JP 29389896 A JP29389896 A JP 29389896A JP H10143462 A JPH10143462 A JP H10143462A
Authority
JP
Japan
Prior art keywords
input
output
port
latch
signal
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
Application number
JP8293898A
Other languages
Japanese (ja)
Inventor
Hiroshi Okazaki
浩 岡崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP8293898A priority Critical patent/JPH10143462A/en
Publication of JPH10143462A publication Critical patent/JPH10143462A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve noise resistance by external noise and to improve reliability by resetting an input/output mode every time the write instruction and read instruction of one time is executed. SOLUTION: In the case of setting a port to an output mode so as to output data, by inputting write signals 104 and port selection signals 103 simultaneously transferred from an internal bus 10 at the time of the output of the data 102 to an AND circuit 12, an input/output mode latch 1 is set to the output mode by input/output mode signals 113 which are the output of the AND circuit 12. In the case of setting the port to an input mode so as to input the data, by inputting the port selection signals 103 and read signals 105 to a NAND circuit 13, the input/output mode latch 1 is reset and set to the input mode by reset signals 112 which are the output of the NAND circuit 13. In such a manner, the input/output mode of the port is reset at the time of setting a value to an output latch and at the time of inputting the data from the port.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータに関し、特に周辺機能を設定や操作する入・出力モ
ードの設定に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer, and more particularly to a setting of an input / output mode for setting and operating peripheral functions.

【0002】[0002]

【従来の技術】特開平5−35644号公報従来のマイ
クロコンピュータは、図3に示すように、ソフトウェア
の命令により内部バス30から転送されるポート選択信
号203とポート入出力モード信号201により入出力
制御信号206を出力する入出力モード・ラッチ21
と、ライト信号204とポート選択信号203から出力
制御信号207を出力するAND回路29と、リード信
号205とポート選択信号203から入力制御信号20
8を出力するAND回路26と、出力制御信号207に
よりデータ202を出力する出力ラッチ23と、入力制
御信号208によりデータ211を入力する入力ラッチ
24と、入出力制御信号206により制御される出力バ
ッファ27と、インバータ29を通った入出力制御信号
206により制御される入力バッファ28と、出力バッ
ファ27と入力バッファ28に接続された入出力のポー
ト25を有している。
2. Description of the Related Art As shown in FIG. 3, a conventional microcomputer uses a port selection signal 203 and a port input / output mode signal 201 which are transferred from an internal bus 30 according to software instructions. Input / output mode latch 21 for outputting control signal 206
An AND circuit 29 for outputting an output control signal 207 from the write signal 204 and the port selection signal 203; and an input control signal 20 from the read signal 205 and the port selection signal 203.
8, an output latch 23 that outputs data 202 by an output control signal 207, an input latch 24 that inputs data 211 by an input control signal 208, and an output buffer controlled by an input / output control signal 206. 27, an input buffer 28 controlled by an input / output control signal 206 passed through an inverter 29, and an input / output port 25 connected to the output buffer 27 and the input buffer 28.

【0003】図3に示す、従来の入出力ポートにおい
て、ポートを出力に切り替えるには、ソフトウェアの命
令により内部バス30より転送されるポート選択信号2
03とポート入出力モード信号201により入出力モー
ド・ラッチ21が出力モードになり、入出力制御信号2
06を出力し、出力バッファ27を出力許可の状態にす
る。
In the conventional input / output port shown in FIG. 3, in order to switch the port to output, a port selection signal 2 transferred from the internal bus 30 by a software instruction is used.
03 and the port input / output mode signal 201 put the input / output mode latch 21 into the output mode, and the input / output control signal 2
06 is output, and the output buffer 27 is set in an output enabled state.

【0004】同様にポートを入力に切り替えるには、ソ
フトウェアの命令により内部バス30より転送されるポ
ート入出力モード信号201とポート選択信号203に
より入出力モード・ラッチ21が入力モードになり、入
出力制御信号206を出力する。入力制御信号208
は、インバータ22を通り、入力バッファ28に入力さ
れる。
Similarly, in order to switch the port to input, the input / output mode latch 21 is set to the input mode by the port input / output mode signal 201 and the port selection signal 203 which are transferred from the internal bus 30 by the instruction of software, and The control signal 206 is output. Input control signal 208
Is input to the input buffer 28 through the inverter 22.

【0005】従来のポートにおいて、データを出力する
場合は、データ202とライト信号204とポート選択
信号203が内部バス30より転送される。ライト信号
204とポート選択信号203の論理積をAND回路2
9で行い、結果を出力制御信号207として出力ラッチ
23に出力する。
When data is output from a conventional port, data 202, a write signal 204, and a port selection signal 203 are transferred from the internal bus 30. The logical product of the write signal 204 and the port selection signal 203 is calculated by the AND circuit 2
9 and outputs the result to the output latch 23 as the output control signal 207.

【0006】出力ラッチ23はデータ202と出力制御
信号207から出力データ209として出力バッファ2
7に出力する。データ209は出力バッファ27からポ
ート25に出力される。
The output latch 23 converts the data 202 and the output control signal 207 as output data 209 into the output buffer 2.
7 is output. Data 209 is output from output buffer 27 to port 25.

【0007】データを入力する場合は、入出力モード・
ラッチ21から出力される入出力制御信号206によ
り、入力許可状態の入力バッファ28が入力しているデ
ータ210を入力ラッチ24に出力する。
When inputting data, an input / output mode
In response to the input / output control signal 206 output from the latch 21, the data 210 input to the input buffer 28 in the input enabled state is output to the input latch 24.

【0008】リード信号205とポート選択信号203
の論理積をAND回路26で行い、結果を入力制御信号
208として入力ラッチ24に出力する。
[0008] Read signal 205 and port selection signal 203
Is performed by the AND circuit 26, and the result is output to the input latch 24 as an input control signal 208.

【0009】入力ラッチ24は、入力制御信号208の
入力により、入力データ210を内部バス30に出力す
る。
The input latch 24 outputs input data 210 to the internal bus 30 in response to the input of the input control signal 208.

【0010】[0010]

【発明が解決しようとする課題】従来のマイクロコンピ
ュータでは、入出力モード・ラッチに値を一度設定する
と、ソフトウェアで意図的にリフレッシュを行わなけれ
ば、同じ設定で使う場合に限り、特に設定し直すことは
なかった。そのため外部からのノイズ、サージ等の影響
を受けて、ポートの入出力モードまたは、出力ラッチの
内容が変化してしまい、異常動作を起こすことがあっ
た。
In the conventional microcomputer, once a value is set in the input / output mode latch, unless the software is intentionally refreshed by software, the value is specifically reset only when the same setting is used. I never did. Therefore, the input / output mode of the port or the contents of the output latch may be changed due to the influence of external noise, surge, or the like, and an abnormal operation may occur.

【0011】本発明の目的は、上記従来技術の問題点に
鑑み、ポートの入出力の設定をソフトウェアにより行う
入出力モード・ラッチを有するマイクロコンピュータに
おいて、外部からのノイズ、サージ等により変化してし
まう入出力ポートの入力または出力のモードが再設定さ
れることにより外来ノイズによるノイズ耐性が向上し、
信頼性の向上を図ることにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a microcomputer having an input / output mode latch for setting input / output of a port by software in view of the above-mentioned problems of the prior art. By re-setting the input or output mode of the input / output port, the noise resistance due to external noise is improved,
The purpose is to improve reliability.

【0012】[0012]

【課題を解決するための手段】本発明は、上記課題を解
決するために、ポートの入出力の設定をソフトウェアに
より行う入出力モード・ラッチを有するマイクロコンピ
ュータにおいて、ライト命令実行時に入出力モード・ラ
ッチをハードウェアにより出力モードに再設定し、また
リード命令実行時に入出力モード・ラッチをハードウェ
アにより入力モードに再設定するものである。
According to the present invention, there is provided a microcomputer having an input / output mode latch for setting input / output of a port by software. The latch is reset to the output mode by hardware, and the input / output mode latch is reset to the input mode by hardware when a read instruction is executed.

【0013】本発明によれば、ポートの入出力モードを
出力ラッチへの値を設定する時およびポートからのデー
タ入力時に再設定を行う。このため、ポート・モードの
リフレッシュをする必要がない。
According to the present invention, the input / output mode of the port is reset when a value is set to the output latch and when data is input from the port. Therefore, there is no need to refresh the port mode.

【0014】[0014]

【発明の実施の形態】図1を参照して本発明について説
明する。図1は本発明の実施例の構成を示す電気回路図
である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described with reference to FIG. FIG. 1 is an electric circuit diagram showing the configuration of the embodiment of the present invention.

【0015】本実施例は、図1に示すように、内部バス
10から転送される入出力モード信号101とポート選
択信号103に対応した入出力制御信号106を出力す
る入出力モード・ラッチ1と、内部バス10から転送さ
れるポート選択信号103とライト信号104に対応し
た出力制御信号114を出力するAND回路9と、内部
バス10から転送されるデータ102を出力制御信号1
14に対応して出力バッファ7に出力する出力ラッチ3
と、内部バス10から転送されるポート選択信号103
とリード信号105に対応した入力制御信号108を出
力するAND回路6と、入力制御信号108に対応し
て、入力バッファ8のデータ110を内部バス10に出
力する入力ラッチ4と、入出力制御信号106により制
御され、出力ラッチ3のデータ109をポート5に出力
する出力バッファ7と、入出力制御信号106により制
御され、ポート5の入力データ111を入力ラッチ4に
出力する入力バッファ8と、内部バス10から転送され
るポート選択信号103とライト信号104に対応した
入出力モード信号を入出力モード・ラッチに出力するA
ND回路12と、内部バス10から転送されるポート選
択信号103とリード信号105から入出力モード・ラ
ッチ1にリセット信号112を出力するNAND回路1
3を有している。
In this embodiment, as shown in FIG. 1, an input / output mode latch 1 for outputting an input / output mode signal 101 transferred from an internal bus 10 and an input / output control signal 106 corresponding to a port selection signal 103 is provided. An AND circuit 9 for outputting an output control signal 114 corresponding to the port selection signal 103 and the write signal 104 transferred from the internal bus 10, and an output control signal 1 for the data 102 transferred from the internal bus 10.
Output latch 3 for outputting to output buffer 7 corresponding to 14
And a port selection signal 103 transferred from the internal bus 10
AND circuit 6 for outputting an input control signal 108 corresponding to the read signal 105 and the read signal 105; an input latch 4 for outputting data 110 of the input buffer 8 to the internal bus 10 in response to the input control signal 108; An output buffer 7 controlled by 106 to output data 109 of the output latch 3 to the port 5; an input buffer 8 controlled by the input / output control signal 106 to output input data 111 of the port 5 to the input latch 4; A which outputs an input / output mode signal corresponding to the port selection signal 103 and the write signal 104 transferred from the bus 10 to the input / output mode latch
ND circuit 12 and NAND circuit 1 that outputs reset signal 112 to input / output mode latch 1 from port selection signal 103 and read signal 105 transferred from internal bus 10
Three.

【0016】本実施例の特徴は、図3に示した従来例の
回路構成にAND回路12とNAND回路13とが新た
に付加されていることである。これら付加された回路を
除いた他の回路の動作については、基本的には、既に説
明した従来例の場合と同じである。
The feature of this embodiment is that an AND circuit 12 and a NAND circuit 13 are newly added to the circuit configuration of the conventional example shown in FIG. The operation of the other circuits except for the added circuit is basically the same as that of the conventional example described above.

【0017】本実施例では、データを出力するためにポ
ートを出力モードに設定する場合、データ102の出力
時に同時に、内部バス10より転送されてくるライト信
号104とポート選択信号103を、AND回路12に
入力することにより、AND回路12の出力である入出
力モード信号113で入出力モード・ラッチ1を出力モ
ードに設定を行う。
In this embodiment, when the port is set to the output mode for outputting data, the write signal 104 and the port selection signal 103 transferred from the internal bus 10 are simultaneously output when the data 102 is output. The input / output mode latch 113 is set to the output mode by the input / output mode signal 113 which is the output of the AND circuit 12.

【0018】これによりデータを出力する場合は、デー
タ102とライト信号104とポート選択信号103が
内部バス10より転送される。ライト信号104とポー
ト選択信号103の論理積をAND回路9で行い、結果
を出力制御信号114として出力ラッチ3に出力する。
入出力モード・ラッチ1から出力される入出力制御信号
106により、出力バッファ7が入力許可状態になる。
When outputting data, the data 102, the write signal 104, and the port selection signal 103 are transferred from the internal bus 10. The logical product of the write signal 104 and the port selection signal 103 is performed by the AND circuit 9, and the result is output to the output latch 3 as the output control signal 114.
The input / output control signal 106 output from the input / output mode latch 1 puts the output buffer 7 in an input enabled state.

【0019】出力ラッチ3はデータ102と出力制御信
号114から出力データ109として出力バッファ7に
出力する。データ109は出力バッファ7からポート5
に出力される。
The output latch 3 outputs the data 102 and the output control signal 114 to the output buffer 7 as output data 109. Data 109 is output from output buffer 7 to port 5
Is output to

【0020】同様に、データを入力するためにポートを
入力モードに設定する場合、ポート選択信号103とリ
ード信号105をNAND回路13に入力することによ
り、NAND回路13の出力であるリセット信号112
で入出力モード・ラッチ1をリセットし、入力モードに
設定を行う。
Similarly, when the port is set to the input mode for inputting data, the port selection signal 103 and the read signal 105 are input to the NAND circuit 13 so that the reset signal 112 output from the NAND circuit 13 is output.
Resets the input / output mode latch 1 to set the input mode.

【0021】これによりデータを入力する場合は、入出
力モード・ラッチ1から出力される入出力制御信号10
6により、入力許可状態の入力バッファ8が入力してい
るデータ111を入力ラッチ4に出力する。
When inputting data, the input / output control signal 10 output from the input / output mode latch 1 is input.
6 outputs the data 111 input from the input buffer 8 in the input enabled state to the input latch 4.

【0022】リード信号105とポート選択信号103
の論理積をAND回路6で行い、結果を入力制御信号1
08として入力ラッチ4に出力する。
Read signal 105 and port select signal 103
Is performed by the AND circuit 6 and the result is input control signal 1
08 and output to the input latch 4.

【0023】入力ラッチ4は、入力制御信号108の入
力により、データ110を内部バス10に出力する。
The input latch 4 outputs data 110 to the internal bus 10 in response to the input of the input control signal 108.

【0024】本実施例によれば、図2のフローチャート
に示すように、従来のマイクロコンピュータでデータ出
力するには、図2(B)のように、出力ラッチにデータ
を設定(ステップB1)した後、各ポートの入出力モー
ドを設定する必要がある(ステップB2)。本発明のマ
イクロピュータでデータ出力するには、図2(A)のよ
うに、出力ラッチにデータの設定を行うとポートモード
の再設定を行う(ステップA1)ので、改めて各ポート
の入出力モードを設定する必要がなく、プログラムを短
縮することができる。
According to the present embodiment, as shown in the flowchart of FIG. 2, in order to output data by a conventional microcomputer, data is set in an output latch as shown in FIG. 2B (step B1). Thereafter, it is necessary to set the input / output mode of each port (step B2). In order to output data with the microcomputer of the present invention, as shown in FIG. 2A, when data is set in the output latch, the port mode is reset (step A1). , And the program can be shortened.

【0025】入力命令実行時においても、従来のマイク
ロコンピュータでは、外来ノイズ等で、本来入力ポート
として使用するポートが出力ポートに切り替わっていて
も、ポートモードのリフレッシュ動作を行った後でない
と正しい値が読めないが、本発明のマイクロコンピュー
タでは、入力命令実行時にモードを入力に再設定をする
ので、確実にデータ入力することができる。
Even when the input instruction is executed, in the conventional microcomputer, even if the port originally used as the input port is switched to the output port due to external noise or the like, the correct value is obtained after the port mode refresh operation is performed. However, in the microcomputer of the present invention, the mode is reset to the input when the input command is executed, so that the data can be input reliably.

【0026】すなわち、本発明によりライト命令、リー
ド命令を実行する毎にポートの設定を行うことで、外来
ノイズなどにより、入出力のモードが反転することがな
い。
That is, by setting the port every time a write command or a read command is executed according to the present invention, the input / output mode is not inverted due to external noise or the like.

【0027】[0027]

【発明の効果】以上説明したように本マイクロコンピュ
ータは、1回のライト命令およびリード命令を実行する
度に入出力モードが再設定されるため、外来ノイズなど
により、入出力のモードが反転したポートでも、命令実
行時は正しい動作を行い、異常動作を防ぐことができ
る。
As described above, in this microcomputer, the input / output mode is reset every time one write command and one read command are executed. Therefore, the input / output mode is inverted due to external noise or the like. Even at the port, correct operation can be performed at the time of instruction execution, and abnormal operation can be prevented.

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

【図1】本発明の実施例の構成を示す電気回路図FIG. 1 is an electric circuit diagram showing a configuration of an embodiment of the present invention.

【図2】(A)本発明の実施例における処理手順を示す
フローチャート、(B)従来例における処理手順を示す
フローチャート
FIG. 2A is a flowchart showing a processing procedure in an embodiment of the present invention, and FIG. 2B is a flowchart showing a processing procedure in a conventional example.

【図3】従来例の構成を示す電気回路図FIG. 3 is an electric circuit diagram showing a configuration of a conventional example.

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

1 入出力モード・ラツチ 2 インバータ 3 出力ラッチ 4 入力ラッチ 5 ポート 6 AND回路 7 出力バッファ 8 入力バッファ 9 AND回路 10 内部バス 11 OR回路 12 AND回路 13 NAND回路 21 入出力モード・ラッチ 22 インバータ 23 出力ラッチ 24 入力ラッチ 25 ポート 26 AND回路 27 出力バッファ 28 入力バッファ 29 AND回路 30 内部バス 101 入出力モード信号 102 データ 103 ポート選択信号 104 ライト信号 105 リード信号 106 入出力制御信号 107 再設定信号 108 入力制御信号 109 出力データ 110 入力データ 111 データ 112 リセット信号 113 入出力モード信号 114 出力制御信号 201 ポート入出力モード信号 202 データ 203 ポート選択信号 204 ライト信号 205 リード信号 206 入出力制御信号 207 出力制御信号 208 入力制御信号 209 出力データ 210 入力データ 211 データ REFERENCE SIGNS LIST 1 input / output mode latch 2 inverter 3 output latch 4 input latch 5 port 6 AND circuit 7 output buffer 8 input buffer 9 AND circuit 10 internal bus 11 OR circuit 12 AND circuit 13 NAND circuit 21 input / output mode latch 22 inverter 23 output Latch 24 Input latch 25 Port 26 AND circuit 27 Output buffer 28 Input buffer 29 AND circuit 30 Internal bus 101 I / O mode signal 102 Data 103 Port selection signal 104 Write signal 105 Read signal 106 I / O control signal 107 Reset signal 108 Input control Signal 109 output data 110 input data 111 data 112 reset signal 113 input / output mode signal 114 output control signal 201 port input / output mode signal 202 data 203 port Selection signal 204 write signal 205 read signal 206 input / output control signal 207 output control signal 208 input control signal 209 output data 210 input data 211 data

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ポートの入出力の設定をソフトウェアに
より行う入出力モード・ラッチを有するマイクロコンピ
ュータにおいて、ライト命令実行時に入出力モード・ラ
ッチをハードウェアにより出力モードに再設定すること
を特徴とするマイクロコンピュータ。
In a microcomputer having an input / output mode latch for setting input / output of a port by software, the input / output mode latch is reset to an output mode by hardware when a write instruction is executed. Microcomputer.
【請求項2】 ポートの入出力の設定をソフトウェアに
より行う入出力モード・ラッチを有するマイクロコンピ
ュータにおいて、リード命令実行時に入出力モード・ラ
ッチをハードウェアにより入力モードに再設定すること
を特徴とするマイクロコンピュータ。
2. A microcomputer having an input / output mode latch for setting input / output of a port by software, wherein the input / output mode latch is reset to an input mode by hardware when a read instruction is executed. Microcomputer.
【請求項3】 ポートの入出力の設定をソフトウェアに
より行う入出力モード・ラッチを有するマイクロコンピ
ュータにおいて、 内部バスから転送される入出力モード信号とポート選択
信号に対応した入出力制御信号を出力する入出力モード
・ラッチと、 内部バスから転送されるポート選択信号とライト信号に
対応した入出力モード信号を前記入出力モード・ラッチ
に出力するAND回路と、 内部バスから転送されるポート選択信号とライト信号に
対応した出力制御信号を出力するAND回路と、 前記出力制御信号に対応して内部バスから転送されるデ
ータを出力バッファに出力する出力ラッチと、 前記入出力制御信号により制御され、前記出力ラッチか
らのデータをポートに出力する出力バッファとを有して
いることを特徴とするマイクロコンピュータ。
3. A microcomputer having an input / output mode latch for setting input / output of a port by software outputs an input / output control signal corresponding to an input / output mode signal transferred from an internal bus and a port selection signal. An input / output mode latch, an AND circuit that outputs an input / output mode signal corresponding to a port selection signal and a write signal transferred from the internal bus to the input / output mode latch, and a port selection signal transferred from the internal bus. An AND circuit that outputs an output control signal corresponding to a write signal; an output latch that outputs data transferred from an internal bus to an output buffer in response to the output control signal; A microphone having an output buffer for outputting data from an output latch to a port. Computer.
【請求項4】 ポートの入出力の設定をソフトウェアに
より行う入出力モード・ラッチを有するマイクロコンピ
ュータにおいて、 内部バスから転送される入出力モード信号とポート選択
信号に対応した入出力制御信号を出力する入出力モード
・ラッチと、 内部バスから転送されるポート選択信号とリード信号か
らリセット信号を前記入出力モード・ラッチに出力する
NAND回路と、 前記入出力制御信号により制御され、ポートの入力デー
タを保持する入力バッファと、 内部バスから転送されるポート選択信号とリード信号に
対応した入力制御信号を出力するAND回路と、 前記入力制御信号に対応して前記入力バッファのデータ
を内部バスに出力する入力ラッチとを有していることを
特徴とするマイクロコンピュータ。
4. A microcomputer having an input / output mode latch for setting input / output of a port by software, outputs an input / output control signal corresponding to an input / output mode signal transferred from an internal bus and a port selection signal. An input / output mode latch, a NAND circuit that outputs a reset signal from the port select signal and the read signal transferred from the internal bus to the input / output mode latch, and is controlled by the input / output control signal to input data of the port. An input buffer for holding, an AND circuit for outputting an input control signal corresponding to a port selection signal and a read signal transferred from the internal bus, and outputting data of the input buffer to the internal bus in response to the input control signal A microcomputer having an input latch.
【請求項5】 ポートの入出力の設定をソフトウェアに
より行う入出力モード・ラッチを有するマイクロコンピ
ュータにおいて、 内部バスから転送される入出力モード信号とポート選択
信号に対応した入出力制御信号を出力する入出力モード
・ラッチと、 内部バスから転送されるポート選択信号とライト信号に
対応した入出力モード信号を前記入出力モード・ラッチ
に出力するAND回路と、 内部バスから転送されるポート選択信号とリード信号か
らリセット信号を前記入出力モード・ラッチに出力する
NAND回路と、 内部バスから転送されるポート選択信号とライト信号に
対応した出力制御信号を出力するAND回路と、 前記出力制御信号に対応して内部バスから転送されるデ
ータを出力バッファに出力する出力ラッチと、 前記入出力制御信号により制御され、前記出力ラッチか
らのデータをポートに出力する出力バッファと、 前記入出力制御信号により制御され、ポートの入力デー
タを保持する入力バッファと、 内部バスから転送されるポート選択信号とリード信号に
対応した入力制御信号を出力するAND回路と、 前記入力制御信号に対応して前記入力バッファのデータ
を内部バスに出力する入力ラッチとを有していることを
特徴とするマイクロコンピュータ。
5. A microcomputer having an input / output mode latch for setting input / output of a port by software outputs an input / output control signal corresponding to an input / output mode signal transferred from an internal bus and a port selection signal. An input / output mode latch, an AND circuit that outputs an input / output mode signal corresponding to a port selection signal and a write signal transferred from the internal bus to the input / output mode latch, and a port selection signal transferred from the internal bus. A NAND circuit that outputs a reset signal from a read signal to the input / output mode latch, an AND circuit that outputs an output control signal corresponding to a port selection signal and a write signal transferred from an internal bus, An output latch for outputting data transferred from an internal bus to an output buffer; An output buffer controlled by a control signal to output data from the output latch to a port; an input buffer controlled by the input / output control signal to hold input data of the port; and a port selection signal transferred from an internal bus And an AND circuit for outputting an input control signal corresponding to a read signal; and an input latch for outputting data of the input buffer to an internal bus in response to the input control signal. .
JP8293898A 1996-11-06 1996-11-06 Microcomputer Pending JPH10143462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8293898A JPH10143462A (en) 1996-11-06 1996-11-06 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8293898A JPH10143462A (en) 1996-11-06 1996-11-06 Microcomputer

Publications (1)

Publication Number Publication Date
JPH10143462A true JPH10143462A (en) 1998-05-29

Family

ID=17800589

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8293898A Pending JPH10143462A (en) 1996-11-06 1996-11-06 Microcomputer

Country Status (1)

Country Link
JP (1) JPH10143462A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10838889B2 (en) 2018-03-09 2020-11-17 Kabushiki Kaisha Toshiba I/O expansion device, control system, and automotive system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10838889B2 (en) 2018-03-09 2020-11-17 Kabushiki Kaisha Toshiba I/O expansion device, control system, and automotive system

Similar Documents

Publication Publication Date Title
JPH05324348A (en) Single chip microcomputer
JPH0342732A (en) Semiconductor integrated circuit
JPH10143462A (en) Microcomputer
US7058842B2 (en) Microcontroller with multiple function blocks and clock signal control
JP2847741B2 (en) Microcomputer
JP2569693B2 (en) Microcomputer
JP2978278B2 (en) Terminal function setting circuit
JP3232301B2 (en) Data processing device
JPH0520224A (en) Microcomputer
JPH0535378A (en) Input and output circuit
JPS5814000B2 (en) register set circuit
JPH0612292A (en) Microcomputer
JPH05143441A (en) Single chip microcomputer
WO2018179753A1 (en) Microcomputer
JPH04141734A (en) Internal register access circuit
JPH10333920A (en) Interruption processing circuit
JPH08305564A (en) Microcomputer
JPH05143360A (en) Micro computer
JPH03149620A (en) Microprocessor
JPH01224849A (en) Microcomputer
JPH01177117A (en) Microcomputer
JPS62235670A (en) Inputting and outputting circuit
JPH05101203A (en) Microprocessor
JPH07104999A (en) Microcomputer
JPH04337882A (en) Output port