JPS63149715A - Identifying method for reset input of processor - Google Patents

Identifying method for reset input of processor

Info

Publication number
JPS63149715A
JPS63149715A JP61298342A JP29834286A JPS63149715A JP S63149715 A JPS63149715 A JP S63149715A JP 61298342 A JP61298342 A JP 61298342A JP 29834286 A JP29834286 A JP 29834286A JP S63149715 A JPS63149715 A JP S63149715A
Authority
JP
Japan
Prior art keywords
signal
contents
power
reset
processor
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
JP61298342A
Other languages
Japanese (ja)
Inventor
Kenji Sawada
賢次 澤田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61298342A priority Critical patent/JPS63149715A/en
Publication of JPS63149715A publication Critical patent/JPS63149715A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To discriminate whether a reset input is an initialization request signal or a power ON signal by storing specific data in a specific area of a volatile memory, reading out the contents of the volatile memory at the time of inputting a signal to a reset terminal and discriminating the contents. CONSTITUTION:A power ON signal is related to a power supply 6, and at the time of generating the power supply ON signal, the contents of a RAM 3 to be the volatile memory disappear. On the other hand, an in-prime signal is not related to the power supply 6 and the contents of the RAM 3 are held. When the contents of the specific area 3a in the RAM 3 are set up as fixed data and whether the contents of the specific area 3a in the RAM 3 are held fixed data or not is discriminated at the time of inputting a reset signal, whether the reset input is a power ON signal POS or an in-prime signal IPS can be discriminated.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする問題点 問題点を解決するための手段 (第1図)作用 実施例 (a)一実施例の説明 (第2図) (bl他の実施例の説明 発明の効果 〔概要〕 プロセッサのリセット端子に初期設定要求信号とパワー
オン信号とが入力されるシステムにおいて、[撥性メモ
リの特定領域に特定データを格納しておき、リセット端
子への信号入力時に揮撥性メモリの特定領域“の内容を
読出し、判別することによって、リセット入力が初期設
定要求信号かパワーオン信号かを判別するようにしたも
の。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Conventional technology Problems to be solved by the invention Means for solving the problems (Fig. 1) Example of operation (a) Example of one embodiment Description (Figure 2) (bl Description of other embodiments Effects of the invention [Summary]) In a system where an initial setting request signal and a power-on signal are input to the reset terminal of a processor, Data is stored and when a signal is input to the reset terminal, the contents of a specific area of the volatile memory are read and determined to determine whether the reset input is an initial setting request signal or a power-on signal. thing.

〔産業上の利用分野〕[Industrial application field]

本発明は、プロセッサのリセット端子に入力される信号
種別を判別することのできるリセット入力識別方法に関
し、特にパワーオン信号と初期設定要求信号(インプラ
イム信号)とを区別しうるプロセッサのリセット入力識
別方法に関する。
The present invention relates to a reset input identification method capable of determining the type of signal input to a reset terminal of a processor, and in particular to a reset input identification method for a processor capable of distinguishing between a power-on signal and an initial setting request signal (in-prime signal). Regarding the method.

プロセッサを用いたシステムにおいては、不揮撥性メモ
リの出現によって種々の初期状態を持つことが可能とな
っている。
In systems using processors, the advent of non-volatile memory has made it possible to have various initial states.

この初期状態への移行手段としては、ハードウェア、ソ
フトウェア、電源投入の3種類があり、これらに応じて
種々の初期状態に移行する必要がある。
There are three types of means for transitioning to this initial state: hardware, software, and power-on, and it is necessary to transition to various initial states depending on these.

〔従来の技術〕[Conventional technology]

プロセッサを用いたシステムとして、例えば第3図に示
すプリンタ装置を例にとると、第3図(A)に示す如く
、制御部としてプロセッサ(CPU)1と、リードオン
リーメモリ (ROM)2と、ランダムアクセスメモリ
(RAM)3とがデータ/アドレスバス7aに接続され
て構成されている。
Taking the printer device shown in FIG. 3 as an example of a system using a processor, as shown in FIG. A random access memory (RAM) 3 is connected to a data/address bus 7a.

CPUIには、データバス7bを介しドライバ4が接続
され、ドライバ4にはドツトプリントヘン)’5 a、
ヘッドのスペースモータ5b、改行モータ5Cが接続さ
れる。
A driver 4 is connected to the CPUI via a data bus 7b, and the driver 4 has a dot print head) '5a,
The head space motor 5b and line feed motor 5C are connected.

