JPS62241037A - Microcomputer - Google Patents
MicrocomputerInfo
- Publication number
- JPS62241037A JPS62241037A JP61084556A JP8455686A JPS62241037A JP S62241037 A JPS62241037 A JP S62241037A JP 61084556 A JP61084556 A JP 61084556A JP 8455686 A JP8455686 A JP 8455686A JP S62241037 A JPS62241037 A JP S62241037A
- Authority
- JP
- Japan
- Prior art keywords
- output
- decoder
- rom
- incrementer
- bus
- 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
- 238000012360 testing method Methods 0.000 abstract description 16
- 238000010586 diagram Methods 0.000 description 6
- 241000272201 Columbiformes Species 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000013517 stratification Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明はワンチップマイクロコンピュータ:二関し、
特(二七の試験のため(ニメモリの内容を読出すための
手段に関するものである。[Detailed Description of the Invention] [Industrial Application Field] This invention relates to a one-chip microcomputer:
Particularly concerned with the means for reading out the contents of memory (for the 27th test).
第2図は従来のマイクロコンピュータの構成ヲ示スブロ
ック図で、図1=おいて(1)は工/O(入出力装置)
、(2)はI/Oにデコーダ(入出力装置へアクセスす
るアドレス信号のデコーダ)、+31はRAM(ランダ
ムアクセスメモリ)、+41はRAMデコーダ(RAM
へアクセスするアドレス信号のデコーダ) 、151ハ
ROM(読出し専用メモリ)、(6)はROMデコーダ
(ROMへアクセスするアドレス信号のデコーダ)、(
7)はCPU (中央処理装置)、181はプログラム
カウンタ、(13)は共通のアドレスバス、(i”i)
は共通のデータバスである。以下の説明では題(5)は
プログラムメモリとして用いられ、RAM+31はデー
タメモリとして用いられるとする。Figure 2 is a block diagram showing the configuration of a conventional microcomputer. In Figure 1, (1) is an input/output device.
, (2) is an I/O decoder (a decoder for address signals accessing input/output devices), +31 is a RAM (random access memory), and +41 is a RAM decoder (RAM
151 is a ROM (read-only memory), (6) is a ROM decoder (a decoder for address signals that access the ROM), (
7) is a CPU (central processing unit), 181 is a program counter, (13) is a common address bus, (i”i)
is a common data bus. In the following explanation, it is assumed that the item (5) is used as a program memory and the RAM+31 is used as a data memory.
次(二このマイクロコンピュータの動作について説明す
る。第3図は第2図の装置の動作を説明するため信号の
流れを付記したブロック図であり、第2図と同一符号は
同一部分を示す。Next, the operation of this microcomputer will be explained. FIG. 3 is a block diagram with signal flows added to explain the operation of the device shown in FIG. 2, and the same reference numerals as in FIG. 2 indicate the same parts.
プログラムカウンタ(8)の内容の数値はCPU +7
1の制御によって順次変化するが、ある時点l:おける
出力がaであるとする。aがアドレス信号とじて共通の
アドレスバス(13)上(二送出される。共通のアドレ
スバス(13)上の信号はI/Oデコーダ(2)、RA
Mデコーダ(4)、ROMデコーダ(6)に並列に入力
されるが、そのアドレス信号ではROM +51が指定
されているので鳩デコーダ(6)だけがこれを取り入れ
てデコードしROMl51の指定された番地たとえばA
番地から命令文すを読出す。この命令文すはCPU(7
)で解釈され、これはRAM f3)のD番地のデータ
を読出してアキュムレータ(汎用アキュムレータでCP
U +71内l:設けられる)(二書込めという命令で
あったとする。CPU +71は信号Cによってプログ
ラムカウンタ(8)を制御し、アドレス信号dを共通の
アドレスバス(13)上::送出する。アドレス信号d
はRAMデコーダ(4)でデコードされてRAM 13
)のD番地にアクセスし、そこ(:記憶されているデー
タを信号eとして共通のデータバス(14)上に読出し
、CPU 17+のアキュムレータ(−書込む。The value of the program counter (8) is CPU +7
Suppose that the output at a certain point l: is a, although it changes sequentially under the control of step 1. a is sent out on the common address bus (13) as an address signal.The signal on the common address bus (13) is sent to the I/O decoder (2), RA
It is input to the M decoder (4) and the ROM decoder (6) in parallel, but since the address signal specifies ROM +51, only the pigeon decoder (6) takes this in and decodes it, and reads the specified address of ROM151. For example, A
Reads the command from the address. This instruction statement is CPU (7
), this reads the data at address D of RAM f3) and stores it in the accumulator (general-purpose accumulator).
Assume that the instruction is to write 2 (L in U +71) (provided).CPU +71 controls the program counter (8) by signal C, and sends address signal d on the common address bus (13). .address signal d
is decoded by the RAM decoder (4) and stored in RAM 13
), the data stored there (: is read out as a signal e onto the common data bus (14), and written into the accumulator (-) of the CPU 17+.
次に、CPU +71からの信号fの制御(二よってプ
ログラムカウンタ(8)はアドレス信号gを読出し、信
号gはROMデコーダ(6)でデコードされflf51
の指定された番地たとえばG番地から命令文りを読出す
。命令文りはCPU +71で解釈され、これはアキュ
ムレータのデータをl/OfllのJ番地に書込む命令
であったとする。CPU +71は信号i(二よってプ
ログラムカウンタ(8)を制御してアドレス信号jを共
通のアドレスバス(13)上に出力し、アキュムレータ
の内容を信号にとして共通のデータバス(14)上(ユ
送出する。共通のデータバス(14)上の信号にはIl
o +11と助M(3)とROM +531ニ一並列に
入力されるが、アドレス信号jによって定められるI/
O(1)のJ番地に書込まれる。Next, the control of the signal f from the CPU +71 causes the program counter (8) to read out the address signal g, and the signal g is decoded by the ROM decoder (6) and flf51
The instruction text is read from the specified address, for example, address G. The instruction text is interpreted by CPU +71, and it is assumed that this is an instruction to write accumulator data to address J of l/Ofll. The CPU +71 controls the program counter (8) by the signal i (2), outputs the address signal j onto the common address bus (13), and uses the contents of the accumulator as a signal to output the address signal j onto the common data bus (14). The signals on the common data bus (14)
o +11, auxiliary M(3), and ROM +531 are input in parallel, but I/
Written to address J of O(1).
従来のマイクロコンピュータは以上の様に構成されてい
るので、RAM、、 k?DM等の記憶内容を連続的に
読出してテストするような場合、CPUを介して読出し
制御を行わなければならず、メモリの容量が増大するに
つれて、メモリテストに要する時間が長くなるという問
題点があった。Conventional microcomputers are configured as described above, so RAM, k? When testing by continuously reading out the memory contents of a DM, etc., the reading must be controlled via the CPU, and as the memory capacity increases, the time required for memory testing becomes longer. there were.
この発明は上記のような問題点を解決するためになされ
たもので、CPUを介することなく、メモリを順次読出
すことができてメモリテストに必要な時間を短縮するこ
とができるマイクロコンピュータを得ることを目的とす
る。This invention was made in order to solve the above-mentioned problems, and provides a microcomputer that can read out memory sequentially without using a CPU, thereby shortening the time required for memory testing. The purpose is to
この発明の装置では、CPUに制御されず(二マイクロ
コンピュータの内部クロックに同期してインクリメント
するカウンタを有するインクリメンタと、共通のデータ
バス上のデータをすべて特定のvO1二人力するよう制
御するVOコントロールとを設け、メモリテストを行う
テストモードではインクリメンタの出力がアドレス信号
として共通のアドレスバス上(二重力され、メモリから
11111次続出されたデータは共通のデータバスを経
て上記特定のI/Oに入力されるよう制御した。In the device of this invention, there is an incrementer which is not controlled by the CPU (two) having a counter that increments in synchronization with the internal clock of the microcomputer, and a VO which controls all the data on a common data bus to be input to a specific vO1. In the test mode in which a memory test is performed, the output of the incrementer is input as an address signal on a common address bus (double input, and the data successively outputted from the memory 11111 times is sent to the specific I/O bus via the common data bus). It was controlled so that it was input to O.
CPUを介することな(、順次メモリから読出して特定
のIlo E入力することができるので、メモリテスト
の時間を短縮することができる。Since it is possible to sequentially read from the memory and input a specific IloE without going through the CPU, the time for memory testing can be shortened.
以下この発明の実施例を図面について説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図はこの発明の一実施例を示すブロック図であって
、図(−おいて第2図と四−符号は同−又は相当部分を
示し、(9)はインクリメンタ、(/O)はI/Oコン
トロール、(11) 、 (12)は切換装置である。FIG. 1 is a block diagram showing an embodiment of the present invention. is an I/O control, and (11) and (12) are switching devices.
インクリメンタ(9)は初期値として所定の数をプリセ
ットすることができ、このマイクロコンピュータの内部
クロックに同期して計数内容が1ずつ増加するカウンタ
な備えており、I/Oコントロール(lO)はCPU(
7)の命令によらずに共通のデータバス(14)上の信
号をVOl二人力するよう制御する。The incrementer (9) can be preset to a predetermined number as an initial value, and is equipped with a counter whose count increases by 1 in synchronization with the internal clock of this microcomputer. CPU (
7) The signal on the common data bus (14) is controlled to be outputted to both VOl without depending on the command.
切換装置f (11)、(12)は、たとえば、プログ
ラム制御によって動作し、テストモードフラグというよ
うなフラグC二輪理rlJがセットされるとテストモー
ド(二人り、論理「0」がセットされているときは普通
の動作をする。普通の動作では切換装置(12)はオフ
となりI/Oコントロール(lのによる制御はオフとな
って、第1図::示す装置は第2図に示す装置と同様C
二動作する。The switching devices f (11) and (12) operate under program control, for example, and when a flag C two wheel rlJ, such as a test mode flag, is set, a test mode (two people, logic "0" is set) is set. During normal operation, the switching device (12) is turned off and the I/O control (12) is turned off. Same as device C
Two works.
テストモードになると切換装置(11)はオフとなり(
工2)はオンとなりVO(13の制御はvOデコーダか
ら切り離されてI/Oコントロール(/O) l二うつ
され、I/Oコントロール(lO〕はl/Oil+とデ
ータバス(14)とを接続する。インクリメンタ(9)
のカウンタには初期値として所定の値がセットされた後
、このシステムの内部クロックに同期して数値1が順次
加算される。When the test mode is entered, the switching device (11) is turned off (
2) is turned on, and the control of VO (13) is separated from the vO decoder and transferred to the I/O control (/O), and the I/O control (1O) connects l/Oil+ and the data bus (14). Connect.Incrementer (9)
After a predetermined value is set as an initial value in the counter, the numerical value 1 is sequentially added in synchronization with the internal clock of this system.
インクリメンタ(9)の出力は切換装置(12)を経て
アドレスバス(13)上にアドレス信号として与えられ
、第1図シ:示す実施例ではこのアドレス信号はROM
デコーダ(6)によりデコードされROM+51に格納
されているプログラムを順次続出してゆく。胱出された
プログラムはデータバスを経てI/1) tl)に順次
入力して記憶される。Ilo +1)がたとえばキャラ
クタディスプレイを持っているとすると胱出したROM
+51の内容をIlo ill E 表示することが
できる。The output of the incrementer (9) is applied via a switching device (12) to an address bus (13) as an address signal; in the embodiment shown in FIG.
The programs decoded by the decoder (6) and stored in the ROM+51 are sequentially output. The output programs are sequentially input to the I/1) via the data bus and stored. For example, if Ilo +1) has a character display, the ROM that comes out of the bladder
The contents of +51 can be displayed as Ilo ill E.
なお、上記実施例ではkIDM151の内容を読出すテ
ストの場合について説明したが、シ巴の胱出しく二つい
ても同様であり、胱出しにおいてたとえばパリティ検査
を行う場合は、そのパリティ検査の結果により良否の判
定を行うことができる。In the above embodiment, the case of a test to read out the contents of the kIDM 151 has been described, but the same applies even if two or more bladders are exposed.If a parity check is performed during the bladder extraction, for example, the results of the parity check will be used. It is possible to judge whether it is good or bad.
以上のよう(二この発明によれば、テストモードではC
PUの制御を離れて、ROM 、 RAMの内容を順次
読出してIlo l二人力することができるよう:二し
たので、マイクロコンピュータにおけるROM、RAM
のテストに必要な時間を大幅(二短縮することができる
。As described above (2) According to this invention, in the test mode, C
Apart from the control of the PU, the contents of the ROM and RAM can be sequentially read out by two people.
The time required for testing can be significantly reduced (2).
第1図はこの発明の一実施例を示すブロック図、第2図
は従来の装置を示すブロック図、第3図)よ第2図の装
置に信号の流れを付記したブロック図である。
IllはI/Oに、(2)はVOデコーダ、(3)はシ
、M、+4)は〜巴デコーダ、(5)は成層、(61は
以肩デコーダ、(7)はCPU、 181はプログラム
カウンタ、(9)はインクリメンタ、(/O) )t
Ilo :27 ) 0−/L/、(11)、(12)
ハ切換装置、(+3)は共通のアドレスバス、(14
)は共通のデータバス。
尚、各図中同一符号は同−又は相当部分を示す。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing a conventional device, and FIG. 3 is a block diagram of the device shown in FIG. 2 with signal flows added. Ill is I/O, (2) is VO decoder, (3) is Shi, M, +4) is ~Tomoe decoder, (5) is stratification, (61 is shoulder decoder, (7) is CPU, 181 is Program counter, (9) is incrementer, (/O) )t
Ilo:27) 0-/L/, (11), (12)
C switching device, (+3) is a common address bus, (14
) is a common data bus. Note that the same reference numerals in each figure indicate the same or corresponding parts.
Claims (1)
AM)、読出し専用メモリ(ROM)、及び入出力装置
(I/O)が共通のデータバスを介して相互にデータの
入出力を行うマイクロコンピュータにおいて、CPUか
ら共通のアドレスバス上にアドレス信号を送出するプロ
グラムカウンタ、 RAM、ROM、及びI/Oにアクセスするため上記共
通のアドレスバス上のアドレス信号をそれぞれデコード
するRAMデコーダ、ROMデコーダ、及びI/Oデコ
ーダ、 所定の数値が初期値として設定され、このマイクロコン
ピュータの内部クロックと同期して数値1が加算される
カウンタを有し、このカウンタの内容が上記内部クロッ
クと同期して上記共通のアドレスバス上にアドレス信号
として出力されるインクリメンタ、 CPUからの命令に関係なく上記共通のデータバス上の
信号をI/Oに入力するよう制御するI/Oコントロー
ル、 上記プログラムカウンタの出力又は上記インクリメンタ
の出力のいずれか一方を上記共通のアドレスバス上に出
力すると共に、上記プログラムカウンタの出力が上記共
通のアドレスバス上に出力されるときは上記I/Oデコ
ーダによりI/Oを制御し、上記インクリメンタの出力
が上記共通のアドレスバス上に出力されるときは上記I
/OにコントロールによりI/Oを制御するように切換
える切換装置、 を備えたことを特徴とするマイクロコンピュータ。[Claims] Central processing unit (CPU), random access memory (R
In a microcomputer in which a read-only memory (ROM), a read-only memory (ROM), and an input/output device (I/O) mutually input and output data via a common data bus, an address signal is sent from the CPU onto a common address bus. A program counter to send, a RAM decoder, a ROM decoder, and an I/O decoder that decode the address signals on the common address bus mentioned above to access the RAM, ROM, and I/O, and predetermined numerical values are set as initial values. an incrementer that has a counter that is incremented by a value of 1 in synchronization with the internal clock of the microcomputer, and the contents of this counter are output as an address signal on the common address bus in synchronization with the internal clock; , an I/O control that controls signals on the common data bus to be input to the I/O regardless of instructions from the CPU; When the output of the program counter is output on the common address bus, the I/O decoder controls the I/O, and the output of the incrementer is output on the common address bus. When the output is above, the above I
A microcomputer comprising: a switching device that switches the I/O to be controlled by the I/O control.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61084556A JPS62241037A (en) | 1986-04-11 | 1986-04-11 | Microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61084556A JPS62241037A (en) | 1986-04-11 | 1986-04-11 | Microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62241037A true JPS62241037A (en) | 1987-10-21 |
Family
ID=13833917
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61084556A Pending JPS62241037A (en) | 1986-04-11 | 1986-04-11 | Microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62241037A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0272500U (en) * | 1988-11-17 | 1990-06-01 |
-
1986
- 1986-04-11 JP JP61084556A patent/JPS62241037A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0272500U (en) * | 1988-11-17 | 1990-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0430053B2 (en) | ||
JPS6298437A (en) | Microcomputer | |
SU1686449A2 (en) | Addressing device | |
JPS62241037A (en) | Microcomputer | |
JPS6250944A (en) | Loading system for micro program | |
JPS5878233A (en) | Microprogram controller | |
JPS5875203A (en) | Sequence controller of double structure | |
KR930023847A (en) | Parallel processor system | |
JPH03144705A (en) | Operation state monitor for programmable controller | |
JPH0486932A (en) | Memory fault detecting system | |
JPS62103738A (en) | Programmable controller | |
JPH0399326A (en) | Microprogram loading method, loading controller, information processor, and information processing system | |
JPH0368041A (en) | Data processor | |
JPH01116737A (en) | Power source controller | |
JPS62293452A (en) | Memory ic diagnosing circuit | |
JPS62235663A (en) | Memory device | |
JPH01162944A (en) | Self-diagnostic system | |
JPS62243040A (en) | Detecting system for runaway of program | |
JPH0212426A (en) | Central arithmetic processing device | |
JPH05108499A (en) | Memory testing system | |
JPS63629A (en) | Data processing system | |
JPH04340119A (en) | Information processor | |
JPH02135540A (en) | Method for testing data processor | |
JPH03196231A (en) | Information processor | |
JPH03129536A (en) | Brake address detecting device |