JPS62169256A - Microcomputer for vehicle - Google Patents

Microcomputer for vehicle

Info

Publication number
JPS62169256A
JPS62169256A JP61012330A JP1233086A JPS62169256A JP S62169256 A JPS62169256 A JP S62169256A JP 61012330 A JP61012330 A JP 61012330A JP 1233086 A JP1233086 A JP 1233086A JP S62169256 A JPS62169256 A JP S62169256A
Authority
JP
Japan
Prior art keywords
measured
pulse
latch circuit
relative time
latch
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
JP61012330A
Other languages
Japanese (ja)
Inventor
Munehiko Mimura
三村 宗彦
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61012330A priority Critical patent/JPS62169256A/en
Publication of JPS62169256A publication Critical patent/JPS62169256A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Control By Computers (AREA)

Abstract

PURPOSE:To improve the precision and the responsiveness of period measurement by providing a timer control circuit with a latch circuit where a relative time of the preceding measured pulse is held in accordance with the inversion of a pulse to be measured. CONSTITUTION:A frequency dividing counter 1 integrates a clock signal according as the time elapses. The first latch circuit 2 holds a relative time for the inversion of the current measured pulse, which is the value of the frequency dividing counter 1, by a latch timing signal synchronized with the inversion of a pulse signal to be measured. The second latch circuit 7 holds the relative time for the inversion of the preceding measured pulse which is the value of the first latch circuit 2. Relative times of latch circuits 2 and 7 are automatically updated for each pulse input signal to be measured.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は自動車等の車両制御を行う車両用マイクロコ
ンピュータに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a vehicle microcomputer that controls a vehicle such as an automobile.

〔従来の技術〕[Conventional technology]

自動車の制御には、エンジン制御やクラッチ制御や変速
機制御あるいは車速制御があり、これらの各用途に対す
るパルス信号として検出するものには、夫々エンジン回
転数やクラッチ回転数や変速機回転数あるいは車速かあ
る。このため、自動車用マイクロコンぎユータには一般
にノクルス信号の計測用のタイマ制御回路が付加されて
いるものが多く使われている。
Automobile control includes engine control, clutch control, transmission control, and vehicle speed control, and the pulse signals detected for each of these applications include engine rotation speed, clutch rotation speed, transmission rotation speed, and vehicle speed. There is. For this reason, many microcomputers for automobiles are generally equipped with a timer control circuit for measuring Noculus signals.

第2図は従来の車両用マイクロコンピュータの構成を示
す図である。第2図(a)において、101は車両制御
に必要な検出信号でちるエンジン回転数やクラッチ回転
数や変速機回転数あるいは車速を演算し制御を行う中央
処理装置(CPU)、102はランダムアクセスメモリ
(RAM)、103はリードオンメモリ(ROM)、1
04は高級マイコンなどに予め用意されて周辺制御回路
との通信を行う通信制御回路、106,107は周辺制
御回路との信号の入出力インターフェース回路(POR
T)、108fdデータバス、109はアドレスバス、
110.111,112はコントロールパスである。
FIG. 2 is a diagram showing the configuration of a conventional vehicle microcomputer. In FIG. 2(a), 101 is a central processing unit (CPU) that calculates and controls the engine speed, clutch speed, transmission speed, or vehicle speed using detection signals necessary for vehicle control, and 102 is a random access CPU. Memory (RAM), 103 is read-on memory (ROM), 1
04 is a communication control circuit that is prepared in advance in a high-end microcomputer and communicates with peripheral control circuits, and 106 and 107 are signal input/output interface circuits (POR) with peripheral control circuits.
T), 108fd data bus, 109 address bus,
110, 111, and 112 are control paths.

また第2図(b)は第2図(a)に示すタイマ制御回路
105の詳細な回路構成図である。図中、lはクロック
信号(CL)のノクルス数を積算する分局カウンタであ
り、積算値の時間変化によって相対時間を知ることがで
きる。2はラッチタイミング信号(St)により分局カ
ウンタ1の積算値を保持するラッチ回路、3はCPUI
 O1によシ制御される読み出し信号(So)によりラ
