JPS63231667A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS63231667A
JPS63231667A JP62066045A JP6604587A JPS63231667A JP S63231667 A JPS63231667 A JP S63231667A JP 62066045 A JP62066045 A JP 62066045A JP 6604587 A JP6604587 A JP 6604587A JP S63231667 A JPS63231667 A JP S63231667A
Authority
JP
Japan
Prior art keywords
port
control circuit
ports
output
input
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
JP62066045A
Other languages
Japanese (ja)
Inventor
Joji Murakami
村上 丈示
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62066045A priority Critical patent/JPS63231667A/en
Publication of JPS63231667A publication Critical patent/JPS63231667A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • G06F15/7842Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)

Abstract

PURPOSE:To suppress the increase of areas of a bus line and a semiconductor chip due to the extension of the width of the bus line and the increase of the number of ports by providing a control circuit, plural output port circuits, and plural input port circuits and transmitting output values and input values of plural ports in serial. CONSTITUTION:Since set bits outputted from a CPU 31 are converted to serial bits by a control circuit 36 and are transmitted in serial in plural output port circuits 421-42n, the number of signal lines among the control circuit 36 and plural output port circuits 421-42n is reduced. Since bits read by plural input port circuits 431-43m are transmitted in serial in plural input port circuits 431-43m and are converted to parallel bits by the control circuit 36 and are supplied to the CPU 31, the number of signal lines among plural input ports 431-43m and the control circuit 36 is reduced. Thus, the length of a bus line 37 is shortened to suppress the increase of areas of the bus line and the semiconductor chip.

Description

【発明の詳細な説明】 〔概要〕 本発明はマイクロコンピュータであって、υJti1回
路、複数の出力用のポート回路、複数の入力用のポート
回路を設け、複数のポートの出力値、入力値夫々をシリ
アルに伝送することにより、バスラインの幅及びポート
数の増加によるバスライン及び半導体チップの面積の増
大を抑制する。
[Detailed Description of the Invention] [Summary] The present invention is a microcomputer, which is provided with a υJti1 circuit, a plurality of output port circuits, and a plurality of input port circuits, and has a υJti1 circuit, a plurality of output port circuits, and a plurality of input port circuits. By serially transmitting the data, it is possible to suppress an increase in the area of the bus line and the semiconductor chip due to an increase in the width of the bus line and the number of ports.

〔産業上の利用分野〕[Industrial application field]