これらの電源供給のため、電源6が設けられ、電源6に
は商用電源がスイッチSWを介し供給され、動作電圧(
5V)をCPUI、ROM2、RAM3、ドライバ4等
に供給する。
In order to supply these power sources, a power supply 6 is provided, and commercial power is supplied to the power supply 6 via a switch SW, and the operating voltage (
5V) is supplied to the CPUI, ROM2, RAM3, driver 4, etc.

CPUIにはリセット端子(割込端子)R3Tが設けら
れており、電源6からの電源オン/オフ信号と、上位ユ
ニット等からのインプライム信号IPSとを割込みとし
て受ける。
The CPU is provided with a reset terminal (interrupt terminal) R3T, which receives a power on/off signal from the power supply 6 and an in-prime signal IPS from a host unit or the like as an interrupt.

CPU1はリセット端子R3Tに信号を受信すると、信
号を区別せず、第3図(B)に示す如く、初期状態とし
て、RAM3をクリアし、ヘッドのスペースイニシャル
(イニシャル位置に復帰移動)を実行するようにしてい
る。
When the CPU 1 receives a signal at the reset terminal R3T, it does not distinguish between the signals, clears the RAM 3 as an initial state, and executes a space initial (return movement to the initial position) of the head, as shown in FIG. 3(B). That's what I do.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このような従来の方法では、パワーオン/オフ信号とイ
ンプライム信号IPSとがリセット信号として同一のリ
セット端子に入力されていることから、その区別ができ
なかった。
In such a conventional method, since the power on/off signal and the in-prime signal IPS are input to the same reset terminal as a reset signal, they cannot be distinguished.

従って、パワーオン信号によっである初期設定処理を行
ない、インプライム信号IPSによって別の初期設定処
理を行ないたいとの設計上の都合のある時は、これを実
行できないという問題が生じていた。
Therefore, when there is a design convenience in which it is desired to perform one initial setting process using the power-on signal and another initial setting process using the in-prime signal IPS, a problem arises in that this cannot be performed.

本発明は、単一の割込端子に入力されるパワーオン信号
とインプライム信号とを区別することのできるプロセッ
サのリセット入力識別方法を提供することを目的とする
SUMMARY OF THE INVENTION An object of the present invention is to provide a processor reset input identification method that can distinguish between a power-on signal and an in-prime signal input to a single interrupt terminal.

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

第1図は本発明の原理説明図である。 FIG. 1 is a diagram explaining the principle of the present invention.

第1図(A)中、第3図で示したものと同一のものは同
一の記号で示してあり、3aはRAM (揮撥性メモリ
)3の特定領域である。
1A, the same parts as those shown in FIG. 3 are indicated by the same symbols, and 3a is a specific area of the RAM (volatile memory) 3.

本発明では、第1図(B)に示す如く、CPU1のリセ
ット端子R3Tに信号入力があると、CPUIはRAM
3の特定領域3aのデータを読出し、読出し内容が固定
データと同一かどうかを判定し、リセット信号が電源オ
ン信号PO8かインプライム信号IPSかを識別するも
のである。
In the present invention, as shown in FIG. 1(B), when a signal is input to the reset terminal R3T of the CPU1, the CPU
3, and determines whether the read content is the same as the fixed data, and identifies whether the reset signal is the power-on signal PO8 or the in-prime signal IPS.

〔作用〕[Effect]

本発明は、電源6の作用に注目したものである。 The present invention focuses on the action of the power source 6.

電源オン信号は、電源6と関係し、電源オン信号発生時
には、揮撥性メモリであるRAM3の内容は消失してお
り、一方、インプライム信号は電源6と関係せず、RA
M3の内容は保持される。
The power-on signal is related to the power supply 6, and when the power-on signal is generated, the contents of RAM3, which is a volatile memory, are erased.On the other hand, the in-prime signal is not related to the power supply 6, and the contents of RAM3 are lost.
The contents of M3 are retained.

従って、RAM3の特定領域3aの内容を固定データと
しておき、リセット信号入力時RAM3の特定領域3a
の内容が保持された固定データか否かを判別することに
よって、電源オン信号PO8かインプライム信号IPS
かを識別できる。
Therefore, the contents of the specific area 3a of the RAM 3 are set as fixed data, and when the reset signal is input, the specific area 3a of the RAM 3
The power-on signal PO8 or the in-prime signal IPS is determined by determining whether the contents of the
can be identified.

〔実施例〕〔Example〕

(a)一実施例の説明 第2図は本発明の詳細な説明図である。 (a) Description of one embodiment FIG. 2 is a detailed explanatory diagram of the present invention.

