JP2003257003A - Device and method for reading magnetic data - Google Patents

Device and method for reading magnetic data

Info

Publication number
JP2003257003A
JP2003257003A JP2002059291A JP2002059291A JP2003257003A JP 2003257003 A JP2003257003 A JP 2003257003A JP 2002059291 A JP2002059291 A JP 2002059291A JP 2002059291 A JP2002059291 A JP 2002059291A JP 2003257003 A JP2003257003 A JP 2003257003A
Authority
JP
Japan
Prior art keywords
peak
time interval
data
reference range
determined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002059291A
Other languages
Japanese (ja)
Inventor
Yasuhito Komai
泰人 駒井
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2002059291A priority Critical patent/JP2003257003A/en
Publication of JP2003257003A publication Critical patent/JP2003257003A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To improve data reading efficiency, and to carry out highly accurate data reading. <P>SOLUTION: The upper and lower peaks of a magnetic signal read by a magnetic head 1 are detected by a peak detecting means 4, and a processing section 8 is provided with a time interval determining means for measuring a time interval between a peak detection and a next peak detection to determine time intervals TA, TB, TC, and TD, and a data determining means for determining the combination of the TA and TB as data 1 when the times intervals TA and TB are in a first reference range, and the total of the time intervals TA and TB is in a range which is twice as large as a second reference range narrower than the first reference range, and determining the TC and the TD as data 0 when the time intervals TC and TD are in a preset third reference range, and the total of the times intervals TC and TD is in a range which is twice as large as a fourth reference range narrower than the third reference range. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、磁気ストライプ等
の磁気媒体から磁気信号を読取ってデータを判定する磁
気データ読取り装置及び磁気データ読取り方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic data reading device and a magnetic data reading method for reading data from a magnetic medium such as a magnetic stripe to determine data.

【0002】[0002]

【従来の技術】通帳などに設けられている磁気ストライ
プにはデータの「1」、「0」が記録されており、この
データを判定するには磁気ストライプから読取った磁気
信号の上下のピークを検出し、上ピークと下ピークとの
時間間隔、及び下ピークと上ピークとの時間間隔からデ
ータを判定するようになっている。
2. Description of the Related Art "1" and "0" of data are recorded on a magnetic stripe provided in a passbook or the like. To judge this data, the upper and lower peaks of a magnetic signal read from the magnetic stripe are determined. The data is detected and the data is determined from the time interval between the upper peak and the lower peak and the time interval between the lower peak and the upper peak.

【0003】[0003]

【発明が解決しようとする課題】ところで、磁気ストラ
イプから読取った磁気信号はアナログ波形であり、この
アナログ波形には立ち上がりと立ち下がりがある。この
アナログ波形をピーク検出回路に入力して上ピークや下
ピークを検出するが、回路はアナログ波形の立ち上がり
と立ち下がりに対して異なる応答時間を持つため、上ピ
ークと下ピークとの時間間隔や下ピークと上ピークとの
時間間隔を計測する場合に時間的なバラツキが生じる。
例えば、本来、上ピークと下ピークとの時間間隔と、下
ピークと上ピークとの時間間隔が等しくなければならな
いのに、等しくならないというバラツキが生じる。
By the way, the magnetic signal read from the magnetic stripe is an analog waveform, and this analog waveform has rising and falling edges. This analog waveform is input to the peak detection circuit to detect the upper and lower peaks, but the circuit has different response times for the rising and falling edges of the analog waveform, so the time interval between the upper and lower peaks and When measuring the time interval between the lower peak and the upper peak, time variations occur.
For example, originally, the time interval between the upper peak and the lower peak and the time interval between the lower peak and the upper peak should be equal to each other, but they are not equal to each other.

【0004】しかし、従来は、上ピークと下ピークとの
時間間隔と下ピークと上ピークとの時間間隔がほとんど
等しいことを条件にデータ判定を行っていたため、判定
エラーが頻繁に発生してデータの読取り効率が低下する
という問題があった。本発明は、データの読取り効率を
向上でき、しかも、精度の高いデータ読取りができる磁
気データ読取り装置及び磁気データ読取り方法を提供す
る。
However, conventionally, since the data determination is performed under the condition that the time interval between the upper peak and the lower peak and the time interval between the lower peak and the upper peak are almost equal, a judgment error frequently occurs and the data is detected. However, there is a problem that the reading efficiency of the device decreases. The present invention provides a magnetic data reading device and a magnetic data reading method capable of improving data reading efficiency and reading data with high accuracy.

【0005】[0005]

