JPH0667769A - Single chip microcomputer - Google Patents
Single chip microcomputerInfo
- Publication number
- JPH0667769A JPH0667769A JP21924892A JP21924892A JPH0667769A JP H0667769 A JPH0667769 A JP H0667769A JP 21924892 A JP21924892 A JP 21924892A JP 21924892 A JP21924892 A JP 21924892A JP H0667769 A JPH0667769 A JP H0667769A
- Authority
- JP
- Japan
- Prior art keywords
- data
- external device
- input
- transfer
- serial
- 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
Landscapes
- Microcomputers (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、シングルチップマイク
ロコンピュータ(以下、シングルチップマイコンとい
う)に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a single chip microcomputer (hereinafter referred to as a single chip microcomputer).
【0002】[0002]
【従来の技術】図2は、従来のシングルチップマイクロ
コンピュータ(以下、シングルチップマイコンという)
におけるシリアル転送ブロックの概略構成を示す図であ
る。図中、1は内部CPU (図示せず)からデータバスDB
を介して伝送される外部デバイスへの転送データを格納
してシリアル出力端子5から外部デバイスへ向けてシリ
アル出力し、又は、シリアル入力端子4を介してシリア
ル入力された外部デバイスからの転送データを格納する
シフトレジスタである。内部CPU によるシフトレジスタ
1への転送データ書き込み及びシフトレジスタ1からの
転送データ読み出しは、内部CPU からの書き込み信号W
及び読み出し信号R によってそれぞれ制御される。2. Description of the Related Art FIG. 2 shows a conventional single chip microcomputer (hereinafter referred to as a single chip microcomputer).
3 is a diagram showing a schematic configuration of a serial transfer block in FIG. In the figure, 1 is a data bus DB from an internal CPU (not shown)
Transfer data transmitted to the external device via the serial output terminal 5 is serially output to the external device, or transfer data from the external device serially input via the serial input terminal 4 is stored. It is a shift register for storing. The write signal W from the internal CPU is used for writing the transfer data to the shift register 1 and reading the transfer data from the shift register 1 by the internal CPU.
And read signal R respectively.
【0003】図中、2はデータ転送命令及び転送データ
とともに内部CPU から出力される書き込み信号W 及び外
部デバイスのアドレス指定信号ADに基づき、内部クロッ
クCLK 又はクロック入出力端子3から入力される外部ク
ロックのいずれかを選択してシフトレジスタ1に供給す
るクロック制御回路である。In the figure, reference numeral 2 indicates an internal clock CLK or an external clock input from a clock input / output terminal 3 based on a write signal W output from an internal CPU and an address designation signal AD of an external device together with a data transfer instruction and transfer data. The clock control circuit selects any one of the above and supplies it to the shift register 1.
【0004】次に、シリアル入出力の動作について説明
する。シリアル出力の場合、出力データがデータバスDB
を介して伝送され、アドレス指定信号AD及び書き込み信
号W が与えられて出力データがシフトレジスタ1に書き
込まれる。同時に、クロック制御回路2にアドレス指定
信号AD及び書き込み信号W が入力され、クロック制御回
路2は内部クロックCLK 又は外部クロック入出力端子3
から入力される外部クロックのいずれかをシフトレジス
タ1 に供給する。シフトレジスタ1の格納データは、ク
ロックに同期してシリアル出力端子5から外部デバイス
に向けてシリアル出力される。Next, the operation of serial input / output will be described. In case of serial output, the output data is the data bus DB
The output data is written to the shift register 1 by being supplied with the addressing signal AD and the write signal W. At the same time, the address designation signal AD and the write signal W are input to the clock control circuit 2, and the clock control circuit 2 receives the internal clock CLK or the external clock input / output terminal 3
The shift register 1 is supplied with one of the external clocks input from. The data stored in the shift register 1 is serially output from the serial output terminal 5 to an external device in synchronization with the clock.
【0005】シリアル入力の場合、シリアル入力端子4
からシリアル入力された転送データのうち、クロック制
御回路2を動作するための最初のデータがシフトレジス
タ1に書き込まれると、クロック制御回路2は内部クロ
ックCLK 又は外部クロック入出力端子3から入力される
外部クロックのいずれかをシフトレジスタ1 に供給す
る。In case of serial input, serial input terminal 4
When the first data for operating the clock control circuit 2 among the transfer data serially input from is written in the shift register 1, the clock control circuit 2 is input from the internal clock CLK or the external clock input / output terminal 3. Supply one of the external clocks to shift register 1.
【0006】さらに、シリアル入力端子4から次々にシ
リアル入力される転送データをシリアルレジスタ1に次
々に格納する。外部デバイスからのデータ転送完了後、
内部CPU は内部メモリ等のアドレス指定信号AD, 読出し
信号R を発生させ、データバスDBを介してシフトレジス
タ1のデータを読み出す。Further, transfer data serially input from the serial input terminal 4 are stored in the serial register 1 one after another. After completing the data transfer from the external device,
The internal CPU generates an address designation signal AD and a read signal R for the internal memory and reads the data in the shift register 1 via the data bus DB.
【0007】[0007]
【発明が解決しようとする課題】以上のような従来のシ
ングルチップマイコンは、複数の外部デバイスとの間で
のシリアル転送に使用する入出力端子が外部デバイス間
で共通であるので、複数の外部デバイスとの間でのデー
タ転送は、例えば、外部デバイスにチップセレクト端子
を設け、転送対象の外部デバイスにチップセレクト信号
を与えることにより行われる。従って、転送対象の外部
デバイスがチップセレクト端子を持たない場合、この外
部デバイスへのデータ転送が行えない。In the conventional single chip microcomputer as described above, since the input / output terminals used for serial transfer with a plurality of external devices are common to the external devices, a plurality of external devices can be used. Data transfer with a device is performed, for example, by providing a chip select terminal to the external device and giving a chip select signal to the external device to be transferred. Therefore, if the external device to be transferred does not have a chip select terminal, data transfer to this external device cannot be performed.
【0008】本発明はこのような問題点を解決するため
になされたものであって、データ転送対象の外部デバイ
ス別に異なる入出力端子を用いてデータ転送することに
より、複数の外部デバイスとの間でのデータ転送が行え
るシングルチップマイコンの提供を目的とする。The present invention has been made in order to solve such a problem, and by performing data transfer using different input / output terminals for each external device to which data is to be transferred, a plurality of external devices can be transferred. The purpose of the present invention is to provide a single-chip microcomputer that can transfer data in a single chip.
【0009】[0009]
【課題を解決するための手段】本発明に係るシングルチ
ップマイコンは、外部デバイス別にデータ転送用の入出
力端子を設けておき、転送対象の外部デバイスに付され
た外部デバイス固有の特定データに基づき、データ転送
に使用する入出力端子を選択することを特徴とする。A single-chip microcomputer according to the present invention is provided with an input / output terminal for data transfer for each external device, and based on specific data unique to the external device attached to the external device to be transferred. , It is characterized by selecting an input / output terminal used for data transfer.
【0010】[0010]
【作用】本発明に係るシングルチップマイコンは、デー
タ転送命令が出力されると、外部デバイスのアドレス等
の特定データに基づいてデータ転送に使用する入出力端
子を選択し、選択した入出力端子を使用してその外部デ
バイスとの間でデータ転送を行う。When the data transfer command is output, the single-chip microcomputer according to the present invention selects the input / output terminal used for data transfer based on the specific data such as the address of the external device, and selects the selected input / output terminal. Use it to transfer data to and from that external device.
【0011】[0011]
【実施例】以下、本発明をその実施例を示す図に基づい
て説明する。図1は本発明に係るシングルチップマイコ
ンのシリアル転送ブロックの概略構成を示す図であっ
て、図2に示す従来のシングルチップマイコンと同一、
又は相当部分には同一符号を付してその説明を省略す
る。2個の外部デバイスに対応して、1対のクロック入
出力端子3,6 、シリアル入力端子4,7 、及びシリアル出
力端子5,8 がそれぞれ設けられており、選択スイッチ1
0,11,12の切り替えによって、転送対象となる外部デバ
イスに応じた入出力端子が選択される。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings showing its embodiments. FIG. 1 is a diagram showing a schematic configuration of a serial transfer block of a single-chip microcomputer according to the present invention, which is the same as the conventional single-chip microcomputer shown in FIG.
Alternatively, the corresponding parts will be denoted by the same reference numerals and the description thereof will be omitted. A pair of clock input / output terminals 3 and 6, serial input terminals 4 and 7, and serial output terminals 5 and 8 are provided for each of the two external devices.
By switching between 0, 11, and 12, the input / output terminal corresponding to the external device to be transferred is selected.
【0012】選択スイッチ10,11,12はアドレス選択回路
9に接続されており、アドレス選択回路9は転送対象と
なる外部デバイスの特定データであるアドレス指定信号
AD1又はAD2 の入力に応じて選択スイッチ10,11,12を切
り替える。The selection switches 10, 11 and 12 are connected to an address selection circuit 9, and the address selection circuit 9 is an address designation signal which is specific data of an external device to be transferred.
The selection switches 10, 11, 12 are switched according to the input of AD1 or AD2.
【0013】次に、シリアル入出力の動作について説明
する。シリアル出力の場合、出力データがデータバスDB
を介して伝送され、アドレス指定信号AD1 又はAD2 及び
書き込み信号W が与えられて出力データがシフトレジス
タ1に書き込まれる。アドレス選択回路9はスイッチ10
及び12を切り替えてクロック端子3又は6、及びシリア
ル出力端子5又は8を選択する。同時に、クロック制御
回路2にアドレス指定信号AD1 又はAD2 及び書き込み信
号W が入力され、クロック制御回路2は内部クロックCL
K 又は外部クロック入出力端子3又は6から入力される
外部クロックのいずれかをシフトレジスタ1 に供給す
る。シフトレジスタ1の格納データは、クロックに同期
してシリアル出力端子5又は8から外部デバイスに向け
てシリアル出力される。Next, the serial input / output operation will be described. In case of serial output, the output data is the data bus DB
Output data is written to the shift register 1 by being supplied with the addressing signal AD1 or AD2 and the write signal W. Address selection circuit 9 is switch 10
And 12 are switched to select the clock terminal 3 or 6 and the serial output terminal 5 or 8. At the same time, the address control signal AD1 or AD2 and the write signal W are input to the clock control circuit 2, and the clock control circuit 2 receives the internal clock CL.
Either K or the external clock input from the external clock input / output terminal 3 or 6 is supplied to the shift register 1. The data stored in the shift register 1 is serially output from the serial output terminal 5 or 8 to an external device in synchronization with the clock.
【0014】シリアル入力の場合、アドレス指定信号AD
1 又はAD2 により、アドレス選択回路9はスイッチ10及
び11を切り替えてクロック入出力端子3又は6、及びシ
リアル入力端子4又は7を選択し、転送データはシリア
ル入力端子4又は7からシフトレジスタ1にシリアル入
力される。外部デバイスからのデータ転送完了後、内部
CPU は読出し信号R を発生させ、データバスDBを介して
シフトレジスタ1のデータを読み出す。Address input signal AD for serial input
1 or AD2 causes the address selection circuit 9 to switch the switches 10 and 11 to select the clock input / output terminal 3 or 6 and the serial input terminal 4 or 7, and transfer data from the serial input terminal 4 or 7 to the shift register 1. Serial input. After completing the data transfer from the external device,
The CPU generates a read signal R and reads the data in the shift register 1 via the data bus DB.
【0015】なお、本実施例ではデータのシリアル転送
について説明したが、入出力端子に余裕があればパラレ
ル転送にも適用可能であって、本実施例と同様の効果が
得られる。Although the serial transfer of data has been described in the present embodiment, it can be applied to parallel transfer as long as the input / output terminals have a margin, and the same effect as that of the present embodiment can be obtained.
【0016】また、本実施例では外部デバイスの特定デ
ータがアドレスの場合について説明したが、特定データ
はアドレスに限るものではなく、端子選択専用に外部デ
バイス別に特定データを新たに付与してもよい。Further, although the case where the specific data of the external device is an address has been described in the present embodiment, the specific data is not limited to the address, and the specific data may be newly provided for each external device only for terminal selection. .
【0017】さらに、本実施例では外部デバイスが2個
の場合について説明したが、転送対象とする外部デバイ
スの数は2個に限るものではない。Further, although the case where the number of external devices is two has been described in this embodiment, the number of external devices to be transferred is not limited to two.
【0018】また、本実施例ではデータ転送をクロック
に同期して行う場合について説明したが、データ転送は
同期式に限らず非同期式であってもよく、本実施例と同
様の効果が得られる。Further, although the case where the data transfer is performed in synchronization with the clock has been described in the present embodiment, the data transfer is not limited to the synchronous type and may be the asynchronous type, and the same effect as that of the present embodiment can be obtained. .
【0019】[0019]
【発明の効果】以上のように、本発明に係るシングルチ
ップマイコンは、外部デバイス別にデータ転送用の入出
力端子を設定し、データ転送対象の外部デバイスに応じ
てデータ転送用の入出力端子を選択するので、わずかの
回路増加により、複数の外部デバイスとの間でデータ転
送が行えるという優れた効果を奏する。As described above, the single-chip microcomputer according to the present invention sets the input / output terminals for data transfer for each external device, and sets the input / output terminals for data transfer according to the external device to be data-transferred. Since the selection is made, an excellent effect that data can be transferred to and from a plurality of external devices can be achieved with a slight increase in circuits.
【図1】本発明に係るシングルチップマイコンの要部構
成を示すブロック図である。FIG. 1 is a block diagram showing a main part configuration of a single-chip microcomputer according to the present invention.
【図2】従来のシングルチップマイコンの要部構成を示
すブロック図である。FIG. 2 is a block diagram showing a main part configuration of a conventional single-chip microcomputer.
1 シフトレジスタ 2 クロック制御回路 3,6 クロック入出力端子 4,7 シリアル入力端子 5,8 シリアル出力端子 9 アドレス選択回路 10,11,12 選択スイッチ AD1,AD2 アドレス指定信号 CLK 内部クロック DB データバス R 読み出し信号 W 書き込み信号 1 shift register 2 clock control circuit 3,6 clock input / output terminal 4,7 serial input terminal 5,8 serial output terminal 9 address selection circuit 10,11,12 selection switch AD1, AD2 address designation signal CLK internal clock DB data bus R Read signal W Write signal
Claims (1)
けられたデータ転送用の入出力端子と、各外部デバイス
にそれぞれ付された外部デバイスの特定データに基づ
き、該外部デバイスとの間でのデータ転送に使用すべく
設けられた入出力端子を選択する回路とを備えたことを
特徴とするシングルチップマイクロコンピュータ。1. An input / output terminal for data transfer, which is provided for each external device to which data is to be transferred, and data to and from the external device based on specific data of the external device attached to each external device. A single-chip microcomputer including a circuit for selecting an input / output terminal provided to be used for transfer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21924892A JPH0667769A (en) | 1992-08-18 | 1992-08-18 | Single chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21924892A JPH0667769A (en) | 1992-08-18 | 1992-08-18 | Single chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0667769A true JPH0667769A (en) | 1994-03-11 |
Family
ID=16732550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP21924892A Pending JPH0667769A (en) | 1992-08-18 | 1992-08-18 | Single chip microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0667769A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4829972A (en) * | 1986-12-05 | 1989-05-16 | Piaggio & C. S.P.A. | Magnet-flywheel ignition unit for internal combustion engines |
-
1992
- 1992-08-18 JP JP21924892A patent/JPH0667769A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4829972A (en) * | 1986-12-05 | 1989-05-16 | Piaggio & C. S.P.A. | Magnet-flywheel ignition unit for internal combustion engines |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0612863A (en) | Dual port dram | |
JP2001195353A (en) | Dma transfer system | |
JPH0667769A (en) | Single chip microcomputer | |
JPH0365745A (en) | Ic card | |
JPH0512883A (en) | Sequential memory | |
JPH0624908Y2 (en) | Data transfer control device | |
JPH05166391A (en) | Memory device | |
JP3366202B2 (en) | Bus controller and data processing system | |
JP2734312B2 (en) | Memory circuit | |
JPH05101008A (en) | One-chip microcomputer | |
JPS59151371A (en) | Semiconductor memory element | |
JP2699705B2 (en) | Packet switch | |
JPH01239485A (en) | Large-scale integrated circuit | |
JPH03214275A (en) | Semiconductor integrated circuit | |
JPH05173876A (en) | Extended memory board | |
JPS6216600B2 (en) | ||
JPH03260728A (en) | Register data writing system | |
JPS62149255A (en) | Picture reader | |
JPH11306073A (en) | Information processor | |
JPH03263686A (en) | Semiconductor storage device | |
JPS63136136A (en) | Register control circuit | |
JPH05158718A (en) | Integrated circuit | |
JPH07234858A (en) | Processor with communication function | |
JPH07203494A (en) | Configulation system for time-sharing switching circuit | |
JPH10173618A (en) | Bus switch device and its transfer order converting method |