ッチ回路2とデータバス108との通信制御を行う断続
制御回路、また4、5はD形フリッグフロッグ、6はN
ANDr−トで、これらは被測定パルス信号(Si)の
波形整形回路を構成している。更にSfはパルス入力が
あったことを知らせる内部検出信号である。
Further, FIG. 2(b) is a detailed circuit diagram of the timer control circuit 105 shown in FIG. 2(a). In the figure, l is a branch counter that integrates the Nockles number of the clock signal (CL), and the relative time can be determined by the time change of the integrated value. 2 is a latch circuit that holds the integrated value of branch counter 1 using a latch timing signal (St), and 3 is a CPU I
An intermittent control circuit that controls communication between the latch circuit 2 and the data bus 108 by a read signal (So) controlled by O1, and 4 and 5 are D-type flip frogs, and 6 is an N
These constitute a waveform shaping circuit for the pulse signal to be measured (Si). Furthermore, Sf is an internal detection signal that notifies that there is a pulse input.

次に動作について説明する。被測定パルス信号(Si)
の反転によりラッチタイミング信号(st)及び内部検
出信号(Sf )が発生する。また、ラッチ回路2はラ
ッチタイミング信号(St)により分局カウンタ1の積
算値を保持し、被測定・ぐルス信号(Si)の反転に対
する相対時間を保持する。
Next, the operation will be explained. Pulse signal to be measured (Si)
The latch timing signal (st) and internal detection signal (Sf) are generated by the inversion of . Further, the latch circuit 2 holds the integrated value of the branch counter 1 using the latch timing signal (St), and holds the relative time with respect to the inversion of the signal to be measured (Si).

被測定パルス信号(Si)の周期演算にはプログラム手
続きが必要である。内部検出信号(Sf)の変化毎に前
回被測定ノソルス(Si)の反転時の相対時間を格納し
ているRAMI O2と今回被測定パルス(Si)の反
転時の相対時間との差を演算するとともに、今回被測定
パルス(St)の反転時の相対時間を前記前回被測定パ
ルス(Si)の反転時の相対時間としてRAM102に
格納する。
A program procedure is required to calculate the period of the pulse signal to be measured (Si). For each change in the internal detection signal (Sf), calculate the difference between RAMI O2, which stores the relative time at the time of reversal of the pulse to be measured (Si) last time, and the relative time at the time of reversal of the current pulse to be measured (Si). At the same time, the relative time at the time of inversion of the current pulse to be measured (St) is stored in the RAM 102 as the relative time at the time of inversion of the previously measured pulse (Si).

相対時間の分解能はクロック信号(CL)の周期で決定
されるが、実際には前記プログラム処理手続の所要時間
が長いため、精度や応答性の向上は望めなかった。
The resolution of relative time is determined by the period of the clock signal (CL), but in reality, the time required for the program processing procedure is long, so improvement in accuracy and responsiveness cannot be expected.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の車両用マイクロコンピュータは以上のように構成
されているので、タイマ制御回路105においてはプロ
グラム処理手続きが必要であり、このグロダラム処理手
続きの所要時間により周期計測のための精度や応答性が
損なわれてしまう問題点があった。
Since the conventional vehicle microcomputer is configured as described above, a program processing procedure is required in the timer control circuit 105, and the time required for this GLODARAM processing procedure impairs the accuracy and responsiveness for period measurement. There was a problem with this.

この発明は上記のような問題点を解決するためになされ
たもので、周期計測のための精度や応答性の向上を図る
ことのできる車両用マイクロコンピュータを得ることを
目的とする。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to obtain a microcomputer for a vehicle that can improve accuracy and responsiveness for period measurement.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る車両用マイクロコンピュータは、そのタ
イマ制御回路に、被測定・ぞルスの反転に応じて前回被
測定パルスの相対時間を保持する第2のラッチ回路を設
けたものである。
In the vehicle microcomputer according to the present invention, the timer control circuit is provided with a second latch circuit that holds the relative time of the previous pulse to be measured in accordance with the reversal of the pulse to be measured.

〔作用〕[Effect]

この発明においては、第2のラッチ回路が前回被測定パ
ルスの相対時間を保持し、他方今回被測定パルスの相対
時間は第1のラッチ回路が保持しているので、被測定パ
ルスの反転毎に必要だったプログラム処理手続及び処理
時間は不要となり、演算制御に必要な時にのみグロダラ
ム処理をすれば良い。
In this invention, since the second latch circuit holds the relative time of the previous pulse to be measured, and the first latch circuit holds the relative time of the pulse to be measured this time, each time the pulse to be measured is reversed, The necessary program processing procedures and processing time are no longer necessary, and Glodarum processing can be performed only when necessary for arithmetic control.

〔実施例〕〔Example〕

