JPH0132143Y2 - - Google Patents
Info
- Publication number
- JPH0132143Y2 JPH0132143Y2 JP11037082U JP11037082U JPH0132143Y2 JP H0132143 Y2 JPH0132143 Y2 JP H0132143Y2 JP 11037082 U JP11037082 U JP 11037082U JP 11037082 U JP11037082 U JP 11037082U JP H0132143 Y2 JPH0132143 Y2 JP H0132143Y2
- Authority
- JP
- Japan
- Prior art keywords
- information
- data
- switch
- control device
- 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.)
- Expired
Links
- 230000005540 biological transmission Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000005764 inhibitory process Effects 0.000 description 1
Landscapes
- Detection And Correction Of Errors (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Error Detection And Correction (AREA)
Description
【考案の詳細な説明】
本考案は、デイツプスイツチで設定された各種
情報を確実かつ迅速に得ることのできる回路に関
する。[Detailed Description of the Invention] The present invention relates to a circuit that can reliably and quickly obtain various information set by a dip switch.
デイツプスイツチを用いて各種情報を設定して
マイクロプロセツサ等の制御装置にその情報を伝
える場合、デイツプスイツチの信頼性を高めるた
めパリテイビツトを付加することが行われる。第
1図は、デイツプスイツチの外観図で、aは平面
図、bは正面図である。このようなデイツプスイ
ツチを用いてパリテイビツトを付加した情報伝送
を行う場合は、次のようにする。即ち、各種情報
を1から7までの7ビツトで設定し8番目のスイ
ツチをパリテイビツトとして用いる。例えば奇数
パリテイを用いるとすると、設定情報が0101101
であつた場合は、奇数パリテイの場合8番目のス
イツチで“1”を設定する。ON又はOFFのう
ち、どちらを“1”とするかは任意に決めること
ができる。 When setting various information using a dip switch and transmitting the information to a control device such as a microprocessor, a parity bit is added to increase the reliability of the dip switch. FIG. 1 is an external view of the deep switch, in which a is a plan view and b is a front view. When transmitting information with a parity bit added using such a dip switch, the following procedure is performed. That is, various information is set with 7 bits from 1 to 7, and the 8th switch is used as a parity bit. For example, if you use odd parity, the setting information is 0101101
If the parity is odd, set the eighth switch to "1". Which of ON and OFF is set to "1" can be arbitrarily determined.
第2図は、デイツプスイツチを用いた情報伝送
回路の一例を示す図である。図において、1はデ
イツプスイツチ、2は該デイツプスイツチの設定
情報を受けるバツフア、3は該バツフアの出力を
受ける制御装置である。該制御装置としては、例
えば前述したようにマイクロコンピユータが用い
られる。このような、デイツプスイツチとバツフ
アより構成される情報伝送回路は、データバス
DBに複数個接続されるのが普通である。そこ
で、データバスDB上で複数個の情報が衝突する
のを避けるため、図に示すようにバツフア2に禁
止信号が入力されるようになつている。該禁止信
号は別途制御回路(図示せず)から与えられる。
図に示す回路からデイツプスイツチで設定された
情報を制御装置3に伝送する場合、禁止信号は解
除されており、デイツプスイツチ1で設定された
情報はバツフア2を介して制御装置3に伝えられ
る。逆に、情報が伝送されない場合は、バツフア
2には禁止信号が入力され、該バツフアの出力は
ハイインピーダンス状態となつてデータバスDB
から切り離され、他の情報伝送回路がバスDBを
専有する。 FIG. 2 is a diagram showing an example of an information transmission circuit using a dip switch. In the figure, 1 is a deep switch, 2 is a buffer that receives setting information of the deep switch, and 3 is a control device that receives the output of the buffer. As the control device, for example, a microcomputer is used as described above. An information transmission circuit like this, consisting of a deep switch and a buffer, is a data bus.
It is common for multiple devices to be connected to a DB. Therefore, in order to prevent a plurality of pieces of information from colliding on the data bus DB, a prohibition signal is input to the buffer 2 as shown in the figure. The inhibition signal is given from a separate control circuit (not shown).
When transmitting the information set by the dip switch 1 from the circuit shown in the figure to the control device 3, the prohibition signal is released and the information set by the dip switch 1 is transmitted to the control device 3 via the buffer 2. Conversely, when information is not transmitted, a prohibition signal is input to buffer 2, and the output of the buffer becomes a high impedance state and connects to the data bus DB.
bus DB, and other information transmission circuits exclusively use the bus DB.
このような構成の情報伝送回路で、パリテイチ
エツク方式を採用すると当該情報伝送回路を呼び
出すたびごとにパリテイチエツクを行う必要があ
り多くの処理時間を要する。 If a parity check method is adopted in an information transmission circuit having such a configuration, it is necessary to perform a parity check every time the information transmission circuit is called, which requires a lot of processing time.
本考案は、このような点に鑑みてなされたもの
であつて、第1回目のパリテイチエツクで確認し
た正しいデータを格納するメモリを設け、以後は
該メモリに格納されたデータと取込んだデータが
一致するかどうかを確認するだけで情報のチエツ
クが済むようにした処理時間の速い情報チエツク
回路を実現したものである。以下、図面を参照し
て本考案を説明する。 The present invention was developed in view of these points, and includes a memory that stores the correct data confirmed in the first parity check, and from then on, the data stored in the memory and the imported data are stored in the memory. This realizes an information check circuit that has a fast processing time and can check information simply by checking whether the data match. Hereinafter, the present invention will be explained with reference to the drawings.
第3図は、本考案の一実施例を示す電気的構成
図である。第2図と同一のものは、同一の番号を
付して示す。4は、パリテイチエツクで確認した
正しいデータを各情報伝送回路ごとに格納してお
くメモリである。該メモリとしては例えばRAM
が用いられる。このように構成された装置の動作
を説明すれば、以下のとおりである。 FIG. 3 is an electrical configuration diagram showing an embodiment of the present invention. Components that are the same as those in FIG. 2 are designated with the same numbers. Reference numeral 4 denotes a memory in which correct data confirmed by a parity check is stored for each information transmission circuit. The memory is, for example, RAM.
is used. The operation of the device configured as described above will be explained as follows.
デイツプスイツチ1からは、各種情報が設定さ
れる。情報の種類としてはI/O装置の機種番号
や入力データの上下限設定値等が考えられる。デ
イツプスイツチとして第1図のものを例にとれ
ば、第8ビツト目にパリテイデータが設定され
る。設定情報として7ビツト分全部を使つて例え
ば0101101を設定したものとすると、パリテイデ
ータは奇数パリテイの場合“1”になる。従つ
て、01011011なる8ビートデータが、バツフア2
を介して制御装置3に伝送される。なお、このと
きバツフア2の禁止信号は解除されている。制御
装置3は、取込んだデータのうち“1”の数を数
える。加算の結果が奇数になれば情報が正しく伝
えられていることになる。一方、加算の結果が偶
数の場合、情報が誤つて伝送されたことになる。
情報が誤つて伝送された場合、制御装置3はエラ
ーメツセージを出力する等の異常処理を実行す
る。 Various information is set from the deep switch 1. Possible types of information include the model number of the I/O device, upper and lower limit settings for input data, and the like. Taking the dip switch shown in FIG. 1 as an example, parity data is set at the 8th bit. If, for example, 0101101 is set using all 7 bits as setting information, the parity data will be "1" for odd parity. Therefore, the 8-beat data 01011011 is
It is transmitted to the control device 3 via. Note that at this time, the inhibit signal of buffer 2 has been released. The control device 3 counts the number of "1"s in the captured data. If the result of addition is an odd number, it means that the information is being conveyed correctly. On the other hand, if the result of the addition is an even number, the information has been transmitted in error.
If the information is erroneously transmitted, the control device 3 executes abnormality processing such as outputting an error message.
一方、情報が正しく伝送されていた場合には、
制御装置3は受信したデータをメモリ4に格納す
る。このデータを格納するメモリの番地は、各伝
送回路ごとに定まつており、定まつた番地に格納
される。このように、正しい情報を一たんメモリ
4に格納しておくと、次回以降当該伝送回路から
の情報を受けるとき、受信したデータとメモリ4
に格納されていたデータとを比較するだけで情報
が正しく伝送されたかどうかを確認することがで
きる。即ち、そのたびごとにパリテイチエツクを
行う必要がないので、処理時間が大幅に短絡され
る。上述の説明では、デイツプスイツチのビツト
数として8ビツトの場合を例にとつて説明した
が、8ビツトに限る必要がないことはいうまでも
ない。任意のビツト数であつてよい。 On the other hand, if the information is transmitted correctly,
The control device 3 stores the received data in the memory 4. The memory address for storing this data is determined for each transmission circuit, and the data is stored at the determined address. In this way, once correct information is stored in the memory 4, the next time when receiving information from the relevant transmission circuit, the received data and the memory 4 will be stored.
You can check whether the information was transmitted correctly by simply comparing it with the data stored in the . That is, since there is no need to perform a parity check each time, the processing time is significantly shortened. In the above description, the case where the number of bits of the dip switch is 8 bits has been explained as an example, but it goes without saying that the number of bits is not limited to 8 bits. It can be any number of bits.
以上詳細に説明したように、本考案によれば第
1回目のパリテイチエツクで確認した正しいデー
タを格納するメモリを設け、以後は該メモリに格
納されたデータと取込んだデータが一致するかど
うかを確認するだけで情報のチエツクが済むよう
にして、処理時間を向上させたデイツプスイツチ
の情報チエツク回路を実現することができる。 As explained in detail above, according to the present invention, a memory is provided to store the correct data confirmed in the first parity check, and from then on, whether the data stored in the memory and the imported data match. It is possible to realize an information check circuit for a dip switch in which the processing time is improved by checking the information only by checking whether the information is correct or not.
第1図はデイツプスイツチの外観図、第2図は
情報伝送回路の一例を示す図、第3図は本考案の
一実施例を示す電気的構成図である。
1……デイツプスイツチ、2……バツフア、3
……制御装置、4……メモリ。
FIG. 1 is an external view of a deep switch, FIG. 2 is a diagram showing an example of an information transmission circuit, and FIG. 3 is an electrical configuration diagram showing an embodiment of the present invention. 1...Deep switch, 2...Battle switch, 3
...Control device, 4...Memory.
Claims (1)
置に伝送する場合において、設定情報をバツフア
を介して制御装置に伝送すると共に、第1回目に
行われるパリテイチエツクの結果を格納するメモ
リを設けたことを特徴とするデイツプスイツチの
情報チエツク回路。 When setting various information on the dip switch and transmitting it to the control device, the setting information is transmitted to the control device via a buffer, and a memory is provided to store the results of the first parity check. Features a deep switch information check circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11037082U JPS5915143U (en) | 1982-07-21 | 1982-07-21 | Deep switch information check circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11037082U JPS5915143U (en) | 1982-07-21 | 1982-07-21 | Deep switch information check circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5915143U JPS5915143U (en) | 1984-01-30 |
| JPH0132143Y2 true JPH0132143Y2 (en) | 1989-10-02 |
Family
ID=30256708
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11037082U Granted JPS5915143U (en) | 1982-07-21 | 1982-07-21 | Deep switch information check circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5915143U (en) |
-
1982
- 1982-07-21 JP JP11037082U patent/JPS5915143U/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5915143U (en) | 1984-01-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0525736B1 (en) | Data storing system for a communication control circuit | |
| JPH0132143Y2 (en) | ||
| JPH02294862A (en) | Computer with a plurality of plug-in modules | |
| JPS6227409B2 (en) | ||
| JP2830486B2 (en) | Communication device | |
| JPS6491235A (en) | Control system for counter circuit | |
| JPH0313038A (en) | Asynchronous serial data transmitter | |
| JPH0581174A (en) | CPU device access confirmation circuit | |
| JPS6138665B2 (en) | ||
| JPS58140829A (en) | Setting circuit of device number | |
| JPS5894020A (en) | Terminating system of back board signal line | |
| JPS61151746A (en) | Processing method of data error | |
| Rossi | Remote controlled B+ T train Pre/post scaler | |
| JPH01288986A (en) | Memory card | |
| JPH0460260B2 (en) | ||
| JPS6051952A (en) | Parity checking system | |
| JPH0475154A (en) | Address setting system for cascade-connected terminal equipment | |
| JPS6089263A (en) | Protective system of memory | |
| Iselin et al. | A data transfer system incorporating a PDP8 computer | |
| JPH04288652A (en) | Circuit for transmission equipment | |
| JPS61131632A (en) | Data format system for multiplex transmission | |
| JPS5953947A (en) | Input data confirming system | |
| JPS6466769A (en) | Data processing having decentralized shared memories | |
| JPS6310272A (en) | Processing system for equi-load logic circuit | |
| JPH06175961A (en) | Automatic input/output address setting device |