JPH04355829A - Program switching system - Google Patents
Program switching systemInfo
- Publication number
- JPH04355829A JPH04355829A JP3157679A JP15767991A JPH04355829A JP H04355829 A JPH04355829 A JP H04355829A JP 3157679 A JP3157679 A JP 3157679A JP 15767991 A JP15767991 A JP 15767991A JP H04355829 A JPH04355829 A JP H04355829A
- Authority
- JP
- Japan
- Prior art keywords
- program
- cpu
- signal
- switching control
- switching
- 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
- 230000015654 memory Effects 0.000 claims abstract description 18
- 238000000034 method Methods 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 5
- 101100524645 Toxoplasma gondii ROM5 gene Proteins 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 101100524646 Toxoplasma gondii ROM6 gene Proteins 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、プログラム切替方式に
関し、特に加入者系伝送装置内におけるCPUのプログ
ラムを切り替える方式に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program switching system, and more particularly to a system for switching a CPU program in a subscriber system transmission device.
【0002】加入者系の伝送装置においては、工場出荷
時の試験用のプログラムと通常動作時に使用するプログ
ラムとを用意する必要があり、こられ2つのプログラム
を何らかの手段により切り替えて使用する必要がある。[0002] In subscriber-based transmission equipment, it is necessary to prepare a test program at the time of factory shipment and a program used during normal operation, and it is necessary to switch between these two programs by some means. be.
【0003】0003
【従来の技術】従来のプログラム切替方式は、図5に示
すように、工場出荷時のプログラムを格納したメモリ2
0を取り付けてCPU10との所定の処理動作を実行し
、特に異常が検出されなかったときには、このプログラ
ムメモリ20を取り外し、その代わりに通常動作時のプ
ログラムを格納したメモリ30を取り付け加入者端末(
図示せず)等からのデータを処理するようにしている。[Prior Art] As shown in FIG.
0 is attached to execute a predetermined processing operation with the CPU 10, and when no abnormality is detected, the program memory 20 is removed and the memory 30 storing the program for normal operation is attached in its place and the subscriber terminal (
(not shown), etc.
【0004】0004
【発明が解決しようとする課題】しかしながら、このよ
うにプログラムメモリ20と30を交互に取り替えてC
PU10の処理を実行することは面倒であると共に取替
えによる接触不良の障害も発生させるという問題点があ
った。[Problem to be Solved by the Invention] However, if the program memories 20 and 30 are alternately replaced in this way,
Executing the process of the PU 10 is troublesome, and there are problems in that replacement causes problems due to poor contact.
【0005】従って、本発明は、2つのプログラムメモ
リ間の切替を自動的に実行できるプログラム切替方式を
実現することを目的とする。Accordingly, it is an object of the present invention to realize a program switching method that can automatically switch between two program memories.
【0006】[0006]
【課題を解決するための手段及び作用】本発明方式の原
理構成図が図1に示されており、1は加入者端末、2は
加入者端末1からの信号レベルを変換する信号レベル変
換部2、3は信号レベル変換部2に接続されたCPU、
4はCPU3からのプログラム選択信号SEL・A又は
SEL・Bを受ける切替制御部、5及び6は切替制御部
4によりCPU3とのデータバス及びアドレスバスの接
続が切り替えられるプログラムメモリである。[Means and operations for solving the problems] A basic configuration diagram of the system of the present invention is shown in FIG. 2 and 3 are CPUs connected to the signal level converter 2;
Reference numeral 4 designates a switching control section that receives a program selection signal SEL.A or SEL.B from the CPU 3, and 5 and 6 designate program memories in which connection of a data bus and an address bus with the CPU 3 is switched by the switching control section 4.
【0007】このような構成において、まず加入者端末
1から切替命令を信号レベル変換部2を介してCPU3
に送ると、CPU3では切替制御部4にプログラム選択
信号SEL・A又はSEL・Bを送る。In such a configuration, first, a switching command is sent from the subscriber terminal 1 to the CPU 3 via the signal level converter 2.
When the program selection signal SEL.A or SEL.B is sent to the switching control section 4, the CPU 3 sends the program selection signal SEL.A or SEL.B.
【0008】このプログラム選択信号を受けた切替制御
部4は、動作可能にする信号を2つのプログラムメモリ
5,6の所定の一方に与えて指定し、これにより指定さ
れたプログラムメモリのみがCPU3との間でデータバ
ス及びアドレスバスを介してデータ処理を実行すること
となる。[0008] Upon receiving this program selection signal, the switching control unit 4 specifies a predetermined one of the two program memories 5 and 6 by giving a signal to enable operation, so that only the specified program memory is connected to the CPU 3. Data processing is executed between the two via the data bus and address bus.
【0009】このようにして、加入者端末から所望のプ
ログラムを自動的に実行させることができる。[0009] In this way, a desired program can be automatically executed from the subscriber terminal.
【0010】また、本発明では、電源投入に伴うパワー
オン・リセット信号が切替制御部4に与えられると、切
替制御部4は予め定めた一方のプログラムメモリを動作
可能にすることができる。Furthermore, in the present invention, when a power-on reset signal accompanying power-on is applied to the switching control section 4, the switching control section 4 can enable one predetermined program memory.
【0011】[0011]
【実施例】図2は、図1に示した本発明に係るプログラ
ム切替方式に用いるCPUの処理プログラムの一実施例
を示したもので、まず、図2(a) にはメインプログ
ラムが概略的に示されており、後述する切替制御部4か
らのリセット信号RSTにより解除され(ステップS1
)、この後、プログラムメモリとしてのROM5又は6
に格納されたプログラムによる動作が実行される(ステ
ップS2)。これは、電源投入時又は下記のようにRO
M5及び6の内の一方のプログラムから他方のプログラ
ムに切り替えるときに切替前のプログラムを初期化して
プログラムエラーを無くすためである。[Embodiment] Fig. 2 shows an embodiment of a CPU processing program used in the program switching method according to the present invention shown in Fig. 1. First, Fig. 2(a) schematically shows the main program. , and is canceled by a reset signal RST from the switching control section 4, which will be described later (step S1
), then ROM5 or 6 as program memory
The operation according to the program stored in is executed (step S2). This occurs at power-up or when the RO
This is to eliminate program errors by initializing the program before switching when switching from one program of M5 and M6 to the other.
【0012】また、同図(b) に示す割込ルーチンで
は、ROM5又は6によるプログラム処理を実行してい
るときに、加入者端末1より信号レベル変換部2を介し
て切替命令信号を受けたときにROM5−6間の切替を
ステップS2の処理ルーチンに割り込んで行うためのも
のであり、まず端末1からの命令信号を受信すると(ス
テップS11)、この命令信号がROM5−6間の切替
命令信号であるか否かを判定し(ステップS12)、切
替命令信号であることが判明したときには、次に、例え
ば現在処理しているのがROM5であるとすると、この
ROM5とは別のROM6を指定した切替命令信号であ
るか否かを判定し(ステップS13)、別のROMを指
定していることが判明したときには、その切替命令信号
に対応してこの例ではプログラム選択信号SEL・B(
図4参照)を出力する(ステップS14)。Furthermore, in the interrupt routine shown in FIG. 2(b), when a switching command signal is received from the subscriber terminal 1 via the signal level converter 2 while the program processing is being executed by the ROM 5 or 6. This is to interrupt the processing routine of step S2 to switch between ROMs 5 and 6, and when a command signal is first received from terminal 1 (step S11), this command signal is used as a command to switch between ROMs 5 and 6. It is determined whether or not it is a signal (step S12), and when it is found that it is a switching command signal, next, for example, if it is ROM5 that is currently being processed, a ROM6 different from this ROM5 is selected. It is determined whether or not it is the specified switching command signal (step S13), and if it is found that another ROM is specified, the program selection signal SEL・B (in this example) is set in response to the switching command signal.
(see FIG. 4) is output (step S14).
【0013】図3は、図1に示した切替制御部4の実施
例が示されており、この実施例では、プログラム選択信
号SEL・B及びSEL・Aをそれぞれ一方の入力信号
とするORゲート40,41と、ORゲート41の出力
信号と電源投入に伴うパワーオン・リセット信号とを入
力するANDゲート42と、ORゲート40及びAND
ゲート42の各出力信号を入力するNANDゲート43
と、ORゲート40の出力信号をセット端子Sに入力し
ANDゲート42の出力信号をリセット端子Rに入力し
てROM5,6のイネーブル信号OEを反転Q端子から
出力するフリップフロップ(以下、単にFFという)4
4と、D端子を常にHレベル(+5V)に固定しNAN
Dゲート43の出力信号をクロック端子CKに入力して
Q端子からの出力信号をORゲート40,41に共通し
て与えるFF45と、一定周期のパルスOSCを発生す
るパルス発生器46と、FF45からのQ出力信号をク
リア端子CLRに入力すると共にパルスOSCを受けて
16分周出力を発生して上述したCPU3のリセット信
号RSTとする16進カウンタ47と、カウンタ47の
キャリィ出力信号とインバータ49を介したパワーオン
・リセット信号とを受けてFF45のリセット端子Rに
与えるNANDゲート48とで構成されている。FIG. 3 shows an embodiment of the switching control section 4 shown in FIG. 40, 41, an AND gate 42 which inputs the output signal of the OR gate 41 and a power-on reset signal accompanying power-on, and the OR gate 40 and
NAND gate 43 inputting each output signal of gate 42
A flip-flop (hereinafter simply referred to as FF )4
4 and D terminal are always fixed at H level (+5V) and NAN
An FF 45 which inputs the output signal of the D gate 43 to the clock terminal CK and gives the output signal from the Q terminal to the OR gates 40 and 41 in common, a pulse generator 46 which generates a pulse OSC of a constant period, and a pulse generator 46 from the FF 45. A hexadecimal counter 47 which inputs the Q output signal of 1 to the clear terminal CLR and generates an output divided by 16 in response to the pulse OSC as the above-mentioned reset signal RST of the CPU 3, and a carry output signal of the counter 47 and an inverter 49. and a NAND gate 48 which receives a power-on reset signal and applies it to the reset terminal R of the FF 45.
【0014】このような切替制御部4の実施例の動作を
図4に示したタイムチャートを参照して説明する。尚、
図4に示した各信号の記号は図3に示したものにそれぞ
れ対応している。The operation of this embodiment of the switching control section 4 will be explained with reference to the time chart shown in FIG. still,
The symbols of each signal shown in FIG. 4 correspond to those shown in FIG. 3, respectively.
【0015】まず、図4に示したように電源が投入され
ると、この投入時から一定期間だけLレベルのパワーオ
ン・リセット信号が切替制御部4のANDゲート42に
与えられるので、ANDゲート42の出力信号もこの一
定期間だけLレベルとなり、負論理のFF44はリセッ
ト端子RがLレベルとなるためその反転Q端子、即ちイ
ネーブル選択信号OEがHレベルとなって図示のように
ROM5がイネーブル状態となる。尚、このような初期
状態ではプログラム選択信号SEL・A及びSEL・B
共にHレベルとなっている。First, when the power is turned on as shown in FIG. 4, an L-level power-on reset signal is applied to the AND gate 42 of the switching control section 4 for a certain period of time after the power is turned on. The output signal of FF 42 also becomes L level for this fixed period, and the reset terminal R of the negative logic FF 44 becomes L level, so its inverted Q terminal, that is, the enable selection signal OE becomes H level, and ROM 5 is enabled as shown in the figure. state. In addition, in such an initial state, the program selection signals SEL・A and SEL・B
Both are at H level.
【0016】その後、端末1からROM6を選択すべき
切替命令信号がCPU3に与えられると、上記の図2(
b) の割込ルーチンによりプログラム選択信号SEL
・BがHレベルからLレベルに変化する。これは、プロ
グラム選択信号SEL・Aの場合も同様であり、その間
のデータ状態は図示のように斜線で示すように不定であ
る。Thereafter, when a switching command signal to select the ROM 6 is given to the CPU 3 from the terminal 1, the process shown in FIG.
b) The program selection signal SEL is activated by the interrupt routine of
・B changes from H level to L level. The same is true for the program selection signal SEL.A, and the data state during that time is undefined as indicated by diagonal lines in the figure.
【0017】これによりFF44はセットされてそのイ
ネーブル選択信号OEはLレベルとなってROM6を選
択するように切替えられる。尚、このイネーブル選択信
号OEは一方のROMへの線路だけインバータを挿入し
ておき、Hレベルを受けたときにイネーブルになるよう
にしてもよいし、或いは各ROMでH/Lレベルに応じ
てイネーブルにするようにしておいてもよい。As a result, the FF 44 is set and its enable selection signal OE goes to L level, and the FF 44 is switched to select the ROM 6. For this enable selection signal OE, an inverter may be inserted in only one line to one ROM so that it becomes enabled when it receives an H level, or it may be set in accordance with the H/L level in each ROM. You may also enable it.
【0018】このときパワーオン・リセット信号は図示
のようにHレベルに立ち上がっているとすると、NAN
Dゲート43の出力信号aはLレベルからHレベルに立
ち上がるが、これによりFF45のQ出力bが立ち上が
るため、NANDゲート43の出力信号aは再び立ち下
がる。At this time, if the power-on reset signal rises to H level as shown in the figure, the NAN
The output signal a of the D gate 43 rises from the L level to the H level, but as a result the Q output b of the FF 45 rises, the output signal a of the NAND gate 43 falls again.
【0019】また、FF45のQ出力bがカウンタ47
のクリア信号になることによりカウンタ47はクリアさ
れた時点からカウントを開始し、パルスOSCを7個カ
ウトした時点でリセットパルスRSTを立ち上げると共
に15個カウントした時点(16分周時点)で立ち下げ
ることによりCPU3をリセットして初期化する。また
、このカウンタ47は図示のようにカウント開始からパ
ルスOSCを15個カウントした段階でキャリィ出力が
Hレベルとなり、NANDゲート48の出力cがLレベ
ルに下がってFF45をリセットしてそのQ出力bをL
レベルに変化させ、またカウンタFF47をクリアする
のでNANDゲート48の出力cはHレベルに戻ること
となる。このようにして、切替命令信号に基づいてRO
M5,6の切替とCPU3のリセットを行うこととなる
。Furthermore, the Q output b of the FF 45 is output to the counter 47.
When the counter 47 becomes a clear signal, it starts counting from the time it is cleared, and when it counts 7 pulses OSC, it starts the reset pulse RST, and when it counts 15 pulses, it starts counting down (at the time when the frequency is divided by 16). This resets and initializes the CPU 3. Further, as shown in the figure, when the counter 47 counts 15 pulses OSC from the start of counting, the carry output becomes H level, the output c of the NAND gate 48 falls to L level, resets the FF 45, and outputs its Q output b. L
Since the counter FF 47 is cleared, the output c of the NAND gate 48 returns to the H level. In this way, based on the switching command signal, the RO
Switching of M5 and M6 and resetting of CPU3 will be performed.
【0020】[0020]
【発明の効果】以上のように本発明に係るプログラム切
替方式によれば、加入者端末より信号レベル変換部を介
してCPUに切替命令信号を送ると、該CPUが切替制
御部にプログラム選択信号を送り、該プログラム選択信
号により該切替制御部が2つのプログラムメモリの一方
を該CPUとの間で動作可能にするように構成したので
、工場試験時のモードと通常動作時のモードとを、又は
出荷時の保守モードと通常動作時のモードとを別々のメ
モリにして自動的に加入者端末側から切替えることがで
き、プログラム開発の短期化及び各ソフトウェアの信頼
性を向上させることができる。As described above, according to the program switching method according to the present invention, when a switching command signal is sent from a subscriber terminal to a CPU via a signal level conversion section, the CPU sends a program selection signal to a switching control section. Since the switching control unit is configured to enable one of the two program memories to operate with the CPU in response to the program selection signal, the factory test mode and the normal operation mode can be changed. Alternatively, the maintenance mode at the time of shipment and the mode during normal operation can be stored in separate memories and automatically switched from the subscriber terminal side, thereby shortening the program development time and improving the reliability of each software.
【図1】本発明に係るプログラム切替方式の原理構成を
示したブロック図である。FIG. 1 is a block diagram showing the principle configuration of a program switching method according to the present invention.
【図2】本発明に係るプログラム切替方式に用いるCP
Uの処理フローチャート図である。[Fig. 2] CP used in the program switching method according to the present invention
It is a processing flowchart figure of U.
【図3】本発明に係るプログラム切替方式に用いられる
切替制御部の一実施例を示した回路図である。FIG. 3 is a circuit diagram showing an embodiment of a switching control section used in the program switching method according to the present invention.
【図4】本発明に用いる切替制御部の動作を説明するた
めのタイムチャート図である。FIG. 4 is a time chart diagram for explaining the operation of a switching control section used in the present invention.
【図5】従来例を示したブロック図である。FIG. 5 is a block diagram showing a conventional example.
1 加入者端末 2 信号レベル変換部 3 CPU 4 切替制御部 5,6 プログラムメモリ 図中、同一符号は同一又は相当部分を示す。 1 Subscriber terminal 2 Signal level conversion section 3 CPU 4 Switching control section 5, 6 Program memory In the figures, the same reference numerals indicate the same or corresponding parts.
Claims (2)
換部(2) を介してCPU(3) に切替命令信号を
送ると、該CPU(3) が切替制御部(4) にプロ
グラム選択信号を送り、該プログラム選択信号により該
切替制御部(4) が2つのプログラムメモリ(5,6
) の一方を該CPU(3) との間で動作可能にする
ことを特徴としたプログラム切替方式。[Claim 1] When a switching command signal is sent from a subscriber terminal (1) to a CPU (3) via a signal level conversion unit (2), the CPU (3) sends a program selection signal to a switching control unit (4). and the program selection signal causes the switching control unit (4) to select the two program memories (5, 6).
) is enabled to operate between the CPU (3) and the CPU (3).
・リセット信号により予め定めた一方のプログラムメモ
リを該CPU(3) との間で動作可能にすることを特
徴とした請求項1記載のプログラム切替方式。2. The switching control unit (4) enables one predetermined program memory to operate with the CPU (3) by a power-on reset signal. program switching method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3157679A JPH04355829A (en) | 1991-05-31 | 1991-05-31 | Program switching system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3157679A JPH04355829A (en) | 1991-05-31 | 1991-05-31 | Program switching system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04355829A true JPH04355829A (en) | 1992-12-09 |
Family
ID=15655019
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3157679A Pending JPH04355829A (en) | 1991-05-31 | 1991-05-31 | Program switching system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04355829A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6041052A (en) * | 1996-02-02 | 2000-03-21 | Fujitsu Limited | Call control system for a subscriber transmission device |
JP2009093584A (en) * | 2007-10-12 | 2009-04-30 | Buffalo Inc | Connecting device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01112334A (en) * | 1987-10-26 | 1989-05-01 | Matsushita Electric Works Ltd | Controller |
JPH02242333A (en) * | 1989-03-15 | 1990-09-26 | Nec Corp | Controlled memory switching system |
-
1991
- 1991-05-31 JP JP3157679A patent/JPH04355829A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01112334A (en) * | 1987-10-26 | 1989-05-01 | Matsushita Electric Works Ltd | Controller |
JPH02242333A (en) * | 1989-03-15 | 1990-09-26 | Nec Corp | Controlled memory switching system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6041052A (en) * | 1996-02-02 | 2000-03-21 | Fujitsu Limited | Call control system for a subscriber transmission device |
JP2009093584A (en) * | 2007-10-12 | 2009-04-30 | Buffalo Inc | Connecting device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0127440B1 (en) | Integrated circuit device incorporating a data processing unit and a rom storing applications program therein | |
US4796211A (en) | Watchdog timer having a reset detection circuit | |
EP0132133B1 (en) | Microcomputer | |
EP0488281B1 (en) | Test mode setting arrangement for use in microcomputer | |
CA2058933C (en) | Reset method when adaptor module is faulty and computer system executing same | |
JPH04355829A (en) | Program switching system | |
JP2743850B2 (en) | Data processing device | |
US5261083A (en) | Floppy disk controller interface for suppressing false verify cycle errors | |
KR940011040B1 (en) | Microcomputer | |
US5293572A (en) | Testing system of computer by generation of an asynchronous pseudo-fault | |
JP2000322282A (en) | Microcomputer | |
CN110737480A (en) | Multiplexing method and device for serial port drivers | |
US6304964B1 (en) | Apparatus and method for controlling initialization of a processor system | |
JPH10124444A (en) | Automatic master and slave setting system | |
JPH05274141A (en) | Program loading system | |
KR100240963B1 (en) | Plc apparatus and control method | |
JP4083954B2 (en) | Anomaly monitoring apparatus and anomaly monitoring method | |
JPH09167117A (en) | Microcomputer and real time system using the microcomputer | |
SU1126928A1 (en) | Device for consecutive program control | |
JPH1166020A (en) | Abnormality detection circuit for microcomputer | |
JPH03225546A (en) | Method for confirming whether option board is mounted or not | |
JPS6359167B2 (en) | ||
JP2704935B2 (en) | Processor with test function | |
JPH0764822A (en) | Microcomputer | |
JP2000020498A (en) | Microcomputer and its restoring method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19970128 |