第1図はこの発明の一実施例による車両用マイクロコン
ピュータのタイマ制御回路の構成図である。図中1はク
ロック信号(CL)を積算する分周カウンタ、2はラッ
チタイミング信号(st)によシ前記分周カウンタ1の
値を保持し今回被測定ノ1ルス反転時の相対時間を保持
する第1のラッチ回路、3はCPUからの読み出し信号
(Sol )により前記第1のラッチ回路2とデータバ
ス108との通信制御を行なう断続制御回路、また4、
5はD形7リツグフロツグ回路、6はNANDゲートで
あり、これらは被測定パルス信号(Si)の波形整形回
路を構成している。さらにSfは内部検出信号である。
FIG. 1 is a configuration diagram of a timer control circuit of a vehicle microcomputer according to an embodiment of the present invention. In the figure, 1 is a frequency division counter that integrates the clock signal (CL), and 2 is a latch timing signal (st) that holds the value of the frequency division counter 1 and holds the relative time when the pulse to be measured this time is reversed. 3 is an intermittent control circuit that controls communication between the first latch circuit 2 and the data bus 108 using a read signal (Sol) from the CPU; 4;
Reference numeral 5 indicates a D-type 7-rig frog circuit, and reference numeral 6 indicates a NAND gate, which constitute a waveform shaping circuit for the pulse signal to be measured (Si). Furthermore, Sf is an internal detection signal.

そして7はラッチタイミング信号(st)により前記第
1のラッチ回路2の値を保持し前回被測定パルス反転時
の相対時間を保持する第2のラッチ回路、8はCPUか
らの読み出し信号(802)により前記第2のランチ回
路7とデータバス108との通信制御を行なう断続制御
回路である。
7 is a second latch circuit that holds the value of the first latch circuit 2 using a latch timing signal (st) and holds the relative time at the time of the previous measured pulse reversal; 8 is a readout signal (802) from the CPU; This is an on/off control circuit that controls communication between the second launch circuit 7 and the data bus 108.

次に動作について説明する。分局カウンタ1は時間経過
とともにクロック信号(CL)を積算するので積算値が
相対時間である。また、第1のラッチ回路2は、被測定
パルス入力信号(St)の反転に同期したラッチタイミ
ング信号(St)により、分周カウンタ1の値である今
回被測定・!シス反転時の相対時間を保持している。第
2のラッチ回路7は、同一のラッチタイミング信号(S
t)として第1のラッチ回路2の値である前回被測定パ
ルス反転時の相対時間を保持している。従って被測定・
ぐルス入力信号(St)毎に夫々のラッチ回路2゜7の
相対時間は自動的に更新されてゆき、従来のようなグロ
グラム処理は不要となる。
Next, the operation will be explained. Since the branch counter 1 integrates the clock signal (CL) over time, the integrated value is a relative time. In addition, the first latch circuit 2 receives the value of the frequency division counter 1, ie, the value to be measured this time, by a latch timing signal (St) synchronized with the inversion of the pulse input signal to be measured (St). It holds the relative time at the time of cis inversion. The second latch circuit 7 receives the same latch timing signal (S
t) is the value of the first latch circuit 2, which is the relative time when the pulse to be measured was previously inverted. Therefore, the measured
The relative time of each latch circuit 2.7 is automatically updated for each signal input signal (St), and conventional grogram processing is not required.

なお、エンジン回転数やクラッチ回転数や変速機回転数
あるいは車速の演算の場合には必要に応じて夫々のラッ
チ回路2,7の相対時間の差によシ周期計測を行なりこ
とができる。また、上記実施例では自動車用マイクロコ
ンピュータの場合について説明したが、その他産業機等
においても回転数の検出に用いることができることは言
うまでもない。
Incidentally, when calculating the engine speed, clutch speed, transmission speed, or vehicle speed, the period can be measured based on the difference in relative time between the latch circuits 2 and 7, if necessary. Further, in the above embodiment, the case of a microcomputer for an automobile was explained, but it goes without saying that the present invention can also be used for detecting the rotation speed in other industrial machines and the like.

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によれば、タイマ制御回路に、被
測定・fルスの反転に応じて前回被測定ノタルスの相対
時間を保持する第2のラッチ回路を設けたので、従来の
グログラム処理手続き及びグログラムの所要時間を無く
すことができ、周期計測のための精度や応答性の向上を
図ることができる。
As described above, according to the present invention, the timer control circuit is provided with the second latch circuit that holds the relative time of the previous measured notarus in response to the reversal of the measured f pulse. It is also possible to eliminate the time required for the grogram, and it is possible to improve the accuracy and responsiveness for period measurement.

また、同一のグログラム処理に対しては更に機能を向上
させることができる効果がある。
Moreover, there is an effect that the function can be further improved for the same program processing.

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

