JPS6259815B2 - - Google Patents

Info

Publication number
JPS6259815B2
JPS6259815B2 JP57134569A JP13456982A JPS6259815B2 JP S6259815 B2 JPS6259815 B2 JP S6259815B2 JP 57134569 A JP57134569 A JP 57134569A JP 13456982 A JP13456982 A JP 13456982A JP S6259815 B2 JPS6259815 B2 JP S6259815B2
Authority
JP
Japan
Prior art keywords
address
data bus
microprocessor
memory
gate
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.)
Expired
Application number
JP57134569A
Other languages
Japanese (ja)
Other versions
JPS5924333A (en
Inventor
Arihiro Hosoku
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.)
YOKOKAWA DENKI KK
Original Assignee
YOKOKAWA DENKI KK
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 YOKOKAWA DENKI KK filed Critical YOKOKAWA DENKI KK
Priority to JP57134569A priority Critical patent/JPS5924333A/en
Publication of JPS5924333A publication Critical patent/JPS5924333A/en
Publication of JPS6259815B2 publication Critical patent/JPS6259815B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 本発明は、マイクロプロセツサに接続されるメ
モリあるいは入出力装置(本明細書では単にメモ
リという)にアドレスを与えるためにマイクロプ
ロセツサに外付するアドレス発生回路に関し、更
に詳しくは、アドレス発生回路の動作をチエツク
する機能を有したアドレス発生回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an address generation circuit externally attached to a microprocessor to provide an address to a memory or an input/output device (herein simply referred to as memory) connected to the microprocessor. More specifically, the present invention relates to an address generation circuit having a function of checking the operation of the address generation circuit.

例えば、インテル社の8085マイクロプロセツサ
では、16ビツトのアドレスバスを有し、その下位
8ビツトのバス(AD0〜7)はアドレスとデータと
の兼用バスとなつている。即ち、下位8ビツト
は、マシーンステートの第1のクロツクサイクル
ではアドレスバスとなり、第2及び第3のクロツ
クサイクルではデータバスとなるように構成され
ている。メモリに対してはアドレスバス(16ビツ
ト)とデータバス(8ビツト)を別個に与える必
要があり、そこで従来より第1図に示すようなア
ドレス制御回路2がマイクロプロセツサ1に付加
され用いられている。この回路は、マイクロプロ
セツサ1の下位8ビツトAD0〜7より出力される
アドレスをALE(Address Latch Enable)が出
る毎にアドレスラツチ3にラツチし、その出力を
上記8ビツトAD8〜15のアドレスを合成して16ビ
ツト(AD0〜15)のアドレスバスを構成してメモ
リ7に与え、又AD0〜7をデータバスとするとき
はデータバス双方向バツフア4をアクテイブ状態
にしてデータバスを構成するようにしている。と
ころで、アドレス制御回路2が正常に動作してい
るかどうかをチエツクするため、アドレスを順次
インクリメントするような回路がこれに付加され
ている。即ち、アドレスを+1するような1語命
令を強制的に発生させる命令発生回路5と、この
命令発生回路5と双方向バツフア4とを択一的に
アクテイブにするためのスイツチ回路6を備えた
回路が付加されている。チエツク回路6をC接点
側に投入し命令発生回路5をアクテイブにして、
マイクロプロセツサ1より読込み信号()を
発する(即ちマイクロプロセツサ1のCPUが命
令をフエツチ(Fetch)する)。が発生する毎
に命令発生回路5からはアドレスを+1する1語
命令が出力される。これにより、CPUは内部処
理のみでプログラムカウンタ(PC)が+1さ
れ、その結果がアドレスAD0〜7に出力されてメ
モリに与えられる。
For example, Intel's 8085 microprocessor has a 16-bit address bus, and the lower 8-bit bus ( AD0-7 ) serves as a dual-purpose address and data bus. That is, the lower 8 bits are configured to function as an address bus in the first clock cycle of the machine state, and to function as a data bus in the second and third clock cycles of the machine state. It is necessary to separately provide an address bus (16 bits) and a data bus (8 bits) to the memory, so an address control circuit 2 as shown in Figure 1 has traditionally been added to the microprocessor 1. ing. This circuit latches the address output from the lower 8 bits AD 0 to 7 of the microprocessor 1 to the address latch 3 every time ALE (Address Latch Enable) is output, and transfers the output to the address output from the 8 bits AD 8 to 15 mentioned above. The addresses are combined to form a 16-bit (AD 0 to 15 ) address bus and applied to the memory 7, and when AD 0 to 7 are used as a data bus, the data bus bidirectional buffer 4 is activated and the data bus is I am trying to configure it. By the way, in order to check whether the address control circuit 2 is operating normally, a circuit for sequentially incrementing the address is added to the address control circuit 2. That is, it includes an instruction generation circuit 5 for forcibly generating a one-word instruction such as adding 1 to an address, and a switch circuit 6 for selectively activating this instruction generation circuit 5 and the bidirectional buffer 4. A circuit is added. The check circuit 6 is connected to the C contact side and the command generation circuit 5 is activated.
A read signal ( ) is issued from the microprocessor 1 (that is, the CPU of the microprocessor 1 fetches the instruction). Each time , the instruction generation circuit 5 outputs a one-word instruction that increments the address by 1. As a result, the CPU increments the program counter (PC) by 1 only through internal processing, and the result is output to addresses AD 0 to AD 7 and given to the memory.

