JPS638983Y2 - - Google Patents

Info

Publication number
JPS638983Y2
JPS638983Y2 JP1985202898U JP20289885U JPS638983Y2 JP S638983 Y2 JPS638983 Y2 JP S638983Y2 JP 1985202898 U JP1985202898 U JP 1985202898U JP 20289885 U JP20289885 U JP 20289885U JP S638983 Y2 JPS638983 Y2 JP S638983Y2
Authority
JP
Japan
Prior art keywords
data
shift register
input
read
shift
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
Application number
JP1985202898U
Other languages
Japanese (ja)
Other versions
JPS61115255U (en
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 filed Critical
Priority to JP1985202898U priority Critical patent/JPS638983Y2/ja
Publication of JPS61115255U publication Critical patent/JPS61115255U/ja
Application granted granted Critical
Publication of JPS638983Y2 publication Critical patent/JPS638983Y2/ja
Expired legal-status Critical Current

Links

Description

【考案の詳細な説明】 本考案は磁気カードリーダ等に使用する入出力
データの制御回路に関する。
[Detailed Description of the Invention] The present invention relates to an input/output data control circuit used in a magnetic card reader or the like.

例えばクレジツトカード等の磁気カードリーダ
(以下MCRと称する)等における非同期式入力デ
ータの処理に際しては、従来では、CPU等との
間にバツフアを設けることはなく、また設けたと
しても1ビツトバツフアを設ける程度であつた。
ところがマルチでプログラム処理が入り、CPU
との間で大量のデータ送受信を行なう全二重動作
のMCRにおいてはバツフアの必要性が高まり、
1バツフア程度ではCPUの負担が大きい。この
問題を解決する手段として、従来用いられている
FiFo(フアーストイン・フアーストアウト)素子
を用いることが考えられる。すなわち逐次入力さ
れるデータを一時的に蓄えると共に、これを古い
データから順にCPU等に送出しようとするもの
である。しかしながら従来用いられているFiFo
素子は温度条件等によつてデータの読みとりミス
等の誤動作をおこすので、信頼性の点から問題が
ある。
For example, when processing asynchronous input data in a magnetic card reader (hereinafter referred to as MCR) for a credit card, etc., conventionally, a buffer is not provided between it and the CPU, and even if it is provided, a 1-bit buffer is provided. It was moderately hot.
However, due to multi-program processing, the CPU
In full-duplex MCRs that send and receive large amounts of data between
At around 1 buffer, the load on the CPU is large. Traditionally, the method used to solve this problem is
It is conceivable to use a FiFo (first-in, first-out) element. That is, it temporarily stores sequentially input data and sends it to the CPU etc. in order from the oldest data. However, the conventionally used FiFo
This poses a problem in terms of reliability because the element can malfunction, such as reading errors in data, depending on temperature conditions and the like.

又、CPUとメモリを使つてFiFoを構成するも
のは有るが、書き込み、読み出しと言う2つのア
ドレスカウンタが必要となり大型化し、又制御が
複雑となりCPUにも負荷がかかる欠点を有する。
更に、メモリに1つに対して読み出し・書き込み
機能を有するアドレスカウンタを備えたものは有
るが、これではデータの順位性が保たれない。即
ち、従来の技術では、データの順位性を保ち、且
つ、CPUの負荷が少なく、しかも、小型化の
FiFoを構成することができなかつた。
Furthermore, although there are FiFos that use a CPU and memory, they require two address counters, one for writing and one for reading, making them large, and they have the disadvantage of being complicated to control and putting a load on the CPU.
Furthermore, although there is a memory that is equipped with an address counter that has read/write functions for one memory, this does not maintain the order of data. In other words, with conventional technology, data ordering is maintained, the load on the CPU is small, and moreover, it is possible to reduce the size of the data.
I was unable to configure FiFo.

本考案は従来のこのような問題点を解決するも
ので、FiFo素子と実質的に同一の動作を行なう
ことのできる、簡単な構成で、CPUの負担の少
なく然も小型の入出力データのバツフア回路を提
供することを目的とする。
The present invention solves these conventional problems.It has a simple configuration that can perform virtually the same operation as a FiFo element, reduces the burden on the CPU, and provides a small input/output data buffer. The purpose is to provide circuits.

すなわち本考案の回路は、複数の入力データを
蓄積できるシフトレジスタと、このシフトレジス
タに入力する入力データ数をアツプカウントする
と共に入力データを出力することによつてダウン
カウントするカウンタとを備えている。そして、
カウンタの内容に応じてシフトレジスタ内に存在
する一番古いデータから順に(フアーストイン・
フアーストアウト)読み出そうとするものであ
る。
In other words, the circuit of the present invention includes a shift register that can store a plurality of input data, and a counter that counts up the number of input data input to the shift register and counts down by outputting the input data. . and,
The oldest data in the shift register (first-in, first-in, etc.)
first out).