本発明はマイクロコンピュータに関し、中央処理装置(
以下rcPUJという)により複数の出力用のポートの
出力値を設定し、また複数の入力用のポートの入力値を
読取るマイクロコンピュータに関する。
The present invention relates to a microcomputer, and a central processing unit (
The present invention relates to a microcomputer that sets output values of a plurality of output ports and reads input values of a plurality of input ports using a rcPUJ (hereinafter referred to as rcPUJ).

シングルチップマイクロコンピュータにおいては半導体
チップ内にcpu、各種の周辺回路、複数のポートが設
けられ、これらはバスラインにより接続されている。
In a single-chip microcomputer, a CPU, various peripheral circuits, and a plurality of ports are provided within a semiconductor chip, and these are connected by a bus line.

このようなマイクロコンピュータの半導体チップは面積
が小さいことが要望されている。
It is desired that semiconductor chips for such microcomputers have a small area.

〔従来の技術〕[Conventional technology]

第5図は従来のマイクロコンピュータの一例の構成図を
示す。同図中、半導体デツプ10にはCPU11の他に
、ROM12.RAMI 3.タイマ14.A/Dコン
バータ15.インターフェース回路16〜19等の周辺
回路が設けられており、これらのCPU11及び周辺回
路(12〜19)はバスライン20で相互に接続されて
いる。また半導体チップ10の周縁部には入出力用の複
数のポート21が設けられ、ポート21はインターフェ
ース回路16〜19に接続され゛ている。
FIG. 5 shows a configuration diagram of an example of a conventional microcomputer. In the figure, in addition to a CPU 11, a semiconductor deep 10 has a ROM 12. RAMI 3. Timer 14. A/D converter 15. Peripheral circuits such as interface circuits 16 to 19 are provided, and these CPU 11 and peripheral circuits (12 to 19) are interconnected by a bus line 20. Further, a plurality of ports 21 for input/output are provided at the periphery of the semiconductor chip 10, and the ports 21 are connected to the interface circuits 16-19.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のマイクロコンピュータでは、CPU11がデータ
、アドレス等の出力のためポート21の出力値を設定づ
るとき、及びポート21の入力値を読取りアドレス、デ
ータ等の入力を行なうときはバスライン20及びインタ
ーフェース回路16〜1つを介して行なっていた。
In conventional microcomputers, when the CPU 11 sets the output value of the port 21 for outputting data, addresses, etc., and when reading the input value of the port 21 and inputting addresses, data, etc., the CPU 11 uses the bus line 20 and the interface circuit. 16 to 1 was conducted.

このため、データ、アドレス等のビット数が16ビツト
、32ビツトと増加してバスライン20の幅が増大し、
ボー1−数が数十から百程度に増加するにつれ、バスラ
イン20の面積が増太し、半導体チップ10の面積が増
大するという問題点があった。
Therefore, the number of bits for data, addresses, etc. increases from 16 bits to 32 bits, and the width of the bus line 20 increases.
As the number of bauds increases from several tens to about 100, the area of the bus line 20 increases, causing the problem that the area of the semiconductor chip 10 increases.

本発明は上記の点に鑑みてなされたものであり、バスラ
インの幅及びポート数が増大しても半導体チップの面積
の増大を抑制するマイクロコンピュータを提供すること
を目的とする。
The present invention has been made in view of the above points, and an object of the present invention is to provide a microcomputer that suppresses an increase in the area of a semiconductor chip even when the width of a bus line and the number of ports increase.

C問題点を解決するための手段〕 本発明のマイクロコンピュータは、CPU(31)より
バスライン〈37)を介してパラレルに供給される設定
ビットをシリアルビットに変換して出力すると共に、入
来するシリアルビットをパラレルビットに変換してバス
ライン(37)よりCPU(31)に供給する制御回路
(36)と、 複数の出力用のポート(401〜40T+)夫々に対応
して設けられ互いに縦続接続されており、制御回路(3
6)よりのシリアルビットをシフトして複数の出力用の
ポート(401〜40η)の出力値を設定する複数の出
力用のポート回路(421〜42n>と、 複数の入力用のポート(411〜41T11)夫々に対
応して設けられ互いに縦続接続されており、複数の入力
用のポート(411〜41m)の入力値をシフトしてシ
リアルビットとして制御回路(36)に供給する複数の
入力用のポート回路(43I〜43Tn)とを有する。
Means for Solving Problem C] The microcomputer of the present invention converts setting bits supplied in parallel from a CPU (31) via a bus line (37) into serial bits and outputs the serial bits. A control circuit (36) that converts the serial bits to parallel bits and supplies them to the CPU (31) from the bus line (37), and a control circuit (36) that is connected to each other and is provided corresponding to each of the plurality of output ports (401 to 40T+). connected, and the control circuit (3
6) Port circuits for multiple outputs (421~42n> that shift the serial bits from 401~40η) to set the output values of the ports for multiple outputs (401~40η); 41T11) are provided correspondingly to each other and are cascade-connected to each other, and shift the input values of the plurality of input ports (411 to 41m) and supply them as serial bits to the control circuit (36). port circuits (43I to 43Tn).

〔作用〕[Effect]

