JPH07175748A - Microcomputer system - Google Patents

Microcomputer system

Info

Publication number
JPH07175748A
JPH07175748A JP31932493A JP31932493A JPH07175748A JP H07175748 A JPH07175748 A JP H07175748A JP 31932493 A JP31932493 A JP 31932493A JP 31932493 A JP31932493 A JP 31932493A JP H07175748 A JPH07175748 A JP H07175748A
Authority
JP
Japan
Prior art keywords
address
latch
circuit
value
peripheral circuit
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
JP31932493A
Other languages
Japanese (ja)
Inventor
Toshiyuki Kataoka
俊幸 片岡
Ko Oba
香 大場
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP31932493A priority Critical patent/JPH07175748A/en
Publication of JPH07175748A publication Critical patent/JPH07175748A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To assign the optional address value to a peripheral circuit by means of an existing address decoding circuit by including an address latch, a decoder and a multiplexer in an address changing circuit. CONSTITUTION:An address changing circuit 27 is contained in a peripheral circuit 4. The circuit 27 includes an address latch 16 which holds the address of the circuit 4, a decoder 10 which compares the value of the latch 16 with the value of an address bus 2, and a multiplexer MPX 13 which selects an address latch write signal 21 and a chip selection signal 7 with active and inactive write signals 20 respectively. Thus the address value of the circuit 4 can be optionally set. Meanwhile the latch 16 has a resetting function and the circuit 4 has the default address value. Therefore the address value of only the peripheral circuit that sould be changed can be changed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はマイクロコンピュータシ
ステムに関し、特に柔軟な周辺アドレス指定機能を有す
るマイクロコンピュータシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer system, and more particularly to a microcomputer system having a flexible peripheral addressing function.

【0002】[0002]

【従来の技術】従来技術の第1の例を図4に示す。2. Description of the Related Art A first example of prior art is shown in FIG.

【0003】本従来例では、1個の周辺回路4に対し、
比較回路50と、アドレス・ラッチ53,54とアドレ
ス・ラッチのアドレスをデコードする設定デコーダ70
とを有していた。別の周辺回路5に対しても同様に1個
の比較回路51と2個のアドレス・ラッチ55,56と
1個の設定デコーダ71を有していた。
In this conventional example, for one peripheral circuit 4,
The comparison circuit 50, the address latches 53 and 54, and the setting decoder 70 for decoding the address of the address latch
And had. Similarly, another peripheral circuit 5 has one comparison circuit 51, two address latches 55 and 56, and one setting decoder 71.

【0004】本従来例では個々の周辺回路4に対しデー
タ・バス3を介しアドレス範囲をアドレス・バスの値が
設定デコーダの値と一致すればアドレス・ラッチ53,
54に設定し、アドレス・バス2のデータとアドレス・
ラッチ53,54格納されている値を比較回路50にて
判別し、アドレス・バスの値がアドレス・ラッチ53,
54の範囲内であればチップ選択信号7がアクティブと
なり周辺回路4をアクセスしていた。
In this conventional example, the address range is set for each peripheral circuit 4 via the data bus 3 if the value of the address bus matches the value of the set decoder.
54 and set the address bus 2 data and address
The values stored in the latches 53, 54 are determined by the comparison circuit 50, and the value of the address bus is determined by the address latches 53, 54.
If it is within the range of 54, the chip selection signal 7 becomes active and the peripheral circuit 4 is accessed.

【0005】従来技術の第2の例を図5に示す。A second example of the prior art is shown in FIG.

【0006】この第2の従来例では、1個の周辺回路に
対しアドレス・ラッチ16とデコーダ10と書き込み信
号20と次段の周辺回路に対するF/F60とアドレス
・ラッチ16に対するアドレス設定信号65と設定デコ
ーダ62が必要であった。
In the second conventional example, an address latch 16, a decoder 10, a write signal 20 for one peripheral circuit, an F / F 60 for the peripheral circuit of the next stage, and an address setting signal 65 for the address latch 16. A configuration decoder 62 was needed.