以下、実施例と共に本考案を更に詳細に説明す
る。図面は実施例における本考案の回路図であ
る。図中、1はシフトレジスタ、2はアツプダウ
ンカウンタ、3はマルチプレクサ、4はフリツプ
フロツプ回路、5は割込ラツチ回路である。
Hereinafter, the present invention will be explained in more detail along with examples. The drawing is a circuit diagram of the present invention in an embodiment. In the figure, 1 is a shift register, 2 is an up-down counter, 3 is a multiplexer, 4 is a flip-flop circuit, and 5 is an interrupt latch circuit.

さて、MCRから読取り出力できる非同期式デ
ータASIDが1つのクロツク信号によつてシフト
レジスタ1に書きこまれると、このクロツク信号
によつてアツプダウンカウンタ2は1つだけアツ
プカウントする。この結果割込ラツチ回路5が働
き、CPUにデータ読取りを要求する信号I/O
リクエストiRQが出力される。I/Oリクエスト
によつてCPUはリードパルスRPを発生しデータ
読取りを行なうがこの場合シフトレジスタ1に蓄
えられた前記データが読出されるように、アツプ
ダウンカウンタ2がマルチプレクサ3に指示す
る。即ちカウンタ2の計数値がアドレス信号とな
り、マルチプレクサ3にシフトレジスタ1の第1
ビツトのデータがフリツプフロツプ4に入力され
るようにする。該データはフリツプフロツプ回路
4を経てCPUへ送られ、プログラムにより処理
される。これに対し前記のデータについて割込処
理がなされる前に第2のデータが入力すると、プ
ログラム処理が追いつかなくなる。このような場
合、第2のデータの到来と共にアツプダウンカウ
ンタ2は更に1つだけカウントアツプし、第2の
データがシフトレジスタ1の第1ビツトの位置に
蓄積される。そして第1のデータはシフトレジス
タ1の第2ビツトの位置に転送される。アツプダ
ウンカウンタ2はカウントアツプによつてこの時
点でカウント数が「2」となつているので、カウ
ント数「2」はシフトレジスタ1内に現時点で存
在する最も古いデータの位置を示していることに
なる。従つてマルチプレクサ3はこの最も古いデ
ータを選択することとなり、依然として第1のデ
ータがフリツプフロツプ回路4への出力となる。
シフトレジスタ1はこのような非同期式入力デー
タを最大8個まで蓄えることができるものを使用
している。従つてデータはクロツク信号の入力と
共にシフトレジスタ1内に蓄えられていき、例え
ば5番目のクロツク信号が入力しその間データ読
出しが行なわれなければ第1のデータはシフトレ
ジスタ1内の5番目の位置にくる。このとき、ア
ツプダウンカウンタ2のカウント数は「5」であ
り、マルチプレクサ3の選択するデータは依然と
して第1のデータである。次にCPUからのリー
ド・パルスRPによつて第1のデータについて読
出しが実行されると、アツプダウンカウンタ2へ
のリード・ライト信号R/Wは「書き込み」の状
態から「読み出し」の状態に変わり、アツプダウ
ンカウンタ2は1だけその内容を減少する。従つ
てカウント数は「4」となり、第2のデータがマ
ルチプレクサ3の次回出力となる。そして第2の
データについて割込処理が実行されることとな
る。このようにして割込処理が進行しシフトレジ
スタ1内の入力データがすべてリードデータRD
として読み出されると、アツプダウンカウンタ2
はイニシヤル状態つまり計数値0状態に復帰す
る。これにより割込ラツチ回路の作動は終了し、
読出しが終了する。
Now, when the asynchronous data ASID that can be read and output from the MCR is written into the shift register 1 by one clock signal, the up-down counter 2 counts up by one by this clock signal. As a result, the interrupt latch circuit 5 is activated, and the signal I/O which requests the CPU to read data is activated.
Request iRQ is output. In response to an I/O request, the CPU generates a read pulse RP to read data. In this case, the up-down counter 2 instructs the multiplexer 3 to read out the data stored in the shift register 1. That is, the count value of the counter 2 becomes an address signal, and the first address signal of the shift register 1 is sent to the multiplexer 3.
The bit data is input to the flip-flop 4. The data is sent to the CPU via the flip-flop circuit 4 and processed by the program. On the other hand, if the second data is input before the interrupt processing is performed on the above data, the program processing will not be able to catch up. In such a case, upon arrival of the second data, the up-down counter 2 further counts up by one, and the second data is stored in the first bit position of the shift register 1. The first data is then transferred to the second bit position of shift register 1. The count number of up-down counter 2 is "2" at this point due to the up-count, so the count number "2" indicates the position of the oldest data currently existing in shift register 1. become. Therefore, the multiplexer 3 selects this oldest data, and the first data is still output to the flip-flop circuit 4.
The shift register 1 is capable of storing up to eight pieces of such asynchronous input data. Therefore, data is stored in the shift register 1 as the clock signal is input. For example, if the 5th clock signal is input and no data is read during that time, the first data will be stored in the 5th position in the shift register 1. I'm coming. At this time, the count number of the up-down counter 2 is "5", and the data selected by the multiplexer 3 is still the first data. Next, when the first data is read by the read pulse RP from the CPU, the read/write signal R/W to the up-down counter 2 changes from the "write" state to the "read" state. The updown counter 2 then decrements its contents by one. Therefore, the count number becomes "4" and the second data becomes the next output of the multiplexer 3. Interrupt processing is then executed for the second data. In this way, the interrupt processing progresses and all the input data in shift register 1 becomes read data RD.
When read as , up-down counter 2
returns to the initial state, that is, the count value 0 state. This terminates the operation of the interrupt latch circuit.
Reading ends.