図中、第1図及び第3図で示したものと同一のものは同
一の記号で示してあり、2aはROM2の固定データ格
納エリアであり、リセット信号の識別のための固定デー
タを格納したもの、3bはRAM3の登録エリアであり
、登録された内容、文字パターン等を格納してお(ため
のものである。
In the figure, the same parts as those shown in Figs. 1 and 3 are indicated by the same symbols, and 2a is a fixed data storage area of ROM 2, which stores fixed data for identifying the reset signal. Reference numeral 3b is a registration area of the RAM 3, which is used to store registered contents, character patterns, etc.

第1図(B)の原理フローチャートを参照に第2図実施
例の動作について説明する。
The operation of the embodiment in FIG. 2 will be explained with reference to the principle flowchart in FIG. 1(B).

CPUIは、リセット端子R3Tからリセット信号を受
けると、CPUIはアドレス/データバス7aを介しR
AM3の特定領域3aの内容を読出す。
When the CPUI receives a reset signal from the reset terminal R3T, the CPUI receives the reset signal from the reset terminal R3T via the address/data bus 7a.
Read the contents of the specific area 3a of AM3.

次に、CPUIはROM2の固定データ格納エリア2a
の固定データをアドレス/データバス7aを介し読出し
、読出した特定領域3aの内容と比較する。
Next, the CPU is fixed data storage area 2a of ROM2.
The fixed data is read out via the address/data bus 7a and compared with the read contents of the specific area 3a.

CPUIは、この比較によって、RAM3の読出し内容
が、ROM2の読出し固定データと同一内容であると判
定すると、入力リセット信号はインプライム信号と、同
一内容でないと判定すると、入カリセント信号は電源オ
ン信号と識別する。
Through this comparison, if the CPU determines that the read content of RAM3 is the same as the read fixed data of ROM2, the input reset signal is the in-prime signal, and if it determines that the content is not the same, the input calibercent signal is the power-on signal. identify with.

即ち、電源オン信号は電源オフ後の電源オンによって発
生するので、電源オフによって運指性メモリであるRA
M3の内容は消失されており、80M2との一致はとれ
ない。これに対し、インプライム信号は電源オン/オフ
と関係しないので、RAM3の内容は保持されており、
ROM2との一致はとれない。
That is, since the power-on signal is generated when the power is turned on after the power is turned off, the fingering memory RA is generated when the power is turned off.
The contents of M3 have been deleted and cannot match 80M2. On the other hand, since the in-prime signal is not related to power on/off, the contents of RAM3 are retained.
It cannot match with ROM2.

大カリセット信号が電源オン信号と判定されると、電源
オンリセット処理、即ち、RAM3のクリア、ヘッドス
ペース等を行い、更に、リセット信号識別のため、RA
M3の特定領域3aに固定データをライトして、イニシ
ャル処理を終了する。
When the large reset signal is determined to be a power-on signal, power-on reset processing is performed, that is, clearing RAM3, headspace, etc., and furthermore, in order to identify the reset signal, RA
The fixed data is written to the specific area 3a of M3, and the initial processing is completed.

一方、入力リセット信号がインプライム信号と判定する
と、初期設定処理として、CPUI内のレジスタやドラ
イバ4のレジスタのクリア、ヘッドスペース動作を行う
On the other hand, if the input reset signal is determined to be an in-prime signal, initialization processing includes clearing the registers in the CPUI and the registers of the driver 4, and performing a headspace operation.

従って、RAM3はクリアされず、登録エリア3bの内
容は消去されず、登録された文字パターン等が以降も使
用できる。
Therefore, the RAM 3 is not cleared, the contents of the registration area 3b are not erased, and the registered character patterns etc. can be used from now on.

(b)他の実施例の説明 上述の実施例では、プリンタ装置を例に説明したが、こ
れに限らず、要するにプロセッサを有するシステムであ
ればよい。
(b) Description of Other Embodiments In the above-described embodiments, a printer device was used as an example, but the present invention is not limited to this, and any system having a processor may be used.

又、イニシャル処理も実施例に限らず種々のものが適用
しうる。
Further, the initial processing is not limited to the embodiment, and various other methods can be applied.

以上本発明を実施例により説明したが、本発明は本発明
の主旨に従い種々の変形が可能であり、本発明からこれ
らを排除するものではない。
Although the present invention has been described above using examples, the present invention can be modified in various ways according to the gist of the present invention, and these are not excluded from the present invention.

〔発明の効果〕 以上説明した様に、本発明によれば、CPUの一つのリ
セット端子に入力される2種類のリセット信号、即ち電
源オン信号とその他のインプライム信号とを識別できる
という効果を奏し、これにより別々のイニシャル(又は
リセット)処理を可能とする。
[Effects of the Invention] As explained above, according to the present invention, it is possible to distinguish between two types of reset signals input to one reset terminal of a CPU, that is, a power-on signal and other in-prime signals. This enables separate initial (or reset) processing.

しかも、そのための方法も容易且つ簡易に実現できると
いう実用上優れた効果も奏する。
Moreover, the method for this purpose can also be easily and easily realized, which is an excellent practical effect.

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

第1図は本発明の原理説明図、 第2図は本発明の詳細な説明図、 第3図は従来技術の説明図である。 図中、1−プロセッサ、 2・−ROM。 3−RA M (揮撥性メモリ)、 6・・−電源。 FIG. 1 is a diagram explaining the principle of the present invention, FIG. 2 is a detailed explanatory diagram of the present invention, FIG. 3 is an explanatory diagram of the prior art. In the figure, 1-processor; 2.-ROM. 3-RA M (volatile memory), 6...-Power supply.

Claims (1)

【特許請求の範囲】 揮撥性メモリ(3)と、プロセッサ(1)とを有し、 電源オン信号と初期設定要求信号とが該プロセッサ(1
)のリセット端子に入力するシステムにおいて、 該プロセッサ(1)が該リセット端子に信号入力を受け
たことに応じて、該メモリ(3)の特定領域の内容を読
出し、 該読出し内容に応じて入力信号が電源オン信号か初期設
定要求信号かを識別することを 特徴とするプロセッサのリセット入力識別方法。
[Claims] Comprising a volatile memory (3) and a processor (1), a power-on signal and an initial setting request signal are transmitted to the processor (1).
), in which the processor (1) reads the contents of a specific area of the memory (3) in response to receiving a signal input to the reset terminal, and inputs the contents in accordance with the read contents. A method for identifying a reset input for a processor, comprising identifying whether a signal is a power-on signal or an initialization request signal.
JP61298342A 1986-12-15 1986-12-15 Identifying method for reset input of processor Pending JPS63149715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61298342A JPS63149715A (en) 1986-12-15 1986-12-15 Identifying method for reset input of processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61298342A JPS63149715A (en) 1986-12-15 1986-12-15 Identifying method for reset input of processor