【0007】また、この第2の従来例では、アドレス書
き込み信号20が出力されアドレス・バス2がセッティ
・デコーダ62の値を示していればアドレス・ラッチ1
6にデータ・バス3の値が書き込まれる。書き込みが終
了すると書き込み信号63がアクティブとなり、アドレ
ス・ラッチ17にデータ・バスの値を書き込む。この様
にして一旦アドレス書き込みモードに入ると順次アドレ
ス値をアドレス・ラッチに書き込んで行く。
In the second conventional example, if the address write signal 20 is output and the address bus 2 indicates the value of the setty decoder 62, the address latch 1 is output.
The value of data bus 3 is written to 6. When the writing is completed, the write signal 63 becomes active and the value of the data bus is written in the address latch 17. Thus, once the address write mode is entered, the address values are sequentially written into the address latch.

【0008】このように、第1及び第2の従来例による
と、アドレス・ラッチ回路のアドレスをデコードするこ
とが必要であるため、設定デコード回路が必要であっ
た。
As described above, according to the first and second conventional examples, since it is necessary to decode the address of the address latch circuit, the setting decoding circuit is necessary.

【0009】[0009]

【発明が解決しようとする課題】以上説明したように、
第1及び第2の従来例ではアドレス・ラッチ回路のアド
レスが必要であるため、アドレス・ラッチのアドレス・
デコード回路が必要であった。また、アドレス・ラッチ
が初期値を持たないため、周辺回路をアクセスする以前
に必ずアドレス・ラッチに値を設定する必要があった。
As described above,
In the first and second conventional examples, since the address of the address latch circuit is required, the address latch address
A decoding circuit was needed. Further, since the address latch does not have an initial value, it is necessary to set the value in the address latch before accessing the peripheral circuit.

【0010】[0010]

【課題を解決するための手段】本発明によれば、CPU
と、少なくとも一の周辺回路と、該周辺回路に対するア
ドレス変更回路と、アドレス・バスと、データ・バスと
を有するマイクロコンピュータシステムにおいて、前記
アドレス変更回路は、前記周辺回路のアドレスを保持し
アドレス・ラッチのラッチ・クロックがアクティブな場
合にはデータ・バスの値をラッチするアドレス・ラッチ
と、前記アドレス・バスの値と前記アドレス・ラッチに
保持されている値を比較するデコーダと、該デコーダの
出力信号を入力し前記CPUが出力する書き込み信号に
応じて出力先を前記周辺回路のチップ選択信号と前記ア
ドレス・ラッチのラッチ・クロックとの間で切り換える
マルチプレクサを含むことを特徴とするマイクロコンピ
ュータシステムが得られる。
According to the present invention, a CPU
In the microcomputer system having at least one peripheral circuit, an address changing circuit for the peripheral circuit, an address bus, and a data bus, the address changing circuit holds an address of the peripheral circuit and An address latch that latches the value of the data bus when the latch clock of the latch is active; a decoder that compares the value of the address bus with the value held in the address latch; A microcomputer system including a multiplexer for inputting an output signal and switching an output destination between a chip select signal of the peripheral circuit and a latch clock of the address latch according to a write signal output by the CPU. Is obtained.

【0011】また、本発明によれば、前記CPUは前記
アドレス・ラッチを初期化するリセット信号を出力する
ことを特徴とするマイクロコンピュータシステムが得ら
れる。
According to the present invention, there is also provided a microcomputer system characterized in that the CPU outputs a reset signal for initializing the address latch.

【0012】[0012]

【実施例】以下、本発明の実施例に係るマイクロコンピ
ュータシステムについて図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A microcomputer system according to an embodiment of the present invention will be described below with reference to the drawings.

【0013】本実施例に係るマイクロコンピュータシス
テムは、図1に示すように、CPU1と、周辺回路4、
5、・・・6と、各周辺回路4、5、・・・6に対する
アドレス変更回路27、28、・・・29と、アドレス
・バス2と、データ・バス3とを有する。アドレス変更
回路27、28、・・・29はそれぞれ、各周辺回路
4、5、・・・6のアドレスを保持しアドレス・ラッチ
のラッチ・クロックがアクティブな場合にはデータ・バ
ス3の値をラッチするアドレス・ラッチ16、17、・
・・18と、アドレス・バス2の値と各アドレス・ラッ
チ16、17、・・・18に保持されている値を比較す
るデコーダ10、11、・・・12と、各デコーダ1
0、11、・・・12の出力信号を入力しCPU1が出
力する書き込み信号に応じて出力先を各周辺回路4、
5、・・・6のチップ選択信号と各アドレス・ラッチ1
6、17、・・・18のラッチ・クロックとの間で切り
換えるマルチプレクサ(MPX)13、14、・・・1
5を内蔵している。また、CPU1は、アドレス・ラッ
チを初期化するリセット信号を出力するようになってい
る。
As shown in FIG. 1, the microcomputer system according to this embodiment includes a CPU 1, a peripheral circuit 4,
5, 6, address changing circuits 27, 28, ... 29 for the peripheral circuits 4, 5, .. 6, an address bus 2 and a data bus 3. The address changing circuits 27, 28, ... 29 hold the addresses of the peripheral circuits 4, 5, ... 6, respectively, and when the latch clock of the address latch is active, the value of the data bus 3 is changed. Latching address latch 16, 17, ...
.. 18, a decoder 10 for comparing the value of the address bus 2 with a value held in each address latch 16, 17, ..
The output signals of 0, 11, ... 12 are input, and the output destination is set to each peripheral circuit 4 according to the write signal output by the CPU 1.
5, 6 chip select signals and each address latch 1
Multiplexers (MPX) 13, 14, ... 1, which switch between latch clocks 6, 17 ,.
Built-in 5. Further, the CPU 1 outputs a reset signal for initializing the address latch.

【0014】このように、本実施例のマイクロコンピュ
ータシステムでは、1個の周辺回路4に対し、1個のア
ドレス変更回路27を内蔵している。アドレス変更回路
27は、この周辺回路4のアドレスを保持するアドレス
・ラッチ16とアドレス・ラッチ16の値とアドレス・
バス2の値を比較するデコーダ10と書き込み信号20
がアクティブな場合はアドレス・ラッチ書き込み信号2
1を選択し、書き込み信号20がインアクティブな場合
はチップ選択信号7を選択するMPX13を有する。
As described above, in the microcomputer system of this embodiment, one address changing circuit 27 is built in for each peripheral circuit 4. The address changing circuit 27 stores the address of the peripheral circuit 4 and the value of the address latch 16 and the address latch 16 and the address
Decoder 10 and write signal 20 for comparing the values on bus 2
Address latch write signal 2 when is active
The MPX 13 selects 1 and selects the chip select signal 7 when the write signal 20 is inactive.

【0015】次に、本実施例のマイクロコンピュータシ
ステムの動作について、図2と図3を用いて説明する。
Next, the operation of the microcomputer system of this embodiment will be described with reference to FIGS.

【0016】尚、説明の便宜上、以下周辺回路4のディ
フォルトのアドレス値をa、変更後のアドレス値をbと
する。
For convenience of explanation, the default address value of the peripheral circuit 4 will be referred to as a, and the changed address value will be referred to as b.