【課題を解決するための手段】本発明は、磁気ヘッドで
磁気媒体から読取られた磁気信号の上下のピークをピー
ク検出手段で検出し、時間間隔判定手段によりピーク検
出と次のピーク検出との間の時間間隔を計測し、上ピー
クから下ピークへ立ち下がる比較的短い時間間隔TA、
下ピークから上ピークへ立ち上がる比較的短い時間間隔
TB、上ピークから下ピークへ立ち下がる比較的長い時
間間隔TC、下ピークから上ピークへ立ち上がる比較的
長い時間間隔TDを判定し、データ判定手段により、時
間間隔TA、TBがそれぞれ予め設定した第1の基準範
囲内にあり、かつ、時間間隔TA、TBの合計が第1の
基準範囲よりも狭い第2の基準範囲の2倍の範囲内にあ
るとき、TAとTBの組み合わせをデータ1と判定し、
時間間隔TC、TDがそれぞれ予め設定した第3の基準
範囲内にあり、かつ、時間間隔TC、TDの合計が第3
の基準範囲よりも狭い第4の基準範囲の2倍の範囲内に
あるとき、TCとTDとをそれぞれデータ0と判定する
ものである。
According to the present invention, the peak detecting means detects the upper and lower peaks of a magnetic signal read from a magnetic medium by a magnetic head, and the time interval determining means detects the peak and the next peak. A relatively short time interval TA that falls from the upper peak to the lower peak by measuring the time interval between
A relatively short time interval TB that rises from the lower peak to the upper peak, a relatively long time interval TC that falls from the upper peak to the lower peak, and a relatively long time interval TD that rises from the lower peak to the upper peak are determined and determined by the data determination means. , The time intervals TA and TB are respectively within preset first reference ranges, and the total of the time intervals TA and TB is within twice the second reference range narrower than the first reference range. At some point, the combination of TA and TB is determined as data 1,
The time intervals TC and TD are each within a preset third reference range, and the total of the time intervals TC and TD is the third.
When it is within the range twice as large as the fourth reference range, which is narrower than the reference range of, each of TC and TD is determined as data 0.

【0006】[0006]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を参照して説明する。図1において、1は磁気ヘッド
で、この磁気ヘッド1は、磁気媒体である磁気ストライ
プ2に対して一定の速度で搬送しながらこの磁気ストラ
イプ2に書込まれた磁気信号を読取るようになってい
る。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. In FIG. 1, reference numeral 1 denotes a magnetic head. The magnetic head 1 is adapted to read a magnetic signal written in the magnetic stripe 2 while conveying the magnetic stripe 2 as a magnetic medium at a constant speed. There is.

【0007】前記磁気ヘッド1で読取られた磁気信号を
増幅器3で増幅した後、ピーク検出手段4に供給してい
る。前記ピーク検出手段4は、+ピーク検出部5、−ピ
ーク検出部6及びORゲート回路7からなり、前記増幅
器3からの磁気信号を前記各ピーク検出部5,6にそれ
ぞれ入力している。
The magnetic signal read by the magnetic head 1 is amplified by the amplifier 3 and then supplied to the peak detecting means 4. The peak detecting means 4 comprises a + peak detecting section 5, a −peak detecting section 6 and an OR gate circuit 7, and inputs the magnetic signal from the amplifier 3 to the peak detecting sections 5 and 6, respectively.

【0008】前記+ピーク検出部5は入力された磁気信
号のアナログ波形から上ピークを検出し、この上ピーク
検出による割込み信号INTを、ORゲート回路7を介
して処理部8及び捕捉レジスタ9に供給し、前記−ピー
ク検出部6は入力された磁気信号のアナログ波形から下
ピークを検出し、この下ピーク検出による割込み信号I
NTを、ORゲート回路7を介して前記処理部8及び捕
捉レジスタ9に供給している。
The + peak detection unit 5 detects the upper peak from the analog waveform of the input magnetic signal, and outputs the interrupt signal INT due to the detection of the upper peak to the processing unit 8 and the capture register 9 via the OR gate circuit 7. The −peak detector 6 detects the lower peak from the analog waveform of the input magnetic signal and supplies the interrupt signal I by the lower peak detection.
NT is supplied to the processing unit 8 and the capture register 9 via the OR gate circuit 7.

【0009】前記捕捉レジスタ9は、割込み信号INT
の入力があると、タイマ10が計時している時間データ
をキャプチャ値として捕捉し、そのキャプチャ値を前記
処理部8に供給するようにしている。
The capture register 9 has an interrupt signal INT.
Is input, the time data measured by the timer 10 is captured as a capture value, and the captured value is supplied to the processing unit 8.

【0010】前記処理部8は、CPU、ROM、RAM
を設けたマイクロコンピュータからなり、時間間隔判定
手段及びデータ判定手段を備えている。前記時間間隔判
定手段は、前記ピーク検出手段4からの割込み信号IN
Tによって前記捕捉レジスタ9からの時間データを取り
込んでRAMに格納し、これを連続して繰り返すこと
で、ピーク検出と次のピーク検出との間の時間間隔を順
次計測し、図2の(a)及び(b)に示すように上ピークから
下ピークへ立ち下がる比較的短い時間間隔TA、及び下
ピークから上ピークへ立ち上がる比較的短い時間間隔T
Bを判定するようにしている。また、図2の(c)に示す
ように上ピークから下ピークへ立ち下がる比較的長い時
間間隔TC及び図2の(d)に示すように下ピークから上
ピークへ立ち上がる比較的長い時間間隔TDを判定する
ようにしている。
The processing section 8 includes a CPU, a ROM and a RAM.
And a time determination unit and a data determination unit. The time interval determination means is an interrupt signal IN from the peak detection means 4.
The time data from the capture register 9 is fetched by T and stored in the RAM, and by repeating this continuously, the time interval between peak detection and the next peak detection is sequentially measured. ) And (b), a relatively short time interval TA from the upper peak to the lower peak, and a relatively short time interval T from the lower peak to the upper peak.
B is determined. In addition, as shown in FIG. 2 (c), a relatively long time interval TC falling from the upper peak to the lower peak and as shown in FIG. 2 (d) a relatively long time interval TD rising from the lower peak to the upper peak. Is determined.