本発明においては、CPU(31)の出力する設定ビッ
トは制御回路(36)でシリアルピッ]−とされて複数
の出力用のポート回路(421〜42n)をシリアルに
伝送されるので、制御回路(36)及び複数の出力用の
ポート回路(421〜42η)間の信号線の本数が少な
くて済む。また複数の入力用のポート回路(431〜4
3司)で読、取ったビット【よ複数の入力用のポート回
路(431〜43T11)をシリアルに伝送され、制御
回路(36)でパラレルビットとされてCP tJ(3
1)に供給されるので複数の入力用のポート回路(43
1〜43m)及び制御回路(36)間の信号線の本数が
少なくて済む。このためバスライン(37)の長さが短
くて済む。
In the present invention, the setting bits output from the CPU (31) are converted into serial bits by the control circuit (36) and transmitted serially through the plurality of output port circuits (421 to 42n), so the control circuit The number of signal lines between (36) and the plurality of output port circuits (421 to 42η) can be reduced. Also, multiple input port circuits (431 to 4
The bits read and taken by the control circuit (36) are serially transmitted through the port circuits (431 to 43T11) for multiple inputs, and converted into parallel bits by the control circuit (36).
1), so multiple input port circuits (43
1 to 43 m) and the control circuit (36). Therefore, the length of the bus line (37) can be shortened.

〔実施例〕〔Example〕

第1図は本発明のマイクロコンピュータの一実施例の構
成図を示す。図中、30Gよ半導体デツプであり、半導
体チップ30中央部にはCPU31及びROM32.R
AM33.タイマ34.A/Dコンバータ15.ポート
制御回路36等の周辺回路が設けられている。これらの
cpu3i及び周辺回路(32〜36)はバスライン3
7で相互に接続されている。
FIG. 1 shows a configuration diagram of an embodiment of a microcomputer according to the present invention. In the figure, 30G is a semiconductor depth, and the central part of the semiconductor chip 30 has a CPU 31, a ROM 32, and so on. R
AM33. Timer 34. A/D converter 15. Peripheral circuits such as a port control circuit 36 are provided. These CPU3i and peripheral circuits (32 to 36) are connected to bus line 3.
7 and are interconnected.

また、半導体チップ30の周縁部にはポート401〜4
0i〜4On、/11+〜41mが設けられている。ポ
ート401〜401〜401は夫々ポート回路421〜
42i〜42ηを介してポート制御回路36と接続され
、ポート41+〜41tnは夫々ポート回路43I、・
・・、43tnを介してポート制御回路36と接続され
ている。
Further, ports 401 to 4 are provided at the peripheral edge of the semiconductor chip 30.
0i to 4On and /11+ to 41m are provided. Ports 401 to 401 to 401 are connected to port circuits 421 to 401, respectively.
42i to 42η are connected to the port control circuit 36, and the ports 41+ to 41tn are connected to the port circuits 43I, .
. . , are connected to the port control circuit 36 via 43tn.

ポート制御回路36は第2図に示す474成である。The port control circuit 36 has a 474 configuration shown in FIG.

第2図中、レジスタ50は端子51を介してバスライン
37に接続されており、CPU31より供給されるポー
ト情報を格納する。ポート情報は入力又は出力を指示す
る信号と、入力又は出力のポートの終了位置の値及びポ
ート数と、アドレス。
In FIG. 2, a register 50 is connected to the bus line 37 via a terminal 51, and stores port information supplied from the CPU 31. The port information includes a signal that instructs input or output, the value of the end position of the input or output port, the number of ports, and the address.

データ等の設定ビットと°である。Setting bits and degrees of data etc.

