JPS5924333A - Address generating circuit - Google Patents

Address generating circuit

Info

Publication number
JPS5924333A
JPS5924333A JP57134569A JP13456982A JPS5924333A JP S5924333 A JPS5924333 A JP S5924333A JP 57134569 A JP57134569 A JP 57134569A JP 13456982 A JP13456982 A JP 13456982A JP S5924333 A JPS5924333 A JP S5924333A
Authority
JP
Japan
Prior art keywords
address
data bus
microprocessor
circuit
memory
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.)
Granted
Application number
JP57134569A
Other languages
Japanese (ja)
Other versions
JPS6259815B2 (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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Hokushin Electric Corp
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 Yokogawa Hokushin Electric Corp filed Critical Yokogawa Hokushin Electric Corp
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)

Abstract

PURPOSE:To decrease the number of parts and to simplify the constitution of the titled circuit and improving the circuit reliability, by giving an instruction to turn 1-bit to LOW in a data bus to a microprocessor then supplying the address outputted incrementally from the processor to a memory to perform a working check. CONSTITUTION:In a normal working mode, an output switch 22 is turned off, and a switch circuit 6 is supplied to the side of a contact D. Thus a data bus bidirectional buffer 4 and a gate 21 are made active and inactive, respectively. Therefore, a microprocessor 1 checks successively the instructions given from a memory 7 via the buffer 4. When an address generating circuit is checked, the switch 22 is turned on with the circuit 6 applied to the side C. Thus the buffer 4 and the gate 21 are made inactive and active, respectively. Then a data bus AD7 is set at level L via the gate 21 every time a -RD bus is delivered from the processor 1, and the address bus is added by +1 to increment the addresses successively.

Description