このようにアドレスを順次インクリメントする
ことによりメモリに対してもインクリメントされ
るアドレスが与えられることを確認して、アドレ
ス制御回路2の動作をチエツクすることができる
ようになつている。
By sequentially incrementing the address in this manner, it is possible to check the operation of the address control circuit 2 by confirming that the incremented address is also given to the memory.

しかしながら、1語命令を発生させるための回
路は8ビツトのデータを発生させるものであり、
部品点数が多く、又多くのビツト数がデータバス
に接続されているため通常動作時の信頼性が低下
するといつた欠点があつた。
However, the circuit for generating a one-word instruction generates 8-bit data;
The disadvantage is that reliability during normal operation is reduced because the number of parts is large and a large number of bits are connected to the data bus.

本発明は、このような欠点を解消するもので、
その目的は、アドレスを+1させるような回路
を、部品点数が少なく部品実装面積の小さい、し
かもデータバスAD0〜7に対し制御するビツト数
が少ないアドレス発生回路を提供することにあ
る。
The present invention solves these drawbacks,
The purpose is to provide an address generation circuit which has a small number of parts, has a small component mounting area, and has a small number of bits to control data buses AD0 to AD7 , which is a circuit that increments an address by 1.

以下、図面を用いて本発明を詳細に説明する。 Hereinafter, the present invention will be explained in detail using the drawings.

第2図は本発明に係るアドレス発生回路の一実
施例を示す構成図である。第2図において第1図
と異なるところは、ゲート21とプルアツプ抵抗
群23の部分である。即ち、ゲート21にはマイ
クロプロセツサ1の信号とスイツチ回路6の
接点信号が入力され、ゲート21の出力は出力ス
イツチ22を介してデータバスAD7に導かれてい
る。プルアツプ抵抗群23は8個の抵抗より構成
され、データバスAD0〜7のそれぞれをこの抵抗
を介して+5V電源にプルアツプしている。
FIG. 2 is a block diagram showing an embodiment of the address generation circuit according to the present invention. 2 differs from FIG. 1 in the gate 21 and pull-up resistor group 23. In FIG. That is, the signal from the microprocessor 1 and the contact signal from the switch circuit 6 are input to the gate 21, and the output of the gate 21 is led to the data bus AD7 via the output switch 22 . The pull-up resistor group 23 is composed of eight resistors, and pulls up each of the data buses AD0 to AD7 to the +5V power supply via the resistors.

このような構成における動作を次に説明する。 The operation in such a configuration will be explained next.

(1) 通常動作時 出力スイツチ22をOFFにし、スイツチ回
路6をD接点側に投入する。これにより、デー
タバス双方向バツフア(通常3ステートバツフ
アである)4はアクテイブ状態となり、一方ゲ
ート21はインアクテイブ状態となる。従つ
て、マイクロプロセツサ1はバツフア4を介し
てメモリ7から順次命令をフエツチすることが
できる。
(1) During normal operation Turn off the output switch 22 and turn on the switch circuit 6 to the D contact side. As a result, the data bus bidirectional buffer (usually a three-state buffer) 4 becomes active, while the gate 21 becomes inactive. Therefore, the microprocessor 1 can sequentially fetch instructions from the memory 7 via the buffer 4.

