JPH0328985A - Microcomputer - Google Patents
MicrocomputerInfo
- Publication number
- JPH0328985A JPH0328985A JP1163513A JP16351389A JPH0328985A JP H0328985 A JPH0328985 A JP H0328985A JP 1163513 A JP1163513 A JP 1163513A JP 16351389 A JP16351389 A JP 16351389A JP H0328985 A JPH0328985 A JP H0328985A
- Authority
- JP
- Japan
- Prior art keywords
- data
- parallel
- microcomputer
- address
- register
- 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
- 238000006243 chemical reaction Methods 0.000 claims abstract description 7
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000010355 oscillation Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 1
Landscapes
- Microcomputers (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明はマイクロコンピュータに係り、特に制御用の端
子数を減少させた少量多品種生産に適し[従来の技術]
従来のマイクロコンピュータでは、アドレス信号やデー
タ信号はアドレスバスやデータパスを介して、並列に入
出力されており、多数の端子を必要としていた。例えば
、アドレスバスとトデータバスとが分離されている典型
的な8ビットのマイクロコンピュータでは、アドレスバ
ス用に16本、データパス用に8本の合計24本の端子
を必要としていた。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a microcomputer, and is particularly suitable for low-volume, high-mix production with a reduced number of control terminals. [Prior Art] In a conventional microcomputer, the address Signals and data signals are input and output in parallel via address buses and data paths, requiring a large number of terminals. For example, a typical 8-bit microcomputer in which the address bus and data bus are separated requires a total of 24 terminals, 16 for the address bus and 8 for the data path.
尚、アドレスバスやデータパスの端子を減少させる方法
としてロム内蔵の1チップマイクロコンピュータを使用
する方法も考えられるが、ロムの内容が、固定されてい
るので、プログラムをダイナミックに変更できないうえ
、マスクロム型の1チップマイクロコンピュータではロ
ムの内容を生産段階で決定するので大量生産向きてあり
、少量多品種の用途には不向きである。One possible way to reduce the number of address bus and data path terminals is to use a 1-chip microcomputer with a built-in ROM, but since the contents of the ROM are fixed, the program cannot be dynamically changed, and the mask ROM is The type of one-chip microcomputer determines the contents of the ROM at the production stage, so it is suitable for mass production, and is not suitable for low-volume, high-mix applications.
上述した従来のマイクロコンピュータは、アドレスバス
やデータパスが並列に入出力動作を行うため、端子数が
多くなるという欠点があり、一方、シングルチップマイ
クロコンピュータではロムの内蔵により端子数を減少で
きるものの、シングルチップマイクロコンピュータはロ
ムの内容が固定されているので、プログラムをダイナミ
ックに変更できず、少量多種生産に適さないという欠点
がある。The conventional microcomputers mentioned above have the disadvantage of having a large number of terminals because the address bus and data path perform input/output operations in parallel.On the other hand, single-chip microcomputers have the disadvantage that the number of terminals can be reduced by incorporating ROM. Since the contents of the ROM are fixed in single-chip microcomputers, the program cannot be changed dynamically, making them unsuitable for low-volume, high-mix production.
[発明の従来技術に対する相違点コ
上述した従来のマイクロコンピュータに対し、本発明は
アドレスの出力および命令やデータの入出力をそれぞれ
1本の端子により、シリアルに行うという相違点を有す
る.
を直列に入出力するデータ端子と、上記アドレス信号を
格納するアドレスレジスタと、上記命令およびデータを
表す信号を格納するデータレジスタとを有するマイクロ
コンピュータにおいて、上記アドレス端子と上記アドレ
スレジスタとの間およびデータ端子とデータレジスタと
の間に直列一並列変換レジスタをそれぞれ介在させたこ
とである。[Differences between the invention and the prior art] Compared to the conventional microcomputers described above, the present invention differs in that address output and input/output of instructions and data are performed serially through one terminal. In the microcomputer, the microcomputer has a data terminal that serially inputs and outputs the data, an address register that stores the address signal, and a data register that stores the signal representing the command and data, and a A serial/parallel conversion register is interposed between the data terminal and the data register.
[発明の作用]
上記構成に係るマイクロコンピュータは外部から直列に
供給されるアドレス信号およびデータ信号を端子で受け
、その後、これらのデータを直列から並列に変換して使
用する。従って、端子数は並列にデータを受ける場合に
比べ減少でき、また、内蔵ロムではなく、外部メモリに
命令等を保持できるので、命令等の変更を容易にできる
。[Operation of the Invention] The microcomputer according to the above configuration receives address signals and data signals serially supplied from the outside at its terminals, and then converts these data from serial to parallel for use. Therefore, the number of terminals can be reduced compared to the case where data is received in parallel, and since instructions and the like can be held in an external memory instead of in the built-in ROM, it is possible to easily change the instructions and the like.
[問題点を解決するための手段]
[実施例]本発明の要旨は、アドレス信号を直列に出力
す 第1図は本発明の一実施例のブロック図である
。[Means for solving problems]
[Embodiment] The gist of the present invention is to output address signals in series. FIG. 1 is a block diagram of an embodiment of the present invention.
るアドレス端子と、命令およびデータを表す信号 ア
ドレス信号は1本の出力端子1、データ信号は1本の人
出力端子2、リードライト信号は1本の出力端子3を介
して入出力され、便宜上データ信号が人力方向にあると
きには、高レベルを、データ信号が出力方向にあるとき
低レベルを出力するものとする。プログラムカウンタ4
は次にアクセスするプログラム命令の7ドレスを格納し
ており、8ビットのカウンタで構成されている。シフト
レジスタ5はプログラムカウンタ4の値をパラレルから
シリアルに変換するための変換レジスタであり、同様に
8ビットのシフトレジスタで構成されている。シフトレ
ジスタ6は、入出力端子2から人力されたシリアルのデ
ータ信号をパラレルに変換するために使用され、更に出
力すべきデータ信号をパラレルからシリアルに変換する
ための8ビットのシフトレジスタである。命令レジスタ
は、外部から入力されたプログラム命令を一時的に格納
するための8ビットのレジスタであり、命令デコーダ8
はプログラム命令を解読する回路である。For convenience, address signals are input and output via one output terminal 1, data signals are input and output via one human output terminal 2, and read/write signals are input and output via one output terminal 3. When the data signal is in the human power direction, a high level is output, and when the data signal is in the output direction, a low level is output. program counter 4
stores the 7 addresses of the next program instruction to be accessed, and is composed of an 8-bit counter. The shift register 5 is a conversion register for converting the value of the program counter 4 from parallel to serial, and is similarly composed of an 8-bit shift register. The shift register 6 is an 8-bit shift register used to convert a serial data signal input from the input/output terminal 2 into parallel data, and further converts the data signal to be outputted from parallel to serial. The instruction register is an 8-bit register for temporarily storing program instructions input from the outside, and the instruction decoder 8
is a circuit that decodes program instructions.
制御回路9はプログラム命令に応じた種々の制御信号1
0行を形成する。クロック発振回路1lは、マイクロコ
ンピュータが正常に動作するために必要なタイミング信
号l2を発生させる。A control circuit 9 outputs various control signals 1 according to program instructions.
Forms 0 rows. The clock oscillation circuit 1l generates a timing signal 12 necessary for the microcomputer to operate normally.
次に動作について詳細に説明する。第2図は表1のプロ
グラムを実行したときのタイミングチャートの一例であ
る。Next, the operation will be explained in detail. FIG. 2 is an example of a timing chart when the program shown in Table 1 is executed.
表1
上記のプログラムはO番地に格納されているプログラム
命令JMPIOH(HはHEXA DATAであるこ
とを表す)にフェッチし、その実行によりIOH番地に
分岐する。108番地には、プログラム命令MOV
A,Bが格納されており、この命令はBレジスタの内容
をAレジスタに転送することを意味する.
現在、プログラムカウンタ4にはOが格納されており、
タイミング信号12の1クロックによりその内容はシフ
トレジスタ5に転送される.タイミング信号l2の1ク
ロツク毎にシフトレジスタ5からはMSBを先頭にして
lビットずつアドレス信号が出力端子1に出力される。Table 1 The above program fetches the program instruction JMPIOH (H represents HEXA DATA) stored at address O, and branches to address IOH upon execution. At address 108, the program instruction MOV
A and B are stored, and this instruction means to transfer the contents of the B register to the A register. Currently, O is stored in program counter 4,
The contents are transferred to the shift register 5 by one clock of the timing signal 12. Every clock of the timing signal l2, the shift register 5 outputs an address signal of l bits to the output terminal 1 with the MSB at the beginning.
すなわち8個のクロック信号により“OO”が出力され
る。“00゜′が出力されると、O番地の内容である′
゛54″が人出力端子のからデータ信号として1クロッ
ク毎に1ビットずつMSBを先頭にして入力される。8
個のクロックにより“54”はシフトレジスタ6に格納
され、さらに命令レジスタ7に転送されて命令デコーダ
8により命令の解釈が行われる。その結果゛54″とい
うコードは分岐命令であり1バイトのアドレスを示すオ
ペランドを有すると解釈され、オペランドである“10
”が人出力端子2からデータ信号として1ビットずつ入
力される.8ビット分のクロックにより“10”がシフ
トレジスタ6に格納されると、”10”はアドレスを意
味することはすでに解釈されているので、 ”10”は
シフトレジスタ6からシフトレジスタ5に転送ざれる。That is, "OO" is output by eight clock signals. If "00゜' is output, it is the contents of address O'
``54'' is input from the human output terminal as a data signal, one bit at a time, with the MSB at the beginning.8
"54" is stored in the shift register 6 by the clock, and further transferred to the instruction register 7, where the instruction decoder 8 interprets the instruction. As a result, the code "54" is interpreted as a branch instruction with an operand indicating a 1-byte address, and the operand "10" is a branch instruction.
” is input one bit at a time as a data signal from the output terminal 2. When “10” is stored in the shift register 6 by an 8-bit clock, it has already been interpreted that “10” means an address. Therefore, "10" is transferred from shift register 6 to shift register 5.
さらにシフトレジスタ5から1ビットずつアドレス信号
として出力端子に出力ざれる.8個のクロックにより”
10”が出力されると、10番地の命令コード゛38′
゛が人出力端子2からデータ信号として1ビットずつ人
力される.以上説明した手順は第2図にMOVA,
Bの機械詔“38”がシフトレジスタ6に人力されるま
でのタイミングチャートとして示されている.
尚、第1図の実施例ではデータ信号用の入出力端子2は
1本であるが、データ信号の入力端子と出力端子とを別
個にそれぞれ1本ずつ設け、シフトレジスタをさらに1
個追加することにより、人力と出力を同時に行うように
してもよい.かかる入出力端子の分離により演算を実行
できる。Furthermore, one bit from the shift register 5 is outputted to the output terminal as an address signal. By 8 clocks”
10" is output, the instruction code at address 10 is "38'.
is manually input one bit at a time as a data signal from the human output terminal 2. The procedure explained above is shown in Figure 2 using MOVA,
The timing chart is shown until B's mechanical command "38" is manually input to the shift register 6. In the embodiment shown in FIG. 1, there is one input/output terminal 2 for data signals, but one input terminal and one output terminal for data signals are separately provided, and one shift register is provided.
By adding more, it is also possible to perform manual labor and output at the same time. Arithmetic operations can be performed by separating the input and output terminals.
[発明の効果]
以上説明したように本発明は、アドレスの出力および命
令あるいはデータの入出力をシリアルに行うことにより
、端子数を減らす効果があり、小型で低価のマイクロコ
ンピュータを容易に実現することができる。しかもlチ
ップマイクロコンピュータとは異なり、外部より命令を
人力する方式なので、ダイナミックにプログラムを変更
することも可能であり、少量多品種のシステム用のマイ
クロコンピュータにも適している。特に集中制御システ
ムにおいて遠隔制御を行い末端にサブCPUが多数接続
される場合は、ホス}CPUからサブCPUまでの距離
が長くなることも多く、ホス}CPUとサブCPUO間
の配線数が少なくできるのでトータルコストを低減でき
る効果がある。[Effects of the Invention] As explained above, the present invention has the effect of reducing the number of terminals by serially outputting addresses and inputting/outputting instructions or data, and easily realizes a small and low-cost microcomputer. can do. Moreover, unlike l-chip microcomputers, the system manually inputs instructions from outside, so it is possible to dynamically change programs, making it suitable for microcomputers for systems with a wide variety of products produced in small quantities. Especially when remote control is performed in a centralized control system and many sub CPUs are connected at the end, the distance from the host CPU to the sub CPU is often long, and the number of wires between the host CPU and the sub CPU can be reduced. This has the effect of reducing total costs.
またサブCPUのプログラムはホストCPU側に置かれ
ているので、状況に応じてホス}CPU側でプログラム
を変更できる効果がある。Furthermore, since the sub-CPU program is placed on the host CPU side, the program can be changed on the host CPU side depending on the situation.
第1図は本発明の一実施例を示すマイクロコンピュータ
のブロック図、第2図は第1図に示したマイクロコンピ
ュータの動作タイミング図である.1・・・・・・・・
・・アドレス信号、2 ・ ● ◆ ・ ・ ・ ・
・ ・3 ● ・ ・ ・ ・ ・ ● ・ ◆4 ●
● ● ・ ・ ・ ・ ● ・5, 6・ ● ・
・ ・ ・ ・
7・ ・ ・ ・ ・ ・ ・ ・ ・8 ● ◆ ●
● ● ● ◆ ● ・9・ ・ ・ ・ ・ ・
・ ・ ・10 ● ◆ ・ ・ ● ・ ・ ・1
l ・ ● ・ ・ ・ ・ ・ ・12 ・ ● ・
・ ・ ・ ・ ・・データ信号、
・リードライト信号、
・プログラムカウンタ、
・シフトレジスタ、
・命令レジスタ、
・命令デコーダ、
・制御回路、
・制御信号、
・クロツク発振回路、
・タイミング信号。FIG. 1 is a block diagram of a microcomputer showing an embodiment of the present invention, and FIG. 2 is an operation timing diagram of the microcomputer shown in FIG. 1・・・・・・・・・
・Address signal, 2 ・ ● ◆ ・ ・ ・ ・
・ ・3 ● ・ ・ ・ ・ ・ ● ・ ◆4 ●
● ● ・ ・ ・ ・ ● ・5、6・ ● ・
・ ・ ・ ・ 7・ ・ ・ ・ ・ ・ ・ ・ ・8 ● ◆ ●
● ● ● ◆ ● ・9・ ・ ・ ・ ・ ・
・ ・ ・10 ● ◆ ・ ・ ● ・ ・ ・1
l ・ ● ・ ・ ・ ・ ・ ・12 ・ ● ・
・ ・ ・ ・ ・Data signal, ・Read/write signal, ・Program counter, ・Shift register, ・Instruction register, ・Instruction decoder, ・Control circuit, ・Control signal, ・Clock oscillation circuit, ・Timing signal.
Claims (1)
よびデータを表す信号を直列に入出力するデータ端子と
、上記アドレス信号を格納するアドレスレジスタと、上
記命令およびデータを表す信号を格納するデータレジス
タとを有するマイクロコンピュータにおいて、 上記アドレス端子と上記アドレスレジスタとの間および
データ端子とデータレジスタとの間に直列−並列変換レ
ジスタをそれぞれ介在させたことを特徴とするマイクロ
コンピュータ。[Claims] An address terminal that outputs address signals in series, a data terminal that serially inputs and outputs signals representing commands and data, an address register that stores the address signals, and signals representing the commands and data. 1. A microcomputer comprising: a data register for storing a serial-to-parallel conversion register; and a serial-to-parallel conversion register interposed between the address terminal and the address register and between the data terminal and the data register.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1163513A JPH0328985A (en) | 1989-06-26 | 1989-06-26 | Microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1163513A JPH0328985A (en) | 1989-06-26 | 1989-06-26 | Microcomputer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0328985A true JPH0328985A (en) | 1991-02-07 |
Family
ID=15775293
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1163513A Pending JPH0328985A (en) | 1989-06-26 | 1989-06-26 | Microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0328985A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1548607A2 (en) | 1996-05-24 | 2005-06-29 | Microchip Technology Incorporated | Microcontroller having an N-bit data bus width with less than N I/O pins and method therefor |
-
1989
- 1989-06-26 JP JP1163513A patent/JPH0328985A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1548607A2 (en) | 1996-05-24 | 2005-06-29 | Microchip Technology Incorporated | Microcontroller having an N-bit data bus width with less than N I/O pins and method therefor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4839797A (en) | Microprocessor compatible with any software represented by different types of instruction formats | |
| US6611220B1 (en) | Architecture for decimation algorithm | |
| US5550987A (en) | Data transfer device | |
| US4868784A (en) | Microcomputer with a multi-channel serial port having a single port address | |
| JP2005235213A (en) | Data conversion apparatus and method in different endian formats, and system comprising said apparatus | |
| US6725369B1 (en) | Circuit for allowing data return in dual-data formats | |
| JPH03204718A (en) | Information processor | |
| US4813019A (en) | Semiconductor integrated circuit | |
| JPH0460835A (en) | Microinstruction decoding circuit | |
| US20070162630A1 (en) | Single-chip multiple-microcontroller package structure | |
| JP2522063B2 (en) | Single-chip micro computer | |
| KR930002789B1 (en) | Variable-length code extension circuit in 32-bit microprocessor | |
| JPS5835660A (en) | Microprocessor | |
| JPS5953926A (en) | Control device | |
| KR930002788B1 (en) | Variable-length bus connection circuit in 32-bit microprocessor | |
| JP3341164B2 (en) | Programmable controller | |
| JPH05101008A (en) | One-chip microcomputer | |
| JPH0253160A (en) | Bus width control circuit | |
| JPH01230162A (en) | Microcomputer | |
| JPS63292299A (en) | Output circuit for alarm test signal | |
| JPS62160531A (en) | Arithmetic unit of single chip microcomputer | |
| JP2003015866A (en) | Processor | |
| JPS63168729A (en) | Microprocessor | |
| JPS62156737A (en) | 1-chip microcomputer | |
| JPS6325741A (en) | Digital signal processing circuit |