以上のように本考案の回路は非同期的なMCR
等の入力データに対するFiFoバツフアとして機
能するもので、従来のプログラムを何ら変更しな
いで使用できる。すなわち以前のプログラムとの
間で互換性を有する。しかもMCRの場合、マル
チプログラム処理を行なう場合であつても読み出
しと書きこみの同時動作を行なうことがないの
で、本考案は回路の周辺を考慮するだけで幅広く
使用できる。もちろん本考案の回路はMCRのみ
ならず、非同期式或は同期式であつても入力デー
タの制御回路として一般に広く使用できることは
いうまでもない。
As described above, the circuit of this invention is an asynchronous MCR.
It functions as a FiFo buffer for input data such as, and can be used with conventional programs without any changes. That is, it is compatible with previous programs. Moreover, in the case of MCR, even when performing multi-program processing, simultaneous reading and writing operations are not performed, so the present invention can be used in a wide range of applications by simply considering the peripheral circuitry. Of course, it goes without saying that the circuit of the present invention can be used not only for MCR but also for general input data control circuits, whether asynchronous or synchronous.

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

図面は本考案の実施例のブロツク図を示す。 図中、1はシフトレジスタ、2はアツプダウン
カウンタ、3はシフトレジスタからの読出しを行
なう回路である。
The drawing shows a block diagram of an embodiment of the invention. In the figure, 1 is a shift register, 2 is an up-down counter, and 3 is a circuit for reading from the shift register.

Claims (1)