(2) アドレス発生回路のチエツク時 出力スイツチ22をONにし、スイツチ回路
6をC接点側に投入する。これによりバツフア
4はインアクテイブ、ゲート21はアクテイブ
状態となる。一方、データバスAD0〜7はプル
アツプ抵抗23を介して+5Vにプルアツプさ
れている。マイクロプロセツサ1よりパル
スが発せられる(即ち、CPUが命令をフエツ
チする)毎にゲート21を介してAD7
“LOW”レベルになる。
(2) When checking the address generation circuit Turn on the output switch 22 and close the switch circuit 6 to the C contact side. As a result, the buffer 4 becomes inactive and the gate 21 becomes active. On the other hand, data buses AD 0 to AD 7 are pulled up to +5V via pull-up resistors 23. Every time a pulse is issued by the microprocessor 1 (that is, the CPU fetches an instruction), AD 7 goes to the "LOW" level via the gate 21.

CPUは命令フエツチ時に常に“01111111”と
いうパターンの命令をエツチすることとなる。こ
の命令を、CPUの内部処理だけで実行の終了す
る命令であると定めておくことにより、命令フエ
ツチ毎にプログラムカウンタは+1され、その結
果アドレスバス(命令をフエツチするアドレス)
は+1されることになる。このようにしてアドレ
スを順次インクリメントし、メモリ7に与えられ
るアドレスを調べることによりアドレス発生回路
の動作をチエツクすることができる。
When fetching instructions, the CPU always fetches instructions with a pattern of "01111111". By specifying that this instruction is an instruction whose execution is completed only by the internal processing of the CPU, the program counter is incremented by 1 every time an instruction is fetched, and as a result, the address bus (address where the instruction is fetched) is added.
will be +1. By sequentially incrementing the address in this way and checking the address given to the memory 7, the operation of the address generation circuit can be checked.

尚、実施例ではインテル社の8085マイクロプロ
セツサを使用した場合を例にとつて説明したが、
他のマイクロプロセツサを使用した場合でも同様
に制御することができる。又、ゲート21はバツ
フア4と同様3ステートバツフアで構成するのが
一般的であるが、オープンコレクタタイプのバツ
フアとすることもできる。尚、ゲート21が3ス
テートバツフアである場合は出力スイツチ22を
省略することもできる。更に、ゲート21の出力
で“LOW”にするビツトはAD7に限らず他のビ
ツトにしてもよい。
In the example, we used Intel's 8085 microprocessor as an example.
Similar control is possible even when using other microprocessors. Although the gate 21 is generally constructed of a three-state buffer like the buffer 4, it can also be an open collector type buffer. Note that if the gate 21 is a three-state buffer, the output switch 22 can be omitted. Furthermore, the bit to be set to "LOW" in the output of the gate 21 is not limited to AD7 , but other bits may be used.

以上説明したように、本発明によれば、簡単な
構成によりアドレス発生回路の動作のチエツクが
できる。即ち、従来の8ビツト構成の命令発生回
路を1ビツトのゲートとすることができ、部品点
数も実装面積も少なくてすむ。プルアツプ抵抗群
の分だけ部品実装面積は増加するが全体としては
やはり減少する。又、データバスの制御が1ビツ
トであるので通常動作時の信頼性に優れている。
更に、ゲートをバスから切り離す場合でも1ビツ
トのスイツチで足り、従来のものが8ビツトを要
したのに比して格段に簡略化することができる。
As described above, according to the present invention, the operation of the address generation circuit can be checked with a simple configuration. That is, the conventional 8-bit configuration instruction generation circuit can be replaced with a 1-bit gate, and the number of components and mounting area can be reduced. Although the component mounting area increases by the amount of the pull-up resistor group, it still decreases as a whole. Furthermore, since the data bus is controlled by one bit, reliability during normal operation is excellent.
Furthermore, even when disconnecting the gate from the bus, a 1-bit switch is sufficient, which is much simpler than the conventional system, which requires 8 bits.

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