【0011】すなわち、前記時間間隔判定手段は、図4
に示すように、S1にて、前記ピーク検出手段4からの
割込み信号INTを取り込むと、S2にて、前記捕捉レ
ジスタ9が捕捉した現在のキャプチャ値を読込んでRA
Mに格納する。続いて、S3にて、1つ前のキャプチャ
値と比較して時間間隔を求める。また、ピーク情報から
上ピークから下ピークへの立ち下がりか、下ピークから
上ピークへ立ち上がりかを判定する。
That is, the time interval determination means is shown in FIG.
As shown in FIG. 3, when the interrupt signal INT from the peak detecting means 4 is fetched in S1, the current capture value captured by the capture register 9 is read in S2 and RA
Store in M. Then, in S3, the time interval is calculated by comparing with the immediately preceding capture value. Further, it is determined from the peak information whether the falling is from the upper peak to the lower peak or the rising is from the lower peak to the upper peak.

【0012】上ピークから下ピークへ立ち下がる比較的
短い時間間隔であれば、S4にて、時間間隔をTAと判
定し、下ピークから上ピークへ立ち上がる比較的短い時
間間隔であれば、S5にて、時間間隔をTBと判定す
る。また、上ピークから下ピークへ立ち下がる比較的長
い時間間隔であれば、S6にて、時間間隔をTCと判定
し、下ピークから上ピークへ立ち上がる比較的長い時間
間隔であれば、S7にて、時間間隔をTDと判定する。
If the time interval from the upper peak to the lower peak is relatively short, the time interval is determined to be TA in S4, and if the time interval from the lower peak to the upper peak is relatively short, the process proceeds to S5. Then, the time interval is determined to be TB. If it is a relatively long time interval from the upper peak to the lower peak, the time interval is determined as TC in S6, and if it is a relatively long time interval from the lower peak to the upper peak in S7. , The time interval is determined to be TD.

【0013】時間間隔とデータとの関係は、図2に示す
ように、時間間隔TAとTBの組み合わせ、時間間隔T
BとTAの組み合わせがデータ1を示し、時間間隔TC
及びTDがそれぞれデータ0をしめしている。従って、
図3に示すように、データ「0,1,0」のときは、時
間間隔TC、TB、TA、TDが順次計測されることに
なる。
As shown in FIG. 2, the relationship between the time interval and the data is the combination of the time interval TA and TB, the time interval T.
The combination of B and TA indicates data 1 and time interval TC
And TD indicate data 0, respectively. Therefore,
As shown in FIG. 3, when the data is “0, 1, 0”, the time intervals TC, TB, TA and TD are sequentially measured.

【0014】しかし、時間間隔TA、TB、TC、TD
が判定されても、その時間間隔が基準に則した時間間隔
になっていなければデータ1、0を正しく判定すること
ができない。しかも、時間間隔TA、TB、TC、TD
にはバラツキが生じる。
However, the time intervals TA, TB, TC, TD
Even if it is determined that the data 1 and 0 cannot be correctly determined unless the time interval conforms to the standard. Moreover, the time intervals TA, TB, TC, TD
Variation occurs.

【0015】そこで、前記処理部8のデータ判定手段
は、図5乃至図8に示すデータ判定処理を行うようにな
っている。前記時間間隔判定手段が時間間隔TAを判定
したときには、図5に示すように、S11にて、時間間
隔TBがすでに判定されているかをチェックする。時間
間隔TBがまだ判定されていなければ、この処理を終了
する。
Therefore, the data determination means of the processing section 8 is adapted to perform the data determination processing shown in FIGS. When the time interval determination means determines the time interval TA, as shown in FIG. 5, it is checked in S11 whether the time interval TB has already been determined. If the time interval TB has not yet been determined, this process ends.

【0016】また、時間間隔TBがすでに判定されてい
れば、続いて、S12にて、T1−α1≦TA≦T1+
α1か否かをチェックする。TA>T1+α1、又は、
TA<T1−α1であれば、時間間隔TAの判定をエラ
ーにする。T1−α1≦TA≦T1+α1であれば、続
いて、S13にて、T1−α1≦TB≦T1+α1か否
かをチェックする。TB>T1+α1、又は、TB<T
1−α1であれば、時間間隔TBの判定をエラーにす
る。
If the time interval TB has already been determined, then in step S12, T1-α1≤TA≤T1 +
Check if it is α1 or not. TA> T1 + α1, or
If TA <T1−α1, the determination of the time interval TA is an error. If T1−α1 ≦ TA ≦ T1 + α1, then in S13, it is checked whether or not T1−α1 ≦ TB ≦ T1 + α1. TB> T1 + α1 or TB <T
If it is 1-α1, the determination of the time interval TB is made an error.