例えばポート40nから40i までの出力(直を設定
する場合、ポート制御回路36にり最も離れたポート4
0ηを示す値nが終了位置の値で、ポート制御回路36
に最す近いポート40iを示す値1が開始位置の値であ
り、ポート数はn−iで表わされる。また、例えばポー
ト411から41Tnまでの入力値を読取る場合も同様
であり、ポート制御回路36より最も離れたポート41
mを示す値mが終了位置の値である。
For example, when setting the output from ports 40n to 40i (directly), the port control circuit 36
The value n indicating 0η is the end position value, and the port control circuit 36
The value 1 indicating the port 40i closest to is the value of the starting position, and the number of ports is expressed as n-i. Further, the same applies when reading input values from ports 411 to 41Tn, for example, and the port 41 which is farthest from the port control circuit 36
The value m indicating m is the value of the end position.

ポート情報が出力を指示するとさ、ボー1〜の終了位置
の値及びポート数がカウンタ回路53にセットされる。
When the port information indicates output, the value of the end position of baud 1~ and the number of ports are set in the counter circuit 53.

これと共に、レジスタ50に格納された設定ビットはパ
ラレルにシフトレジスタ54に供給されてロードされる
。シフトレジスタ54はクロック発生器55より供給さ
れるクロック<HSによりパラレルの設定ビットをシフ
トして、端子56よりシリアルビットSSをポート回路
421に供給する。
At the same time, the setting bits stored in the register 50 are supplied in parallel to the shift register 54 and loaded therein. The shift register 54 shifts the parallel setting bit using the clock <HS supplied from the clock generator 55, and supplies the serial bit SS to the port circuit 421 from the terminal 56.

カウンタ53は終了位置の値のセット後、クロック信号
をカウントしてカウント値がポート数となるまで位置制
御信号を生成して位置信号発生回路57に供給し、また
カウント値が終了位置の値となったときa−ド制御信号
を生成してロード信号発生回路58に供給する。
After setting the end position value, the counter 53 counts the clock signal and generates a position control signal until the count value reaches the number of ports, and supplies it to the position signal generation circuit 57. When this happens, an a-do control signal is generated and supplied to the load signal generation circuit 58.

位置信号発生回路57は位置制御信号が供給されている
間のみ位置信号STの値を717とし、その後位置信号
STの値をv Ovとして端子59よりポート回路42
1に供給する。
The position signal generation circuit 57 sets the value of the position signal ST to 717 only while the position control signal is being supplied, and then sets the value of the position signal ST to vOv and outputs the value from the terminal 59 to the port circuit 42.
Supply to 1.

ロード信号発生回路58はロード制御信号の供給により
値717のロード信@LDを発生して端子60より出力
する。また、クロック発生器55よりのクロック信号C
LKは端子61より出力される。
The load signal generation circuit 58 generates a load signal @LD with a value of 717 by supplying the load control signal and outputs it from the terminal 60. Also, the clock signal C from the clock generator 55
LK is output from terminal 61.

ポート情報が入力を指示するとき、レジスタ50に格納
された入力を指示する信号がセーブ信号発生回路65に
供給され、セーブ信号発生回路65は所定期間だけ*’
i’のセーブ信号Svを発生して端子66よりポート回
路41+〜41mに供給する。
When the port information instructs input, a signal instructing input stored in the register 50 is supplied to the save signal generation circuit 65, and the save signal generation circuit 65 operates for a predetermined period *'
A save signal Sv of i' is generated and supplied from the terminal 66 to the port circuits 41+ to 41m.

この後、終了位置の値がカウンタ回路53にセットされ
る。カウンタ回路53はクロック信号をカウントして、
カウント値が終了位置の値となったとき出力制御信号を
生成してシフトレジスタ63に供給する。
Thereafter, the end position value is set in the counter circuit 53. The counter circuit 53 counts the clock signal and
When the count value reaches the end position value, an output control signal is generated and supplied to the shift register 63.

端子62にはポート回路431よりシリアルビットSS
が入来しシフトレジスタ63に供給される。シフトレジ
スタ63はクロック発生器55より供給されるクロック
信号によりシリアルピッ1〜SBをシフトする。シフト
レジスタ63は端子64を介してバスライン37に接続
されており、カウンタ回路53より出力制御信号が供給
されたときシフトレジスタ63はシフトされたビットを
端子64よりバスライン37のパラレルに出力する。
The serial bit SS is input to the terminal 62 from the port circuit 431.
is input and supplied to the shift register 63. The shift register 63 shifts serial pins 1 to SB in response to a clock signal supplied from the clock generator 55. The shift register 63 is connected to the bus line 37 via a terminal 64, and when an output control signal is supplied from the counter circuit 53, the shift register 63 outputs the shifted bits from the terminal 64 to the bus line 37 in parallel. .

ポート回路421〜42i〜42nは出力用の回路で互
いに縦続接続されており、第3図に示ず回路構成である
。第3図中、端子70にはポート制御回路36より共通
にクロック信号CLKが入来しD形フリップ7aツブ7
1.72夫々のクロック入力端子に供給される。端子7
3にはポート制御回路36又は前段のポート回路が出力
する位置信号STが入来してフリップフロップ71のデ
ータ入力端子りに供給され、フリップ70ツブ71のQ
端子より出力される位置信5”3STはアンド回路74
に供給されると共に、端子75より次段のポート回路に
供給される。
The port circuits 421 to 42i to 42n are output circuits and are cascade-connected to each other, and have a circuit configuration not shown in FIG. 3. In FIG. 3, a clock signal CLK is commonly input to the terminal 70 from the port control circuit 36, and the D-type flip 7a knob 7
1.72 clock input terminals. terminal 7
3 receives the position signal ST output from the port control circuit 36 or the port circuit at the previous stage and is supplied to the data input terminal of the flip-flop 71.
The position signal 5”3ST output from the terminal is output from the AND circuit 74.
It is also supplied to the next stage port circuit from the terminal 75.

端?−76にはポート制御回路3G又は前段のポート回
路が出力するシリアルピットSBが入来してフリップフ
ロップ72のデータ入力端子りに供給され、フリップフ
ロップ72のQ端子より出力されるシリアルビットSS
はD形フリップ70ツブ78のデータ端子りに供給され
ると共に、端子77より次段のポート回路に供給される
end? The serial bit SB output from the port control circuit 3G or the previous stage port circuit enters -76 and is supplied to the data input terminal of the flip-flop 72, and the serial bit SS output from the Q terminal of the flip-flop 72
is supplied to the data terminal of the D-type flip 70 tube 78, and is also supplied from the terminal 77 to the next stage port circuit.

つまり、ポート回路421〜42i〜42n夫々のフリ
ップフロップ71は位置信号STをシフトするシフトレ
ジスタを構成し、夫々の7リツプフロツブ72はシリア
ルビットSBをシフトするシフトレジスタを構成してい
る。
That is, the flip-flops 71 of each of the port circuits 421-42i-42n constitute a shift register for shifting the position signal ST, and the respective 7-lip flops 72 constitute a shift register for shifting the serial bit SB.

端子7つにはポート制御回路36より共通にロード信号
LDが供給されアンド回路74に供給される。アンド回
路74はフリップフロップ71のQ端子出力の位置信@
S丁が値717のときのみロード信号LDをフリップフ
ロップ78のクロック入力端子に供給する。ロード信号
LDが供給されたフリップフロップ78はフリップフロ
ップ72のQ端子出力のシリアルビットSBを取り込l
νでそのQ端子よりパッド80に供給する。バンド80
は第1図示のパッド401〜40i〜401人々に相当
するものである。
A load signal LD is commonly supplied to the seven terminals from the port control circuit 36 and is supplied to the AND circuit 74. The AND circuit 74 receives a position signal from the Q terminal output of the flip-flop 71.
The load signal LD is supplied to the clock input terminal of the flip-flop 78 only when the value S is 717. The flip-flop 78 to which the load signal LD is supplied takes in the serial bit SB of the Q terminal output of the flip-flop 72.
ν is supplied to the pad 80 from its Q terminal. band 80
correspond to the pads 401 to 40i to 401 shown in the first diagram.

これによってポート制御回路36より出力されるシリア
ルビットSB及び位置信号8丁はり〔1ツク信号CLK
によってポート回路421〜42i〜42ηを順次シフ
トされる。例えばポート回路42i〜42++のフリッ
プフロップ71に値717の位置信号STがセットされ
たとき、ポー[・回路42i〜42nのフリップフロッ
プ72に出力用のシリアルビットSSがセットされ、ロ
ード信号LDの値が717となったとぎポート回路42
i〜42nのフリップフロップ78に上記出力用のシリ
アルビットSBがセットされて、ポート401〜40n
の出力値が同時に設定される。
As a result, the serial bit SB and position signal 8 signals [1 signal CLK] are output from the port control circuit 36.
The port circuits 421 to 42i to 42η are sequentially shifted by. For example, when the position signal ST with the value 717 is set in the flip-flops 71 of the port circuits 42i to 42++, the serial bit SS for output is set in the flip-flops 72 of the port circuits 42i to 42n, and the value of the load signal LD is Togi port circuit 42 becomes 717
The serial bit SB for output is set in the flip-flops 78 of ports 401 to 40n.
The output values of are set at the same time.

ポート回路431〜43mは入力用の回路で互いに縦続
接続されており、第3図に示す回路構成である。第3図
中、バッド90はパッド411〜41T11夫々に相当
する。バンド90はNチャンネル電界効果トランジスタ
(FET)91を介してD形フリップフロップ92のデ
ータ入力端子りに接続されている。
The port circuits 431 to 43m are input circuits and are cascade-connected to each other, and have the circuit configuration shown in FIG. 3. In FIG. 3, pads 90 correspond to pads 411 to 41T11, respectively. Band 90 is connected through an N-channel field effect transistor (FET) 91 to a data input terminal of a D-type flip-flop 92.

端子93には前段のポート回路が出力するシリアルビッ
トSBが入来し、この端子93はPチャンネルFET9
4を介してフリップフロップ92のデータ入力端子りに
接続されている。
The serial bit SB output from the previous stage port circuit is input to the terminal 93, and this terminal 93 is connected to the P-channel FET 9.
4 to the data input terminal of the flip-flop 92.

端子95にはポート制御回路36より共通にセーブ(3
号S■が入来しFET91,94夫々のゲートに供給さ
れる。また端子96にはポート制御回路36より共通に
クロック信号CL、 Kが入来してフリップフロップ9
2のクロック入力端子に供給される。またフリップフロ
ップ92のQE子より出力されるシリアルビットSBは
端子97より次段のポート回路又はポート制御回路36
に供給される。
The terminal 95 has a common save (3
No. S■ comes in and is supplied to the gates of FETs 91 and 94, respectively. In addition, clock signals CL and K are commonly input from the port control circuit 36 to the terminal 96, and the flip-flop 9
2 clock input terminal. Also, the serial bit SB output from the QE terminal of the flip-flop 92 is connected to the next stage port circuit or port control circuit 36 from the terminal 97.
supplied to

ここで、セーブ信号SVの値が717のときFET91
が導通しFET94が遮断して、バッド90の入力値が
シリアルビットSBとしてフリップ70ツブ92に取り
込まれる。
Here, when the value of the save signal SV is 717, the FET91
becomes conductive, FET 94 is cut off, and the input value of pad 90 is taken into flip 70 knob 92 as serial bit SB.

セーブ信号S■の値がW Q Vどなると、FET91
が遮断しFET94が導通するためにポート回路43+
〜43Tnのフリップフロップ92はポート回路431
を最終段とするシフトレジスタを構成し、これらに取り
込まれているシリアルビットSBはクロック信号C1,
Kによってポート回路43m〜431を順次シフトされ
、ポート回路431からポー1−制御回路36のシフト
レジスタ63に供給される。この後シフトレジスタ63
からパラレルピットがバスライン37に出力されること
は前述の通りである。
When the value of the save signal S becomes W Q V, FET91
The port circuit 43+ is cut off and the FET 94 becomes conductive.
~43Tn flip-flop 92 is port circuit 431
constitutes a shift register with C as the final stage, and the serial bits SB captured in these are clock signals C1,
The signal is sequentially shifted through the port circuits 43m to 431 by K, and is supplied from the port circuit 431 to the shift register 63 of the port 1 control circuit 36. After this, shift register 63
As described above, the parallel pit is output from the bus line 37 to the bus line 37.

このように、ポート制御回路36とポート回路42+ 
〜42 i 〜42n及び43+〜43mとの間はシリ
アルビット8B、クロック信号CLK等を伝送する数本
の信号線で接続されているだけであるため、ポート制御
回路36及びポート回路42+ 〜42n 、43t 
〜43m間の信号線は数本で流み、ポートの数が増加し
ても半導体チップ30の面積が増大することはない。ま
たバスライン37の長さは従来より短くて済みバスライ
ン37の幅が増大しても半導体デツプ30の面積はそれ
ほど増大することがなく、半導体チップ30の面積の増
加を抑制することができる。
In this way, the port control circuit 36 and the port circuit 42+
~42i~42n and 43+~43m are connected only by a few signal lines that transmit the serial bit 8B, clock signal CLK, etc., so the port control circuit 36 and the port circuits 42+~42n, 43t
Only a few signal lines run between ~43 m, and even if the number of ports increases, the area of the semiconductor chip 30 does not increase. Furthermore, the length of the bus line 37 is shorter than that of the conventional device, and even if the width of the bus line 37 increases, the area of the semiconductor deep 30 does not increase so much, and an increase in the area of the semiconductor chip 30 can be suppressed.

なお、例えばポート40nにポート回路421及び43
Tnを接続してポーt−40nを入出力双方向のポート
として使用することも可能である。
Note that, for example, port circuits 421 and 43 are connected to port 40n.
It is also possible to connect Tn and use the port t-40n as an input/output bidirectional port.

〔発明の効果〕〔Effect of the invention〕

上述の如く、本発明のマイク[1コンピユータによれば
、バスラインの幅及びポート数が増大しても、バスライ
ンの面積及び半導体チップの面積の増大を抑制すること
ができ、実用上きわめて有用である。
As mentioned above, according to the microphone [1 computer of the present invention], even if the width of the bus line and the number of ports increase, the increase in the area of the bus line and the area of the semiconductor chip can be suppressed, which is extremely useful in practice. It is.

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

第1図は本発明のマイクロコンピュータの一実施例の構
成図、 第2図はポート制御回路の一実施例のブロック系統図、 第3図、第4図人々はポート回路の各実施例の回路図、 第5図は従来のマイクロコンピュータの一例の構成図で
ある。 図中において、 30は半導体チップ、 31は中央処理装V!1(CPU)、 36はポート制御回路、 401 〜40n 、41+ 〜41mはポート、42
1〜42T1.431〜43mはポート・回路、50は
レジスタ、 53はカウンタ回路、 54.63はシフトレジスタ、 55はクロック発生器、 57は位置信号発生回路、 58はロード信号発生回路、 65はセーブ信号発生回路、 71.72.78.92はフリップフロップ、74はア
ンド回路、 92.94はFETである。 代理人 弁理士 井 桁 貞 一 本廻′FIF4のマイ2つコ比−一2の1p(図簿(図 ポーY制御回路のブロシ2鬼披図 @2図 ボー18略/)盲t&目 週3図 ポー)回路の回了シ図
Figure 1 is a block diagram of an embodiment of a microcomputer according to the present invention; Figure 2 is a block diagram of an embodiment of a port control circuit; Figures 3 and 4 are circuit diagrams of each embodiment of a port circuit. FIG. 5 is a configuration diagram of an example of a conventional microcomputer. In the figure, 30 is a semiconductor chip, 31 is a central processing unit V! 1 (CPU), 36 is a port control circuit, 401 to 40n, 41+ to 41m are ports, 42
1 to 42T1.431 to 43m are port circuits, 50 is a register, 53 is a counter circuit, 54.63 is a shift register, 55 is a clock generator, 57 is a position signal generation circuit, 58 is a load signal generation circuit, 65 is In the save signal generation circuit, 71, 72, 78, and 92 are flip-flops, 74 is an AND circuit, and 92.94 is an FET. Agent Patent Attorney Tei Iji Ipponmawari'FIF4's My Two Copies - 12's 1p (Picture Book (Figure Po Y Control Circuit Blog 2 Demon Diagram @ 2 Figure Bo 18 Omitted/) Blind T & Eye Week Figure 3) Circuit rotation diagram

Claims (1)

【特許請求の範囲】 中央処理装置(31)により複数の出力用のポート(4
0_1〜40_n)の出力値を設定し、また複数の入力
用のポート(41_1〜41_m)の入力値を読取るマ
イクロコンピュータにおいて、該中央処理装置(31)
よりバスライン(37)を介してパラレルに供給される
設定ビットをシリアルビットに変換して出力すると共に
、入来するシリアルビットをパラレルビットに変換して
該バスライン(37)より該中央処理装置(31)に供
給する制御回路(36)と、 複数の出力用のポート(40_1〜40_n)夫々に対
応して設けられ互いに縦続接続されており、該制御回路
(36)よりのシリアルビットをシフトして該複数の出
力用のポート(40_1〜40_n)の出力値を設定す
る複数の出力用のポート回路(42_1〜42_n)と
、 複数の入力用のポート(41_1〜41_m)夫々に対
応して設けられ互いに縦続接続されており、該複数の入
力用のポート(41_1〜41_m)の入力値をシフト
してシリアルビットとして該制御回路(36)に供給す
る複数の入力用のポート回路(43_1〜43_m)と
を有することを特徴とするマイクロコンピュータ。
[Claims] The central processing unit (31) provides a plurality of output ports (4
In a microcomputer that sets output values of ports (0_1 to 40_n) and reads input values of a plurality of input ports (41_1 to 41_m), the central processing unit (31)
The configuration bits supplied in parallel via the bus line (37) are converted into serial bits and outputted, and the incoming serial bits are converted into parallel bits and sent via the bus line (37) to the central processing unit. (31) and a plurality of output ports (40_1 to 40_n), which are connected in cascade to each other, and shift serial bits from the control circuit (36). a plurality of output port circuits (42_1 to 42_n) that set the output values of the plurality of output ports (40_1 to 40_n), and a plurality of input ports (41_1 to 41_m), respectively. A plurality of input port circuits (43_1 to 43_m) are provided and cascade-connected to each other, and shift the input values of the plurality of input ports (41_1 to 41_m) and supply them as serial bits to the control circuit (36). 43_m).
JP62066045A 1987-03-20 1987-03-20 Microcomputer Pending JPS63231667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62066045A JPS63231667A (en) 1987-03-20 1987-03-20 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62066045A JPS63231667A (en) 1987-03-20 1987-03-20 Microcomputer

Publications (1)

Publication Number Publication Date
JPS63231667A true JPS63231667A (en) 1988-09-27

Family

ID=13304511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62066045A Pending JPS63231667A (en) 1987-03-20 1987-03-20 Microcomputer

Country Status (1)

Country Link
JP (1) JPS63231667A (en)

Similar Documents

Publication Publication Date Title
JPH0219015A (en) Multifunctional flip-flop circuit
KR100196091B1 (en) Peripheral unit selection system
US10318447B2 (en) Universal SPI (Serial Peripheral Interface)
JPH07182078A (en) System and operating method for data processing
JPH0389182A (en) Integrated circuit apparatus
JPH0311036B2 (en)
EP0266790B1 (en) Serial bus interface capable of transferring data in different formats
JPH0711787B2 (en) Data processing device
JPS63231667A (en) Microcomputer
JP3038757B2 (en) Shift register circuit
JPS5920196B2 (en) bidirectional shift register
JPS589510B2 (en) Kiokusouchi
KR0158490B1 (en) Programmable serial input/output circuits
US20030145245A1 (en) Microcontroller
JPH02181950A (en) System of setting operation mode of semiconductor integrated circuit
JP2692469B2 (en) Data controller
JP2590410B2 (en) Count data output circuit
KR970001281Y1 (en) Apparatus for using 1port retween keyboard and mouse
JPS6028968Y2 (en) Output direct selection type interface circuit
JP2004282204A (en) Communication module and transceiver integrated circuit
JPS6382126A (en) Bus level holding circuit
JPS6160456B2 (en)
Mukthi et al. Design and Implementation of an Interfacing Protocol between I2C and APB for an AMBA Based SOC
JPS61102763A (en) Semiconductor integrated circuit
JPS6298761A (en) Semiconductor device