第1図は従来のアドレス制御回路の一例を示す
構成図、第2図は本発明に係るアドレス制御回路
の一実施例を示す構成図である。 1……マイクロプロセツサ、3……アドレスラ
ツチ、4……データバス双方向バツフア、6……
スイツチ回路、7……メモリ、21……ゲート、
23……プルアツプ抵抗群。
FIG. 1 is a block diagram showing an example of a conventional address control circuit, and FIG. 2 is a block diagram showing an embodiment of the address control circuit according to the present invention. 1... Microprocessor, 3... Address latch, 4... Data bus bidirectional buffer, 6...
Switch circuit, 7...Memory, 21...Gate,
23...Pull-up resistance group.

Claims (1)

【特許請求の範囲】[Claims] 1 マイクロプロセツサより出力されるアドレス
をメモリに与え、データ転送時はデータバス双方
向バツフアを介してメモリのデータバスがマイク
ロプロセツサのデータバスに接続されるようにし
たアドレス発生回路において、マイクロプロセツ
サとデータバス双方向バツフアとの間のデータバ
スをプルアツプするプルアツプ抵抗群と、マイク
ロプロセツサより読取り信号が発せられる毎にス
イツチ回路を介してデータバス双方向バツフアを
インアクテイブにすると共にデータバス中の1ビ
ツトを“LOW”に駆動するゲート及びこのゲー
トに接続されたスイツチよりなる駆動手段とを設
け、動作チエク時には、データバス中の1ビツト
が“LOW”となる命令をマイクロプロセツサに
与え、マイクロプロセツサよりインクリメントさ
れて出力されたアドレスをメモリに与えることに
より、動作チエツクが行なわれるようにしたこと
を特徴とするアドレス発生回路。
1. In an address generation circuit that gives an address output from a microprocessor to a memory, and connects the memory's data bus to the microprocessor's data bus via a data bus bidirectional buffer during data transfer, A group of pull-up resistors that pull up the data bus between the processor and the data bus bidirectional buffer, and a switch circuit that makes the data bus bidirectional buffer inactive and transfers data every time a read signal is issued from the microprocessor. A driving means consisting of a gate that drives one bit in the data bus to "LOW" and a switch connected to this gate is provided, and when an operation check is performed, a command that causes one bit in the data bus to become "LOW" is sent to the microprocessor. 1. An address generation circuit characterized in that an operation check is performed by giving an address incremented and output from a microprocessor to a memory.
JP57134569A 1982-07-30 1982-07-30 Address generating circuit Granted JPS5924333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57134569A JPS5924333A (en) 1982-07-30 1982-07-30 Address generating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57134569A JPS5924333A (en) 1982-07-30 1982-07-30 Address generating circuit

Publications (2)

Publication Number Publication Date
JPS5924333A JPS5924333A (en) 1984-02-08
JPS6259815B2 true JPS6259815B2 (en) 1987-12-12

Family

ID=15131402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57134569A Granted JPS5924333A (en) 1982-07-30 1982-07-30 Address generating circuit

Country Status (1)

Country Link
JP (1) JPS5924333A (en)

Also Published As

Publication number Publication date
JPS5924333A (en) 1984-02-08

Similar Documents

Publication Publication Date Title
US4939637A (en) Circuitry for producing emulation mode in single chip microcomputer
JP2001195384A (en) Processor and method for controlling input and output pin of the processor
US5095485A (en) Microprocessor equipped with parity control unit on same chip
JPS62179033A (en) Ic microprocessor
JP3380827B2 (en) Emulator device
JPS6259815B2 (en)
JP2578182B2 (en) Data processing device and data processing system
JP3489006B2 (en) Flash memory writing method
JP3650072B2 (en) Data storage device and data transmission system using the same
JPS603049A (en) Bus interface apparatus
JPH0679278B2 (en) Microcomputer development equipment
JP3269435B2 (en) Bus interface unit
JPS63106840A (en) Data processor unit
JPH0690727B2 (en) Micro Processor
JPH01314344A (en) Program development supporting device
JPH096641A (en) Information processor
JPS5931800B2 (en) Control memory diagnostic method
JPH0235342B2 (en) WARIKOMISEIGYOKAIRO
JPH01154259A (en) Data trace system
JPH10222391A (en) Emulator
EP0423735A2 (en) Microprocessor having parity check function
JPH10289127A (en) Tracing circuit for development emulator
JPS62130437A (en) Lsi tracing system
JPH0429075A (en) Semiconductor integrated circuit device
JPS6266333A (en) Indirect address register control system