【0017】T1−α1≦TB≦T1+α1であれば、
続いて、S14にて、2(T1−B1)≦TA+TB≦
2(T1+B1)か否かをチェックする。TA+TB>
2(T1+B1)、又は、TA+TB<2(T1−B
1)であれば、時間間隔TA、TBによる判定をエラー
にする。2(T1−B1)≦TA+TB≦2(T1+B
1)であれば、S15にて、データ1を判定し、この処
理を終了する。
If T1−α1 ≦ TB ≦ T1 + α1,
Then, in S14, 2 (T1-B1) ≤TA + TB≤
It is checked whether it is 2 (T1 + B1). TA + TB>
2 (T1 + B1) or TA + TB <2 (T1-B
In the case of 1), the determination based on the time intervals TA and TB is set as an error. 2 (T1-B1) ≦ TA + TB ≦ 2 (T1 + B
If 1), the data 1 is determined in S15, and this processing ends.

【0018】この判定において、T1はデータ1の理想
的な基準値であり、理想的にはTA=TB=T1とな
る。α1及びB1は判定基準を調整する数値で、α1>
B1となっている。従って、T1+α1、T1−α1は
TA、TBを比較的緩やかな判定基準で判定し、2(T
1+B1)、2(T1−B1)はTA+TBを比較的厳
しい判定基準で判定することになる。
In this determination, T1 is an ideal reference value for data 1, and ideally TA = TB = T1. α1 and B1 are numerical values for adjusting the judgment standard, and α1>
It is B1. Therefore, T1 + α1 and T1−α1 are determined by comparing TA and TB with a relatively gentle determination criterion, and 2 (T
1 + B1) and 2 (T1-B1) are determined based on a relatively strict criterion of TA + TB.

【0019】前記時間間隔判定手段が時間間隔TBを判
定したときには、図6に示すように、S21にて、時間
間隔TAがすでに判定されているかをチェックする。時
間間隔TAがまだ判定されていなければ、この処理を終
了する。
When the time interval determination means determines the time interval TB, as shown in FIG. 6, it is checked in S21 whether the time interval TA has already been determined. If the time interval TA has not yet been determined, this process ends.

【0020】また、時間間隔TAがすでに判定されてい
れば、続いて、S22にて、T1−α1≦TA≦T1+
α1か否かをチェックする。TA>T1+α1、又は、
TA<T1−α1であれば、時間間隔TAの判定をエラ
ーにする。T1−α1≦TA≦T1+α1であれば、続
いて、S23にて、T1−α1≦TB≦T1+α1か否
かをチェックする。TB>T1+α1、又は、TB<T
1−α1であれば、時間間隔TBの判定をエラーにす
る。
If the time interval TA has already been determined, then in step S22, T1-α1≤TA≤T1 +
Check if it is α1 or not. TA> T1 + α1, or
If TA <T1−α1, the determination of the time interval TA is an error. If T1−α1 ≦ TA ≦ T1 + α1, then in S23, it is checked whether or not T1−α1 ≦ TB ≦ T1 + α1. TB> T1 + α1 or TB <T
If it is 1-α1, the determination of the time interval TB is made an error.

【0021】T1−α1≦TB≦T1+α1であれば、
続いて、S24にて、2(T1−B1)≦TA+TB≦
2(T1+B1)か否かをチェックする。TA+TB>
2(T1+B1)、又は、TA+TB<2(T1−B
1)であれば、時間間隔TA、TBによる判定をエラー
にする。2(T1−B1)≦TA+TB≦2(T1+B
1)であれば、S25にて、データ1を判定し、この処
理を終了する。
If T1−α1 ≦ TB ≦ T1 + α1,
Then, in S24, 2 (T1-B1) ≤TA + TB≤
It is checked whether it is 2 (T1 + B1). TA + TB>
2 (T1 + B1) or TA + TB <2 (T1-B
In the case of 1), the determination based on the time intervals TA and TB is set as an error. 2 (T1-B1) ≦ TA + TB ≦ 2 (T1 + B
If 1), the data 1 is determined in S25, and this processing ends.

【0022】前記時間間隔判定手段が時間間隔TCを判
定したときには、図7に示すように、S31にて、時間
間隔TDがすでに判定されているかをチェックする。時
間間隔TDがまだ判定されていなければ、この処理を終
了する。
When the time interval determination means determines the time interval TC, as shown in FIG. 7, it is checked in S31 whether the time interval TD has already been determined. If the time interval TD has not yet been determined, this process ends.

【0023】また、時間間隔TDがすでに判定されてい
れば、続いて、S32にて、T0−α0≦TC≦T0+
α0か否かをチェックする。TC>T0+α0、又は、
TC<T0−α0であれば、時間間隔TCの判定をエラ
ーにする。T0−α0≦TC≦T0+α0であれば、続
いて、S33にて、T0−α0≦TD≦T0+α0か否
かをチェックする。TD>T0+α0、又は、TD<T
0−α0であれば、時間間隔TDの判定をエラーにす
る。
If the time interval TD has already been determined, then in step S32, T0-α0≤TC≤T0 +.
Check whether it is α0. TC> T0 + α0, or
If TC <T0-α0, the determination of the time interval TC is made an error. If T0-α0≤TC≤T0 + α0, then in S33, it is checked whether T0-α0≤TD≤T0 + α0. TD> T0 + α0 or TD <T
If it is 0-α0, the determination of the time interval TD is made an error.