第1図はこの発明の一実施例による車両用マイクロコン
ピュータのタイマ制御回路の構成図、第2図(!L) 
、 (b)は夫々従来の車両用マイクロコンピュータの
構成図およびそのタイマ制御回路の構成図である。 1・・・分周カウンタ、2・・・第1のラッチ回路、7
・・・第2のラッチ回路、101・・・中央処理装置。 102・・・ランダムアクセスメモリ、103・・・リ
ードオンメモリ、105・・・夛イマ制御回路、108
・・・データバス、109・・・アドレスバス、110
゜111.112・・・コントロールパス。 なお、図中同一符号は同一または相当部分を示す。 第18 108−テ゛−タハ″ス 第 2 図(0) 第 2 図(1)ン
FIG. 1 is a configuration diagram of a timer control circuit of a vehicle microcomputer according to an embodiment of the present invention, and FIG. 2 (!L)
, (b) are a configuration diagram of a conventional vehicle microcomputer and a configuration diagram of its timer control circuit, respectively. 1... Frequency division counter, 2... First latch circuit, 7
. . . second latch circuit, 101 . . . central processing unit. 102... Random access memory, 103... Read-on memory, 105... Immediate control circuit, 108
...Data bus, 109...Address bus, 110
゜111.112...Control path. Note that the same reference numerals in the figures indicate the same or corresponding parts. 18 108-Tarth Figure 2 (0) Figure 2 (1)

Claims (1)

【特許請求の範囲】[Claims]  車両のエンジン回転数,クラツチ回転数,変速機回転
数あるいは車速等の検出信号を演算する中央処理装置と
、ランダムアクセスメモリと、リードオンメモリと、タ
イマ制御回路と、データバス,アドレスバス,コントロ
ールバスとを備え、前記タイマ制御回路が、少なくとも
入力パルス変化に伴う相対時間を測定できる分周カウン
タと第1のラツチ回路とを有する車両用マイクロコンピ
ユータにおいて、前記入力パルス変化とともに前記第1
のラツチ回路のデータを保持する第2のラツチ回路を設
けたことを特徴とする車両用マイクロコンピユータ。
A central processing unit that calculates detection signals such as vehicle engine speed, clutch speed, transmission speed, or vehicle speed, random access memory, lead-on memory, timer control circuit, data bus, address bus, and control. and a first latch circuit, wherein the timer control circuit has at least a frequency dividing counter and a first latch circuit capable of measuring a relative time accompanying a change in the input pulse.
1. A microcomputer for a vehicle, comprising a second latch circuit that holds data of the latch circuit.
JP61012330A 1986-01-21 1986-01-21 Microcomputer for vehicle Pending JPS62169256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61012330A JPS62169256A (en) 1986-01-21 1986-01-21 Microcomputer for vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61012330A JPS62169256A (en) 1986-01-21 1986-01-21 Microcomputer for vehicle

Publications (1)

Publication Number Publication Date
JPS62169256A true JPS62169256A (en) 1987-07-25

Family

ID=11802295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61012330A Pending JPS62169256A (en) 1986-01-21 1986-01-21 Microcomputer for vehicle

Country Status (1)

Country Link
JP (1) JPS62169256A (en)

Similar Documents

Publication Publication Date Title
JPH0291513A (en) Method and device for correcting zero point of gyro
JPS62169256A (en) Microcomputer for vehicle
JPH06348507A (en) Microcomputer
US6092164A (en) Microcomputer having division of timing signals to initialize flash memory
JPS5967459A (en) Method for detecting engine speed of internal combustion engine
JPH0370314A (en) Clock interrupt detection circuit
SU968765A1 (en) Digital device for determining speed and acceleration code
JPH0329749Y2 (en)
JPS62293368A (en) Microcomputer for automobile
JPH0714901Y2 (en) Engine rotation signal processor
JP2513050B2 (en) Rotation speed detector
SU834933A1 (en) Multichannel pulse counter
JP2598583Y2 (en) Travel detection device
JPH0460468A (en) Pulse position measuring type instrument drive circuit
SU1667251A1 (en) Shaft rotation angle-to-digit converter
JPS63289457A (en) Vehicle speed detector
JPH01248065A (en) Device for calculating accelerating and decelerating speed
SU602881A1 (en) Digital phase discriminator
JPS5689168A (en) Selecting device
JPH03295469A (en) Vehicle speed detecting device
JPS648766B2 (en)
SU497708A1 (en) Phase disc changer
JPS628059A (en) System for detecting pulse input signal
JPH02141024A (en) Method for counting vehicle speed pulse
JPS62147558A (en) Sequencer