【発明の詳細な説明】 本発明は、マイクロプロセッサに接続されるメモリある
いは人出ノj装置(水明1i1111!では単にメエリ
という)にアドレスを与えるためにマイクロプロセッサ
に外付するアドレス発生回路に関し、更に詳しくは、ア
ドレス発生回路の動作をチェックする機能を有したアド
レス発生回路に関りる。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an address generation circuit externally attached to a microprocessor in order to give an address to a 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ピツ[
−のバス(△D o〜7)はアドレスとデータとの兼用
バスとなっている。即ち、下(1′78ビツトは、マシ
ーンスデートの第1のクロックサイクルではアドレスバ
スとなり、第2及び第33のりL1ツク勺イクルで・は
データバスとなるように構成されCいる。メモリに対し
てはアドレスバス(16ピツト)とデータバス(8ビツ
ト)を別個に与える必要があり、そこで従来より第1図
に承りようなアドレス制御回路2がマイクロプロセッサ
1に付加され用いられている。この回路は、マイクロプ
ロセッサ1の下位8ビツトAI) o〜7より出力され
るアドレスを八LE(Address  1−atch
  [nable )が出る毎にアドレスラッチ3にラ
ッチし、その出力を上位8ビツトADs〜I5のアドレ
スと合成して16ビツト(ADo=s)のアドレスバス
を構成してメモリ7に与え、又△Do〜7をデータバス
とするときはデータバス双方向バッファ4をアクティブ
状態にしてデータバスを構成づるようにしている。どこ
ろで、アドレス制御回路2が正常に動作しているかどう
かをチェックするため、アドレスを順次インクリメント
づるような回路がこれに付加されでいる。即ち、アドレ
スを+1するような1冊命令を強制的に発生させる命令
発生回路5と、この命令発生回路5と双方向バッファ4
とを択一的にアクティブにするためのスイッチ回路6を
備えた回路が付加されている。チェック時にはスイッチ
回路6をC接点側に投入し命令発生回路5をアクティブ
にして、マイクロ10レツリ1より読込み信号(RD)
を発する(叩らマイクロプロセッサ1のCP Uが命令
をフェッチ(Fetch) $ル) 、。
For example, Intel's 8085 MicroPro has a 16-bit address bus, and the lower eight bits of the
The − bus (ΔD o to 7) is a dual-purpose address and data bus. That is, the lower (1'78) bits are configured to be an address bus in the first clock cycle of the machine data, and a data bus in the second and 33rd clock cycles. For this purpose, it is necessary to provide an address bus (16 bits) and a data bus (8 bits) separately, and therefore an address control circuit 2 as shown in FIG. 1 has been added to the microprocessor 1 and used. This circuit converts the addresses output from the lower 8 bits AI) o to 7 of the microprocessor 1 into 8 LEs (Address 1-atch).
Every time [nable) is output, it is latched into the address latch 3, and its output is combined with the upper 8 bits ADs to I5 address to form a 16-bit (ADo=s) address bus and given to the memory 7, and △ When Do to 7 are used as a data bus, the data bus bidirectional buffer 4 is activated to form a data bus. By the way, in order to check whether the address control circuit 2 is operating normally, a circuit is added to the address control circuit 2 to sequentially increment the address. That is, an instruction generation circuit 5 that forcibly generates a one-book instruction such as adding +1 to an address, this instruction generation circuit 5, and a bidirectional buffer 4.
A circuit is added with a switch circuit 6 for selectively activating the. At the time of checking, the switch circuit 6 is connected to the C contact side, the command generation circuit 5 is activated, and the read signal (RD) is sent from the micro 10 retsuri 1.
(The CPU of the hit microprocessor 1 fetches the instruction (Fetch)).

RDが発生づ゛る毎に命令発生回路5からはアドレスを
−1−1!する1語命令が出力される。これににす、C
I) Uは内部処理のみでプログラムカウンタ(+’)
 C>が−!1され、その結果がアドレスADo”・7
に出力されてメ[りに与えられる。
Every time RD occurs, the instruction generation circuit 5 outputs an address of -1-1! A one-word command is output. To this, C
I) U is a program counter (+') for internal processing only.
C> is-! 1, and the result is address ADo”・7
It is output to the media and given to the media.

このようにアドレスを順次インクリメントすることにJ
:リメモリに対してもインクリメント・されるアドレス
が与えられることを確認して、)7ドレス制御回路2の
動作をチェックすることが(・さ・るようになっている
J
:The operation of the address control circuit 2 is checked by confirming that the address to be incremented is also given to the re-memory.

(〕かしながら、1語命令を発生させるための回路は8
ヒツl〜のデータを発と1−さけるものであり、部品点
数が多く、又多くのヒツト数がデータバスに接続されで
いるため通常動作時の信頼性が低Fするといった欠点が
あった。
(However, the circuit for generating a one-word instruction is 8
This system avoids data transmission and transmission, has a large number of parts, and has a drawback that reliability during normal operation is low because a large number of parts are connected to the data bus.

本発明は、このような欠点を解消するもので、−での目
的は、アドレスを+1させるような回路を、部品点数が
少なく部品実装面積の小さい、しかもデータバスADo
〜7に対し制御するビット数が少ないアドレス発生回路
を提供することにある。
The purpose of the present invention is to eliminate such drawbacks.
An object of the present invention is to provide an address generation circuit that has a smaller number of bits to control than those of the present invention.

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

第2図は本発明に係るアドレス発生回路の一実施例を示
す構成図である。第2図において第1図と異なるところ
は、ゲート21とプルアップ抵抗群23の部分である。
FIG. 2 is a block diagram showing an embodiment of the address generation circuit according to the present invention. The difference between FIG. 2 and FIG. 1 is the gate 21 and pull-up resistor group 23.

即ち、ゲート21にはマイクロプロセッサ1のRD信号
とスイッチ回路6のC接点信号が入力され、ゲート21
の出力は出力スイッチ22を介してデータバスΔD7に
導かれている。プルアップ抵抗8Y23は8個の抵抗よ
り構成され、データバス△D○〜7のイれぞれをこの抵
抗を介して+5V電源にプルアップしている。
That is, the RD signal of the microprocessor 1 and the C contact signal of the switch circuit 6 are input to the gate 21.
The output of is led to data bus ΔD7 via output switch 22. The pull-up resistor 8Y23 is composed of eight resistors, and pulls up each of the data buses ΔD○ to 7 to the +5V power supply via this resistor.

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

(1)通常動作時 出力スイッチ22をOFFにし、スイ ッチ回路6をD接点側に投入する。これにより、データ
バス双方向バッファ(通常3ステートバツフアぐある)
4はアクアイブ状態どなり、−hゲート21はインアク
アイブ状態となる。従って、マイク上1プIil tフ
サ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. This allows data bus bidirectional buffers (usually 3-state buffers)
4 goes into the aqua-live state, and the -h gate 21 goes into the in-a-kive state. Therefore, the microphone unit 1 can sequentially fetch instructions from the memory 7 via the buffer 4.

(2)アドレス発生回路のチェック時 出力スイッチ22をONにし、スイッ チ回路6をC接点側に役人する。これによりバッファ4
はインアクライブ、グー1〜21はアク5(ブ状態とな
る。一方、7−タバスADo〜7はプルアップ抵抗23
を介して」−5Vにプルアップされている。マイクロブ
D t=ツリ1よりRDパルスが発せられるく即ら、C
PUが命令を)Jツ1−リ−る)毎にゲート21を介し
く△1〕7がL OW ”レベルになる。
(2) When checking the address generation circuit, turn on the output switch 22 and set the switch circuit 6 to the C contact side. This causes buffer 4
is inactive, and goo 1 to 21 are in active state. On the other hand, 7-tabas ADo to 7 are in the pull-up resistor 23
It is pulled up to -5V via . Microbe D t = As soon as the RD pulse is emitted from tree 1, C
Every time the PU issues an instruction), Δ1]7 becomes the LOW level through the gate 21.

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

尚、実施例ではインテル社の8085マイクロプロセツ
リを使用した場合を例にとって説明したが、伯のマイク
ロプロセラ1yを使用した場合でも同様に制御すること
ができる。又、ゲート21はバッファ4と同様3ステー
トバツフアで構成するのが一般的であるが、オープンコ
レクタタイプのバッファとづることもできる。尚、ゲー
ト21が3ステートバツフアである場合は出力スイッチ
22を省略することもできる。更に、ゲート21の出力
で’ L OW ”にするピッl〜はA D 7に限ら
ず他のビットにしてもよい。
Although the embodiment has been described using the Intel 8085 microprocessor as an example, the same control can be achieved using the Haku microprocessor 1y. Although the gate 21 is generally configured as a 3-state buffer like the buffer 4, it can also be referred to as an open collector type buffer. Note that if the gate 21 is a three-state buffer, the output switch 22 can be omitted. Further, the bit to be set to ``LOW'' at the output of the gate 21 is not limited to AD7, but may be other bits.

以上説明したように、本発明によれば、簡単な構成によ
りアドレス発生回路の動作のチェックがCきる。即ち、
従来のε3ピツト構成の命令発生回路を1ビツトのグー
1−とりることかでき、部品点数す実装面積も少なくて
すむ。ノルアラ1抵抗群の分だけ部品実装面積は増加す
るが全体どしてはやはり減少4−る。又、データバスの
制御が1ビツトCあるのC通常動作時の信頼性に優れ(
いる。更に、グー1−をバスから切り離づ場合C・ら1
ヒツトのスイッチで足り、従来のものが8ビツト・を要
したのに比して格段に簡略化Jることができる。
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 instruction generation circuit having the ε3 pit configuration can be replaced with a 1-bit bit, and the number of components and mounting area can be reduced. Although the component mounting area increases by the amount of the Norara 1 resistor group, it still decreases overall. In addition, since the data bus is controlled by 1 bit C, it has excellent reliability during normal operation (
There is. Furthermore, if Goo1- is separated from the bus, C・ra1
A one-bit switch is sufficient, making it much simpler than the conventional one, which requires 8 bits.

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

第1図は従来のアドレス制rJ11回路の一例を承り構
成図、第2図は本発明に係るアドレス制御回路の一実施
例を示づ一構成図である。 1・・・マイクロプロセッサ 33・・・アドレスラッチ 4・・・ア゛−タバス双方向バツノ1 6・・・スイッチ回路 7・・・メモリ 21・・・ゲート 23・・・プルアップ抵抗BY 元1図
FIG. 1 is a block diagram showing an example of a conventional address system rJ11 circuit, and FIG. 2 is a block diagram showing an embodiment of an address control circuit according to the present invention. 1... Microprocessor 33... Address latch 4... Data bus bidirectional button 1 6... Switch circuit 7... Memory 21... Gate 23... Pull-up resistor BY source 1 figure

Claims (1)

【特許請求の範囲】 マイクロブOt?ツサより出力されるアドレスをメモリ
に与え、データ転送時はデータバス双方向バッファを介
してメモリのデータバスがマイクロプロセッサのデータ
バスに接続されるようにしたアドレス発生回路において
、マイクロプロセッサとデータバス双方向バッフ1との
間のデータバスをプルアップするプルアップ抵抗群と、
マイクロプロセッサより読取り信号が発せられる毎にデ
ータバス双方向バッファをインアクティブにすると共に
データバスの中の1ビツトを’LOW”に駆動り−る手
段とを設け、動作チェック時には、データバスの中の1
ビツトが’ 10 W ”となる命令をマイク【」プロ
セッサに与え、マイクロプロセッサよりインクリメント
されて出力されたアドレスをメモリに与えることにより
、動作チェックが行われるようにしたことを特徴とする
アドレス発生回路。
[Claims] Microbe Ot? The microprocessor and the data bus are connected to each other in an address generation circuit that gives the address output from the connector to the memory and connects the memory 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 bidirectional buffer 1;
A means is provided for inactivating the data bus bidirectional buffer and driving one bit in the data bus LOW every time a read signal is issued from the microprocessor. No. 1
An address generation circuit characterized in that an operation check is performed by giving a command to a microprocessor that causes a bit to be 10 W, and giving an address incremented and output from the 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 true JPS5924333A (en) 1984-02-08
JPS6259815B2 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
JPS6259815B2 (en) 1987-12-12

Similar Documents

Publication Publication Date Title
JPH0844464A (en) Computer system
JPS601643B2 (en) Initialization circuit for digital computers
EP0029855B1 (en) Microcomputer with mpu-programmable eprom
JPS62179033A (en) Ic microprocessor
KR920002661B1 (en) Address modification circuit
JPS5924333A (en) Address generating circuit
US9378782B1 (en) Apparatus with write-back buffer and associated methods
JP3157242B2 (en) Error handling method in micro program control
JPH05250269A (en) Memory access system and information processor
EP0382234B1 (en) Microprocessor having improved functional redundancy monitor mode arrangement
JP3489006B2 (en) Flash memory writing method
EP0423735B1 (en) Microprocessor having parity check function
JPH08297592A (en) Controller
JP2906813B2 (en) Collective panel device
JPS603049A (en) Bus interface apparatus
KR0171173B1 (en) One-chip microcomputer
JP3269435B2 (en) Bus interface unit
JPH0553868A (en) Debugging device
JPH0540838A (en) Microprocessor
JPH0429075A (en) Semiconductor integrated circuit device
JPH0588905A (en) Microcontroller
JPH01197860A (en) Memory fault detecting circuit
JPH09120392A (en) Data processor
JPS61213960A (en) Data transmission system between cpus
JPH01314344A (en) Program development supporting device