JPH0792856B2 - Discriminator of currency counter - Google Patents
Discriminator of currency counterInfo
- Publication number
- JPH0792856B2 JPH0792856B2 JP1159972A JP15997289A JPH0792856B2 JP H0792856 B2 JPH0792856 B2 JP H0792856B2 JP 1159972 A JP1159972 A JP 1159972A JP 15997289 A JP15997289 A JP 15997289A JP H0792856 B2 JPH0792856 B2 JP H0792856B2
- Authority
- JP
- Japan
- Prior art keywords
- control signal
- cpu
- sampling data
- memory
- 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.)
- Expired - Lifetime
Links
- 238000005070 sampling Methods 0.000 claims description 57
- 238000000034 method Methods 0.000 claims description 17
- 230000015654 memory Effects 0.000 description 47
- 238000010586 diagram Methods 0.000 description 4
- 238000004904 shortening Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Inspection Of Paper Currency And Valuable Securities (AREA)
Description
【発明の詳細な説明】 「産業上の利用分野」 この発明は、紙幣,硬貨などの計数機に係り、その読取
判別に用いて好適な貨幣計数機の判別装置に関する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a counter for bills, coins and the like, and to a discriminator for a coin counter, which is suitable for discriminating the reading of the counter.
「従来の技術」 一般に、貨幣計数機では、貨幣などを単に計数するだけ
ではなく、その画像パターンを読み取り、真偽の判別処
理を行っている。“Prior Art” Generally, in a money counter, not only the money is simply counted, but also its image pattern is read to perform a true / false determination process.
第3図は上述した貨幣計数機の第1の従来例による判別
装置の構成を示すブロック図である。この図において、
この判別装置はセンサ2、アンプ3、A/D変換器4、CPU
(中央処理装置)5、DMA(ダイレクト・メモリ・アク
セス)コントローラ8および2つのメモリ9,10から構成
されている。この判別装置では、一方のメモリ9をサン
プリングデータSDの書き込み専用とし、他方のメモリ10
を判別処理専用としている。FIG. 3 is a block diagram showing the configuration of a discriminating apparatus according to the first conventional example of the above-mentioned currency counter. In this figure,
This discrimination device is a sensor 2, an amplifier 3, an A / D converter 4, a CPU
(Central processing unit) 5, DMA (Direct Memory Access) controller 8 and two memories 9 and 10. In this discriminating device, one memory 9 is dedicated to writing sampling data SD and the other memory 10
Is dedicated to the discrimination process.
上述した構成において、まず、1枚目の計数対象物の画
像パターンがセンサ2によって検出され、このセンサ2
からのアナログ信号がアンプ3によって増幅される。そ
して、アンプ3からのアナログ信号は、A/D変換器4に
よってデジタル信号のサンプリングデータSD1に変換さ
れる。このサンプリングデータSD1は、CPU5によってメ
モリ9に書き込まれる。サンプリングデータSD1の書き
込みが終了すると、メモリ9に書き込まれたサンプリン
グデータSD1は、CPU5またはDMAコントローラ8によっ
て、判別処理用のメモリ10に転送される。サンプリング
データSD1の転送が終了すると、このサンプリングデー
タSD1に基づいてCPU5により判別処理が行われる。ま
た、判別処理の実行中には、これに並行してCPU5の割込
処理によってメモリ9に2枚目の計数対象物のサンプリ
ングデータSD2が書き込まれる。そして、サンプリング
データSD1に対する判別処理が終了すると、DMAコントロ
ーラ8などによってメモリ9からメモリ10へサンプリン
グデータSD2が転送される。サンプリングデータSD2の転
送が終了すると、再び、このサンプリングデータSD2に
基づいてCPU5により判別処理が行われる。以後、A/D変
換器4から供給される新たなサンプリングデータSD3,S
D4……は、計数対象物毎にメモリ9に一旦記憶され、そ
の後、所定のタイミングでメモリ10に転送される。そし
て、このメモリ10に転送されたサンプリングデータS
D3,SD4……に基づいてCPU5により判別処理が行われ
る。In the configuration described above, first, the image pattern of the first counting object is detected by the sensor 2,
The analog signal from is amplified by the amplifier 3. Then, the analog signal from the amplifier 3 is converted into sampling data SD 1 of a digital signal by the A / D converter 4. This sampling data SD 1 is written in the memory 9 by the CPU 5. When the writing of the sampling data SD 1 is completed, the sampling data SD 1 written in the memory 9 is transferred to the memory 10 for determination processing by the CPU 5 or the DMA controller 8. When the transfer of the sampling data SD 1 is completed, the CPU 5 performs a determination process based on the sampling data SD 1 . Further, during execution of the determination process, the sampling data SD 2 of the second counting object is written in the memory 9 in parallel with the interrupt process of the CPU 5. Then, when the determination process for the sampling data SD 1 is completed, the DMA controller 8 or the like transfers the sampling data SD 2 from the memory 9 to the memory 10. When the transfer of the sampling data SD 2 is completed, the determination processing is performed again by the CPU 5 based on the sampling data SD 2 . After that, new sampling data SD 3 , S supplied from the A / D converter 4
D 4 ... Is temporarily stored in the memory 9 for each object to be counted, and then transferred to the memory 10 at a predetermined timing. Then, the sampling data S transferred to the memory 10
The discrimination processing is performed by the CPU 5 based on D 3 , SD 4 ...
次に、第2の従来例の判別装置について説明する。この
判別装置の構成は第3図に示す第1の従来例と同様であ
る。ただし、この判別装置では、サンプリングデータSD
1,SD2……の書き込みおよび判別処理がメモリ9,10に対
して交互に行われる。まず、第1の従来例と同様に順次
供給される計数対象物の画像パターンがセンサ2によっ
て検出され、このセンサ2からのアナログ信号がアンプ
3によって増幅された後、A/D変換器4によってデジタ
ル信号のサンプリングデータSD1,SD2……に変換され
る。このサンプリングデータSD1,SD2……は、計数対象
物毎にDMAコントローラ8によってメモリ9およびメモ
リ10へ交互に書き込まれる。また、CPU5による判別処理
は、DMAコントローラ8の書き込みが行われているメモ
リとは反対側のメモリ、すなわち既にサンプリングデー
タSD1,SD2……の書き込みが終了したメモリに対して順
次行われる。Next, a second conventional discrimination device will be described. The configuration of this discriminating device is the same as that of the first conventional example shown in FIG. However, in this discriminator, sampling data SD
Writing of 1 , SD 2 ... and discrimination processing are alternately performed on the memories 9 and 10. First, similarly to the first conventional example, the image pattern of the counting object sequentially supplied is detected by the sensor 2, the analog signal from the sensor 2 is amplified by the amplifier 3, and then by the A / D converter 4. Converted to digital signal sampling data SD 1 , SD 2, .... The sampling data SD 1 , SD 2, ... Are alternately written to the memory 9 and the memory 10 by the DMA controller 8 for each counting object. Further, the determination process by the CPU 5 is sequentially performed on the memory on the opposite side of the memory on which the DMA controller 8 is writing, that is, the memory on which the writing of the sampling data SD 1 , SD 2, ... Has already been completed.
「発明が解決しようとする課題」 ところで、第3図に示す第1の従来例の判別装置では、
書き込み専用のメモリ9から判別処理専用のメモリ10へ
サンプリングデータを転送させする必要がある。この結
果、サンプリングデータの転送時間が判別処理時間を圧
迫するため、比較的処理時間が長い高精度の判別処理の
実行およびサンプリング間隔の短縮に対応できなくなる
という問題を生じる。"Problems to be Solved by the Invention" By the way, in the discrimination apparatus of the first conventional example shown in FIG.
It is necessary to transfer the sampling data from the write-only memory 9 to the determination processing dedicated memory 10. As a result, the transfer time of the sampling data puts pressure on the discrimination processing time, which causes a problem that it is not possible to perform high-precision discrimination processing for a relatively long processing time and shorten the sampling interval.
また、第2の従来例の判別装置では、CPUおよびDMAコン
トローラは、同一の共通データバス,アドレスバス等を
使用している。このため、実際には、DMAコントローラ
によるサンプリングデータの転送とCPUによる判別処理
とを並列処理することはできず、どちらか一方が動作し
ている時には他方は待機している必要がある。また、一
般に、判別処理用のプログラムには、メモリアクセスに
関する命令が多数記述されており、これらの命令ではア
クセスすべきメモリのアドレスが物理アドレスによって
記述されている。したがって、判別処理の対象となるメ
モリを切り替えると、サンプリングデータの格納アドレ
スが変わってしまうため、上記命令によるメモリアドレ
スと上記格納アドレスとが一致しなくなる。この結果、
プログラム中の上記命令によるメモリアドレスを判別処
理中に計算する必要がある。以上のように、この判別装
置では、並列処理をすることができないために待機時間
が生じ、かつ、判別処理中にアドレス計算が必要となる
ため、これらに要する時間が判別処理時間を圧迫し、比
較的処理時間が長い高精度の判別処理の実行に対応でき
なくなるという問題を生じる。また、この判別装置で
は、上述した理由により計数対象物の処理枚数の増加要
求に対するサンプリング間隔の短縮にも対応できなくな
るという問題を生じる。Further, in the discriminating apparatus of the second conventional example, the CPU and the DMA controller use the same common data bus, address bus and the like. Therefore, in practice, the transfer of the sampling data by the DMA controller and the determination processing by the CPU cannot be performed in parallel, and when one of them is operating, the other needs to wait. In addition, in general, a large number of instructions related to memory access are described in a program for discrimination processing, and the addresses of the memory to be accessed are described by physical addresses in these instructions. Therefore, when the memory that is the target of the discrimination processing is switched, the storage address of the sampling data changes, so that the memory address according to the instruction and the storage address do not match. As a result,
It is necessary to calculate the memory address according to the above instruction in the program during the discrimination processing. As described above, in this discriminating apparatus, since waiting time is generated because parallel processing cannot be performed, and address calculation is required during the discriminating processing, the time required for these puts pressure on the discriminating processing time, There arises a problem that it becomes impossible to cope with the execution of the highly accurate discrimination processing which takes a relatively long processing time. Further, this discriminating apparatus has a problem that it is not possible to cope with the shortening of the sampling interval in response to the request for increasing the number of processed objects to be counted, for the reason described above.
この発明は、上述の問題点に鑑みてなされたもので、高
精度の判別処理の実行およびサンプリング間隔の短縮に
対応できる貨幣計数機の判別装置を提供することを目的
としている。The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to provide a discriminating apparatus for a money counter that can cope with execution of highly precise discriminating processing and shortening of sampling intervals.
「課題を解決するための手段」 このような問題点を解決するために、この発明では同一
の物理アドレスに設定される複数の記憶手段と、第1の
制御信号が供給されるたびに前記複数の記憶手段を順次
選択する第1の切換手段と、計数対象物毎のサンプリン
グデータを前記第1の切換手段によって選択された前記
記憶手段に書き込むとともに、書き込みを終了すると前
記第1の制御信号を出力する第1の中央処理装置と、前
記第1の制御信号を検出し、前記第1の中央処理装置に
よる書き込みが終了した前記記憶手段を順次選択すると
ともに、前記計数対象物の判別処理の開始を指示する第
2の制御信号を出力する第2の切換手段と、前記第2の
制御信号が供給されると前記第2の切換手段によって選
択された前記記憶手段のサンプリングデータに基づいて
判別処理を行う第2の中央処理装置とを具備することを
特徴とする。"Means for Solving the Problem" In order to solve such a problem, according to the present invention, a plurality of storage means set to the same physical address and a plurality of storage means each time a first control signal is supplied. First switching means for sequentially selecting the storage means, and the sampling data for each counting object is written in the storage means selected by the first switching means, and when the writing is completed, the first control signal is output. A first central processing unit for outputting and the first control signal are detected, and the storage means for which the writing by the first central processing unit has been completed are sequentially selected, and the processing for determining the counting object is started. Second switching means for outputting a second control signal for instructing that the sampling data of the storage means selected by the second switching means when the second control signal is supplied. And a second central processing unit that performs a determination process based on the data.
「作用」 第1の中央処理装置は、計数対象物のサンプリングデー
タを第1の切換手段によって選択された記憶装置に書き
込む。そして、第1の中央処理装置は上記書き込むが終
了すると、第1の制御信号を出力する。次に、第2の切
換手段は、前記第1の制御信号を検出し、前記第1の中
央処理装置による書き込みが終了した記憶手段を選択す
るとともに、前記計数対象物の判別処理の開始を指示す
る第2の制御信号を出力する。第2の制御信号が供給さ
れた第2の中央処理装置は、前記第2の切換手段によっ
て選択された前記記憶手段のサンプリングデータに基づ
いて前記計数対象物の判別処理を行う。"Operation" The first central processing unit writes the sampling data of the counting object in the storage device selected by the first switching unit. Then, the first central processing unit outputs the first control signal when the writing is completed. Next, the second switching means detects the first control signal, selects the storage means for which the writing by the first central processing unit has been completed, and instructs the start of the counting processing of the counting object. Output a second control signal. The second central processing unit, to which the second control signal is supplied, performs the discrimination processing of the counting object based on the sampling data of the storage unit selected by the second switching unit.
「実施例」 次に図面を参照してこの発明の実施例について説明す
る。[Examples] Next, examples of the present invention will be described with reference to the drawings.
第1図は、この発明の一実施例の構成を示すブロック図
である。なお、この図において、第3図に示す従来例の
各部に対応する部分については同一の符号を付して説明
を省略する。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In this figure, parts corresponding to respective parts of the conventional example shown in FIG. 3 are designated by the same reference numerals, and description thereof will be omitted.
図において、6は判別処理専用のCPUであり、ROM(リー
ド・オンリ・メモリ)7に記憶されているプログラムに
従って判別処理などを実行するようになっている。8は
RAM(ランダム・アクセス・メモリ)であり、CPU6のプ
ログラム実行などでワーキングエリアとして使用され
る。9は周辺機器であり、CPU6による判別処理結果など
の出力手段やコンンドなどのキー入力手段から構成され
ている。In the figure, reference numeral 6 denotes a CPU dedicated to the discrimination processing, which executes the discrimination processing and the like in accordance with a program stored in a ROM (Read Only Memory) 7. 8 is
RAM (random access memory), which is used as a working area for CPU6 program execution. Reference numeral 9 denotes a peripheral device, which is composed of an output unit such as a discrimination processing result by the CPU 6 and a key input unit such as a command.
次に、11はA/Dコントローラであり、A/D変換器4に対す
るサンプリングのスタートタイミング,サンプリング時
間などを制御するようになっている。12はサンプリング
専用のCPUであり、A/D変換器4からのサンプリングデー
タSD1,SD2……をメモリ14a,14b,14cに書き込むように
なっている。また、A/Dコントローラ11はCPU12に対して
データバスDB1を介して書き込み要求を行うようになっ
ており、CPU12はコントローラ11に動作状態を知らせる
制御信号などを供給するようになっている。Next, 11 is an A / D controller which controls the sampling start timing, sampling time, etc. for the A / D converter 4. Reference numeral 12 is a CPU dedicated to sampling, and is adapted to write the sampling data SD 1 , SD 2, ... From the A / D converter 4 in the memories 14a, 14b, 14c. Further, the A / D controller 11 is adapted to make a write request to the CPU 12 via the data bus DB 1 , and the CPU 12 is adapted to supply the controller 11 with a control signal or the like notifying the operating state.
次に、13,15はスイッチング回路であり、データバスDB1
アドレスバスAB1およびデータバスDB5,アドレスバスAB
5の各々のペアをデータバスDB2,アドレスバスAB2、デ
ータバスDB3,アドレスバスAB3、データバスDB4,アド
レスバスAB4のいずれかのペアに選択的に接続する。ま
た、上述したデータバスDB2,アドレスバスAB2、データ
バスDB3,アドレスバスAB3およびデータバスDB4,アド
レスバスAB4の各々は、メモリ14a,14b,14cに接続され
る。また、各メモリ14a,14b,14cは、CPU6,12によって、
後述するように同時にアクセスされることがないため、
これらのメモリ14a,14b,14cは、CPU12,6の各々に対して
同一の物理アドレス空間に設定される。16はスイッチン
グコントローラであり、CPU6およびCPU12の各々の動作
状態を知らせる制御信号S1(第1の制御信号)および制
御信号S2が供給されるようになっている。また、スイッ
チングコントローラ16は、上述したスイッチング回路1
3,15の各々に、メモリ14a,14b,14cのいずれを選択する
かを指示する制御信号S3,S4を供給するようになってお
り、さらに、CPU6に動作状態を知らせる制御信号S2′
(第2の制御信号)を出力するようになっている。Next, 13 and 15 are switching circuits, and data bus DB 1
Address bus AB 1 and data bus DB 5 , address bus AB
Each pair of 5 is selectively connected to any pair of data bus DB 2 , address bus AB 2 , data bus DB 3 , address bus AB 3 , data bus DB 4 and address bus AB 4 . Further, each of the above-mentioned data bus DB 2 , address bus AB 2 , data bus DB 3 , address bus AB 3 and data bus DB 4 , address bus AB 4 is connected to memories 14a, 14b, 14c. In addition, each memory 14a, 14b, 14c, by the CPU6, 12,
As it will not be accessed at the same time as described later,
These memories 14a, 14b, 14c are set in the same physical address space for each of the CPUs 12, 6. Reference numeral 16 denotes a switching controller, which is adapted to be supplied with a control signal S 1 (first control signal) and a control signal S 2 for notifying the operating states of the CPU 6 and the CPU 12. The switching controller 16 is the switching circuit 1 described above.
Control signals S 3 and S 4 for instructing which one of the memories 14a, 14b, 14c is selected are supplied to each of 3, 3 and 15, and a control signal S 2 for informing the CPU 6 of the operating state is further provided. ′
(Second control signal) is output.
次に、上述した構成によるこの実施例の動作について説
明する。ここで、第2図はこの実施例の動作を説明する
ためのタイミングチャートである。Next, the operation of this embodiment having the above configuration will be described. Here, FIG. 2 is a timing chart for explaining the operation of this embodiment.
まず、第2図に示す時刻t1において、1枚目の計数対象
物の画像パターンがセンサ2によって検出されると、こ
のセンサ2からのアナログ信号がアンプ3によって増幅
される。このアンプ3からのアナログ信号は、A/D変換
器4によってデジタル信号のサンプリングデータSD1に
変換される。そして、このサンプリングデータSD1がA/D
コントローラ11によって検出されると、このコントロー
ラ11は、直ちにCPU12に対しサンプリングデータSD1の書
き込みを要求する。CPU12は、書き込みの要求を受ける
と、時刻t1〜t2において、A/D変換器4から供給される
サンプリングデータSD1をメモリ14aに書き込む。この場
合、スイッチング回路13は、既に初期設定などによっ
て、データバスDB1,アドレスバスAB1をデータバスD
B2,アドレスバスAB2に接続している。次に、CPU12によ
るサンプリングデータSD1の書き込みが終了すると、CPU
12はスイッチングコントローラ16に制御信号S1を供給す
る。そして、制御信号S1が供給されたスイッチングコン
トローラ16は、スイッチング回路13に制御信号S3を供給
する。この制御信号S3を受けたスイッチング回路13は、
データバスDB1,アドレスバスAB1の各々をデータバスDB
3,アドレスバスAB3に接続する。また、CPU6は制御信号
S2をスイッチングコントローラ16に供給する。制御信号
S2が供給されたスイッチングコントローラ16は、スイッ
チング回路15に制御信号S4を供給する。そして、制御信
号S4を受けたスイッチング回路15は、データバスDB5,
アドレスバスAB5の各々をデータバスDB2,アドレスバス
AB2に接続する。次に、スイッチングコントローラ16
は、CPU6に制御信号S2′を供給して判別処理の開始を
指示する。制御信号S2′を供給されたCPU6は、時刻t2
からメモリ14aに書き込まれたサンプリングデータSD1に
基づいて判別処理を開始する。First, at time t 1 shown in FIG. 2, when the image pattern of the first counting object is detected by the sensor 2, the analog signal from the sensor 2 is amplified by the amplifier 3. The analog signal from the amplifier 3 is converted by the A / D converter 4 into sampling data SD 1 of a digital signal. And this sampling data SD 1 is A / D
When detected by the controller 11, the controller 11 immediately requests the CPU 12 to write the sampling data SD 1 . Upon receiving the write request, the CPU 12 writes the sampling data SD 1 supplied from the A / D converter 4 in the memory 14a from time t 1 to t 2 . In this case, the switching circuit 13 connects the data bus DB 1 and the address bus AB 1 to the data bus D 1 by the initialization or the like.
B 2 and address bus AB 2 are connected. Next, when the CPU 12 finishes writing the sampling data SD 1 ,
12 supplies the control signal S 1 to the switching controller 16. Then, the switching controller 16 supplied with the control signal S 1 supplies the control signal S 3 to the switching circuit 13. The switching circuit 13, which receives the control signal S 3 ,
Data bus DB 1 and address bus AB 1
3 , connect to address bus AB 3 . CPU6 is a control signal
S 2 is supplied to the switching controller 16. Control signal
The switching controller 16 supplied with S 2 supplies the control signal S 4 to the switching circuit 15. Then, the switching circuit 15 that receives the control signal S 4 changes the data bus DB 5 ,
Each of the address buses AB 5 is a data bus DB 2 , an address bus
Connect to AB 2 . Next, the switching controller 16
Supplies a control signal S 2 ′ to the CPU 6 to instruct the start of the discrimination processing. Control signals are supplied to S 2 'CPU 6, the time t 2
Then, the determination process is started based on the sampling data SD 1 written in the memory 14a.
次に、時刻t3において、2枚目の計数対象物が1枚目の
場合と同様にセンサ2によって検出されると、A/Dコン
トローラ11によってCPU12に対してサンプリングデータS
D2の書き込みを要求する。CPU12は、書き込み要求を受
けると、時刻t3〜t4において、A/D変換器4から供給さ
れるサンプリングデータSD2をメモリ14bに書き込む。サ
ンプリングデータSD2の書き込みが時刻t4で終了する
と、CPU12は、スイッチングコントローラ16に書き込み
終了を示す制御信号S1を供給する。制御信号S1が供給さ
れたスイッチングコントローラ16は、スイッチング回路
13に制御信号S3を供給する。そして、制御信号S3が供給
されたスイッチング回路13は、CPU12の側のデータバスD
B1,アドレスバスAB1の各々をデータバスDB4,アドレス
バスAB4に接続する。Next, at the time t 3 , when the sensor 2 detects the second counting object as in the case of the first counting object, the sampling data S is sent to the CPU 12 by the A / D controller 11.
Request write of D 2 . Upon receiving the write request, the CPU 12 writes the sampling data SD 2 supplied from the A / D converter 4 in the memory 14b from time t 3 to t 4 . When the writing of the sampling data SD 2 ends at time t 4 , the CPU 12 supplies the switching controller 16 with the control signal S 1 indicating the end of writing. The switching controller 16 supplied with the control signal S 1 is a switching circuit.
The control signal S 3 is supplied to 13. Then, the switching circuit 13 supplied with the control signal S 3 is connected to the data bus D on the CPU 12 side.
B 1 and address bus AB 1 are connected to data bus DB 4 and address bus AB 4 , respectively.
次に、時刻t5において、CPU6による判別処理が終了する
と、CPU6はスイッチングコントローラ16に判別処理の終
了を示す制御信号S2を出力する。この制御信号S2が供給
されたスイッチングコントローラ16は、スイッチング回
路15に制御信号S4を出力する。そして、制御信号S4が供
給されたスイッチング回路15は、CPU6側のデータバスDB
5,アドレスバスAB5の各々をデータバスDB3,アドレス
バスAB3に接続する。また、上記スイッチングコントロ
ーラ16は、上記制御信号S4を出力するのとほぼ同時に、
CPU6に制御信号S2′を供給して判別処理の開始を指示
する。制御信号S2′を受けたCPU6は、メモリ14bに書
き込まれたサンプリングデータSD2に基づいて、時刻t5
から判別処理を開始する。Next, at time t 5 , when the determination process by the CPU 6 ends, the CPU 6 outputs the control signal S 2 indicating the end of the determination process to the switching controller 16. The switching controller 16 supplied with the control signal S 2 outputs the control signal S 4 to the switching circuit 15. The switching circuit 15 to which the control signal S 4 is supplied is connected to the data bus DB on the CPU 6 side.
5 and address bus AB 5 are connected to data bus DB 3 and address bus AB 3 , respectively. Further, the switching controller 16 outputs the control signal S 4 at substantially the same time,
A control signal S 2 ′ is supplied to the CPU 6 to instruct the start of the discrimination processing. Upon receiving the control signal S 2 ′, the CPU 6 receives time t 5 based on the sampling data SD 2 written in the memory 14b.
The discrimination process is started from.
そして、時刻t6において、3枚目の計数対象物が1,2枚
目と同様に、センサ2によって検出されると、A/Dコン
トローラ11はCPU12に対してサンプリングデータSD3の書
き込みを要求する。CPU12は、書き込み要求を受ける
と、時刻t6〜t7において、A/D変換器4から供給される
サンプリングデータSD3をメモリ14cに書き込む。サンプ
リングデータSD3の書き込みが終了すると、CPU12はスイ
ッチングコントローラ16に制御信号S1を出力する。制御
信号S1が供給されたスイッチングコントローラ16は、ス
イッチング回路13に制御信号S3を供給する。そして、制
御信号S3が供給されたスイッチング回路13は、データバ
スDB1,アドレスバスAB1の各々をデータバスDB2,アド
レスバスAB2に接続する。The request at time t 6, as with the object to be counted for the third sheet is 1,2 th, when detected by the sensor 2, A / D controller 11 writes the sampled data SD 3 against CPU12 To do. CPU12 receives a write request, at time t 6 ~t 7, writes the sampled data SD 3 supplied from the A / D converter 4 in the memory 14c. When the writing of the sampling data SD 3 is completed, the CPU 12 outputs the control signal S 1 to the switching controller 16. The switching controller 16 supplied with the control signal S 1 supplies the control signal S 3 to the switching circuit 13. Then, the switching circuit 13 supplied with the control signal S 3 connects each of the data bus DB 1 and the address bus AB 1 to the data bus DB 2 and the address bus AB 2 .
そして、時刻t8において、CPU6による判別処理が終了す
ると、CPU6はスイッチングコントローラ16に判別処理の
終了を示す制御信号S2を供給する。この制御信号S2が供
給されたスイッチングコントローラ16は、スイッチング
回路15に制御信号S4を供給する。制御信号S4が供給され
たスイッチング回路15は、CPU6側のデータバスDB5,ア
ドレスバスAB5の各々をデータバスDB4,アドレスバスAB
4に接続する。また、上記スイッチングコントローラ16
は、上記制御信号S4を出力するのとほぼ同時に、CPU6に
制御信号S2′を出力して判別処理の開始を指示する。
制御信号S2′を受けたCPU6は、メモリ14cに書き込ま
れたサンプリングデータSD3に基づき時刻t8から判別処
理を開始する。Then, at time t 8, the determination process by the CPU6 is completed, CPU6 supplies a control signal S 2 indicating the end of the determination process in the switching controller 16. The switching controller 16 supplied with the control signal S 2 supplies the control signal S 4 to the switching circuit 15. The switching circuit 15 supplied with the control signal S 4 connects the data bus DB 5 and the address bus AB 5 on the CPU 6 side to the data bus DB 4 and the address bus AB, respectively.
Connect to 4 . In addition, the switching controller 16
Outputs a control signal S 2 ′ to the CPU 6 almost at the same time that the control signal S 4 is output, and instructs the CPU 6 to start the determination process.
The CPU 6, which has received the control signal S 2 ′, starts the determination process at time t 8 based on the sampling data SD 3 written in the memory 14c.
このように、この実施例による判別装置では、サンプリ
ングデータSD1,SD2……をCPU12によって、順次メモリ1
4a,14b,14cに書き込んでいくのに並行して、この書き込
みが終了したメモリから順にサンプリングデータSD1,S
D2……を読出して判別処理を行う。この場合、CPU6,12
によるメモリ14a,14b,14cのアクセスにおいて、データ
バスDB2,DB3,DB4およびアドレスバスAB2,AB3,AB
4は、共用されることがない。したがって、CPU6,12にと
っては、互いの処理による待ち時間がなくなる。As described above, in the discriminating device according to this embodiment, the sampling data SD 1 , SD 2, ...
In parallel with writing to 4a, 14b, and 14c, sampling data SD 1 and S
D 2 ... is read and the discrimination processing is performed. In this case, CPU6,12
In the memory 14a, 14b, 14c access by the data bus DB 2, DB 3, DB 4 and an address bus AB 2, AB 3, AB
4 is never shared. Therefore, the CPUs 6 and 12 have no waiting time due to mutual processing.
なお、上述したメモリ14a,14b,14cの物理アドレスは、C
PU6およびCPU12の各々のアドレス空間のどこに設定して
もよい。また、メモリ14a,14b,14cは、3個とは限ら
ず、サンプリング間隔などに応じて、少なくとも2個以
上のメモリを設ければよい。また、上述の判別装置で
は、各メモリ14a,14b,14cを同一の物理アドレス空間に
設定することによって、メモリが複数個設けられている
にもかかわらず、メモリ14a,14b,14cの切り換えに伴う
判別処理のためのアドレス計算が不要になり、判別処理
時間の圧迫を軽減することができる利点が得られる。ま
た、上述の判別装置では、サンプリングデータSD1,SD2
……のサンプリング処理部、サンプリングデータSD1,S
D2……の記憶部および判別処理部の各々が機能的に独立
しているため、サンプリング処理部の変更,メモリ数の
変更,または判別処理部のハードウェアの変更などが容
易にできる利点が得られる。The physical addresses of the memories 14a, 14b, 14c described above are C
It may be set anywhere in each address space of PU6 and CPU12. The number of memories 14a, 14b, 14c is not limited to three, and at least two or more memories may be provided according to the sampling interval or the like. Further, in the above-described discriminating apparatus, by setting each memory 14a, 14b, 14c in the same physical address space, even if a plurality of memories are provided, switching between the memories 14a, 14b, 14c There is an advantage that the address calculation for the discrimination processing is not necessary and the pressure on the discrimination processing time can be reduced. Further, in the above-mentioned discrimination device, the sampling data SD 1 , SD 2
…… Sampling processing unit, sampling data SD 1 , S
Since each of the storage unit and the discrimination processing unit of D 2 ... is functionally independent, there is an advantage that the sampling processing unit, the number of memories, or the hardware of the discrimination processing unit can be easily changed. can get.
「発明の効果」 以上説明したように、この発明によれば第1の中央処理
装置が行う計数対象物のサンプリングデータの書き込
み、および第2の中央処理装置が行う第1の中央処理装
置による書き込みが終了した記憶手段のサンプリングデ
ータに対する判別処理を第1の切換手段と第2の切換手
段とにより選択される記憶手段に対して順次行うことに
よって、高精度の判別処理の実行およびサンプリング間
隔の短縮に対応できる利点が得られる。[Advantages of the Invention] As described above, according to the present invention, the sampling data of the counting object performed by the first central processing unit and the writing by the first central processing unit performed by the second central processing unit are written. By sequentially performing the discrimination processing on the sampling data of the storage means that has been completed for the storage means selected by the first switching means and the second switching means, the highly accurate discrimination processing is executed and the sampling interval is shortened. The advantage of being able to deal with
第1図はこの発明の一実施例の構成を示すブロック図、
第2図はこの実施例の動作を説明するためのタイミング
チャート、第3図は従来の判別装置の構成を示すブロッ
ク図である。 6……CPU(第2の中央処理装置)、12……CPU(第1の
中央処理装置)、13……スイッチング回路(第2の切換
手段)、14a,14b,14c……メモリ(記憶手段)、15……
スイッチング回路(第1の切換手段)、16……スイッチ
ングコントローラ(第1,第2の切換手段)。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention,
FIG. 2 is a timing chart for explaining the operation of this embodiment, and FIG. 3 is a block diagram showing the configuration of a conventional discriminating apparatus. 6 ... CPU (second central processing unit), 12 ... CPU (first central processing unit), 13 ... Switching circuit (second switching means), 14a, 14b, 14c ... Memory (storage means) ), 15 ……
Switching circuit (first switching means), 16 ... Switching controller (first and second switching means).
Claims (1)
憶手段と、第1の制御信号が供給されるたびに前記複数
の記憶手段を順次選択する第1の切換手段と、計数対象
物毎のサンプリングデータを前記第1の切換手段によっ
て選択された前記記憶手段に書き込むとともに、書き込
みを終了すると前記第1の制御信号を出力する第1の中
央処理装置と、前記第1の制御信号を検出し、前記第1
の中央処理装置による書き込みが終了した前記記憶手段
を順次選択するとともに、前記計数対象物の判別処理の
開始を指示する第2の制御信号を出力する第2の切換手
段と、前記第2の制御信号が供給されると前記第2の切
換手段によって選択された前記記憶手段のサンプリング
データに基づいて判別処理を行う第2の中央処理装置と
を具備することを特徴とする貨幣計数機の判別装置。1. A plurality of storage means set to the same physical address, a first switching means for sequentially selecting the plurality of storage means each time a first control signal is supplied, and each counting object. Of the sampling data of (1) is written in the storage means selected by the first switching means, and the first central processing unit that outputs the first control signal when the writing is completed, and the first control signal are detected. And the first
Second switching means for sequentially selecting the storage means for which writing by the central processing unit has been completed and outputting a second control signal for instructing the start of the determination processing of the counting object; and the second control. And a second central processing unit for performing a discrimination process based on the sampling data of the storage unit selected by the second switching unit when a signal is supplied. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1159972A JPH0792856B2 (en) | 1989-06-22 | 1989-06-22 | Discriminator of currency counter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1159972A JPH0792856B2 (en) | 1989-06-22 | 1989-06-22 | Discriminator of currency counter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0325592A JPH0325592A (en) | 1991-02-04 |
| JPH0792856B2 true JPH0792856B2 (en) | 1995-10-09 |
Family
ID=15705197
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1159972A Expired - Lifetime JPH0792856B2 (en) | 1989-06-22 | 1989-06-22 | Discriminator of currency counter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0792856B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7183267B2 (en) * | 2018-06-26 | 2022-12-05 | グローリー株式会社 | Money handling device and money handling method |
-
1989
- 1989-06-22 JP JP1159972A patent/JPH0792856B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0325592A (en) | 1991-02-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5497501A (en) | DMA controller using a predetermined number of transfers per request | |
| US5678009A (en) | Method and apparatus providing fast access to a shared resource on a computer bus | |
| JPH05204825A (en) | Direct memory-access-controller and information processor | |
| JPH0792856B2 (en) | Discriminator of currency counter | |
| JPH07191901A (en) | Holding device of data information | |
| KR920002830B1 (en) | Direct Memory Access Control | |
| JPH0792855B2 (en) | Discriminator of currency counter | |
| JPH0652067A (en) | Multiport RAM check control method | |
| US20010005870A1 (en) | External bus control system | |
| JP2594678B2 (en) | System control unit | |
| JP2574821B2 (en) | Direct memory access controller | |
| JPH1125006A (en) | Memory tester | |
| KR910005379B1 (en) | Memory board used for control function distribution in main storage system of data processing system | |
| JPH09319698A (en) | Direct memory access transfer method | |
| JPH0114616B2 (en) | ||
| JP2553630B2 (en) | Data processing device | |
| JPH01255040A (en) | Interruption mask circuit | |
| JP2665173B2 (en) | Processor trap circuit | |
| JP3264316B2 (en) | Direct memory access controller | |
| JPH0512121A (en) | Data processor | |
| JPH0695754A (en) | Computer activation system | |
| JPH04364524A (en) | Arithmetic control unit | |
| JPS6075945A (en) | Program control type data processor provided with trigger timing function | |
| JPH04277844A (en) | Cache memory control circuit | |
| JPH0683694A (en) | Multi-port access control circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071009 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091009 Year of fee payment: 14 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091009 Year of fee payment: 14 |