JPS6214245A - One-chip microcomputer - Google Patents
One-chip microcomputerInfo
- Publication number
- JPS6214245A JPS6214245A JP60153431A JP15343185A JPS6214245A JP S6214245 A JPS6214245 A JP S6214245A JP 60153431 A JP60153431 A JP 60153431A JP 15343185 A JP15343185 A JP 15343185A JP S6214245 A JPS6214245 A JP S6214245A
- Authority
- JP
- Japan
- Prior art keywords
- port
- output
- input
- time
- address
- 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
- 230000000694 effects Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 5
- 241000272201 Columbiformes Species 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Landscapes
- Microcomputers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明はワンチップマイクロコンピュータ(以下マイ
コンと略記する)に関し、特にそのプログラムが外部R
OMに格納されているマイコンに関するものである。[Detailed Description of the Invention] [Industrial Application Field] This invention relates to a one-chip microcomputer (hereinafter abbreviated as microcomputer), and in particular, the present invention relates to a one-chip microcomputer (hereinafter abbreviated as microcomputer), and in particular, the present invention relates to a one-chip microcomputer (hereinafter abbreviated as microcomputer), and in particular,
This is related to the microcomputer stored in the OM.
第3図は従来のマイコンの入出力信号関係を示すブロッ
ク図で、図において(1)ハマイコン、[2+dマイコ
ン(1)のプログラムメモリとして使用される外部RO
M、 +31Viマイコン(1)との間でデータの入出
力が行われる外部回路である。ところで、マイコン(1
)ハその構造上外部へのデータ入出力端子(以下ポート
ともいう)数はなるべく少数にしたいので1個の端子を
時分割で多目的に共用するのが一般である。第3図にお
いて、(4)で示すI10ポート(I10Vi入出力を
意味する)は外部回路(3)との間のデータ入出力に専
用されるポートで、(5)で示す部分は外部ROM +
21へのアドレス出力、外部ROM +21に格納され
ているプログラムから読出した命令の入力及び外部回路
(3)へのデータ入出力(第3図ではポート入力、ポー
ト出力として表す)に切換えて使用されるポートである
。Figure 3 is a block diagram showing the input/output signal relationship of a conventional microcomputer.
M, +31Vi This is an external circuit that inputs and outputs data to and from the microcomputer (1). By the way, the microcomputer (1
) Because the number of external data input/output terminals (hereinafter also referred to as ports) should be kept as small as possible due to its structure, it is common to use one terminal for multiple purposes on a time-sharing basis. In FIG. 3, the I10 port (meaning I10Vi input/output) indicated by (4) is a port dedicated to data input/output with the external circuit (3), and the part indicated by (5) is a port dedicated to data input/output with the external circuit (3).
It is used by switching to address output to 21, input of instructions read from the program stored in external ROM 21, and data input/output to external circuit (3) (represented as port input and port output in Figure 3). It is a port that
第4図はこのようなポートの切換を示すブロック回路で
、(10)はレジスタ、(11)はラッチ、(12)
Vi制御用トランジスタ、(13)は端子である。端子
(13)から外部へデータを出力する場合はレジスタ(
10)の中の当該データをラッチ(11)にラッチし、
トランジスタ(12) ’!z制御して(データ中の1
ビツトだけを代表的に示す)、ラッチ(11)の内容を
端子(13)に出力する。また、端子(13)から外部
のデータを入力するときはトランジスタ(12)によっ
てラッチ(11)と端子(13)間をし中断し、端子(
13)からレジスタ(10)へ外部データを書込む。Figure 4 is a block circuit showing such port switching, where (10) is a register, (11) is a latch, and (12)
The Vi control transistor (13) is a terminal. When outputting data from the terminal (13) to the outside, use the register (
Latch the data in 10) into the latch (11),
Transistor (12)'! z control (1 in the data
(only bits are representatively shown), the contents of the latch (11) are output to the terminal (13). Also, when external data is input from the terminal (13), it is interrupted between the latch (11) and the terminal (13) by the transistor (12), and the terminal (
13) to write external data to register (10).
第3図において、外部ROM +21にマイコン(1)
からのアドレス出力をフェッチする回路を設けておけば
、マイコン(1)から外部ROM +21にアクセスす
るアドレス信号を出力するポートと、このアドレス信号
に対応して外部ROM +21のプログラムメモリから
読出された命令をマイコン(1)に入力するポートとは
時分割で同一ポートを使用することができる。In Figure 3, external ROM +21 has a microcomputer (1)
If a circuit is provided to fetch the address output from the microcontroller (1), there will be a port that outputs the address signal for accessing the external ROM +21 from the microcontroller (1), and a port that outputs the address signal for accessing the external ROM +21 from the microcontroller (1), and a port that outputs the address signal that is read from the program memory of the external ROM +21 in response to this address signal. The same port as the port for inputting instructions to the microcomputer (1) can be used on a time-sharing basis.
また、この同じポートを読出された命令が実行されて外
部回路(3)へマイコン(1)からデータの人出力を実
行するポートとして使用することができる。Further, this same port can be used as a port for executing read instructions and outputting data from the microcomputer (1) to the external circuit (3).
ところで、外部ROM +21にアクセスするためのア
ドレス信号のビット数とそのアドレス信号によって外部
ROM +21から読出される命令文のビット数とは互
に異なり、一般的にはアドレス信号のビット数の方が多
い。従って、第3図の符号(5)で示すポートが時分割
で使用される場合2種類のポートが存在することになる
。第1の種類のポートはアドレス信号送出用(すなわち
アドレス指定用)とそのアドレス信号に対応する命令入
力用と、外部回路(3)に対するデータ入出力用(すな
わちポート入出力用)との3つの動作が時分割で繰返さ
れるポートであり、第2の種類のポートはアドレス指定
用とポート入出力用の2つの動作だけが繰返されるポー
トである。By the way, the number of bits of the address signal for accessing the external ROM +21 and the number of bits of the instruction statement read from the external ROM +21 by that address signal are different, and generally the number of bits of the address signal is larger. many. Therefore, when the ports indicated by reference numeral (5) in FIG. 3 are used in a time-sharing manner, two types of ports exist. The first type of port has three ports: one for sending an address signal (that is, for specifying an address), one for inputting a command corresponding to the address signal, and one for inputting and outputting data to the external circuit (3) (that is, for port input/output). The second type of port is a port whose operations are repeated in a time-sharing manner, and the second type of port is a port where only two operations, one for addressing and one for port input/output, are repeated.
第5図は従来の装置におけるポートの時分割を示す動作
タイムチャートであって、第5図1alは第1の種類の
ポート(すなわち1つのポートが時分割により3種類の
信号の入出力をおこ々う場合)のタイムチャートで、第
5図1alは第2の種類のポート(すなわち1つのポー
トが時分割により2種類の信号の入出力をおこなう場合
)のタイムチャートである。第5図1alに示す動作を
するポートにおいても、同図1blに示す動作をするポ
ートにおいてもアドレス指定用の出力は同時点で行われ
なければならぬことは申す葦でもない。第5図に示す従
来の時分割では第5図+b)に示すようなポートにおい
ても、命令入力に対応する位相の部分で命令入力のため
に使用する必要のないポートはそのポートラフ0−ティ
ングに保ち(第5図(blの左端のハツチ金族した部分
)、命令入力の為に用いられるポートが(第5図fa)
参照)命令入力を終シ、外部回路(3)に対する入出力
(ポート入出力用)として用いられる時点に合せて、第
5図[blにおいてもポート入出力用として使用するよ
うマイコン(1)内のポートの切換スイッチを動作させ
た。FIG. 5 is an operation time chart showing time division of ports in a conventional device, and FIG. FIG. 5 la is a time chart for the second type of port (that is, a case where one port inputs and outputs two types of signals by time division). It is needless to say that output for address designation must be performed at the same time in both ports operating as shown in FIG. 5 1al and ports operating as shown in FIG. 1bl. In the conventional time division shown in Figure 5, even in the ports shown in Figure 5+b), ports that do not need to be used for command input in the phase corresponding to command input are used for port rafting. The port used for command input is (Fig. 5 fa).
Reference) When the instruction input is terminated and used as input/output (for port input/output) to the external circuit (3), the microcontroller (1) is also configured to be used for port input/output in Figure 5 [bl]. The switch for the port was activated.
従来のマイコンでのポートの切換えは以上のように行わ
れているので、第5図1alに示すように2種類の信号
の入出力を行えばよい第2の種類のポートにおいても第
5図1alの左端にハツチを施した部分のようにポート
の利用されて々い時間があり、その為にポートの利用率
が悪いという問題点があった0
第3図にI10ポート(4)として示すように外部回路
(3)からの入出力に専用されるホートラ多数設けるこ
とはピン数の少ないマイコンでは実現困難なことであり
、外部ROMに対するアドレス指定用に用いられるポー
ト’を時分割使用によってなるべく有効にポート入出力
用に使用したい時に、その時分割においてポートがフロ
ーティングになっている状態があるのは改善すべき問題
であった。Since port switching in conventional microcontrollers is performed as described above, the second type of port, which only needs to input and output two types of signals, as shown in FIG. As shown in the hatched area on the left edge of the port, there is a time when the port is being used for a long time, which caused the problem of poor port utilization.0 As shown in Figure 3 as I10 port (4) Providing a large number of ports dedicated to input/output from the external circuit (3) is difficult to achieve with a microcontroller with a small number of pins, and the port used for addressing the external ROM should be used as effectively as possible by time-sharing. When a port is used for input/output, there are times when the port is left floating during time sharing, which is a problem that should be improved.
この発明は上記のような問題点を解決するためになされ
たもので、外部ROMへアクセスするアドレス信号を送
出するホートラ、外部回路へのデータ入出力にも有効に
利用できるマイコンを得ること全目的としている。This invention was made to solve the above-mentioned problems, and the overall purpose is to provide a microcontroller that can be effectively used for sending out address signals for accessing external ROM and for inputting and outputting data to external circuits. It is said that
この発明では、アドレス指定用の信号を送出するために
は用いられるが、当該アドレスによって外部ROMから
読出された命令文を入力するためには用いる必要のない
ポート、すなわち第2の種類のポートについて、アドレ
ス指定用の信号送出に必要な時間以外のすべての時間の
うち、なるべく多くの時間を外部回路からの信号入出力
に利用できるようにした。In the present invention, a second type of port, which is used for sending an address designation signal, but does not need to be used for inputting an instruction statement read from an external ROM by the address, is described. , out of all the time other than the time required for sending signals for address specification, as much time as possible can be used for inputting and outputting signals from external circuits.
従来の時分割よりも長い時間外部回路とのデータ入出力
に利用できるポートが得られるので、外部回路との間の
データ入出力に用いるポートを増設したことと同様な効
果が得られる。Since a port that can be used for data input/output with an external circuit for a longer period of time than conventional time division is obtained, the same effect as that obtained by adding a port used for data input/output with an external circuit can be obtained.
以下この発明の実施例全図面について説明する。 All drawings of embodiments of this invention will be described below.
第1図はこの発明の一実施例金示すブロック図で、第3
図と同一符号は同−又は相当部分を示し、(5o)はア
ドレス出力、命令入力、及びポート出力が行われるポー
ト、(51)itアドレス出力、命令入力、及びポート
入力が行われるポー)、(52)はアドレス出力、ポー
ト入出力が行われるポートである。FIG. 1 is a block diagram showing one embodiment of the present invention;
The same reference numerals as in the figure indicate the same or equivalent parts, (5o) is a port where address output, command input, and port output are performed, (51) it is a port where address output, command input, and port input are performed), (52) is a port where address output and port input/output are performed.
第2図はこの発明の装置におけるポートの時分割を示す
動作タイムチャートであって、第5図と同様な方法によ
り表示しである。第2図falは第5図fatと同様で
あシ、第2図fblは第5図tblの左端でポートがフ
ローティング状態である時間が第2図tb+ではポート
入出力用にあてられるよう切換えられている。FIG. 2 is an operation time chart showing the time division of ports in the device of the present invention, and is displayed using the same method as FIG. 5. Figure 2 fal is the same as Figure 5 fat, Figure 2 fbl is the left end of Figure 5 tbl, and the time when the port is in a floating state is switched so that the time in Figure 2 tb+ is used for port input/output. ing.
第2図fblのポート入出力用の時分割時間はマシンサ
イクルを4μ8eeとした場合、2μ8eeとなる。こ
の2μsecの内、最初の1μsec kデータ出力用
とし、後の1μsecをデータ入力用として第4図に示
すような回路で切換えて使用する場合を考えてみる。マ
イコン(1)から出力したデータを外部回路(3)でラ
ッするのに必要な時間は500nsecあれば足り、外
部回路(3)からデータをマイコン(1)に入力する時
間も1μsec 6れは足りるので第2図[blのポー
ト入出力用の時間をポートの入力と出力に両用してポー
ト数を2倍にしたと同様な効果を得ることができる。The time division time for port input/output in FIG. 2 fbl is 2μ8ee when the machine cycle is 4μ8ee. Consider a case where the first 1 .mu.sec of these 2 .mu.sec is used for data output, and the latter 1 .mu.sec is used for data input by switching with a circuit as shown in FIG. 500 nsec is sufficient for the data output from the microcomputer (1) to be latched by the external circuit (3), and 1 μsec is sufficient for inputting data from the external circuit (3) to the microcomputer (1). Therefore, the same effect can be obtained by doubling the number of ports by using the port input/output time shown in FIG. 2 [bl for both port input and output.
なお、上記実施例ではポートの時分割の順序を命令入力
、ポート入出力、アドレス指定出力としたが、この順序
はポート入出力、命令入力、アドレス指定出力の順序で
ありてもよい。In the above embodiment, the time-sharing order of the ports is command input, port input/output, and address specification output, but this order may be port input/output, command input, and address specification output.
以上のようにこの発明によれば、外部ROMからプログ
ラムを読出して実行するマイコンにおいて、アドレス信
号を出力する動作と外部回路へのデータ入出力を行う動
作とが時分割によって共用するポートについて、アドレ
ス信号の送出に使用されてない期間全部を外部回路への
データ入出力に使用できるように制御したので、マイコ
ンのポートの利用率を向上することができる。As described above, according to the present invention, in a microcomputer that reads a program from an external ROM and executes it, the address is Since the entire period not used for signal transmission is controlled so that it can be used for data input/output to external circuits, the utilization rate of the microcomputer ports can be improved.
第1図はこの発明の一実施例を示すブロック図、第2図
は第1図の装置におけるポートの時分割を示す動作タイ
ムチャート、第3図は従来の装置を示すブロック図、第
4図はポートの切換を示すブロック図、第5図は第3図
の装置におけるポートの時分割を示す動作タイムチャー
ト。
(1)f′iマイコン、(2)は外部鳩、(3)は外部
回路、(50)、(51)Fi第1の種類のポート、(
52) t:1第2の種類のポート。
尚、各図中同一符号は同−又は相当部分を示す。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an operation time chart showing port time division in the device shown in FIG. 1, FIG. 3 is a block diagram showing a conventional device, and FIG. 4 5 is a block diagram showing port switching, and FIG. 5 is an operation time chart showing time division of ports in the device of FIG. 3. (1) f′i microcomputer, (2) external pigeon, (3) external circuit, (50), (51) Fi first type port, (
52) t:1 second type of port. Note that the same reference numerals in each figure indicate the same or corresponding parts.
Claims (1)
ンチップマイクロコンピュータにおいて、上記外部RO
Mへアクセスするアドレス信号の出力と、当該アドレス
信号によって上記外部ROMから読出されたプログラム
命令文の入力と、上記外部ROM以外の外部回路へのデ
ータの入出力とが時分割によって共用する第1の種類の
ポートと、上記アドレス信号の出力と、上記外部回路へ
のデータの入出力だけが時分割によって共用する第2の
種類のポートとを備え、 上記第2の種類のポートの時分割ではアドレス信号の出
力のために必要な時間以外のすべての時間を上記外部回
路へのデータの入出力に充当できるように制御すること
を特徴とするワンチップマイクロコンピュータ。[Claims] A one-chip microcomputer that reads and executes a program stored in an external ROM,
A first circuit which is shared by time sharing for the output of an address signal for accessing M, the input of a program command statement read from the external ROM by the address signal, and the input/output of data to an external circuit other than the external ROM. and a second type of port that is shared by time sharing only for the output of the address signal and the input/output of data to the external circuit, and in the time sharing of the second type of port. A one-chip microcomputer characterized in that the one-chip microcomputer is controlled so that all time other than the time required for outputting address signals can be used for inputting and outputting data to the external circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60153431A JPS6214245A (en) | 1985-07-10 | 1985-07-10 | One-chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60153431A JPS6214245A (en) | 1985-07-10 | 1985-07-10 | One-chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6214245A true JPS6214245A (en) | 1987-01-22 |
Family
ID=15562365
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60153431A Pending JPS6214245A (en) | 1985-07-10 | 1985-07-10 | One-chip microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6214245A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01269141A (en) * | 1988-04-21 | 1989-10-26 | Matsushita Electric Ind Co Ltd | Microprocessor having extension port |
-
1985
- 1985-07-10 JP JP60153431A patent/JPS6214245A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01269141A (en) * | 1988-04-21 | 1989-10-26 | Matsushita Electric Ind Co Ltd | Microprocessor having extension port |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63146298A (en) | Variable work length shift register | |
KR860009351A (en) | I / O control system | |
JPH0612863A (en) | Dual port dram | |
JPS5917458B2 (en) | Method and apparatus for recording and executing microprograms in an information processing system | |
JPS6214245A (en) | One-chip microcomputer | |
US3781811A (en) | Memory protective systems for computers | |
JPS59123934A (en) | Programmable logic controller | |
JP2501611B2 (en) | Micro control system | |
US5434979A (en) | Disk drive controller | |
JPH01239485A (en) | Large-scale integrated circuit | |
JP2000029508A (en) | Programmable controller | |
JPS5941008A (en) | Sequence control circuit | |
JPS6043757A (en) | 1 chip microcomputer | |
JPS60247739A (en) | Microprogram controller | |
JPH0624908Y2 (en) | Data transfer control device | |
JPH04280333A (en) | Address extension method | |
JPH02297222A (en) | Central processing unit | |
JPH02183332A (en) | Programmed control method | |
JPH0782463B2 (en) | Communication control device | |
JPH0449456A (en) | Microcomputer system | |
JPS63311447A (en) | Microprocessor for debug | |
JPH09325935A (en) | Bus switching circuit | |
JPH0667769A (en) | Single chip microcomputer | |
JPH07134685A (en) | Computer system and its memory data transfer system | |
JPH04180146A (en) | Channel controller |