JPH035623B2 - - Google Patents
Info
- Publication number
- JPH035623B2 JPH035623B2 JP13388982A JP13388982A JPH035623B2 JP H035623 B2 JPH035623 B2 JP H035623B2 JP 13388982 A JP13388982 A JP 13388982A JP 13388982 A JP13388982 A JP 13388982A JP H035623 B2 JPH035623 B2 JP H035623B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- transmission
- transmission lines
- time
- data transmission
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Description
【発明の詳細な説明】
本発明はデータ送受信方法に関し、その目的は
データ読取りタイミングを指示するストローブ信
号線をデータ伝送線とは別に設ける必要のない方
法を提供することにある。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data transmission/reception method, and an object thereof is to provide a method that does not require providing a strobe signal line for instructing data read timing separately from a data transmission line.
従来のデータ送受信方法を第1図に示す。この
第1図は、4本の伝送線l1〜l4と、その他に1本
のストローブ信号線l5との合計5本の信号線で送
信側(TX)と受信側(RX)とを接続し、送信
側(TX)では4ビツトの桁直列の各データD1,
D2,D3…を第2図aのように前記伝送線l1〜l4に
ビツト並列で順次印加すると共に、送信側
(TX)ではこれと共に第2図dのストローブ信
号P1がストローブ信号線l5に印加される。受信側
(RX)ではストローブ信号線(l5)にストローブ
信号Pが発生する度にその時の4本の伝送線l1〜
l4の状態をデータとして読み込むよう構成されて
いる。しかし、送信側(TX)の処理装置として
マイクロコンピユータAを用いる場合、ストロー
ブ信号P1を作る分だけマイクロコンピユータA
の負荷が重くなつているのが現状である。 A conventional data transmission/reception method is shown in FIG. In this figure, the transmitting side (TX) and the receiving side (RX) are connected by a total of five signal lines, four transmission lines l1 to l4 and one strobe signal line l5 . On the transmitting side (TX), each 4-bit digit series data D 1 ,
D 2 , D 3 . . . are applied in bit parallel to the transmission lines l 1 to l 4 as shown in FIG. Applied to signal line l5 . On the receiving side (RX), each time the strobe signal P is generated on the strobe signal line (l 5 ), the four transmission lines l 1 to
It is configured to read the state of l 4 as data. However, when microcomputer A is used as a processing device on the transmitting side (TX), microcomputer A is used to generate the strobe signal P1 .
The current situation is that the burden on people is becoming heavier.
本発明は、N本の伝送線でNビツトのデータを
順次伝送するに際し、送信側では、1つのデータ
送信終了のたびにデータ送信終了時刻から次のデ
ータ送信開始時刻にわたつてN本の前記伝送線を
全て論理レベル“H”に反転させ、受信側では、
N本の前記伝送線が全て論理レベル“H”に反転
したことを検出すると所定時間後の前記伝送線の
状態を前記Nビツトのデータとして読み込み、従
来のストローブ信号およびその伝送線を不要とす
る構成であつて、以下、本発明の具体的な一実施
例を第3図と第4図に基づいて説明する。なお、
ここでは電子料金はかりからプリンタ装置にデー
タを伝送する場合を例に挙げて説明する。 In the present invention, when N bits of data are sequentially transmitted over N transmission lines, each time one data transmission ends, the N bits of data are transmitted from the data transmission end time to the next data transmission start time on the transmitting side. All transmission lines are inverted to logic level "H", and on the receiving side,
When it is detected that all N transmission lines have been inverted to logic level "H", the state of the transmission lines after a predetermined time is read as the N bit data, making the conventional strobe signal and its transmission line unnecessary. A specific embodiment of the present invention will be described below with reference to FIGS. 3 and 4. In addition,
Here, an example will be explained in which data is transmitted from an electronic toll scale to a printer device.
1は送信側としての電子料金はかり、2は受信
側としてのプリンタ装置、l1〜l4は電子料金はか
り1とプリンタ装置2とを結ぶ4本の伝送線であ
る。電子料金はかり1側では、伝送すべきデータ
として、風袋、重量、価格、単価などのデータを
有しており、電子料金はかり1側のマイクロコン
ピユータBはデータ送出ルーチンが次のように構
成されている。 1 is an electronic toll scale as a transmitting side, 2 is a printer device as a receiving side, and l 1 to l 4 are four transmission lines connecting the electronic toll scale 1 and the printer device 2. The electronic toll scale 1 side has data such as tare, weight, price, unit price, etc. as data to be transmitted, and the microcomputer B on the electronic toll scale 1 side has a data sending routine configured as follows. There is.
マイクロコンピユータBでは、送信するデータ
の順番が、第4図aのように風袋→重量→価格→
単価の順の繰り返しサイクルであることが決めら
れており、1つのデータの送信終了時刻と次のデ
ータ送信開始の間をF16〔ビツトで書けば、伝送線
l1〜l4を全て論理レベル“H”にした状態〕に保
持して伝送するよう構成されている。なお、ここ
でデータの伝送はビツト並列桁直列でそれぞれ伝
送されており、各データ伝送時間t1は等しく、各
F16の時間t2も等しい。 In microcomputer B, the order of data to be transmitted is tare → weight → price → as shown in Figure 4 a.
It is determined that the cycle is repeated in the order of the unit price, and the time between the end time of one data transmission and the start of the next data transmission is F 16 [If written in bits, the transmission line
It is configured such that all l1 to l4 are held at a logic level of "H" for transmission. Note that the data is transmitted in bits in parallel and in series, and each data transmission time t1 is equal.
The time t 2 of F 16 is also equal.
また、上記信号を伝送線l1〜l4を介して読み込
むプリンタ装置2側では、アンドゲート3が伝送
線l1〜l4の論理積を取り、このアンドゲート3が
一致を検出するとタイマ4を介して規定時間t3
〔但し、t3>t2〕後にパルス発生器5に割込みパ
ルスP2の発生を指示する。第4図bがこの割込
みパルスP2を示し、データ伝送時間t1内に割込み
パルスp2が発生していることがわかる。なお、こ
こでは風袋、重量、価格、単価等のデータ伝送に
F16は使用されない。割込みパルスP2はプリンタ
装置2のマイクロコンピユータ6に割込み信号と
して作用し、ここでマイクロコンピユータ6は割
込みパルスP2によつて割込みがかけられると、
伝送線l1〜l4の受信端のその時の状態を情報とし
て読み込むよう構成されている。 Further, on the printer device 2 side that reads the above signals via transmission lines l1 to l4 , an AND gate 3 performs a logical product of the transmission lines l1 to l4 , and when this AND gate 3 detects a match, a timer 4 is activated. stipulated time through t 3
[However, t 3 > t 2 ] After that, the pulse generator 5 is instructed to generate the interrupt pulse P 2 . FIG. 4b shows this interrupt pulse P2 , and it can be seen that the interrupt pulse P2 is generated within the data transmission time t1 . In addition, here, data transmission such as tare, weight, price, unit price, etc.
F 16 is not used. The interrupt pulse P2 acts as an interrupt signal on the microcomputer 6 of the printer device 2, where when the microcomputer 6 is interrupted by the interrupt pulse P2 ,
It is configured to read the current state of the receiving end of the transmission lines l1 to l4 as information.
また、ここで(t1+t2)が一定であるため、マ
イクロコンピユータ6を、ほぼ(t1+t2)間隔で
割込みがかけられているか否かをチエツクするよ
う構成することによつて、伝送線l1〜l4の断線検
知も合わせて実行できる。 In addition, since (t 1 + t 2 ) is constant here, the microcomputer 6 is configured to check whether or not an interrupt is applied at approximately (t 1 + t 2 ) intervals, so that the transmission can be controlled. It is also possible to detect disconnection of the lines l1 to l4 .
以上説明のように本発明によると、従来のよう
にN本の伝送線とは別にストローブ信号用伝送線
を設ける必要がなく、しかもストローブ信号を作
らなくても受信側で正確な情報を読み取れるた
め、送信側のマイクロコンピユータの負荷をその
分だけ軽減でき、この軽減分だけマイクロコンピ
ユータを他の目的に有効利用できる。また、受信
側でN本の伝送線が全て論理レベル“H”に反転
する間隔をチエツクすることによつて、このN本
の伝送線の断線チエツクを受信側で実行すること
ができ、より一層正確なデータ伝送が期待できる
ものである。 As explained above, according to the present invention, there is no need to provide a strobe signal transmission line in addition to the N transmission lines as in the past, and accurate information can be read on the receiving side without creating a strobe signal. , the load on the microcomputer on the transmitting side can be reduced by that much, and the microcomputer can be effectively used for other purposes by this reduced amount. In addition, by checking the interval at which all N transmission lines are inverted to logic level "H" on the receiving side, the receiving side can check for disconnections in the N transmission lines, making it even more convenient. Accurate data transmission can be expected.
第1図は従来のデータ送受信方式の送信側と受
信側の接続図、第2図は第1図の波形図、第3図
は本発明の具体的な一実施例の構成図、第4図
a,bは第3図の伝送フオーマツトと受信側内部
の要部波形図である。
1……電子料金はかり〔送信側〕、2……プリ
ンタ装置〔受信側〕、3……アンドゲート、4…
…タイマ、5……パルス発生器、6,B……マイ
クロコンピユータ、l1〜l4……伝送線、P2……割
込みパルス。
Fig. 1 is a connection diagram of the transmitting side and receiving side of a conventional data transmission/reception system, Fig. 2 is a waveform diagram of Fig. 1, Fig. 3 is a block diagram of a specific embodiment of the present invention, and Fig. 4 3A and 3B are diagrams showing the transmission format and main part waveforms inside the receiving side in FIG. 3; 1...Electronic toll scale [sending side], 2...printer device [receiving side], 3...and gate, 4...
...Timer, 5...Pulse generator, 6, B...Microcomputer, l1 to l4 ...Transmission line, P2 ...Interrupt pulse.
Claims (1)
するに際し、送信側では、1つのデータ送信終了
のたびにデータ送信終了時刻から次のデータ送信
開始時刻にわたつてN本の前記伝送線を全て論理
レベル“H”に反転させ、受信側では、N本の前
記伝送線が全て論理レベル“H”に反転したこと
を検出すると所定時間後の前記伝送線の状態を前
記Nビツトのデータとして読み込むデータ送受信
方式。1. When transmitting N bits of data sequentially over N transmission lines, the transmitting side transmits data over the N transmission lines from the data transmission end time to the next data transmission start time every time one data transmission ends. When the reception side detects that all N transmission lines have been inverted to logic level "H", the state of the transmission lines after a predetermined time is used as the N-bit data. Data transmission/reception method to read.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13388982A JPS5924332A (en) | 1982-07-30 | 1982-07-30 | Data transmission/reception method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13388982A JPS5924332A (en) | 1982-07-30 | 1982-07-30 | Data transmission/reception method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5924332A JPS5924332A (en) | 1984-02-08 |
| JPH035623B2 true JPH035623B2 (en) | 1991-01-28 |
Family
ID=15115464
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13388982A Granted JPS5924332A (en) | 1982-07-30 | 1982-07-30 | Data transmission/reception method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5924332A (en) |
-
1982
- 1982-07-30 JP JP13388982A patent/JPS5924332A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5924332A (en) | 1984-02-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6275526B1 (en) | Serial data communication between integrated circuits | |
| US4535421A (en) | Universal real time transparent asynchronous serial/echoplex converter | |
| EP0335424A3 (en) | Improved parity checking apparatus | |
| GB1311076A (en) | Data terminal-computer interface system | |
| GB1536103A (en) | Data storage system | |
| JPH035623B2 (en) | ||
| CA2014994A1 (en) | Protected information transfer system | |
| JP3021855B2 (en) | Serial data transfer device | |
| JPH0231828B2 (en) | ||
| JPS6332303B2 (en) | ||
| JP2623816B2 (en) | Signal transmission method | |
| JPS604342A (en) | Communication device | |
| JPH02312418A (en) | Communication equipment for vehicle use | |
| SU1388931A1 (en) | Device for checking the state of transducers | |
| JPS63502861A (en) | Data transfer system with transfer identification circuit | |
| JPS58181131A (en) | Data trnsferring system | |
| JPH0219946A (en) | Semiconductor file memory device | |
| SU1557577A2 (en) | Device for transmission of information from rotating object | |
| KR900000610B1 (en) | Interface controlling device of line printer for computer system | |
| JPS62213333A (en) | Data transmission system | |
| JPH01121921A (en) | Detection of power-off of printer | |
| JPS6246913B2 (en) | ||
| JPH02113360A (en) | Data reader for optical scanner | |
| JPS5956888U (en) | remote monitoring control system | |
| JPH0535621B2 (en) |