JPH0760401B2 - Single-chip microcomputer for evaluation - Google Patents

Single-chip microcomputer for evaluation

Info

Publication number
JPH0760401B2
JPH0760401B2 JP62320511A JP32051187A JPH0760401B2 JP H0760401 B2 JPH0760401 B2 JP H0760401B2 JP 62320511 A JP62320511 A JP 62320511A JP 32051187 A JP32051187 A JP 32051187A JP H0760401 B2 JPH0760401 B2 JP H0760401B2
Authority
JP
Japan
Prior art keywords
interrupt
signal
privileged
output
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.)
Expired - Fee Related
Application number
JP62320511A
Other languages
Japanese (ja)
Other versions
JPH01161541A (en
Inventor
聡 池井
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 JP62320511A priority Critical patent/JPH0760401B2/en
Publication of JPH01161541A publication Critical patent/JPH01161541A/en
Publication of JPH0760401B2 publication Critical patent/JPH0760401B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は特権割込み入力端子を有する評価用シングルチ
ップマイクロコンピュータに関する。
The present invention relates to an evaluation single-chip microcomputer having a privileged interrupt input terminal.

〔従来の技術〕[Conventional technology]

評価用シングルチップマイクロコンピュータは、ユーザ
プログラム実行中に、ある特定の条件でユーザプログラ
ムを一時中断し、デバッグ用特権割込み処理を行うため
評価用特権割込み入力端子を持っている。つまり、この
評価用特権割込み入力端子に有効信号を入力すること
で、ユーザプログラムを中断し、割込み処理を行いデバ
ッグ用割込み処理プログラムを実行することができる。
The evaluation single-chip microcomputer has an evaluation privilege interrupt input terminal for temporarily interrupting the user program under a specific condition during execution of the user program and performing a privilege interrupt process for debugging. That is, by inputting a valid signal to the evaluation privileged interrupt input terminal, the user program can be interrupted, interrupt processing can be performed, and the debug interrupt processing program can be executed.

通常、デバッグ用割込み処理プログラムは、ユーザプロ
グラム空間とは別のデバッグ用メモリ空間にマッピング
されている。したがって、特権割込み要求が生じた場
合、その時点での実行中のユーザプログラムの処理が終
り、実際にCPU部でその割込み要求が受け付けられた時
点でメモリをユーザメモリからデバッグ用メモリへ切替
え、デバッグ用メモリ上の割込み処理プログラムを実行
する。このため、特権割込み要求受付け時および割込み
処理中アクティブレベルを保つ信号をチップ外部で作成
し、この信号を用いてユーザメモリとデバッグ用メモリ
の切替を行っている。
Normally, the debug interrupt processing program is mapped in a debug memory space different from the user program space. Therefore, when a privileged interrupt request occurs, the processing of the user program being executed at that time ends, and when the CPU actually accepts the interrupt request, the memory is switched from the user memory to the debug memory and the debug Execute the interrupt processing program on the memory. Therefore, a signal for maintaining an active level at the time of accepting a privileged interrupt request and during interrupt processing is created outside the chip, and this signal is used to switch between the user memory and the debug memory.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述した従来の評価用シングルチップマイクロコンピュ
ータは、特権割込み要求に対して、実際にCPU部でその
割込み要求を受け付け、特権割込み処理状態にあること
を示すタイミング信号を持っていないので、チップ外部
で同機能を持つ信号を作成し、この信号を用いてユーザ
メモリとデバッグ用メモリとの切替えをしなければなら
ないという欠点がある。
The conventional single-chip microcomputer for evaluation described above does not have a timing signal indicating that it is in the privileged interrupt processing state in response to the privileged interrupt request, and the CPU unit actually accepts the interrupt request. There is a drawback that a signal having the same function must be created and the user memory and the debug memory must be switched using this signal.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の評価用シングルチップマイクロコンピュータ
は、プロセッサユニットが特権割込み処理中アクティブ
レベルを保つ信号あるいは特権割込み受付時および特権
割込み処理からの復帰後にそれぞれ1回、一定パルス幅
を持ったアクティブレベルのタイミング信号を発生し、
該評価用シングルチップマイクロコンピュータ外部に出
力する回路を有している。
The single-chip microcomputer for evaluation according to the present invention is provided with a signal that the processor unit keeps the active level during the privileged interrupt processing, or once when the privileged interrupt is accepted and once after the recovery from the privileged interrupt processing. Generate a signal,
It has a circuit for outputting to the outside of the evaluation single-chip microcomputer.

〔作用〕[Action]

前記信号を特権割込み用メモリバンク切替信号として使
用することで特権割込み時メモリをユーザメモリからデ
バッグ用メモリへ切替えることができるため、従来必要
だった外部回路を省略できる。
By using the signal as the privilege interrupt memory bank switching signal, the memory at the privilege interrupt time can be switched from the user memory to the debug memory, so that an external circuit which is conventionally required can be omitted.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の評価用シングルチップマイクロコンピ
ュータの第1の実施例の一部分を示すブロック図、第2
図はその動作を示すタイミングチャートである。
FIG. 1 is a block diagram showing a part of a first embodiment of a single chip microcomputer for evaluation of the present invention, and FIG.
The figure is a timing chart showing the operation.

リセット信号1は、チップ外部より入力する負論理の内
部回路の初期化信号である。特権割込み入力信号2は、
外部より入力する負論理の特権割込み要求信号である。
特権割込み出力信号3は、特権割込み処理中に、負論理
アクティブレベルを示す外部への出力信号である。割込
みコントロールユニット6は割込みの優先判別を行い、
プロセッサユニット10に対して割込み要求信号の出力ま
たプロセッサユニット10からの割込み受付け信号の入
力、割込み受付信号8の出力などのコントロールを行う
ユニットである。割込み復帰命令終了信号7は、命令フ
ェッチユニット32から入力した割込み復帰命令を命令デ
コーダユニット31でデコードしプロセッサユニット10で
実行し、命令処理が終了したタイミングで出力する負論
理のタイミング信号である。D−FF4は特権割込み入力
信号2の反転信号をクロッカ入力、リセット信号1また
は書込み受付信号8をプリセットとし、Q出力より割込
み要求信号9を出力する。D−FF5はD−FF4のQ出力を
クロッカ入力、リセット信号1または割込み受付信号8
をプリセット入力とし、Q出力より特権割込み出力信号
3を出力する。
The reset signal 1 is an initialization signal for a negative logic internal circuit input from outside the chip. The privileged interrupt input signal 2 is
This is a negative logic privileged interrupt request signal input from the outside.
The privileged interrupt output signal 3 is an external output signal indicating a negative logic active level during the privileged interrupt processing. The interrupt control unit 6 determines the priority of the interrupt,
This is a unit that controls the output of an interrupt request signal to the processor unit 10, the input of an interrupt acceptance signal from the processor unit 10 and the output of an interrupt acceptance signal 8. The interrupt return instruction end signal 7 is a negative logic timing signal output at the timing when the instruction return unit input from the instruction fetch unit 32 is decoded by the instruction decoder unit 31 and executed by the processor unit 10, and the instruction processing is completed. The D-FF 4 uses the inverted signal of the privileged interrupt input signal 2 as a clock input, the reset signal 1 or the write acceptance signal 8 as a preset, and outputs an interrupt request signal 9 from the Q output. D-FF5 inputs the Q output of D-FF4 to the clocker, reset signal 1 or interrupt acceptance signal 8
Is used as a preset input, and the privileged interrupt output signal 3 is output from the Q output.

次に、本実施例の動作について第2図のタイミングチャ
ートを参照して説明する。
Next, the operation of this embodiment will be described with reference to the timing chart of FIG.

リセット信号1が、時刻t1に外部からのリセット動作に
よりアクティブ(ロウ)レベルとなると、D−FF4およ
びD−FF5がそれぞれ初期化され、Q出力がハイレベル
となる。D−FF5の出力が特権割込み出力信号3となっ
ているので、特権割込み出力信号3はハイレベルに初期
化される。特権割込み入力信号2が時刻t2にアクティブ
(ロウ)レベルとなると、その前縁で、D−FF4は、ロ
ウレベルのデータをラッチしQ出力に出力する。このQ
出力は、割込みコントロールユニット6へ割込み要求信
号9として入力される。割込みコントロールユニット6
では、プロセッサユニット10に対して割込み要求信号を
出力し、適当なタイミング(時刻t3)で出力されるプロ
セッサユニット10からの割込み受付信号を割込み受付信
号8として出力する。割込みコントロールユニット6よ
り出力された割込み受付信号8は、D−FF4のプリセッ
ト端子PRTをアクティブとし、Q出力を再びハイレベル
へ戻す。この時のQ出力の立上がりエッヂで、D−FF5
はロウレベル信号をラッチし、Q出力、即ち、特権割込
み出力信号3をアクティブロウレベルとする。
When the reset signal 1 becomes active (low) level by the external reset operation at the time t 1 , D-FF4 and D-FF5 are initialized respectively, and the Q output becomes high level. Since the output of D-FF5 is the privileged interrupt output signal 3, the privileged interrupt output signal 3 is initialized to the high level. When privileges interrupt input signal 2 becomes active (low) level to the time t 2, the at its front edge, D-FF4 outputs the Q output latches a low-level data. This Q
The output is input to the interrupt control unit 6 as an interrupt request signal 9. Interrupt control unit 6
Then, the interrupt request signal is output to the processor unit 10, and the interrupt acceptance signal from the processor unit 10 output at an appropriate timing (time t 3 ) is output as the interrupt acceptance signal 8. The interrupt acceptance signal 8 output from the interrupt control unit 6 activates the preset terminal PRT of D-FF4 and returns the Q output to the high level again. At the rising edge of Q output at this time, D-FF5
Latches the low level signal and outputs Q, that is, the privileged interrupt output signal 3 to the active low level.

次に、割込み処理中、割込み処理を終了するために、割
込み復帰命令をプロセッサユニット10が実行すると、そ
の命令の終了と同時に時刻t4に割込み復帰命令終了信号
7をアクティブ(ロウ)レベルとする。終了信号7はD
−FF5のプリセット端子PRTをアクティブとし、Q出力、
即ち特権割込み出力信号3を再びハイレベルに戻す。
Next, during the interrupt processing, when the processor unit 10 executes an interrupt return instruction to end the interrupt processing, the interrupt return instruction end signal 7 is set to active (low) level at time t 4 at the same time as the end of the instruction. . End signal 7 is D
-Activate the preset terminal PRT of FF5, output Q,
That is, the privileged interrupt output signal 3 is returned to the high level again.

以上説明したように、本実施例による特権割込み出力信
号3は、プロセッサユニット10が特権割込み処理中アク
ティブ(ロウ)レベルを保つ機能を有する。
As described above, the privileged interrupt output signal 3 according to the present embodiment has the function of keeping the active (low) level during the processing of the privileged interrupt by the processor unit 10.

次に、本特権割込み出力信号3を用いて、特権割込み処
理時、メモリをユーザメモリからデバッグ用メモリへ切
替える動作シーケンスについて説明する。
Next, the operation sequence for switching the memory from the user memory to the debug memory during the privileged interrupt processing by using the privileged interrupt output signal 3 will be described.

第3図は第1図で示した評価用シングルチップマイクロ
コンピュータのメモリバンク切替動作を説明するための
図である。
FIG. 3 is a diagram for explaining the memory bank switching operation of the evaluation single-chip microcomputer shown in FIG.

評価用シングルチップマイクロコンピュータ11は、ユー
ザプログラム用メモリ12とデバッグプログラム用メモリ
13とアドレス/データマルチプレックスバスとステータ
スバスで接続され、さらに特権割込み要因発生回路16と
接続されている。ユーザプログラム用メモリ12、デバッ
グプログラム用メモリ13はそれぞれメモリチップセレク
ト端子19,20を有している。評価用シングルチップマイ
クロコンピュータ11は、評価用特権割込み入力端子15と
特権割込み信号出力端子14を持っており、通常、ユーザ
プログラム用メモリ12にマッピングされたユーザプログ
ラムを実行する。ユーザプログラム実行中、特権割込み
要因発生回路16より特権割込み入力信号2が出力され、
評価用特権割込み入力端子15に有効信号が入力される
と、評価用シングルチップマイクロコンピュータ11は、
現在、処理中のユーザ命令の終了後、適当なタイミング
で特権割込み処理を行う。ユーザプログラム実行状態か
ら特権割込み処理状態にCUP動作が切り替わるタイミン
グで、アクティブレベルロウの特権割込み出力信号3を
出力端子14から出力する。特権割込み出力信号3は前述
の様に特権割込み処理中は、アクティブレベルを保ち、
評価用シングルチップマイクロコンピュータ11が割込み
処理中割込み復帰命令を実行することにより、割込み処
理から復帰し、再びユーザプログラム実行状態へ切り替
わるタイミングで特権割込み出力信号3はインアクティ
ブ状態になる。このように評価用シングルチップマイク
ロコンピュータ11が特権割込み処理状態にある時のみ、
アクティブとなる特権割込み出力信号3を有することに
より、この信号をメモリのバンク切替信号として使用す
る。
The evaluation single-chip microcomputer 11 includes a user program memory 12 and a debug program memory.
13 is connected to the address / data multiplex bus and the status bus, and is further connected to the privileged interrupt factor generation circuit 16. The user program memory 12 and the debug program memory 13 have memory chip select terminals 19 and 20, respectively. The evaluation single-chip microcomputer 11 has the evaluation privileged interrupt input terminal 15 and the privileged interrupt signal output terminal 14, and normally executes the user program mapped in the user program memory 12. During execution of the user program, the privileged interrupt input signal 2 is output from the privileged interrupt factor generation circuit 16,
When a valid signal is input to the evaluation privileged interrupt input terminal 15, the evaluation single-chip microcomputer 11
After the end of the user instruction currently being processed, privileged interrupt processing is performed at an appropriate timing. At the timing when the CUP operation switches from the user program execution state to the privileged interrupt processing state, the active level low privileged interrupt output signal 3 is output from the output terminal 14. As described above, the privileged interrupt output signal 3 maintains the active level during the privileged interrupt processing,
When the evaluation single-chip microcomputer 11 executes the interrupt return instruction during interrupt processing, the privileged interrupt output signal 3 becomes inactive at the timing of returning from interrupt processing and switching to the user program execution state again. Thus, only when the evaluation single-chip microcomputer 11 is in the privileged interrupt processing state,
By having the privileged interrupt output signal 3 which becomes active, this signal is used as the bank switching signal of the memory.

第4図は特権割込み入力信号2が評価用特権割込み入力
端子15に入力された後の前述の一連の動作シーケンスを
信号2,3およびプロセッサユニット10の動作、メモリマ
ップについて表わしたものである。特権割込み出力信号
3をユーザプログラム用メモリ12およびデバッグプログ
ラム用メモリ13のチップセレクト端子19および20に入力
することになり、ユーザプログラム実行時は、ユーザプ
ログラム用メモリ12を選択し、特権割込み処理時は、デ
バッグプログラム用メモリ13を選択することができる。
FIG. 4 shows the above-described series of operation sequences after the privileged interrupt input signal 2 is input to the evaluation privileged interrupt input terminal 15 with respect to the operations of the signals 2 and 3, the processor unit 10 and the memory map. The privileged interrupt output signal 3 is input to the chip select terminals 19 and 20 of the user program memory 12 and the debug program memory 13, and when the user program is executed, the user program memory 12 is selected and when the privileged interrupt is processed. Can select the debug program memory 13.

第5図は本発明の評価用シングルチップマイクロコンピ
ュータの第2の実施例の内部回路の一部分を示すブロッ
ク図、第6図は第5図中の各信号のタイミングチャート
である。
FIG. 5 is a block diagram showing a part of an internal circuit of the second embodiment of the evaluation single-chip microcomputer of the present invention, and FIG. 6 is a timing chart of each signal in FIG.

リセット信号1,特権割込み入力信号2,割込みコントロー
ルユニット6,割込み復帰命令終了信号7,割込み受付信号
8,割込み要求信号9は、第1の実施例と同様の機能をも
つ。特権割込み出力信号21は、特権割込み受付け時に、
一定パルス幅をもった負論理のタイミング信号を1回出
力し、割込み処理からの復帰後、もう1回一定パルス幅
をもった負論理のタイミング信号を出力する機能を有す
る外部への信号である。割込み復帰後の最初の命令実行
信号25は、割込み復帰命令実行後、次の命令を実行する
際にプロセッサユニット26から出力される負論理の信号
である。D−FF22は特権割込み入力信号2の反転信号を
クロック入力、リセット信号1または割込み受付信号8
をプリセット入力とし、Q出力を割込み要求信号9とし
ている。D−FF23は特権割込み入力信号2の反転信号を
クロック入力、リセット信号1または割込み復帰後の最
初の命令実行信号25をプリセット入力とし、Q出力を出
力コントロール信号34としている。出力コントロールバ
ッファ24は、出力コントロール信号34がロウレベルにな
ると割込み受付信号8および割込み復帰命令終了7を出
力する。
Reset signal 1, privileged interrupt input signal 2, interrupt control unit 6, interrupt return instruction end signal 7, interrupt acceptance signal
8, the interrupt request signal 9 has the same function as in the first embodiment. The privileged interrupt output signal 21 is
It is an external signal having a function of outputting a negative logic timing signal having a constant pulse width once, and then outputting a negative logic timing signal having a constant pulse width once again after returning from interrupt processing. . The first instruction execution signal 25 after returning from the interrupt is a negative logic signal output from the processor unit 26 when executing the next instruction after executing the interrupt returning instruction. The D-FF22 clock-inputs the inverted signal of the privileged interrupt input signal 2, reset signal 1 or interrupt acceptance signal 8
Is a preset input, and the Q output is an interrupt request signal 9. The D-FF 23 uses the inverted signal of the privileged interrupt input signal 2 as a clock input, the reset signal 1 or the first instruction execution signal 25 after the interrupt recovery as a preset input, and the Q output as an output control signal 34. The output control buffer 24 outputs an interrupt acceptance signal 8 and an interrupt return instruction end 7 when the output control signal 34 becomes low level.

次に、第5図の回路の動作について、第6図のタイミン
グチャートを参照して説明する。
Next, the operation of the circuit of FIG. 5 will be described with reference to the timing chart of FIG.

リセット信号1が外部からのリセット動作によりアクテ
ィブ(ロウ)レベルとなると、D−FF22およびD−FF23
がそれぞれ初期化され、Q出力がいずれもハイレベルと
なる。D−FF22のQ出力、即ち、割込み要求信号9はハ
イレベルのインアクティブ状態に初期化され、D−FF23
のQ出力は出力コントロールバッファ24をインアクティ
ブとする。したがって、特権割込み出力信号21もハイレ
ベルに初期化される。特権割込み入力信号2が時刻t2
アクティブ(ロウ)レベルとなるとその前縁でD−FF22
およびD−FF23はロウレベル信号をラッチし、Q出力へ
それぞれ出力する。D−FF22のQ出力は、割込みコント
ロールユニット6へ割込み要求信号9として入力され
る。一方、D−FF23のQ出力は、出力コントロールバッ
ファ24をアクティブとする。割込みコントロールユニッ
ト6では、プロセッサユニット26に対して割込み要求信
号を出力し、また適当なタイミング(時刻t3)で割込み
受付信号8を出力する。割込みコントロールユニット6
より出力された割込み受付信号8は、D−FF22のプリセ
ット端子PRTをアクティブとしてQ出力(割込み要求信
号9)を再びハイレベルに戻す。また、割込み受付信号
8は、アクティブ状態にある出力コントロールバッファ
24を経由して特権割込み出力信号21に1回のパルスを与
える。
When the reset signal 1 becomes active (low) level by the external reset operation, D-FF22 and D-FF23
Are initialized respectively, and all Q outputs become high level. The Q output of D-FF22, that is, the interrupt request signal 9 is initialized to a high level inactive state, and D-FF23
Q output makes the output control buffer 24 inactive. Therefore, the privileged interrupt output signal 21 is also initialized to the high level. When the privileged interrupt input signal 2 becomes active (low) level at time t 2 , D-FF22 occurs at the leading edge of the signal.
And D-FF23 latch the low level signal and output it to the Q output. The Q output of D-FF22 is input to the interrupt control unit 6 as the interrupt request signal 9. On the other hand, the Q output of D-FF23 activates the output control buffer 24. The interrupt control unit 6 outputs an interrupt request signal to the processor unit 26, and also outputs an interrupt acceptance signal 8 at an appropriate timing (time t 3 ). Interrupt control unit 6
The interrupt acceptance signal 8 output from the D-FF 22 makes the preset terminal PRT of the D-FF 22 active and returns the Q output (interrupt request signal 9) to the high level again. The interrupt acceptance signal 8 is the output control buffer in the active state.
One pulse is given to the privileged interrupt output signal 21 via 24.

次に、割込み処理を終了するために、割込み復帰命令を
プロセッサユニット26が実行すると、その命令の終了と
同時に時刻t4に割込み復帰命令終了信号7にアクティブ
レベルロウのパルスが出力され、同様に、特権割込み出
力信号21に2回目のパルスが与えられる。割込み復帰命
令実行終了後、次命令が命令フェッチユニット32から命
令デコーダユニット31へ転送され、プロセッサユニット
26で実行される際、割込み復帰後の最初の命令実行信号
25がアクティブ(ロウ)レベルとなり(時刻t5)、D−
FF23のプリセット端子PRTをアクティブとしD−FF23の
Q出力がハイレベルに戻る。したがって、出力コントロ
ールバッファ24はインアクティブ状態となり、特権割込
み出力信号21は、次の特権割込み発生時までインアクテ
ィブ状態を保つ。
Next, when the processor unit 26 executes an interrupt return instruction to end the interrupt processing, an active level low pulse is output to the interrupt return instruction end signal 7 at time t 4 at the same time as the end of the instruction, and similarly. The second pulse is applied to the privileged interrupt output signal 21. After execution of the interrupt return instruction is completed, the next instruction is transferred from the instruction fetch unit 32 to the instruction decoder unit 31, and the processor unit
The first instruction execution signal after returning from an interrupt when executed in 26.
25 becomes active (low) level (time t 5 ) and D-
The preset terminal PRT of FF23 becomes active and the Q output of D-FF23 returns to high level. Therefore, the output control buffer 24 becomes inactive, and the privileged interrupt output signal 21 remains inactive until the next privileged interrupt occurs.

以上説明したように、本実施例による特権割込み出力信
号21は特権割込み受付け時に1回、割込み処理から復帰
後に1回、一定パルス幅をもったアクティブ(ロウ)レ
ベルのタイミング信号を出力する機能を有する。
As described above, the privileged interrupt output signal 21 according to the present embodiment has a function of outputting an active (low) level timing signal having a constant pulse width once when a privileged interrupt is accepted and once after returning from the interrupt processing. Have.

次に、第1の実施例と同様に本信号を用いた、メモリバ
ンクの切替動作シーケンスについて説明する。
Next, a memory bank switching operation sequence using this signal as in the first embodiment will be described.

第7図は第5図で示した回路を有する評価用シングルチ
ップマイクロコンピュータ27を用いてメモリバンクの切
替動作を説明するブロック図、第8図はそのメモリバン
ク切替のタイムチャートである。
FIG. 7 is a block diagram for explaining a memory bank switching operation using the evaluation single-chip microcomputer 27 having the circuit shown in FIG. 5, and FIG. 8 is a time chart of the memory bank switching.

評価用シングルチップマイクロコンピュータ27は、第1
の実施例と同様に、評価用特権割込み入力端子15と特権
割込み出力端子28を有し、アドレス/データマルチプレ
ックスバスおよびステータスバスを介してユーザプログ
ラム用メモリ12とデバッグプログラム用メモリ13と接続
され、さらにリセット信号出力端子29を有してメモリチ
ップセレクト信号33を発生するD−FF30が特権割込み信
号出力端子28とメモリチップセレクト端子19,20の間に
接続されている。
The evaluation single-chip microcomputer 27 is the first
Similar to the embodiment described above, it has an evaluation privileged interrupt input terminal 15 and a privileged interrupt output terminal 28, and is connected to the user program memory 12 and the debug program memory 13 via the address / data multiplex bus and the status bus. A D-FF 30 which further has a reset signal output terminal 29 and generates a memory chip select signal 33 is connected between the privileged interrupt signal output terminal 28 and the memory chip select terminals 19 and 20.

第2の実施例では特権割込み出力信号21は以下の様に機
能する。評価用シングルチップマイクロコンピュータ27
がユーザプログラム実行中評価用特権割込み入力端子15
に有効信号が入力されると処理中のユーザ命令終了後適
当なタイミングで特権割込み処理を行う。評価用シング
ルチップマイクロコンピュータ27はユーザプログラム実
行状態から、特権割込み処理状態にCUP動作が切り替る
タイミングで前述のように一定パルス幅をもったタイミ
ング信号(アクティブレベルロウ)を端子28に出力する
(時刻t1)。また、評価用シングルチップマイクロコン
ピュータ27が割込み処理状態から再びユーザプログラム
実行状態へ切り替わるタイミングでもう一度一定パルス
幅をもったタイミング信号を端子28に出力する(時刻
t2)。
In the second embodiment, the privileged interrupt output signal 21 functions as follows. Single-chip microcomputer for evaluation 27
Is a privileged interrupt input pin for evaluation during user program execution 15
When a valid signal is input to, privileged interrupt processing is performed at an appropriate timing after the end of the user instruction being processed. The evaluation single-chip microcomputer 27 outputs a timing signal (active level low) having a constant pulse width to the terminal 28 at the timing when the CUP operation switches from the user program execution state to the privileged interrupt processing state ( Time t 1 ). Further, at the timing when the evaluation single-chip microcomputer 27 switches from the interrupt processing state to the user program execution state again, a timing signal having a constant pulse width is output again to the terminal 28 (time
t 2 ).

このようにして、評価用シングルチップマイクロコンピ
ュータ27が特権割込み受付時に1回パルスを出力し、割
込み処理からの復帰後、再び1回パルスを出力する機能
を有することにより、この信号を使用して以下のように
してメモリバンク切替信号を作成する。評価用シングル
チップマイクロコンピュータ27にリセットがかかると、
リセット出力端子29よりロウレベルの信号が出力され、
D−FF30の出力はハイレベルとなる。評価用シングル
チップマイクロコンピュータ27のリセットが解除される
と、評価用シングルチップマイクロコンピュータ27は
出力(メモリチップセレクト信号33)によりセレクトさ
れたユーザプログラム用メモリ12上のプログラムを実行
する。
In this way, the evaluation single-chip microcomputer 27 has a function of outputting a pulse once when a privileged interrupt is accepted and outputting the pulse once again after returning from the interrupt processing. The memory bank switching signal is created as follows. When the evaluation single-chip microcomputer 27 is reset,
A low level signal is output from the reset output terminal 29,
The output of D-FF30 becomes high level. When the reset of the evaluation single-chip microcomputer 27 is released, the evaluation single-chip microcomputer 27 executes the program on the user program memory 12 selected by the output (memory chip select signal 33).

次に、評価用シングルチップマイクロコンピュータ27が
特権割込み状態に切り替わる時に、端子28に出力される
タイミング信号の前縁でD−FF30の出力が反転する
(第8図メモリチップセレクト信号33参照)。この時は
デバッグプログラム用メモリ13が選択されるため評価用
シングルチップマイクロコンピュータ27はデバッグプロ
グラム用メモリ13上のデバッグ用プログラムを実行する
(第8図メモリマップ参照)。また、割込み処理からの
復帰時特権割込み信号出力端子28に出力される2回目の
タイミング信号出力端子28に出力される2回目のタイミ
ング信号の前縁で再びD−FF30の出力が反転し、ユー
ザプログラム用メモリ12を選択することにより、評価用
シングルチップマイクロコンピュータ27は割込み処理か
らの復帰後、ユーザプログラムを実行する(第8図メモ
リマップ参照)。
Next, when the evaluation single-chip microcomputer 27 switches to the privileged interrupt state, the output of the D-FF 30 is inverted at the leading edge of the timing signal output to the terminal 28 (see the memory chip select signal 33 in FIG. 8). At this time, since the debug program memory 13 is selected, the evaluation single-chip microcomputer 27 executes the debug program on the debug program memory 13 (see the memory map in FIG. 8). Further, when returning from the interrupt processing, the output of the D-FF30 is inverted again at the leading edge of the second timing signal output to the second timing signal output terminal 28 output to the privileged interrupt signal output terminal 28, and the output of the D-FF30 is inverted. By selecting the program memory 12, the evaluation single-chip microcomputer 27 executes the user program after returning from the interrupt processing (see the memory map in FIG. 8).

このようにして生成されるメモリチップセレクト信号33
を使用することで、特権割込み処理時のメモリバンクの
切替を行うことができる。
Memory chip select signal 33 generated in this way
By using, the memory bank can be switched at the time of privileged interrupt processing.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、プロセッサユニットが特
権割込み処理中アクティブレベルを保つ信号あるいは特
権割込み受付時および特権割込み処理からの復帰後にそ
れぞれ1回、一定パルス幅を持ったアクティブレベルの
タイミング信号を発生し、評価用シングルチップマイク
ロコンピュータ外部に出力する回路を有することによ
り、この信号を特権割込み用メモリバンク切替信号とし
て使用することで特権割込み時メモリを、ユーザメモリ
からデバッグ用メモリへ切替えるための外部回路を省略
できるという効果がある。
As described above, according to the present invention, the signal that the processor unit maintains the active level during the privileged interrupt processing or the active level timing signal having the constant pulse width is generated once when the privileged interrupt is accepted and after the recovery from the privileged interrupt processing. A signal is generated and output to the outside of the evaluation single-chip microcomputer. By using this signal as a memory bank switching signal for privileged interrupts, the memory at privileged interrupts can be switched from user memory to debug memory. The effect is that the external circuit can be omitted.

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

第1図は本発明の評価用シングルチップマイクロコンピ
ュータの第1の実施例の回路図、第2図は、第1図で使
用されている各信号のタイミングチャート、第3図,第
4図は第1図に示した回路を有する評価用シングルチッ
プマイクロコンピュータのメモリバンクの切替動作の説
明図、第5図は本発明の第2の実施例の回路図、第6図
は第5図で使用されている各信号のタイミングチャー
ト、第7図,第8図は、第5図に示した回路を有する評
価用シングルチップマイクロコンピュータのメモリバン
ク切替動作の説明図である。 1……リセット信号、2……特権割込み入力信号、3,21
……特権割込み出力信号、4,5,22,23,30……D−FF、6
……割込みコントロールユニット、7……割込み復帰命
令終了信号、8……割込み受付信号、9……割込み要求
信号、10,26……プロセッサユニット、11,27……評価用
シングルチップマイクロコンピュータ、12……ユーザプ
ログラム用メモリ、13……デバッグプログラム用メモ
リ、14,28……特権割込み信号出力端子、15……評価用
割込み入力端子、16……特権割込み要因発生回路、19,2
0……メモリチップセレクト端子、24……出力コントロ
ールバッファ、25……割込み復帰後の最初の命令実行信
号、29……リセット信号出力端子、31……命令デコーダ
ユニット、32……命令フェッチユニット、33……メモリ
チップセレクト信号、34……出力コントロール信号。
FIG. 1 is a circuit diagram of a first embodiment of an evaluation single-chip microcomputer of the present invention, FIG. 2 is a timing chart of each signal used in FIG. 1, and FIGS. FIG. 5 is an explanatory diagram of a memory bank switching operation of an evaluation single-chip microcomputer having the circuit shown in FIG. 1, FIG. 5 is a circuit diagram of a second embodiment of the present invention, and FIG. 6 is used in FIG. FIGS. 7 and 8 are timing charts of the respective signals that are provided, and are explanatory diagrams of the memory bank switching operation of the evaluation single-chip microcomputer having the circuit shown in FIG. 1 ... Reset signal, 2 ... Privilege interrupt input signal, 3,21
...... Privileged interrupt output signal, 4,5,22,23,30 …… D-FF, 6
…… Interrupt control unit, 7 …… Interrupt return instruction end signal, 8 …… Interrupt acceptance signal, 9 …… Interrupt request signal, 10,26 …… Processor unit, 11,27 …… Evaluation single-chip microcomputer, 12 ...... User program memory, 13 ・ ・ ・ Debug program memory, 14,28 ・ ・ ・ Privileged interrupt signal output terminal, 15 ・ ・ ・ Evaluation interrupt input terminal, 16 ・ ・ ・ Privileged interrupt factor generation circuit, 19,2
0 …… Memory chip select terminal, 24 …… Output control buffer, 25 …… First instruction execution signal after interrupt recovery, 29 …… Reset signal output terminal, 31 …… Instruction decoder unit, 32 …… Instruction fetch unit, 33 …… Memory chip select signal, 34 …… Output control signal.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】通常状態ではユーザプログラム用メモリに
格納されたユーザプログラムを実行し、特権割込み状態
ではデバッグプログラム用メモリに格納されたデバッグ
プログラムを実行する評価用シングルチップマイクロコ
ンピュータにおいて、特権割込み入力信号を受ける入力
端子と、この入力端子に前記特権割込み入力信号が供給
されたことを検出し前記通常状態から前記特権割込み状
態に移行したことを示す特権割込み出力信号を発生する
手段と、前記特権割込み出力信号を外部に出力する出力
端子とを有し、前記出力端子から出力された前記特権割
込み出力信号を用いてアクセスすべきメモリを前記ユー
ザプログラム用メモリから前記デバッグ用メモリに切り
換えるように構成されることを特徴とする評価用シング
ルチップマイクロコンピュータ。
1. A single-chip microcomputer for evaluation which executes a user program stored in a user program memory in a normal state and executes a debug program stored in a debug program memory in a privileged interrupt state in a privileged interrupt input. An input terminal for receiving a signal; a means for detecting that the privileged interrupt input signal is supplied to the input terminal and generating a privileged interrupt output signal indicating a transition from the normal state to the privileged interrupt state; An output terminal for outputting an interrupt output signal to the outside, and the memory to be accessed is switched from the user program memory to the debug memory using the privileged interrupt output signal output from the output terminal. Single chip micro for evaluation characterized by Computer.
【請求項2】前記特権割込み出力信号は前記特権割込み
状態の間アクティブレベルに保持されており、かかるア
クティブレベルにより前記デバッグプログラム用メモリ
がアクセス状態に制御されるように構成されることを特
徴とする特許請求の範囲第1項記載の評価用シングルチ
ップマイクロコンピュータ。
2. The privileged interrupt output signal is maintained at an active level during the privileged interrupt state, and the debug program memory is controlled to be in an access state by the active level. The evaluation single-chip microcomputer according to claim 1.
【請求項3】前記特権割込み出力信号は前記通常状態か
ら前記特権割込み状態への移行時に一旦アクティブレベ
ルをとるとともに前記特権割込み状態から前記通常状態
への復帰時に再度アクティブレベルをとり、これら2回
のアクティブレベルの変化により前記ユーザプログラム
用メモリと前記デバッグプログラム用メモリとのアクセ
スが切り換わるように構成されることを特徴とする特許
請求の範囲第1項記載の評価用シングルチップマイクロ
コンピュータ。
3. The privileged interrupt output signal once takes an active level at the transition from the normal state to the privileged interrupt state and again takes an active level at the time of returning from the privileged interrupt state to the normal state. 7. The evaluation single-chip microcomputer according to claim 1, wherein the access to the user program memory and the debug program memory is switched by a change in the active level of the evaluation single chip microcomputer.
JP62320511A 1987-12-18 1987-12-18 Single-chip microcomputer for evaluation Expired - Fee Related JPH0760401B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62320511A JPH0760401B2 (en) 1987-12-18 1987-12-18 Single-chip microcomputer for evaluation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62320511A JPH0760401B2 (en) 1987-12-18 1987-12-18 Single-chip microcomputer for evaluation

Publications (2)

Publication Number Publication Date
JPH01161541A JPH01161541A (en) 1989-06-26
JPH0760401B2 true JPH0760401B2 (en) 1995-06-28

Family

ID=18122263

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62320511A Expired - Fee Related JPH0760401B2 (en) 1987-12-18 1987-12-18 Single-chip microcomputer for evaluation

Country Status (1)

Country Link
JP (1) JPH0760401B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07271608A (en) * 1994-03-30 1995-10-20 Nec Corp Interruption generating circuit

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58107963A (en) * 1981-12-22 1983-06-27 Nippon Signal Co Ltd:The Interruption processor
JPS6145338A (en) * 1984-08-10 1986-03-05 Nec Corp Microcomputer lsi for evaluation
JPH087706B2 (en) * 1986-05-13 1996-01-29 日本電気株式会社 Single chip microcomputer for evaluation

Also Published As

Publication number Publication date
JPH01161541A (en) 1989-06-26

Similar Documents

Publication Publication Date Title
JP3105223B2 (en) Debug peripherals for microcomputers, microprocessors and core processor integrated circuits
US4987537A (en) Computer capable of accessing a memory by supplying an address having a length shorter than that of a required address for the memory
US5325512A (en) Circuit emulator
US4090238A (en) Priority vectored interrupt using direct memory access
US4308581A (en) Single step system for a microcomputer
JPS6229815B2 (en)
JP2655615B2 (en) Information processing device
JPS6218936B2 (en)
US4947478A (en) Switching control system for multipersonality computer system
JP2002304310A (en) Semiconductor integrated circuit
US5586336A (en) Microcomputer capable of monitoring internal resources from external
JPH0760401B2 (en) Single-chip microcomputer for evaluation
JP2581080B2 (en) Microprocessor for debugging
JP3283505B2 (en) Microcomputer
JP2712730B2 (en) Evaluation chip
JPH0550016B2 (en)
JP3088285B2 (en) In-circuit emulator
JP2619416B2 (en) emulator
JPH11143732A (en) Microcomputer and emulator
JP2000029508A (en) Programmable controller
JPH071500B2 (en) Single chip microcomputer
JPH06139076A (en) Interruption processor
JPH04162150A (en) Watchdog timer control circuit
JPH0683986A (en) Single chip microcomputer
JPH02163840A (en) Single chip microcomputer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees