JPH0716190Y2 - Vending machine controller - Google Patents

Vending machine controller

Info

Publication number
JPH0716190Y2
JPH0716190Y2 JP1986037764U JP3776486U JPH0716190Y2 JP H0716190 Y2 JPH0716190 Y2 JP H0716190Y2 JP 1986037764 U JP1986037764 U JP 1986037764U JP 3776486 U JP3776486 U JP 3776486U JP H0716190 Y2 JPH0716190 Y2 JP H0716190Y2
Authority
JP
Japan
Prior art keywords
write
data
signal
ram
sent
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 - Lifetime
Application number
JP1986037764U
Other languages
Japanese (ja)
Other versions
JPS62151674U (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.)
Sanden Holdings Corp
Original Assignee
Sanden 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 Sanden Corp filed Critical Sanden Corp
Priority to JP1986037764U priority Critical patent/JPH0716190Y2/en
Publication of JPS62151674U publication Critical patent/JPS62151674U/ja
Application granted granted Critical
Publication of JPH0716190Y2 publication Critical patent/JPH0716190Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【考案の詳細な説明】 (産業上の利用分野) 本考案は、Random Access Memory(以下RAMという)に
記憶された自動販売機の機構制御用データ、商品販売制
御用データ及び販売回路データ等のデータを用いてマイ
クロコンピュータで自動販売機の制御を行なう自動販売
機の制御装置に関するものである。
[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to mechanism control data, product sales control data, sales circuit data, etc. of a vending machine stored in a Random Access Memory (hereinafter referred to as RAM). The present invention relates to a vending machine control device that controls a vending machine with a microcomputer using data.

(従来の技術) 従来の自動販売機では、商品搬出機構制御や温度制御や
その他の制御をマイクロコンピュータで行なう場合、各
制御に必要なデータ及びフラグ等をRAMに記憶し、マイ
クロコンピュータで制御を実行する時に該RAMを直接ハ
ードウエアで操作してデータ等の読み出し或いは書き込
みを行ない、そのデータに従い制御シーケンスを処理し
ている。即ち、RAMにデータを書き込み場合、従来では
マイクロコンピュータから書き込み信号であるメモリー
リクエスト信号MREQ及びライト信号WRをRAMのCE端子及
びWE端子に送出することによりデータを書き込んでい
た。
(Prior Art) In a conventional vending machine, when the microcomputer controls the product discharge mechanism, temperature, and other controls, the data and flags required for each control are stored in RAM, and the microcomputer controls. At the time of execution, the RAM is directly operated by hardware to read or write data or the like, and the control sequence is processed according to the data. That is, when writing data to the RAM, conventionally, the microcomputer writes the data by sending the memory request signal MREQ and the write signal WR which are write signals to the CE terminal and WE terminal of the RAM.

(考案が解決しようとする課題) しかし、従来では、ノイズ等や何らかの要因によりプロ
グラムが暴走を生じ、マイクロコンピュータから書き込
み信号が誤って出力された場合に、データの誤書き込み
を発生してRAMの正常データを破壊してしまうという問
題点があり、このような状態になった後ではプログラム
の暴走を停止させても、RAMデータが破壊されている
為、制御機能の回復は不可能であった。
(Problems to be solved by the invention) However, in the past, when a program ran out of control due to noise or some other factor and a write signal was erroneously output from the microcomputer, erroneous writing of data occurred and the RAM There is a problem that normal data will be destroyed, and even after stopping the program runaway after such a state, it was impossible to recover the control function because the RAM data was destroyed. .

(課題を解決するための手段) 本考案は前記目的を達成するために、マイクロコンピュ
ータの中央処理装置と、RAMと、前記中央処理装置から
送出されたI/Oリクエスト信号及びライト信号を受けてI
/Oライト信号を送出するとともに、メモリーリクエスト
信号及びライト信号を受けてメモリーライト信号を送出
する入出力コントローラと、前記中央処理装置から送出
された入出力回路選定用のポート信号を受けてRAMライ
トセレクト信号を送出するプログラマブルセレクタと、
前記入出力コントローラ及びプログラマブルセレクタ夫
々から送出されたI/Oライト信号及びRAMライトセレクト
信号を受けてデータ書き込み可能状態となり該データ書
き込み可能状態で入出力コントローラから送出されたメ
モリーライト信号を受けている間のみ前記RAMにデータ
書き込み信号を送出するとともに、前記メモリーライト
信号が断たれた時に前記データ書き込み信号の送出を停
止してデータ書き込み禁止状態に戻るデータ書き込み制
御回路とを備えた、ことを特徴としている。
(Means for Solving the Problems) In order to achieve the above-mentioned object, the present invention receives a central processing unit of a microcomputer, a RAM, and an I / O request signal and a write signal sent from the central processing unit. I
I / O controller that sends / O write signal and also sends memory write signal in response to memory request signal and write signal, and RAM write by receiving port signal for I / O circuit selection sent from the central processing unit A programmable selector that sends a select signal,
Receiving an I / O write signal and a RAM write select signal sent from each of the input / output controller and the programmable selector to enter a data writable state and receiving a memory write signal sent from the input / output controller in the data writable state. A data write control circuit that sends a data write signal to the RAM only during a period of time, and stops sending of the data write signal when the memory write signal is cut off, and returns to a data write prohibited state. I am trying.

(作用) 本考案によれば、マイクロコンピュータとRAMとの間に
マイクロコンピュータのポート出力で選択可能なデータ
書き込み制御回路を設け、このデータ書き込み制御回路
により通常はRAMがデータ書き込み禁止状態になってい
るので、マイクロコンピュータからの書き込み信号を受
けただけではRAMに書き込み信号が送出されることがな
い。
(Operation) According to the present invention, the data write control circuit which can be selected by the port output of the microcomputer is provided between the microcomputer and the RAM, and the data write control circuit normally puts the RAM in the data write disable state. Therefore, the write signal is not sent to the RAM only by receiving the write signal from the microcomputer.

また、RAMにデータを書き込む場合にはマイクロコンピ
ュータで予め決められたプログラムシーケンスに基づい
てデータ書き込み制御回路にプログラマブルセレクタか
らRAMライトセレクタ信号を送出し、また入出力コント
ローラからI/Oライト信号を送出して該データ書き込み
制御回路をデータ書き込み可能状態にするとともに、該
データ書き込み可能状態で入出力コントローラから該デ
ータ書き込み制御回路にメモリーライト信号が送出され
ている間のみRAMに書き込み信号を送出してデータを書
き込むようにしている。データ書き込み制御回路はメモ
リーライト信号の送出終了と同時に再び書き込み禁止状
態となる。
When writing data to RAM, the RAM write selector signal is sent from the programmable selector to the data write control circuit based on the program sequence predetermined by the microcomputer, and the I / O write signal is sent from the input / output controller. Then, the data write control circuit is set to the data writable state, and the write signal is sent to the RAM only while the memory write signal is sent from the input / output controller to the data write control circuit in the data writable state. I try to write data. The data write control circuit becomes write-inhibited again at the same time when the memory write signal is sent.

(実施例) 以下に、第1図の回路構成を示した制御ブロック図と第
2図のタイムチャートを参照して本考案の一実施例を説
明する。
(Embodiment) An embodiment of the present invention will be described below with reference to the control block diagram showing the circuit configuration of FIG. 1 and the time chart of FIG.

同図において、1はマイクロコンピュータの中央処理装
置、2はRAM、3は入出力のコントロール信号を送出す
る入出力コントローラ、4は入出力回路の選定を行なう
プログラマブルセレクタ、5はRAM2におけるデータの書
き込みを制御するデータ書き込み制御回路、6はRAM2に
おけるデータの書き込みを可能とするデータ書き込み信
号、7はデータバス、8はアドレスバスである。
In the figure, 1 is a central processing unit of a microcomputer, 2 is a RAM, 3 is an input / output controller for sending out input / output control signals, 4 is a programmable selector for selecting an input / output circuit, and 5 is data writing in RAM2. Is a data write control circuit that controls the data writing, 6 is a data write signal that enables writing of data in the RAM 2, 7 is a data bus, and 8 is an address bus.

マイクロコンピュータの中央処理装置1、データバス7
とアドレスバス8によりRAM2に接続されている。予め決
められたプログラムシーケンスに基づいて中央処理装置
1の出力ポートP0乃至P3から入出力回路選定用のプログ
ラマブルセレクタ4に所定のポート信号が送出される
と、このプログラマブルセレクタ4からはデータ書き込
み制御回路5に対してRAMライトセレクト信号が送出さ
れる。また、これと同期して中央処理装置1から入出力
コントローラ3へI/Oリクエスト信号IORQ及びライト信
号WRが送出され、この信号を受けた入出力コントローラ
3から前記データ書き込み制御回路5に対してI/Oライ
ト信号が送出される。
Central processing unit 1 of microcomputer, data bus 7
And address bus 8 to RAM2. When a predetermined port signal is sent from the output ports P0 to P3 of the central processing unit 1 to the programmable selector 4 for selecting an input / output circuit based on a predetermined program sequence, the programmable selector 4 outputs a data write control circuit. A RAM write select signal is sent to 5. Further, in synchronization with this, an I / O request signal IORQ and a write signal WR are sent from the central processing unit 1 to the input / output controller 3, and the input / output controller 3 which has received these signals sends the data write control circuit 5 to the input / output controller 3. I / O write signal is sent out.

データ書き込み制御回路5にRAMライトセレクト信号とI
/Oライト信号が送出された状態では、通常はRAM2に対し
てデータ書き込み禁止状態であったデータ書き込み制御
回路5が略同時に入力されたRAMライトセレクト信号及
びI/Oライト信号をラッチしてデータ書き込み可能状態
(イネーブル状態)になる。
RAM write select signal and I to the data write control circuit 5
In the state where the / O write signal is sent, the data write control circuit 5, which is normally in the data write inhibit state for the RAM 2, latches the RAM write select signal and the I / O write signal input almost at the same time to write data. It becomes the writable state (enable state).

次に、プログラムシーケンスに基づいて前記中央処理装
置1から入出力コントローラ3にメモリリクエスト信号
MREQとライト信号WRが送出され、この信号を受けた入出
力コントローラ3から前記データ書き込み制御回路5に
対してメモリーライト信号が送出される。この時マイク
ロコンピュータの中央処理装置1はRAM2に書き込むべき
データをデータバス7に送出する。
Next, a memory request signal is sent from the central processing unit 1 to the input / output controller 3 based on the program sequence.
The MREQ and the write signal WR are sent out, and the memory write signal is sent to the data write control circuit 5 from the input / output controller 3 which receives this signal. At this time, the central processing unit 1 of the microcomputer sends the data to be written in the RAM 2 to the data bus 7.

前述のようにデータ書き込み制御回路5にRAMライトセ
レクト信号とI/Oライト信号が入力されている状態でメ
モリーライト信号が入力されると、該データ書き込み制
御回路5はメモリーライト信号が入力されている間のみ
RAM2に対してデータ書き込み信号6を送出し、RAM2はこ
のデータ書き込み信号6を受けることにより書き込み可
能となりアドレスバス8でシェードされたアドレスにデ
ータバス7上の値が書き込まれる。
As described above, when the memory write signal is input while the RAM write select signal and the I / O write signal are input to the data write control circuit 5, the data write control circuit 5 receives the memory write signal. Only while
The data write signal 6 is sent to the RAM 2, and the RAM 2 receives the data write signal 6 and becomes writable, and the value on the data bus 7 is written in the address shaded by the address bus 8.

次に第3図のフローチャートを参照してRAM2のデータ書
き込みシーケンスを説明する。
Next, the data write sequence of the RAM 2 will be described with reference to the flowchart of FIG.

マイクロコンピュータ1でまずデータ書き込み番地をセ
ットし(ステップ1)、次に書き込みデータをセットし
(ステップ2)、次にデータ書き込み許可ポートセット
をする(ステップ3)。次に入出力コントローラ3とプ
ログラマブルセレクタ4夫々からデータ書き込み制御回
路5にI/Oライト信号とRAMライトセレクト信号を送出す
る(ステップ4)。次に入出力コントローラ3からメモ
リーライト信号をデータ書き込み制御回路5に送出し、
データ書き込み制御回路5からデータ書き込み信号6を
RAM2に送出し、マイクロコンピュータ1からデータバス
7を通してRAM2にデータが書き込まれる(ステップ
5)。次にマイクロコンピュータ1の制御信号出力が断
たれ、入出力コントローラ3のメモリーライト信号が断
たれ、データ書き込み制御回路5はラッチを解除し、再
び書き込み禁止状態となり、ここでデータ書き込みシー
ケンスを終了する(ステップ6)。
The microcomputer 1 first sets a data write address (step 1), then sets write data (step 2), and then sets a data write permission port (step 3). Next, the I / O write signal and the RAM write select signal are sent from the input / output controller 3 and the programmable selector 4 to the data write control circuit 5 (step 4). Next, the memory write signal is sent from the input / output controller 3 to the data write control circuit 5,
The data write signal 6 is sent from the data write control circuit 5.
The data is sent to the RAM2, and the data is written from the microcomputer 1 to the RAM2 through the data bus 7 (step 5). Next, the control signal output of the microcomputer 1 is cut off, the memory write signal of the input / output controller 3 is cut off, and the data write control circuit 5 releases the latch and enters the write-inhibited state again, where the data write sequence is ended. (Step 6).

(考案の効果) 以上詳細に説明したように本考案によれば、マイクロコ
ンピュータとRAMとの間にマイクロコンピュータのポー
ト出力で選択可能なデータ書き込み制御回路を設け、こ
のデータ書き込み制御回路により通常はRAMがデータ書
き込み禁止状態になっているので、マイクロコンピュー
タからの書き込み信号を受けただけではRAMに書き込み
信号が送出されることがない。また、RAMにデータを書
き込む場合にはマイクロコンピュータで予め決められた
プログラムシーケンスに基づいてデータ書き込み制御回
路にプログラマブルセレクタからRAMライトセレクタ信
号を送出し、また入出力コントローラからI/Oライト信
号を送出して該データ書き込み制御回路をデータ書き込
み可能状態にするとともに、該データ書き込み可能状態
で入出力コントローラから該データ書き込み制御回路に
メモリーライト信号が送出されている間のみRAMに書き
込み信号を送出してデータを書き込むようにしているの
で、マイクロコンピュータがシーケンス制御の各段階を
正常に実行しなければ、データ書き込み制御回路による
書き込み禁止を解除できずRAMにデータを書き込むこと
ができない。したがって、プログラムが暴走を生じてマ
クロコンピュータから書き込み信号が誤って出力された
場合においてもRAMデータの破壊を確実に防止してデー
タの保護を図ることができる。
(Effect of the Invention) As described in detail above, according to the present invention, a data write control circuit which can be selected by the port output of the microcomputer is provided between the microcomputer and the RAM. Since the RAM is in the data write prohibited state, the write signal is not sent to the RAM only by receiving the write signal from the microcomputer. When writing data to RAM, the RAM write selector signal is sent from the programmable selector to the data write control circuit based on the program sequence predetermined by the microcomputer, and the I / O write signal is sent from the input / output controller. Then, the data write control circuit is set to the data writable state, and the write signal is sent to the RAM only while the memory write signal is sent from the input / output controller to the data write control circuit in the data writable state. Since the data is written, unless the microcomputer normally executes each step of the sequence control, the write protection by the data write control circuit cannot be released and the data cannot be written in the RAM. Therefore, even when the program runs out of control and the write signal is erroneously output from the macro computer, it is possible to reliably prevent the RAM data from being destroyed and protect the data.

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

第1図は本考案の回路構成を示した制御ブロック図、第
2図は本考案のRAM書き込みシーケンスのフローチャー
ト、第3図は本考案のタイムチャートである。 1…マイクロコンピュータ、2…RAM、3…入出力コン
トローラ、4…プログラマブルセレクタ、5…データ書
き込み制御回路、6…データ書き込み信号、7…データ
バス、8…アドレスバス。
FIG. 1 is a control block diagram showing a circuit configuration of the present invention, FIG. 2 is a flow chart of a RAM writing sequence of the present invention, and FIG. 3 is a time chart of the present invention. 1 ... Microcomputer, 2 ... RAM, 3 ... Input / output controller, 4 ... Programmable selector, 5 ... Data write control circuit, 6 ... Data write signal, 7 ... Data bus, 8 ... Address bus.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】マイクロコンピュータの中央処理装置1
と、 RAM2と、 前記中央処理装置1から送出されたI/Oリクエスト信号
及びライト信号を受けてI/Oライト信号を送出するとと
もに、メモリーリクエスト信号及びライト信号を受けて
メモリーライト信号を送出する入出力コントローラ3
と、 前記中央処理装置1から送出された入出力回路選定用の
ポート信号を受けてRAMライトセレクト信号を送出する
プログラマブルセレクタ4と、 前記入出力コントローラ3及びプログラマブルセレクタ
4夫々から送出されたI/Oライト信号及びRAMライトセレ
クト信号を受けてデータ書き込み可能状態となり該デー
タ書き込み可能状態で入出力コントローラ3から送出さ
れたメモリーライト信号を受けている間のみ前記RAM2に
データ書き込み信号を送出するとともに、前記メモリー
ライト信号が断たれた時に前記データ書き込み信号の送
出を停止してデータ書き込み禁止状態に戻るデータ書き
込み制御回路5とを備えた、 ことを特徴とする自動販売機の制御装置。
1. A central processing unit 1 of a microcomputer.
And RAM2 and I / O request signal and write signal sent from the central processing unit 1 to send I / O write signal and memory request signal and write signal to send memory write signal I / O controller 3
A programmable selector 4 for receiving a port signal for selecting an input / output circuit sent from the central processing unit 1 and sending a RAM write select signal; and an I / O sent from the input / output controller 3 and programmable selector The data write signal is sent to the RAM 2 only while receiving the memory write signal sent from the input / output controller 3 in the data writable state in response to the O write signal and the RAM write select signal. And a data write control circuit (5) that stops sending of the data write signal and returns to a data write prohibited state when the memory write signal is cut off.
JP1986037764U 1986-03-15 1986-03-15 Vending machine controller Expired - Lifetime JPH0716190Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1986037764U JPH0716190Y2 (en) 1986-03-15 1986-03-15 Vending machine controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1986037764U JPH0716190Y2 (en) 1986-03-15 1986-03-15 Vending machine controller

Publications (2)

Publication Number Publication Date
JPS62151674U JPS62151674U (en) 1987-09-25
JPH0716190Y2 true JPH0716190Y2 (en) 1995-04-12

Family

ID=30849382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1986037764U Expired - Lifetime JPH0716190Y2 (en) 1986-03-15 1986-03-15 Vending machine controller

Country Status (1)

Country Link
JP (1) JPH0716190Y2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5717060A (en) * 1980-07-04 1982-01-28 Nec Corp Information processor
JPS60239850A (en) * 1984-05-14 1985-11-28 Fuji Xerox Co Ltd Microprocessor system provided with no-break memory

Also Published As

Publication number Publication date
JPS62151674U (en) 1987-09-25

Similar Documents

Publication Publication Date Title
US4975838A (en) Duplex data processing system with programmable bus configuration
JPS6133218B2 (en)
US20060168385A1 (en) Interrupt controller for a microprocessor
JPH0716190Y2 (en) Vending machine controller
JPS59229662A (en) Common memory control circuit
JPH0340417B2 (en)
JP2682707B2 (en) Programmable controller
JPH05225361A (en) Register rewriting system
JPS59116866A (en) Storage device of computer system
JP2602909B2 (en) Write-protection method during CPU runaway
JPS6210757A (en) Processor control system
JPH0443355B2 (en)
JPS6227423B2 (en)
JPH046030B2 (en)
JPH0351017B2 (en)
JPS61133436A (en) Data processing unit
JPS5921062B2 (en) Memory contention control method
JPH04128961A (en) Multi-processor control system
JPS59128619A (en) Microcomputer device
JPH064469A (en) Input/output device control system
JPH01287762A (en) Shared data memory protecting method
JPH05307503A (en) Write inhibition control system for dual port memory
JPS5856200B2 (en) data processing equipment
JPS6326422B2 (en)
JPS633353A (en) Data write controller for memory