JPS588362A - Test signal generating method for peripheral equipment - Google Patents
Test signal generating method for peripheral equipmentInfo
- Publication number
- JPS588362A JPS588362A JP56106060A JP10606081A JPS588362A JP S588362 A JPS588362 A JP S588362A JP 56106060 A JP56106060 A JP 56106060A JP 10606081 A JP10606081 A JP 10606081A JP S588362 A JPS588362 A JP S588362A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- test signal
- read out
- memory
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】
本発明はカードリーダのような低速の出力信号を模擬し
たテスト信号の発生方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method of generating a test signal that simulates a low-speed output signal such as that of a card reader.
従来この種の周辺機器のコントローラやインタフェイス
を製作する場合には、実際に周辺機器を接続してテスト
調整しなければならず、特にコンピュータと周辺機器と
の納入メーカが異なる場合などには不便なことが多かっ
た。また通常のcpUはカードリーダなどと比べて高速
であるために、カードリーダの出力を模擬したテストデ
ータを作成することはきわめて困難であった。本発明は
上記の問題点を解決せんとするものであり、比較的もの
である。Conventionally, when manufacturing controllers and interfaces for this type of peripheral equipment, it was necessary to actually connect the peripheral equipment and test and adjust it, which was particularly inconvenient when the computer and peripheral equipment were supplied by different manufacturers. There were many things like that. Furthermore, since a normal CPU is faster than a card reader, it is extremely difficult to create test data that simulates the output of a card reader. The present invention aims to solve the above problems and is comparative.
以下本発明を実施例図によって詳述する。第1図aは本
発明に用いる装置の概略構成金示したものであ)、図に
おいてマイクロプロセッサエCよりなるC P U(]
)は割込み機能を具えたもので1、RAMメモリ(2)
およびコンソール(3)と共にマイクロコンピュータユ
ニットを構成している。(4)は発振回路および分周回
路よりなるクロック発生回路、′(5)はクロックパル
スをカウント元で設定された間隔−に割込信号を発生す
るタ゛イマ割込回路、(6)は出力手段としての工10
ポートである。同図すはメモリ(2)内のテスト′デー
タ格納部のメモリマツプを示したもので、先頭番地には
タイマ設定値すなわち割込間隔が格納され、次にテスト
信号の初期論理値すなわちテスト信号が1”で始まるか
加”で始まるかを示すデータ、次に同−論理値の持続期
間すなわち論理反転間隔をその期間内の割込回数で表わ
したデータが順次格納され、最後にテスト信号の終了を
示す終了コード或は繰返しを指示するコードが格納され
る。The present invention will be explained in detail below using examples. Figure 1a shows a schematic configuration of the device used in the present invention), in which a CPU (CPU) consisting of a microprocessor E.
) has an interrupt function (1), RAM memory (2)
and console (3) constitute a microcomputer unit. (4) is a clock generation circuit consisting of an oscillation circuit and a frequency dividing circuit; (5) is a timer interrupt circuit that generates an interrupt signal at intervals set by counting clock pulses; and (6) is an output means. As work 10
It is a port. The figure shows a memory map of the test' data storage section in memory (2), where the timer setting value, that is, the interrupt interval, is stored at the first address, and then the initial logic value of the test signal, that is, the test signal. Data indicating whether it starts with 1" or "+", then data expressing the duration of the same logic value, that is, the logic inversion interval, in terms of the number of interrupts within that period, are stored in sequence, and finally, the end of the test signal is stored. An end code indicating the process or a code instructing repetition is stored.
第2図および第3図は具体例を示したものであり、第2
図すは第1図すに示したメモリエリヤ内のデータの具体
例で16進数で標記しである。この図のテストデータに
おいて、先頭番地(1000番地)のOF”は15個の
クロックパルスをカウントして割込信号を発生させるこ
とを示し、1001番地の「00」は初期論理が“0″
であることを示し「FF」は初期論理”1”を示すもの
とする。1002番地乃至1009番地は論理反転間隔
を割込回数で表わしたもので、このデータによって形成
されるテスト信号の波形を第2図aに示もアドレス10
02番地以下のデー冬がそれぞれ第2図aの区間tl、
t2,5+・t8に対応している。10.04番地の「
FFJは終了コードで、この終了コードがl−、FEJ
の場合は同一パターンを繰シ返すものとする。これらの
データはプロダラム実行前にあらかじめコンソール(3
)からキー人力しておくのである。Figures 2 and 3 show specific examples;
The figure shows a specific example of the data in the memory area shown in FIG. 1 and is marked in hexadecimal. In the test data in this figure, "OF" at the first address (address 1000) indicates that an interrupt signal is generated by counting 15 clock pulses, and "00" at address 1001 indicates that the initial logic is "0".
It is assumed that "FF" indicates the initial logic "1". Addresses 1002 to 1009 represent the logical inversion interval in terms of the number of interrupts, and the waveform of the test signal formed by this data is shown in Figure 2a.
The days and winters below address 02 are respectively the section tl in Figure 2 a,
It corresponds to t2,5+・t8. 10.04 “
FFJ is the end code, and this end code is l-, FEJ
In this case, the same pattern shall be repeated. These data are stored in the console (3) before executing the program.
).
第3図のフローチャートに示すように、プロダラムを実
行させると、先ず(イ)の初期処理においてアドレスレ
ジスタ(A:om)をデータエリアの先頭番地すなわち
上側では1000番地にセットし、(ロ)においてAD
H番地の内容すなわちタイマ設定値「OF」を読み出す
。次に(ハ)においてタイマを設定、し割込許可を与え
る。次に(ニ)でアドレスレジスタ(A、DR)をイン
クリメントし、(ホ)でADH番地の内容すなわちi期
論理データ「00」を読み出し、(へ)で初期論理値今
の例では10”を出力する。当初(ワ)、−の終了・−
ド、繰返し・−ドは検出されておらず、これらの判定は
NOで、寺す忙(ト)(チ)で次の番地の1002のデ
ータ「08」を読み出し、〈す)で割込回数をカウント
し、割込回数が8回に達すると(ヌ)で出力論理を0′
″か。ら′1″に反ト
転させて、再び−に戻シ次の論理反転間隔データ「04
」を読み出し、割込信号を4回カウントして串力を反転
させる。同様にして順次論理反転を繰シ返し、終了コー
ド「FFJを読み出すとプロダラムを終了・シ、また繰
返しコード「FElを読み出すと、再びアドレスカウン
タ(ADH)を1000番地に戻して同一のパターンの
テスト信号を出力するのである。第2図の例では、論理
反転間隔データとして8,4.・・・などの小さい数値
例を示したが、実際には256までの数が可能であり、
もつと反転間隔を大きくとりたい場合には各データを2
バイトデータとすればよい。また反転間隔を小さくとり
たい場合はメモリ2の先頭アドレスにセットする割込み
間隔を小さくとればよい。As shown in the flowchart in Figure 3, when the program is executed, the address register (A:om) is first set to the first address of the data area, that is, address 1000 on the upper side in the initial processing of (a), and in (b) A.D.
Read out the contents of address H, ie, the timer setting value "OF". Next, in (c), a timer is set and interrupt permission is granted. Next, in (d), the address registers (A, DR) are incremented, in (e), the contents of the ADH address, that is, the i-period logical data "00" are read out, and in (f), the initial logical value is set to 10'' in this example. Output.Initially (wa), -end of -
C, repeat, and -C are not detected, and these judgments are NO. Read the data ``08'' at the next address 1002 with Terasu Busy (G) and (C), and check the number of interrupts with <S). is counted, and when the number of interrupts reaches 8, the output logic is set to 0' with (nu).
"?" to "1" and then back to - again. Next logic inversion interval data "04".
” is read out, the interrupt signal is counted four times, and the skewer force is reversed. In the same way, the logical inversion is repeated in sequence, and when the end code ``FFJ'' is read, the program is terminated, and when the repeat code ``FE1'' is read, the address counter (ADH) is returned to address 1000 again and the same pattern is tested. In the example shown in Fig. 2, small numerical examples such as 8, 4, etc. are shown as logical inversion interval data, but in reality, numbers up to 256 are possible.
If you want to increase the reversal interval, set each data to 2.
It can be used as byte data. If the inversion interval is desired to be small, the interrupt interval set at the start address of the memory 2 may be set small.
なお本実施例のように割込間隔をも設定可能にしておけ
ば、各データは1バイトで充分である。なおアナログ信
号を出力したい場合は、第1図aに示すようにD /
Aコンバータ(7)を接続することによシ可能である。Note that if the interrupt interval is also settable as in this embodiment, one byte of each data is sufficient. If you want to output an analog signal, use D/D as shown in Figure 1a.
This is possible by connecting an A converter (7).
上述のように本発明によれば、僅かなバイト数のデータ
により低速で反転間隔の長いテスト信号を容易に発生さ
せることができ、市販のマイクロプロセッサチップと多
容量のメモリを用いて簡単に低速周辺機器用のテスト信
号を発生させることができるので、従来のように実機を
接続しなくてもインタフェイスなどのテスト調整あるい
は駅の改札機などのテストが容易に行えるという利点が
ある。As described above, according to the present invention, a low-speed test signal with a long inversion interval can be easily generated using a small number of bytes of data, and a low-speed test signal can be easily generated using a commercially available microprocessor chip and a large capacity memory. Since it is possible to generate test signals for peripheral devices, it has the advantage that it is easy to test and adjust interfaces, etc., or test station ticket gates, etc., without having to connect actual devices as in the past.
第1図aは本発明方法に用いる装置の一実施例を示すブ
ロック図、同図すは同上の要部メモリ構成図であり、第
2図aは本発明方法を説明するタイミング図、同図すは
同上のデータ例を示す要部メモリ構成図、第3図は同上
のフローチャートである。
(1)ばCPU、(2+はメモリ、(3)はコンソール
、(4)はクロック発生回路、(5)は割込発生手段(
タイマ割込回路、(6)は出力手段(■10ポート)。
代理人 弁理士 縣 浩 介
−祠 ←基本クロ・νりにl、5〜FIG. 1a is a block diagram showing an embodiment of the apparatus used in the method of the present invention, and FIG. 3 is a main part memory configuration diagram showing an example of the data as described above, and FIG. 3 is a flowchart of the same as above. (1) CPU, (2+ memory, (3) console, (4) clock generation circuit, (5) interrupt generation means (
Timer interrupt circuit, (6) is output means (■10 ports). Agent Patent Attorney Hiroshi Agata-Shin ←Basic black/ν Rini l, 5~
Claims (2)
割込発生を行う手段および出力手段を具え、あらかじめ
上記メ毛りにテスト信号の初期論理及び論理反転間隔を
表わす複数のデータおよび終了コードを順次記憶させて
おき、上記初期論理を読出して出力論理を設定したのも
終了コードを読出すまで、上記各データを読出す毎に各
データ値に対応した割込回数を計数して出力論理を反転
させるようにしたことを特徴とする周辺機器用テスト信
号発生方法。(1) Equipped with a CPU having an interrupt function, a memory, a means for generating interrupts at regular intervals, and an output means, and a plurality of data representing the initial logic and logic reversal interval of the test signal and a termination code are stored in the memory in advance. The reason why the initial logic is read out and the output logic is set is that each time the above data is read, the number of interrupts corresponding to each data value is counted and the output logic is set. A method for generating a test signal for a peripheral device, characterized in that the signal is inverted.
タを含み、割込間隔をあらかじめ設定で゛きるようにし
たことを特徴とする特許請求の範囲第1項記載の周辺機
器用テスト信号発生方法。(2) A test signal for a peripheral device according to claim 1, characterized in that the storage contents of the memory include data specifying an interrupt interval, so that the interrupt interval can be set in advance. How it occurs.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56106060A JPS588362A (en) | 1981-07-06 | 1981-07-06 | Test signal generating method for peripheral equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56106060A JPS588362A (en) | 1981-07-06 | 1981-07-06 | Test signal generating method for peripheral equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS588362A true JPS588362A (en) | 1983-01-18 |
Family
ID=14424063
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56106060A Pending JPS588362A (en) | 1981-07-06 | 1981-07-06 | Test signal generating method for peripheral equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS588362A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4594759A (en) * | 1985-04-13 | 1986-06-17 | Hideaki Ikeda | Surface-chiseling machine |
| JPH03131975A (en) * | 1989-10-18 | 1991-06-05 | Nishimura Giken:Kk | Automatic setter for signal level in test pattern waveform input |
-
1981
- 1981-07-06 JP JP56106060A patent/JPS588362A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4594759A (en) * | 1985-04-13 | 1986-06-17 | Hideaki Ikeda | Surface-chiseling machine |
| JPH03131975A (en) * | 1989-10-18 | 1991-06-05 | Nishimura Giken:Kk | Automatic setter for signal level in test pattern waveform input |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5117380A (en) | Random number generator driven by independent clock pulses asynchronously with system clock pulses | |
| US4504906A (en) | Multiprocessor system | |
| EP0267612A3 (en) | Timer/counter using a register block | |
| JP2661222B2 (en) | Pulse output device | |
| US5471635A (en) | Methods and apparatus pulse-width modulation that use a counter and a modulus device | |
| JPH04323755A (en) | Dma device | |
| JPH05282244A (en) | Information processor | |
| Lin et al. | DMA-based Communications between PC and DSP | |
| JP2696811B2 (en) | Electronic preset counter | |
| JP2575025B2 (en) | In-circuit emulator | |
| JPS6326421B2 (en) | ||
| JP2538671Y2 (en) | Pulse measuring device | |
| JP2538680B2 (en) | CRT control circuit | |
| SU830377A1 (en) | Device for determining maximum number code | |
| SU1273937A1 (en) | Device for analyzing frequency of using information blocks in computer complexes | |
| JPS62108162A (en) | Pulse cycle input device | |
| JPS5834184U (en) | display circuit | |
| JPS6269352A (en) | microprocessor | |
| EP0278263A3 (en) | Multiple bus dma controller | |
| JPS6342547A (en) | Line control unit | |
| JPS6123254A (en) | Simple tracing circuit | |
| Benetta et al. | Test software for the NA10 event-buffer/controller system | |
| JPS6118057A (en) | Electronics | |
| JPH0322144A (en) | Processing capacity measuring system for central processing unit carrying board | |
| JPH0338732A (en) | Emulation system |