【0024】T0−α0≦TD≦T0+α0であれば、
続いて、S34にて、2(T0−B0)≦TC+TD≦
2(T0+B0)か否かをチェックする。TC+TD>
2(T0+B0)、又は、TC+TD<2(T0−B
0)であれば、時間間隔TC、TDによる判定をエラー
にする。2(T0−B0)≦TC+TD≦2(T0+B
0)であれば、S35にて、TC、TDをそれぞれデー
タ0として判定し、この処理を終了する。
If T0-α0≤TD≤T0 + α0,
Succeedingly, in S34, 2 (T0−B0) ≦ TC + TD ≦
Check if it is 2 (T0 + B0). TC + TD>
2 (T0 + B0) or TC + TD <2 (T0-B
If it is 0), the determination based on the time intervals TC and TD is set as an error. 2 (T0-B0) ≤ TC + TD ≤ 2 (T0 + B
If it is 0), in S35, it is determined that TC and TD are data 0, respectively, and this processing ends.

【0025】この判定において、T0はデータ0の理想
的な基準値であり、理想的にはTC=TD=T0とな
る。α0及びB0は判定基準を調整する数値で、α0>
B0となっている。従って、T0+α0、T0−α0は
TC、TDを比較的緩やかな判定基準で判定し、2(T
0+B0)、2(T0−B0)はTC+TDを比較的厳
しい判定基準で判定することになる。
In this determination, T0 is an ideal reference value for data 0, and ideally TC = TD = T0. α0 and B0 are numerical values for adjusting the judgment standard, and α0>
It is B0. Therefore, for T0 + α0 and T0−α0, TC and TD are determined by a relatively gentle determination criterion, and 2 (T
0 + B0) and 2 (T0-B0) are judged by TC + TD by a relatively strict judgment standard.

【0026】前記時間間隔判定手段が時間間隔TDを判
定したときには、図8に示すように、S41にて、時間
間隔TCがすでに判定されているかをチェックする。時
間間隔TCがまだ判定されていなければ、この処理を終
了する。
When the time interval determination means determines the time interval TD, as shown in FIG. 8, it is checked in S41 whether the time interval TC has already been determined. If the time interval TC has not yet been determined, this process ends.

【0027】また、時間間隔TCがすでに判定されてい
れば、続いて、S42にて、T0−α0≦TC≦T0+
α0か否かをチェックする。TC>T0+α0、又は、
TC<T0−α0であれば、時間間隔TCの判定をエラ
ーにする。T0−α0≦TC≦T0+α0であれば、続
いて、S43にて、T0−α0≦TD≦T0+α0か否
かをチェックする。TD>T0+α0、又は、TD<T
0−α0であれば、時間間隔TDの判定をエラーにす
る。
If the time interval TC has already been determined, then in S42, T0-α0≤TC≤T0 +.
Check whether it is α0. TC> T0 + α0, or
If TC <T0-α0, the determination of the time interval TC is made an error. If T0-α0≤TC≤T0 + α0, then in S43, it is checked whether T0-α0≤TD≤T0 + α0. TD> T0 + α0 or TD <T
If it is 0-α0, the determination of the time interval TD is made an error.

【0028】T0−α0≦TD≦T0+α0であれば、
続いて、S44にて、2(T0−B0)≦TC+TD≦
2(T0+B0)か否かをチェックする。TC+TD>
2(T0+B0)、又は、TC+TD<2(T0−B
0)であれば、時間間隔TC、TDによる判定をエラー
にする。2(T0−B0)≦TC+TD≦2(T0+B
0)であれば、S45にて、TC、TDをそれぞれデー
タ0として判定し、この処理を終了する。
If T0-α0≤TD≤T0 + α0,
Succeedingly, in S44, 2 (T0−B0) ≦ TC + TD ≦
Check if it is 2 (T0 + B0). TC + TD>
2 (T0 + B0) or TC + TD <2 (T0-B
If it is 0), the determination based on the time intervals TC and TD is set as an error. 2 (T0-B0) ≤ TC + TD ≤ 2 (T0 + B
If it is 0), in S45, TC and TD are determined to be data 0, respectively, and this processing ends.

【0029】このような構成においては、磁気ヘッド1
で磁気ストライプ2から磁気信号が読取られると、その
ときのピークがピーク検出手段4によって検出される。
すなわち、ピークが+ピークであれば+ピーク検出部5
で検出され、−ピークであれば−ピーク検出部6で検出
される。そして、+ピーク、−ピークが検出される毎に
割込み信号INTが処理部8及び捕捉レジスタ9に入力
される。
In such a configuration, the magnetic head 1
When the magnetic signal is read from the magnetic stripe 2, the peak at that time is detected by the peak detecting means 4.
That is, if the peak is a + peak, the + peak detection unit 5
In the case of -peak, the peak is detected by the peak detector 6. Then, the interrupt signal INT is input to the processing unit 8 and the capture register 9 each time the + peak and the −peak are detected.

