JPS63166331A - Output system for ad converter - Google Patents
Output system for ad converterInfo
- Publication number
- JPS63166331A JPS63166331A JP31177686A JP31177686A JPS63166331A JP S63166331 A JPS63166331 A JP S63166331A JP 31177686 A JP31177686 A JP 31177686A JP 31177686 A JP31177686 A JP 31177686A JP S63166331 A JPS63166331 A JP S63166331A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- channel
- conversion
- channel information
- bit
- 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
- 238000006243 chemical reaction Methods 0.000 claims abstract description 42
- 238000000034 method Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 abstract description 11
- 230000007257 malfunction Effects 0.000 abstract description 8
- 230000037431 insertion Effects 0.000 abstract 1
- 238000003780 insertion Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 101100129750 Arabidopsis thaliana MDN1 gene Proteins 0.000 description 1
- 101150073986 C3AR1 gene Proteins 0.000 description 1
- 102100021703 C3a anaphylatoxin chemotactic receptor Human genes 0.000 description 1
- 101100049029 Rattus norvegicus Atp6v0e1 gene Proteins 0.000 description 1
- 101100327317 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) CDC1 gene Proteins 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 238000011109 contamination Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、チャンネルを指定され、その指定されたチャ
ンネルのAD変換を行なうマルチチャンネル型ADコン
バータの出力方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an output method of a multi-channel AD converter that is designated with a channel and performs AD conversion of the designated channel.
プロセッサを用いたエンジン制御システムではエンジン
各部にセンサを配設し、これらのセンサの出力を取入れ
てエンジン制御を行なう。プロセッサはデジタルタイプ
の装置であるから、センサ出力がアナログならAD変換
して取込み、このためADコンバータを外付けするのが
普通である。In an engine control system using a processor, sensors are placed in each part of the engine, and the outputs of these sensors are taken in to control the engine. Since the processor is a digital type device, if the sensor output is analog, it is AD converted and taken in, and for this purpose an AD converter is usually attached externally.
この種のAD変換の概要を第4図に示す。FIG. 4 shows an outline of this type of AD conversion.
第4図に示すようにアナログデジタルコンバータADC
はプロセンサCPUと信号線11〜β3で結ばれ、信号
線11を通してCPUからADCへAD変換すべきチャ
ンネルを1旨定される。八DCには#1.#2.・・・
・・・#nのn1固のアナログ入力が入り、信号線β3
を通して起動信号CSが入るとき上記指定されたチャン
ネル(アナログ入力)のAD変換を行ない、その変換が
終了すると自動的に信号線β2を通って変換結果(デジ
タル出力)をCPUへ伝送する。図のSIN、 5OO
Tはシリアル入力、シリアル出力を示しており、チャン
ネル指定データもシリアル伝送される。ADCはマルチ
プレクサを備えており、チャンネル指定を受けると該マ
ルチプレクサが指定されたチャンネルを選択する。As shown in Figure 4, the analog-to-digital converter ADC
is connected to the processor CPU through signal lines 11 to β3, and one channel to be AD converted from the CPU to the ADC is determined through the signal line 11. Eight DCs have #1. #2. ...
...#n n1 fixed analog input is input, signal line β3
When the activation signal CS is input through the control circuit 1, the designated channel (analog input) is subjected to AD conversion, and when the conversion is completed, the conversion result (digital output) is automatically transmitted to the CPU through the signal line β2. SIN in the figure, 5OO
T indicates serial input and serial output, and channel designation data is also serially transmitted. The ADC includes a multiplexer, and upon receiving a channel designation, the multiplexer selects the designated channel.
このように、プロセッサはAD変換すべきチャンネルを
指定し、ADコンバータは指定されたチャンネルのAD
変換を行ない、その変換結果をプロセッサへ送るが、チ
ャンネル指定時、信号線β)にノイズがのってチャンネ
ル指定データがこわれるとADコンバークはプロセッサ
が1旨定したチャンネルでないチャンネルのAD変換を
し、その変換結果をプロセッサへ送ってしまう忌れがあ
る。In this way, the processor specifies the channel to be AD converted, and the AD converter converts the AD of the specified channel.
The conversion is performed and the conversion result is sent to the processor. However, when specifying a channel, if noise appears on the signal line β) and the channel specification data is corrupted, the AD converter performs AD conversion on a channel other than the channel specified by the processor. , there is a risk that the conversion result will be sent to the processor.
プロセッサは、送られてきたAD変換結果は指定したチ
ャンネルのものと解し、その処理をするから、これでは
誤動作になってしまう。本発明はか\る点を改善し、誤
動作を防止しようとするものである。The processor interprets the sent AD conversion results as those of the designated channel and processes them accordingly, resulting in malfunction. The present invention aims to improve these points and prevent malfunctions.
本発明は、プロセッサ(CPtJ)に接続され、該フ゛
ロセソサにより1旨定されたチャンネルのAD変換を行
ない、その変換結果を該プロセッサへシリアル伝送する
マルチチャンネル型のADコンバータ(ADC)の出力
方式において、該プロセッサより送られてきた、AD変
換すべきチャンネルの情報を、AD変換結果と共にプロ
セ・7サヘシリアル伝送し、プロセッサでは、該シリア
ル伝送されてきたチャンネル情報を前記指定したチャン
ネル情報と比較し、一致しておれば該シリアル伝送され
てきたAD変換結果を取込むことを特徴とするものであ
る。The present invention relates to an output method of a multi-channel AD converter (ADC) that is connected to a processor (CPtJ), performs AD conversion on a predetermined channel by the processor, and serially transmits the conversion result to the processor. , Serially transmits the information of the channel to be AD converted sent from the processor to the processor 7 together with the AD conversion result, and the processor compares the serially transmitted channel information with the specified channel information, If there is a match, the serially transmitted AD conversion result is taken in.
この方式によれば、ADコンバータは指定されたチャン
ネル情報を付けてAD変換結果をプロセッサへ送り、プ
ロセッサでは送られてきたAD変換結果のチャンネル情
報が指定したそれであれば取込み、そうでなければ取込
まないようにするので、伝送中のノイズ混入などによる
誤動作を防ぐことができ、エンジン制御システムに用い
て有効である。According to this method, the AD converter attaches specified channel information and sends the AD conversion result to the processor, and the processor takes it in if the channel information of the sent AD conversion result matches the specified channel information, and if it does not, it takes it in. This prevents malfunctions due to noise mixing during transmission, making it effective for use in engine control systems.
本発明では、プロセッサへシリアル伝送されるAD変換
結果にチャンネル情報を含める。第2図はこれを説明す
る図で、シリアル伝送されるAD変換結果は16ビツト
単位とし、その一部15〜12ビットにチャンネル情報
を入れる。15〜12ビット即ち4ビツトあれば16チ
ヤンネルまで指定でき、通常は充分である。またAD変
換には8ビツト、10ビツト、12ビツトなどの分解能
が要求されるが、16ビツトもの分解能を要求されるこ
とはなく、従ってシリアル伝送ブロックを16ビツトと
すれば、チャンネル情報を挿入する充分な余裕がある。In the present invention, channel information is included in the AD conversion result that is serially transmitted to the processor. FIG. 2 is a diagram explaining this. The AD conversion result that is serially transmitted is in units of 16 bits, and channel information is stored in a portion of 15 to 12 bits. 15 to 12 bits, that is, 4 bits, can specify up to 16 channels, which is usually sufficient. AD conversion requires resolution of 8 bits, 10 bits, 12 bits, etc., but it does not require resolution of as much as 16 bits. Therefore, if the serial transmission block is 16 bits, channel information can be inserted. There is enough room.
このようにAD変換結果にチャンネル情報を入れておき
、プロセッサはこの送られてきたチャンネル情報が指定
したチャンネル情報と一致するかをチェックし、一致す
ればそのAD変換結果を取込むようにすれば、誤動作は
回避できる。In this way, the channel information is entered in the AD conversion result, the processor checks whether the sent channel information matches the specified channel information, and if it matches, it imports the AD conversion result. , malfunctions can be avoided.
AD変換結果は信号線β2を通してADCからCPUヘ
シリアル伝送されるが、この信号線A2は常時はH(ハ
イ)レベルで、シリアル伝送開始でL(ロー)レベルに
なる。このLレベルの1ビツトがスタートビットになり
、このあとに本例では16個のデータが続く。勿論デー
タ″は2進データであり、その1,0がH,Lで表わさ
れ、このH,Lはクロックの立下りに同期し、そのH,
Lレベルの読取りはクロックの立上りで行なわれる。The AD conversion result is serially transmitted from the ADC to the CPU through the signal line β2, but this signal line A2 is always at H (high) level and becomes L (low) level when serial transmission starts. This 1 bit at L level becomes a start bit, followed by 16 pieces of data in this example. Of course, the data is binary data, and its 1 and 0 are represented by H and L, and these H and L are synchronized with the falling edge of the clock.
Reading of the L level is performed at the rising edge of the clock.
クロック源はCPU側にあり、図示しないクロック線を
通してADCへ送られる。データ伝送が終ると信号線1
2はHレベルになり、これがストップビットになる。The clock source is located on the CPU side and is sent to the ADC through a clock line (not shown). When data transmission is finished, signal line 1
2 becomes H level, which becomes a stop bit.
プロセッサはAD変換を一定周期例えば2mS毎に要求
する。多数のセンサがあるので順に行なうことになるが
、AD変換周期は長くてよいものもあるので、これを考
慮したロジックにより当該時点でAD変換すべきチャン
ネルを決定する。第3図(a)にこの処理フローを示す
。決定したチャンネルCHはメモリに格納する一方、信
号線N+を通してADCへシリアル伝送する。The processor requests AD conversion at regular intervals, for example, every 2 mS. Since there are a large number of sensors, the AD conversion is performed in order, but since some AD conversion cycles may be long, the channel to be AD converted at that point in time is determined by logic that takes this into account. FIG. 3(a) shows this processing flow. The determined channel CH is stored in the memory and serially transmitted to the ADC through the signal line N+.
ADCではこれをレジスタに受け、前記マルチプレクサ
に与えてチャンネル選択を行なわせ、AD変換が済むと
その変換結果(逐次比較型ADCなら、逐次比較レジス
タに入っている)の後に該レジスタの内容を後続させ、
第2図に示す形にして信号線12を通してCPUヘシリ
アル伝送する。In the ADC, this is received in a register and given to the multiplexer to select a channel, and when AD conversion is completed, the contents of the register are passed after the conversion result (in the case of a successive approximation type ADC, it is stored in the successive approximation register). let me,
It is serially transmitted to the CPU through the signal line 12 in the form shown in FIG.
このシリアル伝送が終るとCPUには割込みが入り、こ
のシリアル伝送データを受取った受信レジスタ(図示し
ない)の内容をメモリ (RAM)へ取込むことになる
が、第2図(b)に示すように本発明ではこ\で前記メ
モリへ格納したチャンネルナンバーを読み出し、ADC
から送られてきたチャンネルナンバーと比較し、一致す
れば上記取込みを行なうが、不一致なら取込まず、廃棄
する。When this serial transmission is completed, an interrupt is generated in the CPU, and the contents of the reception register (not shown) that received this serial transmission data are loaded into the memory (RAM), as shown in Figure 2 (b). In the present invention, the channel number stored in the memory is read out and the ADC
If they match, the above-mentioned capture is performed; however, if they do not match, the channel numbers are not captured and are discarded.
第1図に本発明の要部を示す。CH決定、AD変換、C
H比較までは上記と同じである。予定のチャンネルであ
ればその処理を行なうが、これはチャンネル毎に異なる
のでCH=1?、cH=2?、・・・・・・の判定ブロ
ックが続き、該当するところでそのチャンネル固有の処
理に入る。この処理要領であればプロセッサ、ADコン
バータ間データ伝送でノイズが入り、チャンネル情報が
こわれると当該データは廃棄され、こうして誤動作が防
がれる。FIG. 1 shows the main parts of the present invention. CH determination, AD conversion, C
The steps up to H comparison are the same as above. If it is a scheduled channel, it will be processed, but this will differ depending on the channel, so CH=1? , cH=2? , . . . judgment blocks follow, and processing specific to that channel is started at the appropriate place. With this processing procedure, if noise occurs during data transmission between the processor and the AD converter and channel information is corrupted, the data will be discarded, thus preventing malfunctions.
第5図及び第6図に本発明を適用したADコンバータの
回路構成を示す。MPXはマルチプレクサ、SARは逐
次比較レジスタで、これらに図示しないDAコンバータ
が加わってマルチチャンネル型ADコンバータが構成さ
れる。ADCLはプロセッサCPUから送られるチャン
ネル情報を取込むランチ、LOGはAD変換結果及びチ
ャンネル情報をプロセッサCPUへ送るための論理和変
換器である。FIG. 5 and FIG. 6 show the circuit configuration of an AD converter to which the present invention is applied. MPX is a multiplexer, SAR is a successive approximation register, and a DA converter (not shown) is added to these to form a multi-channel AD converter. ADCL is a launcher for receiving channel information sent from the processor CPU, and LOG is an OR converter for sending the AD conversion result and channel information to the processor CPU.
論理和変換器LOCは第6図に示すようにチャンネルシ
フトレジスタC3R1電流シフトレジスクDSR1およ
びオアゲートGよりなる。ADCは前記の八ocL、M
PX、SAR,DACを含む。The OR converter LOC consists of a channel shift register C3R1, a current shift register DSR1, and an OR gate G, as shown in FIG. ADC is the above-mentioned 8ocL, M
Includes PX, SAR, and DAC.
レジスタADCRへ取込んだプロセッサからのチャンネ
ル情報はMPXのチャンネル選択信号になると共に、C
3Rへ送られてプロセッサへの通知用にされる。AD変
換結果はレジスタSARからデータレジスタDSRに移
され、このDSRよりプロセッサへ送られる。C3R,
DSRのシフトはプロセッサからのクロックで行なわれ
、そして図示のように4ビツトチヤンネル情報(≠印で
示す)はレジスタC3Rの左端から詰められ、レジスタ
DSRのデータ(芳印で示す)は右端から詰められてい
るので、上記シフトにより先ずDSRからの12ビツト
が出力され、次にC3Rから4ビツトのチャンネル情報
が出力され、これらがプロセッサcpuへ送られる。The channel information from the processor taken into the register ADCR becomes the MPX channel selection signal, and also becomes the channel selection signal of the MPX.
It is sent to 3R and used for notification to the processor. The AD conversion result is transferred from register SAR to data register DSR, and sent from this DSR to the processor. C3R,
The shift of DSR is performed by the clock from the processor, and as shown in the figure, the 4-bit channel information (indicated by the ≠ symbol) is shifted from the left end of register C3R, and the data in register DSR (indicated by the cross symbol) is shifted from the right end. As a result of the above shift, first 12 bits from DSR are output, then 4 bits of channel information are output from C3R, and these are sent to the processor CPU.
以上説明したように、本発明ではADコンバータは指定
されたチャンネル情報を付けてAD変換結果をプロセッ
サへ送り、プロセッサでは送られてきたAD変換結果の
チャンネル情報が指定したそれであれば取込み、そうで
なければ取込まないようにするので、伝送中のノイズ混
入などによる誤動作を防ぐことができ、エンジン制御シ
ステムに用いて有効である。As explained above, in the present invention, the AD converter attaches specified channel information and sends the AD conversion result to the processor, and the processor takes it in if the channel information of the sent AD conversion result is the specified one. Since it prevents the data from being taken in if it is not present, it is possible to prevent malfunctions due to noise contamination during transmission, making it effective for use in engine control systems.
第1図は本発明の出力方式の要部を示す流れ図、第2図
はシリアル伝送データの説明図、第3図はチャンネル決
定及び比較要領の流れ図、第4図はADCとCPUの接
続関係を示すブロック図、
第5図および第6図はADコンバータの回路構成および
その一部の詳細を示すブロック図である。
出 願 人 富士通テン株式会社
代理人弁理士 青 柳 稔
本発明のエフ方式の要合すと示T:此れ口笛1図
第2図
笥3閏
ADCヒCPLJかi続関伸と小テアロ・ノア図第4図Fig. 1 is a flowchart showing the main part of the output method of the present invention, Fig. 2 is an explanatory diagram of serial transmission data, Fig. 3 is a flowchart of channel determination and comparison procedure, and Fig. 4 shows the connection relationship between ADC and CPU. FIG. 5 and FIG. 6 are block diagrams showing the circuit configuration of the AD converter and details of a part thereof. Applicant Fujitsu Ten Ltd. Representative Patent Attorney Minoru Aoyagi The essentials of the F method of the present invention are shown below. Noah Figure 4
Claims (1)
指定されたチャンネルのAD変換を行ない、その変換結
果を該プロセッサへシリアル伝送するマルチチャンネル
型のADコンバータ(ADC)の出力方式において、 該プロセッサより送られてきた、AD変換すべきチャン
ネルの情報を、AD変換結果と共にプロセッサへシリア
ル伝送し、 プロセッサでは、該シリアル伝送されてきたチャンネル
情報を前記指定したチャンネル情報と比較し、一致して
おれば該シリアル伝送されてきたAD変換結果を取込む
ことを特徴とするADコンバータの出力方式。[Claims] In an output method of a multi-channel AD converter (ADC) that is connected to a processor (CPU), performs AD conversion on a channel specified by the processor, and serially transmits the conversion result to the processor. , Serially transmits the information of the channel to be AD converted sent from the processor to the processor along with the AD conversion result, and the processor compares the serially transmitted channel information with the specified channel information and performs the same. An output method of an AD converter characterized in that, if the serially transmitted AD conversion result is received.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31177686A JPS63166331A (en) | 1986-12-27 | 1986-12-27 | Output system for ad converter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31177686A JPS63166331A (en) | 1986-12-27 | 1986-12-27 | Output system for ad converter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS63166331A true JPS63166331A (en) | 1988-07-09 |
Family
ID=18021332
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP31177686A Pending JPS63166331A (en) | 1986-12-27 | 1986-12-27 | Output system for ad converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS63166331A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011096089A (en) * | 2009-10-30 | 2011-05-12 | Autonetworks Technologies Ltd | Input/output device and control device |
-
1986
- 1986-12-27 JP JP31177686A patent/JPS63166331A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011096089A (en) * | 2009-10-30 | 2011-05-12 | Autonetworks Technologies Ltd | Input/output device and control device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR960005751B1 (en) | Data in-/out-put circuit | |
| EP1981169A1 (en) | Analog/digital converter | |
| JPS63166331A (en) | Output system for ad converter | |
| JPH05145770A (en) | Encoding/decoding device | |
| US6507876B1 (en) | Detecting apparatus | |
| EP0245346A1 (en) | Method and apparatus for interfacing between analog signals and a system bus | |
| JPH0430217B2 (en) | ||
| US5748984A (en) | Ad converting apparatus including holding means indicating whether or not data after AD conversion has been previously used | |
| EP0159364A1 (en) | Apparatus for processing digital video signal | |
| JP2905310B2 (en) | DTMF signal receiver | |
| US3938187A (en) | System for putting an information record onto a magnetic substrate | |
| SU696624A1 (en) | Device for quality control of transmission of telegrams | |
| JPS63197151A (en) | Serial data transfer system | |
| JPH07104663A (en) | Output method of input / output device of programmable controller | |
| JPS63197285A (en) | Hybrid type interrupt processor | |
| JPS6288031A (en) | Register filing system | |
| JP3189552B2 (en) | Arithmetic unit | |
| JPS61196473A (en) | Pcm system signal reproducing device | |
| JPH0142199B2 (en) | ||
| JPH07107073A (en) | Time diversity processing circuit | |
| JPH07226686A (en) | Serial input / output circuit and mobile communication device | |
| JPS63142402A (en) | Method for data reception from successive comparison type a/d converter | |
| JPH05151151A (en) | Bus converting device | |
| JPS60142425A (en) | Scanning control system | |
| JPH05274111A (en) | Control system for data processing timing |