【0017】さて、アドレス・スレーブ・ラッチ31は
リセット機能があるのでRESET信号19が入るとア
ドレス・スレーブ・ラッチ31はあらかじめ設定された
初期値aとなる。周辺回路4のアドレス値を変更したい
場合は、書き込み信号20をアクティブとするとMPX
13がアドレス・ラッチ書き込み信号21を選択する。
次にCPU1(図1参照)が、アドレス値aに対して書
き込みを行うと、アドレス・バス2に初期値a、データ
・バス3にbがのる。アドレス・バス2にaがのること
により、デコーダ10が一致信号24を出力し、アドレ
ス・ラッチ書き込み信号21がアクティブになり、アド
レス・マスター・ラッチ30はデータ・バス3の値bを
ラッチする。次にラッチ・クロック32がアクティブに
なると、アドレス・スレーブ・ラッチ31はアドレス・
マスター・ラッチ30の値をラッチする。これで、周辺
回路4のアドレス値の変更が完了する。
Since the address slave latch 31 has a reset function, when the RESET signal 19 is input, the address slave latch 31 becomes a preset initial value a. To change the address value of the peripheral circuit 4, when the write signal 20 is activated, the MPX
13 selects the address latch write signal 21.
Next, when the CPU 1 (see FIG. 1) writes to the address value a, the initial value a is placed on the address bus 2 and b is placed on the data bus 3. When a is placed on the address bus 2, the decoder 10 outputs the coincidence signal 24, the address latch write signal 21 becomes active, and the address master latch 30 latches the value b on the data bus 3. . The next time the latch clock 32 becomes active, the address slave latch 31 will
Latch the value in master latch 30. This completes the change of the address value of the peripheral circuit 4.

【0018】以上に述べたように、周辺回路4のアドレ
ス値は任意に設定することが可能である。また、従来は
ディフォルト値を持たなかったが、アドレス・ラッチ1
6はリセット機能を持つので周辺回路4はディフォルト
のアドレス値aを持つ。この為、変更が必要な周辺回路
のアドレス値のみ変更することが可能である。
As described above, the address value of the peripheral circuit 4 can be set arbitrarily. In the past, there was no default value, but address latch 1
Since 6 has a reset function, the peripheral circuit 4 has a default address value a. Therefore, it is possible to change only the address value of the peripheral circuit that needs to be changed.

【0019】また、アドレス・マスター・ラッチ30の
アドレスを周辺回路4のアドレスと共有することで回路
を小さくすることができる。
The circuit can be made smaller by sharing the address of the address master latch 30 with the address of the peripheral circuit 4.

【0020】[0020]

【発明の効果】以上説明したように、本発明によれば、
MPX1個の追加で既存のアドレス・デコード回路を用
いて任意のアドレス値を周辺回路に割り当てることがで
きる。
As described above, according to the present invention,
With the addition of one MPX, any address value can be assigned to the peripheral circuit using the existing address decoding circuit.

【0021】よって、本発明によれば、柔軟な周辺アド
レス指定機能を有するマイクロコンピュータシステムを
提供し得る。
Therefore, according to the present invention, it is possible to provide a microcomputer system having a flexible peripheral addressing function.

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

【図1】本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】本発明の実施例の詳細なブロック図である。FIG. 2 is a detailed block diagram of an embodiment of the present invention.

【図3】本発明の実施例のタイミングチャートを示す図
である。
FIG. 3 is a diagram showing a timing chart of the embodiment of the invention.

【図4】第1の従来例のブロック図である。FIG. 4 is a block diagram of a first conventional example.

【図5】第2の従来例のブロック図である。FIG. 5 is a block diagram of a second conventional example.

【符号の説明】[Explanation of symbols]