【0030】捕捉レジスタ9は割込み信号INTの入力
があると、そのときのタイマ10のカウント時間をキャ
プチャ値として捕捉する。処理部8の時間間隔判定手段
は割込み信号INTの入力があると、捕捉レジスタ9か
らキャプチャ値を取込んでRAMに格納する。そして、
この取り込んだキャプチャ値と1つ前に取り込んだキャ
プチャ値とを比較して時間間隔を求め、また、ピーク情
報から上ピークから下ピークへの立ち下がりか、下ピー
クから上ピークへ立ち上がりかを判定する。
When the interrupt signal INT is input, the capture register 9 captures the count time of the timer 10 at that time as a capture value. When the interrupt signal INT is input, the time interval determination means of the processing unit 8 fetches the capture value from the capture register 9 and stores it in the RAM. And
This captured value is compared with the captured value immediately before to obtain the time interval, and it is determined from the peak information whether the falling is from the upper peak to the lower peak or the rising from the lower peak to the upper peak. To do.

【0031】こうして、時間間隔判定手段は求めた時間
間隔と立ち上がり、立ち下がりの情報から時間間隔T
A、TB、TC、TDを判定する。時間間隔TA、T
B、TC、TDが判定されると、データ判定手段はデー
タ判定を行う。
In this way, the time interval determination means determines the time interval T from the obtained time interval and the information on the rising and falling edges.
Determine A, TB, TC, TD. Time interval TA, T
When B, TC, and TD are determined, the data determination means performs data determination.

【0032】データ判定は、例えば、時間間隔TAとT
Bが判定されると、T1−α1≦TA≦T1+α1、T
1−α1≦TB≦T1+α1、2(T1−B1)≦TA
+TB≦2(T1+B1)の3つの条件について判定
し、全ての条件を満足したとき、時間間隔TAとTBと
の組み合わせをデータ1と判定する。また、時間間隔T
CとTDが判定されると、T0−α0≦TC≦T0+α
0、T0−α0≦TD≦T0+α0、2(T0−B0)
≦TC+TD≦2(T0+B0)の3つの条件について
判定し、全ての条件を満足したとき、時間間隔TCとT
Dをそれぞれデータ0と判定する。
The data judgment is performed by, for example, the time intervals TA and T.
When B is determined, T1-α1 ≦ TA ≦ T1 + α1, T
1-α1 ≦ TB ≦ T1 + α1, 2 (T1-B1) ≦ TA
The determination is made for three conditions of + TB ≦ 2 (T1 + B1), and when all the conditions are satisfied, the combination of the time interval TA and TB is determined as data 1. Also, the time interval T
When C and TD are determined, T0−α0 ≦ TC ≦ T0 + α
0, T0-α0 ≦ TD ≦ T0 + α0, 2 (T0-B0)
When three conditions of ≦ TC + TD ≦ 2 (T0 + B0) are determined and all the conditions are satisfied, the time intervals TC and T
Each D is determined to be data 0.

【0033】このように、データ判定する場合に、時間
間隔TA及びTBを比較的緩やかな判定基準T1+α
1、T1−α1を使用して判定するので、時間間隔T
A、TBに多少のバラツキがあってもエラーとして排除
されることはない。そして、最終的に、(TA+TB)
を比較的厳しい判定基準2(T1+B1)、2(T1−
B1)を使用して判定するので、判定精度を高めること
ができる。
As described above, when the data is judged, the time intervals TA and TB are set to the comparatively gentle judgment criterion T1 + α.
1 and T1-α1 are used for the determination, the time interval T
Even if there are some variations in A and TB, they are not excluded as errors. And finally, (TA + TB)
Are relatively strict criteria 2 (T1 + B1), 2 (T1-
Since the determination is made using B1), the determination accuracy can be improved.

【0034】また、(TA+TB)を比較的厳しい判定
基準2(T1+B1)、2(T1−B1)を使用して判
定しても、立ち下がりの時間間隔TAと立ち上がりの時
間間隔TBのバラツキは互いに打ち消し合うように発生
するので、(TA+TB)と加算することでバラツキが
キャンセルされて(TA+TB)は2T1に近くなり、
時間間隔TA、TBに多少のバラツキがあってもエラー
として排除されることはない。
Even if (TA + TB) is judged using the relatively strict criteria 2 (T1 + B1) and 2 (T1-B1), the variations in the falling time interval TA and the rising time interval TB are mutually different. Since they occur so as to cancel each other, the variation is canceled by adding (TA + TB) and (TA + TB) becomes close to 2T1,
Even if there is some variation in the time intervals TA and TB, they are not excluded as an error.

【0035】また、時間間隔TC及びTDを比較的緩や
かな判定基準T0+α0、T0−α0を使用して判定す
るので、時間間隔TC、TDに多少のバラツキがあって
もエラーとして排除されることはない。そして、最終的
に、(TC+TD)を比較的厳しい判定基準2(T0+
B0)、2(T0−B0)を使用して判定するので、判
定精度を高めることができる。
Further, since the time intervals TC and TD are judged using the relatively gentle judgment criteria T0 + α0 and T0-α0, even if there are some variations in the time intervals TC and TD, they will not be excluded as errors. Absent. Then, finally, (TC + TD) is a relatively strict criterion 2 (T0 +
Since B0) and 2 (T0-B0) are used for the determination, the determination accuracy can be improved.