【実用新案登録請求の範囲】 複数の入力データをシフトさせて蓄積できるシ
フトレジスタと、 このシフトレジスタへの書込み及び読出しを指
示するリードライト信号線と、 リードライト信号線の信号状態に応じて動作
し、このシフトレジスタへデータが入力される都
度アツプカウントし、入力データが出力される時
アツプカウントしたカウント値をダウンカウント
するアツプダウンカウンタと、 前記カウンタの内容をシフトレジスタのシフト
位置に対応するアドレス信号として受信し、前記
シフトレジスタから該アドレス信号が示すシフト
位置の蓄積データを選択的に読出す回路とを備え
ることを特徴とする入出力データの制御回路。
[Claims for Utility Model Registration] A shift register that can shift and store multiple input data, a read/write signal line that instructs writing and reading to this shift register, and an operation according to the signal state of the read/write signal line. and an up-down counter that counts up each time data is input to the shift register and counts down the up-counted value when input data is output, and the contents of the counter correspond to the shift position of the shift register. An input/output data control circuit comprising: a circuit that receives an address signal and selectively reads accumulated data at a shift position indicated by the address signal from the shift register.
JP1985202898U 1985-12-28 1985-12-28 Expired JPS638983Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1985202898U JPS638983Y2 (en) 1985-12-28 1985-12-28

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1985202898U JPS638983Y2 (en) 1985-12-28 1985-12-28

Publications (2)

Publication Number Publication Date
JPS61115255U JPS61115255U (en) 1986-07-21
JPS638983Y2 true JPS638983Y2 (en) 1988-03-17

Family

ID=30765326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1985202898U Expired JPS638983Y2 (en) 1985-12-28 1985-12-28

Country Status (1)

Country Link
JP (1) JPS638983Y2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE42615E1 (en) 1997-02-24 2011-08-16 Genesis Microchip (Delaware) Inc. Method and system for displaying an analog image by a digital display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49112543A (en) * 1973-02-23 1974-10-26
JPS5082946A (en) * 1973-11-24 1975-07-04
JPS5157258A (en) * 1974-11-15 1976-05-19 Hitachi Ltd BATSUFUA MEMORIKAIRO
JPS5294040A (en) * 1976-02-03 1977-08-08 Nec Corp Data processing unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49112543A (en) * 1973-02-23 1974-10-26
JPS5082946A (en) * 1973-11-24 1975-07-04
JPS5157258A (en) * 1974-11-15 1976-05-19 Hitachi Ltd BATSUFUA MEMORIKAIRO
JPS5294040A (en) * 1976-02-03 1977-08-08 Nec Corp Data processing unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE42615E1 (en) 1997-02-24 2011-08-16 Genesis Microchip (Delaware) Inc. Method and system for displaying an analog image by a digital display device
USRE43573E1 (en) 1997-02-24 2012-08-14 Genesis Microchip (Delaware) Inc. Method and system for displaying an analog image by a digital display device

Also Published As

Publication number Publication date
JPS61115255U (en) 1986-07-21

Similar Documents

Publication Publication Date Title
EP1645967B1 (en) Multi-channel DMA with shared FIFO buffer
US7159048B2 (en) Direct memory access (DMA) transfer buffer processor
JP2572292B2 (en) Asynchronous data transmission device
EP2097828B1 (en) Dmac to handle transfers of unknown lengths
US20070073826A1 (en) System and method for maintaining the integrity of data transfers in shared memory configurations
US6539448B1 (en) Priority first come first serve interrupt controller
GB2101374A (en) Interface circuit
US7870310B2 (en) Multiple counters to relieve flag restriction in a multi-queue first-in first-out memory system
US5901291A (en) Method and apparatus for maintaining message order in multi-user FIFO stacks
US7805552B2 (en) Partial packet write and write data filtering in a multi-queue first-in first-out memory system
US5353416A (en) CPU lock logic for corrected operation with a posted write array
JPS6217876Y2 (en)
US7523232B2 (en) Mark/re-read and mark/re-write operations in a multi-queue first-in first-out memory system
US20060047754A1 (en) Mailbox interface between processors
CN102236623A (en) Signal control device and signal control method
US6442627B1 (en) Output FIFO data transfer control device
JPS638983Y2 (en)
US5949787A (en) Multi-function FIFO counter status register
JP4904136B2 (en) Single-port memory controller for bidirectional data communication and control method thereof
US20080183941A1 (en) Hardware assisted bus state transition using content addressable memories.
JPH07182849A (en) Fifo memory
JP3057754B2 (en) Memory circuit and distributed processing system
JP2000215154A (en) Dma controller
CN116383132A (en) SOC chip and data storage method thereof
JP2003036248A (en) Small scale processor to be used for single chip microprocessor