JPH0325592A - Discriminator for money calculator - Google Patents
Discriminator for money calculatorInfo
- Publication number
- JPH0325592A JPH0325592A JP1159972A JP15997289A JPH0325592A JP H0325592 A JPH0325592 A JP H0325592A JP 1159972 A JP1159972 A JP 1159972A JP 15997289 A JP15997289 A JP 15997289A JP H0325592 A JPH0325592 A JP H0325592A
- Authority
- JP
- Japan
- Prior art keywords
- control signal
- sampling data
- cpu
- memory
- discrimination
- 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.)
- Granted
Links
- 238000005070 sampling Methods 0.000 claims abstract description 60
- 238000000034 method Methods 0.000 claims description 24
- 230000015654 memory Effects 0.000 description 47
- 238000010586 diagram Methods 0.000 description 5
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Inspection Of Paper Currency And Valuable Securities (AREA)
Abstract
Description
【発明の詳細な説明】
「産業上の利用分野」
この発明は、紙幣.li!貨などの計数機に係り、その
読取判別に用いて好適な貨幣計数機の判別装置に関する
。[Detailed Description of the Invention] "Industrial Application Field" This invention is applicable to banknotes. li! The present invention relates to a currency counter discriminating device suitable for use in reading and discriminating currency counters.
「従来の技術」
一般に、貨幣計数機では、貨幣などを単に計数するだけ
ではなく、その画像パターンを読み取り、真偽の判別処
理を行っている。``Prior Art'' Generally, a money counting machine not only simply counts money, but also reads its image pattern and performs processing to determine whether it is genuine or false.
第3図は上述した貨幣計数機の第1の従来例による判別
装置の構成を示すブロック図である。この図において、
この判別装置はセンサ2、アンプ3、A/D変換器4、
CPU (中央処理装置)5、DMA (ダイレクト・
メモリ・アクセス)コントローラ8および2つのメモリ
9.1 0から構成されている。この判別装置では、一
方のメモリ9をサンプリン′グデータSDの書き込み専
用とし、他方のメモリIOを判別処理専用としている。FIG. 3 is a block diagram showing the configuration of a discriminating device according to the first conventional example of the above-mentioned money counting machine. In this diagram,
This discrimination device includes a sensor 2, an amplifier 3, an A/D converter 4,
CPU (central processing unit) 5, DMA (direct
It consists of a memory access) controller 8 and two memories 9.10. In this discrimination device, one memory 9 is used exclusively for writing sampling data SD, and the other memory IO is used exclusively for discrimination processing.
上述した構戊において、まず、1枚目の計数対象物の画
像パターンがセンサ2によって検出され、このセンサ2
からのアナログ信号がアンプ3によって増幅されろ。そ
して、アンブ3からのアナログ信号は、A/D変換器4
によってデジタル信号のサンプリングデータS D +
に変換される。このサンプリングデータS D +は、
CPU5によってメモリ9に書き込まれる。サンプリン
グデータSDの書き込みが終了すると、メモリ9に書き
込まれtニサンプリングデータSDlは、CPU5また
よD Mハコントローラ8によって、判別処理用のメモ
リlOに転送される。サンプリングデータSD.の転送
が終了すると、このサンプリングデータSD,に基づい
てCPU5により判別処理が行われる。また、判別処理
の実行中には、これに並(:jLてCPU5の割込処理
によってメモリ9に2枚目の計数対象物のサンプリング
データS D tが古き込まれる。そして、サンプリン
グデータSDIに対する判別処理が終了すると、DMA
コンl・ローラ8などによってメモリ9からメモリ10
ヘサンプリングデータS D tが転送される。サンブ
リングデータS D 2の転送が終了すると、再び、こ
のサンプリングデータSD,に基づいてCPU5により
判別処理が行われる。以後、A/D変換器4から供給さ
れる新たなサンプリングデータSD3 , S D 4
・・・・・・は、計数対象物毎にメモリ9に一旦記憶さ
れ、その後、所定のタイミングでメモリ10に転送され
る。そして、このメモリ1.0に転送されたサンプリン
グデータSD3,SD4・・・・・・に基づいてCPU
5により判別処理か行われる。In the above structure, first, the image pattern of the first counting object is detected by the sensor 2;
The analog signal from is amplified by amplifier 3. Then, the analog signal from the amplifier 3 is sent to the A/D converter 4.
The sampling data of the digital signal S D +
is converted to This sampling data S D + is
It is written into the memory 9 by the CPU 5. When the writing of the sampling data SD is completed, the sampling data SDl written in the memory 9 is transferred by the CPU 5 or the DM controller 8 to the memory IO for discrimination processing. Sampling data SD. Upon completion of the transfer, the CPU 5 performs a determination process based on this sampling data SD. In addition, during the execution of the discrimination process, the sampling data S D t of the second counting object is stored in the memory 9 by the interrupt process of the CPU 5. When the discrimination process is completed, the DMA
Memory 9 to memory 10 by controller/roller 8, etc.
The sampling data S D t is transferred to the host. When the transfer of the sampling data SD2 is completed, the CPU 5 again performs the discrimination process based on the sampling data SD. Thereafter, new sampling data SD3, SD4 supplied from the A/D converter 4
. . . are temporarily stored in the memory 9 for each object to be counted, and then transferred to the memory 10 at a predetermined timing. Then, based on the sampling data SD3, SD4... transferred to this memory 1.0, the CPU
5, the determination process is performed.
次に、第2の従来例の判別装置について説明する。この
判別装置の構成は第3図に示す第1の従来例と同様であ
る。ただし、この判別装置では、サンプリングデータS
D l, S D z・・・・・・の書き込みおよび
判別処理かメモリ9,IOに対して交互に行われる。
まず、第1の従来例と同様に順次供給される計数対象物
の画像パターンがセンサ2によって検出され、このセン
サ2からのアナログ信号がアンプ3によって増幅された
後、A/D変換器4によってデジタル信号のサンプリン
グデータS D +,S D t’・・・・・に変換さ
れる。このサンプリングデータSD.,SD1・・・・
・は、計数対象物毎にDM Aコントローラ8によって
メモリ9およびメモリlOへ交互に書き込まれる。 ま
た、CPU5による判別処理は、DMAコントローラ8
の書き込みが行われているメモリとは反対側のメモリ、
すなわち既にサンプリングデータSD,,$D1・・の
書き込みが終了したメモリに対して順次行わイ1る。Next, a second conventional discrimination device will be explained. The configuration of this discrimination device is similar to the first conventional example shown in FIG. However, in this discriminator, the sampling data S
The writing and determination processing of D l, S D z . . . is performed alternately to the memory 9 and IO.
First, as in the first conventional example, the image pattern of the object to be counted that is sequentially supplied is detected by the sensor 2, and after the analog signal from the sensor 2 is amplified by the amplifier 3, it is sent to the A/D converter 4. The sampling data S D +, S D t', etc. of digital signals are converted. This sampling data SD. , SD1...
* are written alternately to the memory 9 and the memory IO by the DMA controller 8 for each object to be counted. Further, the determination processing by the CPU 5 is performed by the DMA controller 8.
the memory on the opposite side of the memory from which the write is being performed,
That is, the processing is performed sequentially for the memories in which sampling data SD, $D1, . . . have already been written.
『発明が解決しようとする課題」
ところで、第3図に示す第1の従来例の判別装置では、
書き込み専用のメモリ9から判別処理専用のメモリ10
ヘサンプリングデータを転送させする必要がある。この
結果、サンプリングデータの転送時間が判別処理時間を
圧迫するため、比較的処理時間が長い高幇度の判別処理
の実行およびサンプリング間隔の短縮に対応できなくな
るという問題を生じる。"Problem to be Solved by the Invention" By the way, in the first conventional discrimination device shown in FIG.
Memory 9 dedicated to writing to memory 10 dedicated to discrimination processing
It is necessary to transfer sampling data to As a result, the transfer time of sampling data puts pressure on the discrimination processing time, resulting in a problem that it is not possible to perform a high degree of discrimination processing that takes a relatively long processing time and to shorten the sampling interval.
また、第2の従来例の判別装置では、CPUおよびDM
Aコントローラは、同一の共通データパス.アドレスバ
ス等を使用している。このため、実際には、DMAコン
トローラによるサンプリングデータの転送とCPUによ
る判別処理とを並列処理することはできず、どちらか一
方が動作している時には他方は待機している必要がある
。また、一般に、判別処理用のプログラムには、メモリ
アクセスに関する命令が多数記述されており、これらの
命令ではアクセスすべきメモリのアドレスが物理アドレ
スによって記述されている。したがって、判別処理の対
象となるメモリを切り替えると、ザンプリングデータの
格納アドレスが変わってしまうため、上記命令によるメ
モリアドレスと上記格納アドレスとか一致しなくなる。In addition, in the second conventional discrimination device, the CPU and DM
The A controllers share the same common data path. An address bus, etc. is used. Therefore, in reality, the sampling data transfer by the DMA controller and the determination processing by the CPU cannot be processed in parallel; when one of them is operating, the other must be on standby. Further, in general, a program for determination processing includes a large number of instructions related to memory access, and in these instructions, the address of the memory to be accessed is written as a physical address. Therefore, when the memory to be subjected to the determination process is switched, the storage address of the sampling data changes, so that the memory address according to the above instruction and the storage address do not match.
この結果、プログラム中の上記命令によるメモリアドレ
スを判別処理中に計算する必要かある。以上のように、
この判別装置では、並列処理をすることができないため
に待機時間が生じ、かつ、判別処理中にアドレス計算が
必要となるため、これらに要する時間が判別処理時間を
圧迫し、比較的処理時間が長い高l#度の判別処理の実
行に対応できなくなるという問題を生じる。また、この
判別装置では、上述した理由により計数対象物の処理枚
数の増加要求に対するサンプリング間隔の短縮にも対応
できなくなるという問題を生じる。As a result, it is necessary to calculate the memory address according to the above instruction in the program during the determination process. As mentioned above,
With this discrimination device, there is a waiting time because parallel processing cannot be performed, and address calculation is required during the discrimination process. A problem arises in that it becomes impossible to cope with the execution of long and high-level discrimination processing. Further, this discrimination device has a problem in that it cannot respond to a request for an increase in the number of processing objects to be counted and a reduction in the sampling interval due to the above-mentioned reasons.
この発明は、上述の問題点に鑑みてなされたもので、高
精度の判別処理の実行およびサンプリング間隔の短縮に
対応できる貨幣計数機の判別装置を提供することを目的
としている。The present invention has been made in view of the above-mentioned problems, and it is an object of the present invention to provide a discriminating device for a money counter that can perform highly accurate discriminating processing and shorten the sampling interval.
「課題を解決するための手段」
このような問題点を解決するために、この発明では同一
の物理アドレスに設定される複数の記憶手段と、第1の
制御信号が供給されるたびに前記複数の記憶手段を順次
選択する第1の切換手段と、計数対象物毎のサンプリン
グデータを前記第1の切換手段によって選択された前記
記憶手段に書き込むとともに、書き込みを終了すると前
記第1の制御信号を出力する第1の中央処理装置と、前
記第1の制御信号を検出し、前記第1の中央処理装置に
よる書き込みが終了した前記記憶手段を順次選択すると
ともに、前記計数対象物の判別処理の開始を指示する第
2の制御信号を出力する第2の切換手段と、前記第2の
制御信号が供給されると前記第2の切換手段によって選
択された前記記憶手段のサンプリングデータに基づいて
判別処理を行う第2の中央処理装置とを具備することを
特徴とする。"Means for Solving the Problem" In order to solve such problems, the present invention includes a plurality of storage means that are set at the same physical address, and a plurality of storage means that are a first switching means for sequentially selecting the storage means for each object to be counted, and writing sampling data for each object to be counted into the storage means selected by the first switching means, and transmitting the first control signal when the writing is completed. sequentially selecting the first central processing unit to output and the storage means for which the first control signal has been detected and writing by the first central processing unit has been completed, and starting a process for determining the object to be counted; a second switching means for outputting a second control signal for instructing; and a determination process based on sampling data of the storage means selected by the second switching means when the second control signal is supplied. It is characterized by comprising a second central processing unit that performs.
「作用」
第1の中央処理装置は、計数対象物のサンプリングデー
タを第1の切換手段によって選択された記憶装置に書き
込む。そして、第1の中央処理装置は上記書き込むが終
了すると、第1の制御信号を出力する。次に、第2の切
換手段は、前記第1の制御信号を検出し、前記第1の中
央処理装置による書き込みが終了した記憶手段を選択す
るとともに、前記計数対象物の判別処理の開始を指示す
る第2の制御信号を出力する。第2の制御信号が供給さ
れた第2の中央処理装置は、前記第2の切換手段によっ
て選択された前記記憶手段のサンプリングデータに基づ
いて前記計数対象物の判別処理を行う。"Operation" The first central processing unit writes the sampling data of the object to be counted into the storage device selected by the first switching means. Then, the first central processing unit outputs a first control signal when the above writing is completed. Next, the second switching means detects the first control signal, selects the storage means for which writing has been completed by the first central processing unit, and instructs the start of the counting target object discrimination process. A second control signal is output. The second central processing unit supplied with the second control signal performs a process of determining the object to be counted based on the sampling data of the storage means selected by the second switching means.
「実施例」
次に図面を参照してこの発明の実施例について説明する
。"Embodiments" Next, embodiments 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 the parts of the conventional example shown in FIG. 3 are given the same reference numerals, and the explanation thereof will be omitted.
図において、6は判別処理専用のCPUであり、ROM
(リード・才ンリ・メモリ)7Jこ記憶されているプロ
グラムに従って判別処理などを実行するようになってい
る。8はRAM(ランダム・アクセス・メモリ)であり
、CPU6のプログラム実行などでワーキングエリアと
して使用される。In the figure, 6 is a CPU dedicated to discrimination processing, and a ROM
(Read/Expert/Memory) Discrimination processing and the like are executed according to 7J stored programs. 8 is a RAM (random access memory), which is used as a working area when the CPU 6 executes programs.
9は周辺機器であり、CPU6による判別処理結果など
の出力手段やコンンドなどのキー人力手段から構成され
ている。Reference numeral 9 denotes peripheral equipment, which includes output means for outputting results of discrimination processing by the CPU 6, and key human power means such as condos.
次に、1lはA/Dコントローラであり、A/D変換器
4に対するサンプリングのスタートタイミング.サンプ
リング時間などを制御するようになっている。【2はサ
ンプリング専用のCPUであり、A/D変換器4からの
サンプリングデータSD1S D *−−−−−−をメ
モリ14a.14b.L4cに書き込むようになってい
る。また、A/Dコントローラ1lはCPU l 2に
対してデータパスDB,を介して書き込み要求を行うよ
うになっており、CPU12はコントローラ11に動作
状態を知らせる制御信号などを供給するようになってい
る。Next, 1l is an A/D controller, and the sampling start timing for the A/D converter 4. It is designed to control sampling time, etc. [2 is a CPU dedicated to sampling, and the sampling data SD1SD*------ from the A/D converter 4 is stored in the memory 14a. 14b. It is designed to be written to L4c. Further, the A/D controller 1l is configured to issue a write request to the CPU 12 via the data path DB, and the CPU 12 is configured to supply a control signal etc. to inform the controller 11 of the operating state. There is.
次に、1 3.1 5はスイッチング回路であり、デー
タパスD B I,アドレスバスAB+およびデータパ
スD B sアドレスバスAB5の各々のペアをデータ
パスDB2アドレスバスABC,データパスDB.,ア
ドレスバスA B 3、データパスD B 4 ,アド
レスバスAB,のいずれかのペアに選択的に接続する。Next, 13.15 is a switching circuit, which connects each pair of data path DB I, address bus AB+ and data path DBs address bus AB5 to data path DB2 address bus ABC, data path DB. , address bus AB3, data path DB4, and address bus AB.
また、上述したデータパスD B t ,アドレスバス
AB!、データパスDB3,アドレスバスA Bsおよ
びデータパスDB..アドレスバスAB.の各々は、メ
モリ14a.14b,14cに接続される。また、各メ
モリ14a,14b,14cは、CPU6,1 2によ
って、後述するように同時にアクセスされることかない
ため、これらのメモリ14a.14b.l4cは、CP
U12,6の各々に対して同一の物理アドレス空間に設
定される。In addition, the above-mentioned data path D B t and address bus AB! , data path DB3, address bus A Bs and data path DB. .. Address bus AB. Each of the memories 14a. 14b and 14c. Furthermore, since the memories 14a, 14b, and 14c are not accessed simultaneously by the CPUs 6 and 12, as will be described later, these memories 14a. 14b. l4c is CP
The same physical address space is set for each of U12 and U6.
l6はスイッチングコントローラであり、CPU6およ
びCPU12の各々の動作状態を知らせる制御信号S.
(第1の制御信号)および制御信号S,が供給されるよ
うになっている。また、スイッチングコントローラl6
は、上述したスイッチング回路1 3.1 5の各々に
、メモリ14a,14b.14cのいずれを選択するか
を指示する制御信号S,,S,を供給するようになって
おり、さらに、CPU6に動作状態を知らせる制御信号
S,゛(第2の制御信号)を出力するようになっている
。16 is a switching controller, and a control signal S.l6 indicates the operating status of each of the CPU 6 and CPU 12.
(first control signal) and control signal S, are supplied. In addition, the switching controller l6
are memory 14a, 14b . 14c, which instructs which one to select, and further outputs a control signal S, ゛ (second control signal) that informs the CPU 6 of the operating state. It has become.
次に、上述した構成によるこの実施例の動作について説
明する。 ここで、第2図はこの実施例の動作を説明す
るためのタイミングチャートであり O
まず、第2図に示す時刻t,において、1枚目の計数対
象物の画像パターンがセンサ2によって検出されると、
このセンサ2からのアナログ信号がアンプ3によって増
幅される。このアンプ3からのアナログ信号は、A/D
変換器4によってデジタル信号のサンプリングデータS
D.に変換される。そして、このサンプリングデータS
D,がA/Dコントローラ11によって検出されると、
このコントローラ11は、直ちにCPU 1 2に対し
サンプリングデータS D rの書き込みを要求する。Next, the operation of this embodiment with the above-described configuration will be explained. Here, FIG. 2 is a timing chart for explaining the operation of this embodiment. First, at time t shown in FIG. 2, the image pattern of the first counting object is detected by the sensor 2. Then,
The analog signal from this sensor 2 is amplified by an amplifier 3. The analog signal from this amplifier 3 is the A/D
The converter 4 converts the sampling data S of the digital signal into
D. is converted to And this sampling data S
When D, is detected by the A/D controller 11,
This controller 11 immediately requests the CPU 1 2 to write the sampling data SD r.
CPU12は、書き込みの要求を受けると、時刻tl”
”jtにおいて、A/D変換器4から供給されるサンプ
リングデータSD.をメモリ+4aに書き込む。この場
合、スイッチング回路13は、既に初期設定などによっ
て、データパスDB,,アドレスバスA B +をデー
タパスD B t ,アドレスバスAB,に接続してい
る。次に、CPU12によるサンプリングデータSD.
の書き込みが終了すると、CPU12はスイッチングコ
ンI・ローラ16に制御信号S,を供給する。そして、
制御信号S1が供給されたスイッチングコントローラl
6は、スイッチング回路l3に制御信号S3を供給する
。この制御信号S3を受けたスイッチング回路l3は、
データパスDB,,アドレスバスAB.の各々をデータ
パスDB3,アドレスバスAB3に接続する。また、C
PLJ6は制御信号S,をスイッチングコントローラl
6に供給する。制御信号S,が供給されたスイッチング
コントローラl6は、スイッチング回路l5に制御信号
S,を供給する。When the CPU 12 receives the write request, the CPU 12 determines the time tl''.
"jt, the sampling data SD. supplied from the A/D converter 4 is written into the memory +4a. In this case, the switching circuit 13 has already set the data path DB, address bus A B + to the data by initial setting etc. The CPU 12 connects the sampling data SD.
When writing is completed, the CPU 12 supplies a control signal S to the switching controller I/roller 16. and,
A switching controller l supplied with a control signal S1
6 supplies a control signal S3 to the switching circuit l3. The switching circuit l3 receiving this control signal S3 is
Data path DB, address bus AB. are connected to data path DB3 and address bus AB3. Also, C
PLJ6 sends the control signal S, to the switching controller l
Supply to 6. The switching controller l6 supplied with the control signal S, supplies the control signal S, to the switching circuit l5.
そして、制御信号S4を受けたスイッチング回路l5は
、データパスD B S .アド1ノスバスA B a
の各々をデータパスD B !+アドレスバスAB,に
接続する。次に、スイッチングコントローラl6は、c
pueに制御信号St’を供給して判別処理の開始を指
示する。制御信号S,゛を供給されたCPU6は、時刻
1,からメモリ14aに書き込まれたサンプリングデー
タSD,に基づいて判別処理を開始する。The switching circuit l5 receiving the control signal S4 then switches the data path D B S . Ad1nosbus A B a
Each of the data paths D B ! +Connect to address bus AB. Next, the switching controller l6 c
A control signal St' is supplied to pue to instruct the start of the discrimination process. The CPU 6, which has been supplied with the control signal S, starts a discrimination process based on the sampling data SD, written in the memory 14a from time 1.
次に、時刻t,において、2枚目の計数対象物力川枚目
の場合と同様にセンサ2によって検出されろと、A/D
コントローラ11によってCPU12に対してサンプリ
ングデータS D tの書き込みを要求する。CPUI
2は、書き込み要求を受けると、時刻t,〜t4におい
て、A/l)変換器4から供給されるサンプリングデー
タSD,をメモリ14bに書き込む。サンプリングデー
タSD,の書き込みが時刻〔,で終了すると、CPU1
2は、スイッチングコントローラI6に書き込み終了を
示す制御信号S1を供給する。制御信号S.が供給され
たスイッチングコントローラl6は、スイッチング回路
l3に制御信号s3を供給する。Next, at time t, the A/D tells the sensor 2 to detect the physical force of the second object to be counted.
The controller 11 requests the CPU 12 to write the sampling data S D t. C.P.U.I.
2 writes the sampling data SD supplied from the A/l) converter 4 into the memory 14b at times t to t4 upon receiving the write request. When the writing of sampling data SD, ends at time [,, CPU1
2 supplies the switching controller I6 with a control signal S1 indicating the end of writing. Control signal S. The switching controller l6 supplied with this supplies a control signal s3 to the switching circuit l3.
そして、制御信号S,が供給されたスイッチング回路l
3は、CPU12M)I’llりのデータパスDBIア
ドレスバスAB.の各々をデータパスDB.,アドレス
バスAB.に接続する。and a switching circuit l to which the control signal S, is supplied.
3 is a data path DBI address bus AB.3 of the CPU 12M). Each of the data path DB. , address bus AB. Connect to.
次に、時刻t5において、CPU6による判別処理が終
了すると、CPU6はスイッチングコントローラ16に
判別処理の終了を示す制御信号S,を出力する。この制
御信号S,が供給されたスイッチングコントローラ16
は、スイッチング回路15に制御信号S,を出力する。Next, at time t5, when the discrimination process by the CPU 6 ends, the CPU 6 outputs a control signal S, indicating the end of the discrimination process to the switching controller 16. The switching controller 16 to which this control signal S is supplied
outputs a control signal S, to the switching circuit 15.
そして、制御信号S4が供給されたスイッチング回路!
5は、CPUe側のデータパスD B s ,アドレス
バスA B sの各々をデータパスDB.,アドレスバ
スAB.に接続する。また、上記スイッチングコントロ
ーラI6は、上記制御信号S4を出力するのとほぼ同時
に、CPU6に制御信号S,゛を供給して判別処理の開
始を指示する。制御信号St’を受けたCPU6は、メ
モリ14bに書き込まれたサンプリングデータS D
tに基づいて、時刻t,から判別処理を開始する。And the switching circuit supplied with the control signal S4!
5 connects each of the data path DB s and address bus AB s on the CPUe side to the data path DB. , address bus AB. Connect to. Further, the switching controller I6 supplies the control signal S,' to the CPU 6 to instruct the start of the discrimination process almost at the same time as outputting the control signal S4. Upon receiving the control signal St', the CPU 6 reads the sampling data S D written in the memory 14b.
The determination process starts from time t, based on t.
そして、時刻t8において、3枚目の計数対象物が1.
2枚目と同様に、センサ2によって検出されると、A/
Dコントローラ11はCPU 1 2に対してサンプリ
ングデータSD,の書き込みを要求する。CPU12は
、書き込み要求を受けると、時刻七6〜t7において、
A/D変換器4からIJI.給されるサンプリングデー
タS D 3をメモリl4cに書き込む。サンプリング
データSD3の書き込みが終了すると、CPUI2はス
イッチングコントローラ!6に制御信号S1を出力する
。制御信号S,が供給されたスイッチングコントローラ
l6は、スイッチング回路l3に制御信号S3を供給す
る。そして、制御信号S3が供給されたスイッチング回
路l3は、データパスDB,,アドレスバスA B l
の各々をデータパスDBt,アドレスバスA B tに
接続する。Then, at time t8, the third object to be counted is 1.
Similarly to the second image, when detected by sensor 2, A/
The D controller 11 requests the CPU 12 to write the sampling data SD. When the CPU 12 receives the write request, from time 76 to t7,
From the A/D converter 4 to IJI. The supplied sampling data S D 3 is written into the memory l4c. When the writing of the sampling data SD3 is completed, the CPUI2 switches to the switching controller! A control signal S1 is output to the terminal 6. The switching controller l6 to which the control signal S is supplied supplies the control signal S3 to the switching circuit l3. The switching circuit l3 to which the control signal S3 is supplied connects the data path DB, address bus A B l
are connected to data path DBt and address bus ABt.
そして、時刻t8において、CPU6による判別処理が
終了すると、CPU6はスイッチングコントローラ16
に判別処理の終了を示す制御信号S,を供給する。この
制御信号S,が供給されたスイッチングコントローラ1
6は、スイッチング回路l5に制御信号S4を供給する
。制御信号S,か供給されたスイッチング回路l5は、
CPUe側のデータパスDBS,アドレスバスAB,の
各々をデータパスDB..アドレスバスAB.に接続す
る。Then, at time t8, when the CPU 6 completes the determination process, the CPU 6 controls the switching controller 16.
A control signal S, indicating the end of the discrimination process, is supplied to the controller. The switching controller 1 to which this control signal S is supplied
6 supplies a control signal S4 to the switching circuit l5. The switching circuit l5 supplied with the control signal S,
Each of the data path DBS and address bus AB on the CPUe side is connected to the data path DB. .. Address bus AB. Connect to.
また、上記スイッチングコントローラl6は、上記制御
信号S4を出力するのとほぼ同時に、CPU6に制御信
号S,゜を出力して判別処理の開始を指示する。制御信
号S2゛を受けたCPU6は、メモリ14cに書き込ま
れたサンプリングデータSD,に基づき時刻tsから判
別処理を開始する。Further, the switching controller l6 outputs a control signal S,° to the CPU 6 to instruct the CPU 6 to start the determination process almost at the same time as outputting the control signal S4. Upon receiving the control signal S2', the CPU 6 starts determination processing from time ts based on the sampling data SD written in the memory 14c.
このように、この実施例による判別装置では、サンプリ
ングデータSp.,SD1・・・・・をCPU 12に
よって、順次メモリ14a,14b.l4cに書き込ん
でいくのに並行して、この書き込みが終了したメモリか
ら順にサンプリングデータSD,S D t・・・・・
・を読出して判別処理を行う。この場合、cpue;+
2によるメモリ14a 14b 14Cのアクセ
スにおいて、データパスD B t , D B 3,
DB.およびアドレスバスABt,AB3,AB.は、
共用されろことがない。したがって、CPU6,12に
とっては、互いの処理による待ち時間がなくなる。In this way, in the discrimination device according to this embodiment, the sampling data Sp. , SD1... are sequentially stored in the memories 14a, 14b . In parallel with writing to l4c, sampling data SD, SD t...
・Read out and perform discrimination processing. In this case, cpu;+
2, the data paths D B t , D B 3,
D.B. and address buses ABt, AB3, AB. teeth,
It is never shared. Therefore, for the CPUs 6 and 12, there is no waiting time due to mutual processing.
なお、上述したメモリ14a,14b,14cの物理ア
ドレスは、CPU6およびCPUl2の各々のアドレス
空間のどこに設定してもよい。また、メモリl 4 a
,I 4 b,1 4 cは、3個とは限らず、サンプ
リング間隔などに応じて、少なくとも2個以上のメモリ
を設ければ上い。また、上述の判別装置では、各メモリ
14a,14b,14cを同一の物理アドレス空間に設
定することによって、メモリが複数個設けられているに
もかかわらず、メモリ14a,14b,14cの切り換
えに伴う判別処理のためのアドレス計算が不要になり、
判別処理時間の圧迫を軽減することができる利点が得ら
れる。また、上述の判別装置では、サンプリングデータ
SD,,SD1・・・・・のサンプリング処理部、サン
プリングデータSD.,SD,・・・・・・の記憶部お
よび判別処理部の各々が機能的に独立しているため、サ
ンプリング処理部の変更.メモリ数の変更または判別処
理部のハードウエアの変更などが容易にできる利点が得
られる。Note that the physical addresses of the memories 14a, 14b, and 14c described above may be set anywhere in the address space of each of the CPU6 and CPU12. Also, memory l 4 a
, I 4 b, 1 4 c is not limited to three, but at least two or more memories may be provided depending on the sampling interval and the like. In addition, in the above-mentioned discrimination device, by setting each memory 14a, 14b, 14c in the same physical address space, even though a plurality of memories are provided, switching between the memories 14a, 14b, 14c Address calculation for discrimination processing is no longer necessary,
This provides an advantage in that the pressure on the discrimination processing time can be reduced. Moreover, in the above-mentioned discrimination device, the sampling processing section for the sampling data SD, SD1, . . . , the sampling data SD. , SD, . . . are functionally independent, so changing the sampling processing section. There is an advantage that the number of memories or the hardware of the discrimination processing section can be easily changed.
「発明の効果」
以上説明したように、この発明によれば第!の中央処理
装置が行う計数対象物のサンプリングデータの書き込み
、および第2の中央処理装置が行う第1の中央処理装置
による書き込みが終了した記憶手段のサンプリングデー
タに対する判別処理を第1の切換手段と第2の切換手段
とにより選択される記憶手段に対して順次行うことによ
って、高持度の判別処理の実行およびサンプリング間隔
の短縮に対応できる利点が得られる。"Effects of the Invention" As explained above, according to this invention, No. 1! The first switching means performs the writing of the sampling data of the counting object performed by the central processing unit of the second central processing unit, and the discrimination processing of the sampling data of the storage means that has been written by the first central processing unit, performed by the second central processing unit. By sequentially performing the processing on the storage means selected by the second switching means, it is possible to achieve the advantage of being able to perform high-resistance discrimination processing and shortening the sampling interval.
第!図はこの発明の一実施例の構戊を示すプロック図、
第2図はこの実施例の動作を説明するためのタイミング
チャート、第3図は従来の判別装置の構成を示すブロッ
ク図である。
6・・・・・・CPtJ (第2の中央処理装置)、l
2・・・CPU (第1の中央処理装置)、!3・・・
・・・スイッチング回路(第2の切換手段)、14a,
L4b,14c・・・・・・メモリ(記憶手段)、l5
・・・・・・スイッチング回路(第1の切換手段)、l
6・・・・・・スイッチングコントローラ(第1.第2
の切換手段)。No.! The figure is a block diagram showing the structure of an embodiment of this 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 discrimination device. 6...CPtJ (second central processing unit), l
2...CPU (first central processing unit),! 3...
... switching circuit (second switching means), 14a,
L4b, 14c...Memory (storage means), l5
......Switching circuit (first switching means), l
6...Switching controller (1st, 2nd
switching means).
Claims (1)
1の制御信号が供給されるたびに前記複数の記憶手段を
順次選択する第1の切換手段と、計数対象物毎のサンプ
リングデータを前記第1の切換手段によって選択された
前記記憶手段に書き込むとともに、書き込みを終了する
と前記第1の制御信号を出力する第1の中央処理装置と
、前記第1の制御信号を検出し、前記第1の中央処理装
置による書き込みが終了した前記記憶手段を順次選択す
るとともに、前記計数対象物の判別処理の開始を指示す
る第2の制御信号を出力する第2の切換手段と、前記第
2の制御信号が供給されると前記第2の切換手段によっ
て選択された前記記憶手段のサンプリングデータに基づ
いて判別処理を行う第2の中央処理装置とを具備するこ
とを特徴とする貨幣計数機の判別装置。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; a first central processing unit that writes to the storage means selected by the first switching means and outputs the first control signal when the writing is completed; a second switching means for sequentially selecting the storage means for which writing has been completed by the central processing unit and outputting a second control signal for instructing the start of the counting target object discrimination process; and a second central processing unit that performs a discrimination process based on the sampling data of the storage means selected by the second switching means 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 true JPH0325592A (en) | 1991-02-04 |
| JPH0792856B2 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) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020003370A1 (en) * | 2018-06-26 | 2020-01-02 | グローリー株式会社 | Money processing device and money processing method |
-
1989
- 1989-06-22 JP JP1159972A patent/JPH0792856B2/en not_active Expired - Lifetime
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020003370A1 (en) * | 2018-06-26 | 2020-01-02 | グローリー株式会社 | Money processing device and money processing method |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0792856B2 (en) | 1995-10-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4583160A (en) | Priority control apparatus for a bus in a bus control system having input/output devices | |
| JPH0325592A (en) | Discriminator for money calculator | |
| JPH0324687A (en) | Discriminating device for coin counter | |
| JP2574821B2 (en) | Direct memory access controller | |
| JPH1125006A (en) | Memory tester | |
| JPH01255040A (en) | Interruption mask circuit | |
| JP2852074B2 (en) | Setup circuit for control board internal settings in information processing equipment | |
| JPS59200312A (en) | Computer controller provided with control display board | |
| JP3206013B2 (en) | Direct memory access transfer controller | |
| JPS61138344A (en) | Debugging system | |
| JPH01197860A (en) | Memory fault detecting circuit | |
| JPH04111149A (en) | Circuit system for dma device | |
| JPH0461389B2 (en) | ||
| JPH01219925A (en) | Printer buffer device | |
| JPH0346054A (en) | Multiprocessor | |
| JPS603673B2 (en) | character reading device | |
| JPH0682327B2 (en) | Processor scan control method | |
| JPH06110822A (en) | DMA control device of information processing apparatus and data control method using the same | |
| JPH07120344B2 (en) | Multiprocessor controller | |
| JPH02236657A (en) | Information processing system | |
| JPH0465799A (en) | POS register | |
| JPH0314117A (en) | Keyboard control system | |
| JPS63219052A (en) | Expanded local bus | |
| JPH03269752A (en) | Information processing system and input/output controller used for the same | |
| JPS6037062A (en) | Memory reading-out method |
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 |