【0036】また、(TC+TD)を比較的厳しい判定
基準2(T0+B0)、2(T0−B0)を使用して判
定しても、立ち下がりの時間間隔TCと立ち上がりの時
間間隔TDのバラツキは互いに打ち消し合うように発生
するので、(TC+TD)と加算することでバラツキが
キャンセルされて(TC+TD)は2T0に近くなり、
時間間隔TC、TDに多少のバラツキがあってもエラー
として排除されることはない。従って、全体として、デ
ータの読取り効率を向上でき、しかも、精度の高いデー
タ読取りができる。
Even if (TC + TD) is judged using the relatively strict criteria 2 (T0 + B0) and 2 (T0-B0), the variations in the falling time interval TC and the rising time interval TD are mutually different. Since they occur so as to cancel each other, the variation is canceled by adding (TC + TD), and (TC + TD) becomes close to 2T0.
Even if the time intervals TC and TD have some variations, they are not excluded as errors. Therefore, it is possible to improve the data reading efficiency as a whole and to perform highly accurate data reading.

【0037】[0037]

【発明の効果】以上詳述したように、本発明によれば、
データの読取り効率を向上でき、しかも、精度の高いデ
ータ読取りができる磁気データ読取り装置及び磁気デー
タ読取り方法を提供できる。
As described in detail above, according to the present invention,
It is possible to provide a magnetic data reading device and a magnetic data reading method capable of improving data reading efficiency and reading data with high accuracy.

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

【図1】本発明の実施の形態を示すブロック図。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】同実施の形態におけるピーク変化と割込み信号
間の時間間隔とデータとの関係を示す図。
FIG. 2 is a diagram showing a relationship between a peak change and a time interval between interrupt signals and data in the embodiment.

【図3】同実施の形態におけるデータ例とそのときのピ
ーク変化、割込み信号間の時間間隔との関係を示す図。
FIG. 3 is a diagram showing a relationship between an example of data in the embodiment, a peak change at that time, and a time interval between interrupt signals.

【図4】同実施の形態における時間間隔判定手段による
時間間隔判定処理を示す流れ図。
FIG. 4 is a flowchart showing a time interval determination process by the time interval determination means in the same embodiment.

【図5】同実施の形態におけるデータ判定手段によるデ
ータ1の判定処理を示す流れ図。
FIG. 5 is a flowchart showing a determination process of data 1 by the data determination means in the same embodiment.

【図6】同実施の形態におけるデータ判定手段によるデ
ータ1の判定処理を示す流れ図。
FIG. 6 is a flowchart showing a determination process of data 1 by the data determination means in the embodiment.

【図7】同実施の形態におけるデータ判定手段によるデ
ータ0の判定処理を示す流れ図。
FIG. 7 is a flowchart showing a process of determining data 0 by the data determining means in the embodiment.

【図8】同実施の形態におけるデータ判定手段によるデ
ータ0の判定処理を示す流れ図。
FIG. 8 is a flowchart showing a process of determining data 0 by the data determining means in the embodiment.

【符号の説明】[Explanation of symbols]