Publications (1)

Publication Number Publication Date
JPS63149715A true JPS63149715A (en) 1988-06-22

Family

ID=17858429

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61298342A Pending JPS63149715A (en) 1986-12-15 1986-12-15 Identifying method for reset input of processor

Country Status (1)

Country Link
JP (1) JPS63149715A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6574679B1 (en) * 1999-07-26 2003-06-03 International Business Machines Corporation Method and apparatus for identifying hardware

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6574679B1 (en) * 1999-07-26 2003-06-03 International Business Machines Corporation Method and apparatus for identifying hardware

Similar Documents

Publication Publication Date Title
KR910001557A (en) Apparatus and method for delivering commands in computing systems
JP2745669B2 (en) Printer
JPS60243795A (en) Alteration program setting system for electronic register
JP3628373B2 (en) Power management unit, computer system, and method for accessing a plurality of configuration registers in a power management unit of a computer system
JPS63149715A (en) Identifying method for reset input of processor
US5668936A (en) Printer for exclusively selecting a host apparatus and a command system for use with the selected host apparatus
KR970002668A (en) Software driver for system bus
JP4865213B2 (en) Interrupt controller
JPH0644084A (en) Information processor
JP3767921B2 (en) MEMORY CONTROL DEVICE, ITS CONTROL METHOD, AND PROGRAMMABLE CONTROLLER
US6742073B1 (en) Bus controller technique to control N buses
US5970237A (en) Device to assist software emulation of hardware functions
KR930006552A (en) Peripheral device, floppy disk device and its control method, and data processing system
KR970059915A (en) Microprocessor interrupt handler
JPH0628268A (en) Microprocessor i/o access tracing system
JP2839631B2 (en) Personal computer system and configuration change method thereof
KR920009444B1 (en) Memory system with two bus structure
KR860009347A (en) Magnetic disk controller
JPH04245555A (en) Image processor
JPH05120090A (en) Information processor
JPH03231393A (en) Ic card
KR950025509A (en) Microcomputer with Register Backup
JPS63122583A (en) Recording apparatus
JPH0548498B2 (en)
JPH0740181B2 (en) Bitmap memory write control method