1 CPU 2 アドレス・バス 3 データ・バス 4,5,6 周辺回路 7,8,9 チップ選択信号(CS) 10,11,12 アドレス・デコーダ 13,14,15 MPX 16,17,18 アドレス・ラッチ 19 リセット信号 20 書き込み信号 21,22,23 アドレス・ラッチのラッチ信号 24,25,26 一致信号 27,28,29 アドレス変更回路 30 アドレス・マスター・ラッチ 31 アドレス・スレーブ・ラッチ 32 ラッチ・クロック 50,51,52 比較回路 53,54,55,56,57,58 アドレス・ラ
ッチ 60,61 F/F 62 設定デコーダ 63,64 書き込み信号 65 アドレス設定信号 70,71,72 設定デコーダ
1 CPU 2 Address Bus 3 Data Bus 4, 5, 6 Peripheral Circuits 7, 8, 9 Chip Select Signal (CS) 10, 11, 12 Address Decoder 13, 14, 15 MPX 16, 17, 18 Address Latch 19 reset signal 20 write signal 21,22,23 address latch latch signal 24,25,26 match signal 27,28,29 address change circuit 30 address master latch 31 address slave latch 32 latch clock 50, 51,52 comparator circuit 53,54,55,56,57,58 address latch 60,61 F / F 62 setting decoder 63,64 write signal 65 address setting signal 70,71,72 setting decoder

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、少なくとも一の周辺回路と、
該周辺回路に対するアドレス変更回路と、アドレス・バ
スと、データ・バスとを有するマイクロコンピュータシ
ステムにおいて、前記アドレス変更回路は、前記周辺回
路のアドレスを保持しアドレス・ラッチのラッチ・クロ
ックがアクティブな場合にはデータ・バスの値をラッチ
するアドレス・ラッチと、前記アドレス・バスの値と前
記アドレス・ラッチに保持されている値を比較するデコ
ーダと、該デコーダの出力信号を入力し前記CPUが出
力する書き込み信号に応じて出力先を前記周辺回路のチ
ップ選択信号と前記アドレス・ラッチのラッチ・クロッ
クとの間で切り換えるマルチプレクサを含むことを特徴
とするマイクロコンピュータシステム。
1. A CPU and at least one peripheral circuit,
In a microcomputer system having an address changing circuit for the peripheral circuit, an address bus, and a data bus, the address changing circuit holds the address of the peripheral circuit and the latch clock of the address latch is active. An address latch for latching the value of the data bus, a decoder for comparing the value of the address bus with the value held in the address latch, and an output signal of the decoder are input and output by the CPU. A microcomputer system including a multiplexer for switching an output destination between a chip select signal of the peripheral circuit and a latch clock of the address latch according to a write signal to be performed.
【請求項2】 請求項1記載のマイクロコンピュータシ
ステムにおいて、前記CPUは前記アドレス・ラッチを
初期化するリセット信号を出力することを特徴とするマ
イクロコンピュータシステム。
2. The microcomputer system according to claim 1, wherein the CPU outputs a reset signal for initializing the address latch.
JP31932493A 1993-12-20 1993-12-20 Microcomputer system Pending JPH07175748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31932493A JPH07175748A (en) 1993-12-20 1993-12-20 Microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31932493A JPH07175748A (en) 1993-12-20 1993-12-20 Microcomputer system

Publications (1)

Publication Number Publication Date
JPH07175748A true JPH07175748A (en) 1995-07-14

Family

ID=18108925

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31932493A Pending JPH07175748A (en) 1993-12-20 1993-12-20 Microcomputer system

Country Status (1)

Country Link
JP (1) JPH07175748A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62254255A (en) * 1986-04-28 1987-11-06 Mitsubishi Electric Corp Input/output control circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62254255A (en) * 1986-04-28 1987-11-06 Mitsubishi Electric Corp Input/output control circuit

Similar Documents

Publication Publication Date Title
JPH0612863A (en) Dual port dram
US6601130B1 (en) Memory interface unit with programmable strobes to select different memory devices
KR100377708B1 (en) Semiconductor memory device employing pipeline operation with reduced power consumption
JPH07175748A (en) Microcomputer system
JPH1139212A (en) Microcomputer
JPH07191905A (en) Information processor
JPH1166031A (en) Integrated timer for microcomputer
JPH05166391A (en) Memory device
JPH08255034A (en) Low power consumption type data processor
JP3283505B2 (en) Microcomputer
JPH01263819A (en) Integrated circuit
JPH0520474A (en) One chip microcomputer
JPH02136921A (en) Register access system
JP2000132491A (en) Method and system for device control
JPH11316626A (en) Microcontroller
JPH07120938B2 (en) Pulse output device
JPH1083384A (en) Microcomputer
JPS6182253A (en) Memory bank switching system
JPH09325935A (en) Bus switching circuit
JPH11102340A (en) Processor system and bus access method therefor
JPH09311849A (en) One-chip microcomputer
JPH03191486A (en) Microcomputer
JPH0314145A (en) Memory access circuit
JPH0245843A (en) Register and memory switching circuit
JPH0756883A (en) Microcomputer device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19960924