1…磁気ヘッド 2…磁気ストライプ 4…ピーク検出手段 8…処理部 9…捕捉レジスタ 10…タイマ 1 ... Magnetic head 2 ... Magnetic stripe 4. Peak detection means 8 ... Processing unit 9 ... Capture register 10 ... Timer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 磁気媒体に書込まれた磁気信号を読取る
磁気ヘッドと、この磁気ヘッドで読取られた磁気信号の
上下のピークを検出するピーク検出手段と、このピーク
検出手段のピーク検出により、ピーク検出と次のピーク
検出との間の時間間隔を計測し、上ピークから下ピーク
へ立ち下がる比較的短い時間間隔TA、下ピークから上
ピークへ立ち上がる比較的短い時間間隔TB、上ピーク
から下ピークへ立ち下がる比較的長い時間間隔TC、下
ピークから上ピークへ立ち上る比較的長い時間間隔TD
を判定する時間間隔判定手段と、この時間間隔判定手段
が判定した時間間隔によりTAとTBの組み合わせをデ
ータ1と判定し、TCとTDをそれぞれデータ0と判定
するデータ判定手段とを設け、 前記データ判定手段は、時間間隔TA、TBがそれぞれ
予め設定した第1の基準範囲内にあり、かつ、時間間隔
TA、TBの合計が前記第1の基準範囲よりも狭い第2
の基準範囲の2倍の範囲内にあるとき、TAとTBの組
み合わせをデータ1と判定し、時間間隔TC、TDがそ
れぞれ予め設定した第3の基準範囲内にあり、かつ、時
間間隔TC、TDの合計が前記第3の基準範囲よりも狭
い第4の基準範囲の2倍の範囲内にあるとき、TCとT
Dとをそれぞれデータ0と判定することを特徴とする磁
気データ読取り装置。
1. A magnetic head for reading a magnetic signal written on a magnetic medium, peak detecting means for detecting upper and lower peaks of the magnetic signal read by the magnetic head, and peak detection by the peak detecting means. The time interval between the peak detection and the next peak detection is measured, and the relatively short time interval TA from the upper peak to the lower peak, the relatively short time interval TB from the lower peak to the upper peak, and the upper peak to the lower peak. Relatively long time interval TC falling to the peak, relatively long time interval TD rising from the lower peak to the upper peak
And a data determination unit that determines a combination of TA and TB as data 1 and that determines TC and TD as data 0 according to the time interval determined by the time interval determination unit. The data determination means has a second interval in which the time intervals TA and TB are within a preset first reference range, and the total of the time intervals TA and TB is narrower than the first reference range.
When it is in the range twice as large as the reference range, the combination of TA and TB is determined as data 1, and the time intervals TC and TD are respectively in the preset third reference range and the time interval TC, When the sum of TD is within twice the fourth reference range narrower than the third reference range, TC and T
A magnetic data reader characterized in that each of D and D is determined as data 0.
【請求項2】 磁気媒体から読取られた磁気信号の上下
のピークを連続して検出し、ピークと次のピークとの間
の時間間隔を計測し、この計測を順次行い、上ピークか
ら下ピークへ立ち下がる比較的短い時間間隔TA、下ピ
ークから上ピークへ立ち上がる比較的短い時間間隔T
B、上ピークから下ピークへ立ち下がる比較的長い時間
間隔TC、下ピークから上ピークへ立ち上がる比較的長
い時間間隔TDを判定し、時間間隔TA、TBがそれぞ
れ予め設定した第1の基準範囲内にあり、かつ、時間間
隔TA、TBの合計が前記第1の基準範囲よりも狭い第
2の基準範囲の2倍の範囲内にあるとき、TAとTBの
組み合わせをデータ1と判定し、時間間隔TC、TDが
それぞれ予め設定した第3の基準範囲内にあり、かつ、
時間間隔TC、TDの合計が前記第3の基準範囲よりも
狭い第4の基準範囲の2倍の範囲内にあるとき、TCと
TDとをそれぞれデータ0と判定することを特徴とする
磁気データ読取り方法。
2. The upper and lower peaks of a magnetic signal read from a magnetic medium are continuously detected, the time interval between the peak and the next peak is measured, and this measurement is sequentially performed, and the upper peak to the lower peak are measured. Relatively short time interval TA for falling to, and relatively short time interval T for rising from lower peak to upper peak
B, a relatively long time interval TC that falls from the upper peak to the lower peak, and a relatively long time interval TD that rises from the lower peak to the upper peak are determined, and the time intervals TA and TB are within the preset first reference range. And the total of the time intervals TA and TB is within the range of twice the second reference range narrower than the first reference range, the combination of TA and TB is determined as data 1 and The intervals TC and TD are each within a preset third reference range, and
Magnetic data characterized in that TC and TD are each determined to be data 0 when the sum of the time intervals TC and TD is within a range twice as large as the fourth reference range narrower than the third reference range. How to read.
JP2002059291A 2002-03-05 2002-03-05 Device and method for reading magnetic data Pending JP2003257003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002059291A JP2003257003A (en) 2002-03-05 2002-03-05 Device and method for reading magnetic data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002059291A JP2003257003A (en) 2002-03-05 2002-03-05 Device and method for reading magnetic data

Publications (1)

Publication Number Publication Date
JP2003257003A true JP2003257003A (en) 2003-09-12

Family

ID=28669021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002059291A Pending JP2003257003A (en) 2002-03-05 2002-03-05 Device and method for reading magnetic data

Country Status (1)

Country Link
JP (1) JP2003257003A (en)

Similar Documents

Publication Publication Date Title
US7805277B2 (en) Step number measuring apparatus
JP3378166B2 (en) Pulse signal classification device
TW200609525A (en) Acquisition apparatus, access control unit, acquisition method, access control method, program and recording medium
US5396370A (en) Process for evaluating binary data of a magnetic storage card
US4506309A (en) Tape drive calibration meter
JP2003257003A (en) Device and method for reading magnetic data
JPH08233606A (en) Position detecting device
US8185330B2 (en) Automatic placement of measurement gates
JP3450063B2 (en) Anomaly location system for the subject
JPH0823312A (en) Signal processing unit
JP3521072B2 (en) Vehicle speed and vehicle length measurement method for moving objects
WO2006126256A1 (en) Magnetic recording/reproducing device
JP3174186B2 (en) Gas identification device
JP4002034B2 (en) Foreign object detector
JP4426784B2 (en) Direction measuring device
JP2000348441A (en) Device for measuring jitter of magnetically recorded data
JP3205114B2 (en) Anomaly location system for the subject
JPH05107338A (en) Video item measuring instrument
JP2014182015A (en) Measuring machine and origin position detection method
JP3604028B2 (en) Data distribution measurement device
JP3419526B2 (en) Base shift inspection device for magnetoresistive element head
JPH07320110A (en) Matallic piece identifying device
JP4941206B2 (en) Optimal correction value calculation device, optimal correction value calculation method, and optimal correction value calculation processing program
JP4009925B2 (en) Digital oscilloscope
WO1992002002A1 (en) System for measuring speed of carrying magnetic card