JP4804390B2 - Rotation amount determination device and computer program used for the device - Google Patents

Rotation amount determination device and computer program used for the device Download PDF

Info

Publication number
JP4804390B2
JP4804390B2 JP2007075268A JP2007075268A JP4804390B2 JP 4804390 B2 JP4804390 B2 JP 4804390B2 JP 2007075268 A JP2007075268 A JP 2007075268A JP 2007075268 A JP2007075268 A JP 2007075268A JP 4804390 B2 JP4804390 B2 JP 4804390B2
Authority
JP
Japan
Prior art keywords
pulse signal
rotation amount
error
monitoring time
rotary switch
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 - Fee Related
Application number
JP2007075268A
Other languages
Japanese (ja)
Other versions
JP2008236546A (en
Inventor
文雄 小田
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.)
Faurecia Clarion Electronics Co Ltd
Original Assignee
Clarion Co Ltd
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 Clarion Co Ltd filed Critical Clarion Co Ltd
Priority to JP2007075268A priority Critical patent/JP4804390B2/en
Publication of JP2008236546A publication Critical patent/JP2008236546A/en
Application granted granted Critical
Publication of JP4804390B2 publication Critical patent/JP4804390B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ロータリエンコーダによって所定時間毎に検出されるパルス信号の変化に基づいて回転式スイッチの回転量を判断することが可能な回転量判断装置およびその装置に用いられるコンピュータプログラムに関する。   The present invention relates to a rotation amount determination device capable of determining the rotation amount of a rotary switch based on a change in a pulse signal detected every predetermined time by a rotary encoder, and a computer program used in the device.

従来から、回転式のスイッチ(以下、回転式スイッチという)の回転量を判断するための方法として、ロータリエンコーダを用いた方法が知られている。具体的には、回転式スイッチの回転軸に対して放射状の窓が形成された円盤を形成し、さらにこの円盤を中心にして対峙する発光素子(例えば発光ダイオード)と受光素子(例えばフォトトランジスタ)とを設置して、窓を介して受光素子の受光部が発光素子の発光部の光を受光した場合を「1」、円盤の窓以外の部分によって発光素子の光が遮られた場合を「0」としてパルス信号の検出を行う。   Conventionally, a method using a rotary encoder is known as a method for determining the amount of rotation of a rotary switch (hereinafter referred to as a rotary switch). Specifically, a disk having a radial window formed with respect to the rotation axis of the rotary switch is formed, and a light-emitting element (for example, a light-emitting diode) and a light-receiving element (for example, a phototransistor) that face each other around the disk. And “1” when the light receiving part of the light receiving element receives the light of the light emitting part of the light emitting element through the window, and “when the light of the light emitting element is blocked by the part other than the window of the disk”. The pulse signal is detected as “0”.

一般的に、発光素子の発光部および受光素子の受光部は一対となって少なくとも2組設けられており、2組の発光部および受光部はそれぞれ近接した位置に配設される。このため、回転式スイッチの回転に応じてそれぞれの受光部で検出されるパルス信号の状態は、「1」「0」の変化にズレが生ずる(パルス信号に位相差が生ずる)。このパルス信号の状態(2つのパルス信号の位相差の状態)を所定間隔毎に検出することによって、回転式スイッチの回転方向および回転量を決定することが可能となる(例えば、特許文献1〜特許文献3、非特許文献1参照)。
特開2001−28524号公報 特開2001−28525号公報 特許第3654064号明細書 パソコン解体全書 大島篤著 高陵社出版 94頁〜95頁
Generally, at least two pairs of light emitting portions of the light emitting elements and light receiving portions of the light receiving elements are provided as a pair, and the two sets of light emitting portions and light receiving portions are respectively disposed at close positions. For this reason, the state of the pulse signal detected by each light receiving unit according to the rotation of the rotary switch is shifted in the change of “1” and “0” (a phase difference is generated in the pulse signal). By detecting the state of the pulse signal (the state of the phase difference between the two pulse signals) at predetermined intervals, it is possible to determine the rotation direction and the rotation amount of the rotary switch (for example, Patent Documents 1 to 3). (See Patent Document 3 and Non-Patent Document 1).
JP 2001-28524 A JP 2001-28525 A Japanese Patent No. 3654064 Complete PC dismantling book Atsushi Oshima Publishing 94 pages to 95 pages

しかしながら、回転式スイッチが速い速度で回転された場合には、パルス信号の「0」「1」変化がパルス信号の検出間隔(検出(サンプリング)周期)以上の速さで変化してしまう場合があり得るため、正確なパルス信号の変化を検出することができないおそれがあった。このように正確なパルス信号の変化を検出できない場合には、回転式スイッチが現実に回転されているにも拘わらず、回転式スイッチの回転がなされなかったものと判断されてしまう場合があり、回転式スイッチを操作した操作者は、回転式スイッチの実際の操作量(回転量)と、実際に実行される処理量(回転式スイッチが回転されなかったものとして判断された場合等の処理量)との間に違和感を感じる場合があった。   However, when the rotary switch is rotated at a high speed, the change of “0” or “1” of the pulse signal may change at a speed greater than the detection interval (detection (sampling) cycle) of the pulse signal. Therefore, there is a possibility that an accurate change of the pulse signal cannot be detected. When it is not possible to detect an accurate change of the pulse signal in this way, it may be determined that the rotary switch has not been rotated even though the rotary switch is actually rotated. The operator who operates the rotary switch determines the actual operation amount (rotation amount) of the rotary switch and the amount of processing actually executed (the processing amount when it is determined that the rotary switch has not been rotated, etc. ) Sometimes felt uncomfortable.

例えば、回転式スイッチによってオーディオ機器の音量を調整する場合、操作者が回転式スイッチを大きく回転させても、その回転速度が速い場合には回転式スイッチが回転されていないものとオーディオ機器側で判断されてしまい、音量が全く変わらない場合があった。   For example, when adjusting the volume of an audio device with a rotary switch, even if the operator rotates the rotary switch greatly, if the rotation speed is fast, the audio device side may indicate that the rotary switch is not rotating. In some cases, the volume was not changed at all.

特に、一般的な操作者が回転式スイッチを回転操作して所定の設定値に設定(調整)を行う場合、所望の設定値近傍まで速い速度で回転式スイッチを回転操作させ、所望の設定値に近づいたときにはゆっくりと回転式スイッチを回転操作させて正確に設定値の設定を行う傾向がある。このため、操作者が回転式スイッチを大きく回転させて設定値を大きく変化させようとしたときに、操作機器において回転式スイッチの回転量の検出がなされない事態が生じると、操作者の期待と実際の検出量との差が顕著なものとなってしまうおそれがあった。   In particular, when a general operator rotates (rotates) a rotary switch to set (adjust) a predetermined set value, the rotary switch is rotated at a high speed to the vicinity of the desired set value, and the desired set value is set. There is a tendency to set the set value accurately by slowly rotating the rotary switch when approaching. Therefore, when the operator tries to change the set value by rotating the rotary switch greatly, if the situation where the rotation amount of the rotary switch is not detected in the operating device occurs, There is a possibility that the difference from the actual detection amount becomes remarkable.

このような問題を解決するために、パルス信号の検出間隔を短くする方法が考えられるが、検出間隔を短くすると、回転式スイッチが設けられる機器の演算処理部に大きな処理負担がかかってしまうため、他の処理に影響を及ぼすおそれがあるという問題があった。   In order to solve such a problem, a method of shortening the detection interval of the pulse signal can be considered. However, if the detection interval is shortened, a large processing load is imposed on the arithmetic processing unit of the device provided with the rotary switch. There is a problem that it may affect other processing.

また、パルス信号に変化が生じたことをトリガーとしてパルス信号検出の割り込み処理を行う方法も考えられるが、この方法を用いる場合には、演算処理部における負担が大幅に増大してしまうという問題があり、さらに、演算処理部の処理能力や優先すべき処理内容によって割り込み機能を使うことができない場合も生じ得るという問題があった。   In addition, a method of performing interrupt processing for pulse signal detection triggered by a change in the pulse signal is also conceivable. However, when this method is used, there is a problem in that the burden on the arithmetic processing unit increases significantly. In addition, there is a problem that the interrupt function may not be used depending on the processing capability of the arithmetic processing unit and the processing content to be prioritized.

本発明は上記問題に鑑みてなされたものであり、操作者が回転式スイッチを速い速度で回転させた場合であっても、演算処理部における処理負担を増大させることなく、さらに操作者が違和感を感じることがないようにして、回転式スイッチの回転量を決定することが可能な回転量判断装置およびその装置に用いられるコンピュータプログラムを提供することを課題とする。   The present invention has been made in view of the above problems, and even when the operator rotates the rotary switch at a high speed, the operator feels uncomfortable without increasing the processing load on the arithmetic processing unit. It is an object of the present invention to provide a rotation amount determination device capable of determining the rotation amount of a rotary switch and a computer program used for the device.

上記課題を解決するために、本発明に係る回転量判断装置は、ロータリエンコーダによって所定時間毎に検出されるパルス信号の変化に基づいて回転式スイッチの回転量を判断する。回転量判断装置は、ロータリエンコーダによって検出されたパルス信号と、所定時間前に検出されたパルス信号とを比較してロータリエンコーダによるパルス信号の検出エラーを判断するエラー判断手段と、エラー判断手段によってパルス信号の検出エラーを判断した場合に、当該判断時を基準として予め設定されるエラー監視時間の経過を計測するエラー監視時間計測手段と、エラー監視時間計測手段によるエラー監視時間の計測中に検出されたパルス信号の変化数をカウントする変化数カウント手段と、エラー監視時間計測手段に基づいてエラー監視時間の経過完了を判断し、変化数カウント手段によってカウントされたパルス情報の変化数に基づいて、エラー監視時間における回転式スイッチの回転量を決定する回転量決定手段とを有することを特徴とする。   In order to solve the above problems, a rotation amount determination device according to the present invention determines a rotation amount of a rotary switch based on a change in a pulse signal detected every predetermined time by a rotary encoder. The rotation amount determination device includes an error determination unit that compares a pulse signal detected by the rotary encoder with a pulse signal detected a predetermined time ago to determine a detection error of the pulse signal by the rotary encoder, and an error determination unit. When a pulse signal detection error is determined, an error monitoring time measurement unit that measures the passage of an error monitoring time that is set in advance based on the determination time, and an error monitoring time measurement unit that detects the error monitoring time A change number counting unit that counts the number of changes in the pulse signal, and an error monitoring time measuring unit to determine whether the error monitoring time has elapsed, and based on the number of changes in the pulse information counted by the change number counting unit A rotation amount determination means for determining the rotation amount of the rotary switch during the error monitoring time. And wherein the Rukoto.

このように、本発明に係る回転量判断装置では、ロータリエンコーダによって検出されたパルス信号と、所定時間前に検出されたパルス信号とを比較してロータリエンコーダによるパルス信号の検出エラーを判断し、検出エラーを検出した場合に、カウントされたパルス情報の変化数に基づいて、エラー監視時間中の回転式スイッチの回転量を決定するので、例えば、操作者が、ロータリエンコーダの設けられた回転式スイッチ等を速い速度で回転操作させた場合であっても、回転操作に追従させて回転式スイッチの回転量を決定することが可能となる。このように、パルス情報の変化数に基づいて回転式スイッチの回転量を決定することによって、操作者が違和感を感じることがないように回転量を決定することが可能となる。   Thus, in the rotation amount determination device according to the present invention, the pulse signal detected by the rotary encoder is compared with the pulse signal detected before a predetermined time to determine the detection error of the pulse signal by the rotary encoder, When a detection error is detected, the amount of rotation of the rotary switch during the error monitoring time is determined based on the number of changes in the counted pulse information. For example, the operator can use the rotary type provided with the rotary encoder. Even when the switch or the like is rotated at a high speed, the rotation amount of the rotary switch can be determined by following the rotation operation. Thus, by determining the rotation amount of the rotary switch based on the number of changes in pulse information, the rotation amount can be determined so that the operator does not feel uncomfortable.

また、検出エラーの判断を行った場合には、当該判断時を基準としてエラー監視時間の計測処理を開始するので、操作者が回転式スイッチ等を速く回転操作し始めてから回転操作が通常操作に戻ると想定されるまでの時間を、エラー監視時間として設定することによって、回転式スイッチの回転量を、好適に決定することができる。このため、操作者の操作パターンに適した回転量判断を行うことが可能となる。   In addition, when a detection error is determined, the error monitoring time measurement process is started based on the determination time, so that the rotation operation is changed to the normal operation after the operator starts rotating the rotary switch etc. quickly. By setting the time until the return is assumed as the error monitoring time, the rotation amount of the rotary switch can be suitably determined. For this reason, it is possible to determine the amount of rotation suitable for the operation pattern of the operator.

また、本発明に係る回転量判断装置を用いることによって、ロータリエンコーダによって検出されるパルス信号の検出間隔を従来よりも短くすることなく、また、演算処理部等において割り込み処理等を行うことなく、好適な回転量を決定することができる。このため、回転量判断装置に用いられる演算処理部の処理負担を抑制することが可能となる。   Further, by using the rotation amount determination device according to the present invention, without making the detection interval of the pulse signal detected by the rotary encoder shorter than before, and without performing interrupt processing or the like in the arithmetic processing unit or the like, A suitable amount of rotation can be determined. For this reason, it becomes possible to suppress the processing burden of the arithmetic processing unit used in the rotation amount determination device.

なお、想定され得る操作者の操作パターンに応じてエラー監視時間を変更するものであってもよい。このように、エラー監視時間を適切に変更・調整することによって、より操作者が違和感を感じ難い回転量を決定することが可能となる。   The error monitoring time may be changed according to an operator's operation pattern that can be assumed. Thus, by appropriately changing / adjusting the error monitoring time, it is possible to determine a rotation amount that makes it more difficult for the operator to feel uncomfortable.

また、本発明に係る回転量判断装置は、回転量決定手段が、変化数カウント手段によってカウントされたパルス信号の変化数に基づいて算出される回転量よりも少ない回転量を、回転式スイッチの回転量として決定するものであってもよい。   In the rotation amount determination device according to the present invention, the rotation amount determination means may provide a rotation amount smaller than the rotation amount calculated based on the number of changes of the pulse signal counted by the change number counting means. It may be determined as a rotation amount.

このように、変化数カウント手段によってカウントされたパルス信号の変化数に基づいて算出される回転量よりも少ない回転量を、回転式スイッチの回転量として決定することによって、回転式スイッチが速く回転されてパルス信号の変化が顕著に生じた場合であっても、回転量を適切に調整することができ、回転式スイッチを回転操作する操作者が違和感を感じにくい回転量を決定することができる。   Thus, the rotary switch rotates faster by determining the rotation amount smaller than the rotation amount calculated based on the change number of the pulse signal counted by the change number counting means as the rotation amount of the rotary switch. Even when the pulse signal changes significantly, the amount of rotation can be adjusted appropriately, and the amount of rotation at which the operator who operates the rotary switch does not feel uncomfortable can be determined. .

また、回転量決定手段は、エラー監視時間の長さに応じて回転数の減少量を変化させるものであってもよい。   The rotation amount determination means may change the amount of decrease in the rotation speed according to the length of the error monitoring time.

例えば、エラー監視時間が短い場合には、現実に回転させることが可能な回転式スイッチの回転量は比較的少なくなり、一方で、エラー監視時間が長い場合には、現実に回転することが可能な回転式スイッチの回転量の幅は大きくなる傾向がある。このため、例えば、エラー監視時間が短い場合には減少量を少なくし、エラー監視時間が長い場合には減少量を増大させることによって、操作者が回転式スイッチの操作に違和感を感じ難くすることが可能となる。   For example, when the error monitoring time is short, the amount of rotation of the rotary switch that can be actually rotated is relatively small, while when the error monitoring time is long, it can be actually rotated. The range of the amount of rotation of a simple rotary switch tends to increase. For this reason, for example, when the error monitoring time is short, the amount of decrease is reduced, and when the error monitoring time is long, the amount of decrease is increased, thereby making it difficult for the operator to feel uncomfortable with the operation of the rotary switch. Is possible.

また、上記回転量判断装置が、所定時間前に検出されたパルス信号に応じて正常なパルス信号の検出時に検出され得るパルス信号の変化状態を記録した正常パルス信号記録手段を有し、エラー判断手段が、正常パルス信号記録手段に記録されるパルス信号の変化状態に基づいて、検出されたパルス信号が正常なパルス信号の検出時に検出され得るパルス信号であるか否かを判断して、パルス信号のエラー検出を行うものであってもよい。   Further, the rotation amount judging device has a normal pulse signal recording means for recording a change state of a pulse signal that can be detected when detecting a normal pulse signal according to a pulse signal detected before a predetermined time, and determining an error. Based on the change state of the pulse signal recorded in the normal pulse signal recording means, the means determines whether the detected pulse signal is a pulse signal that can be detected when the normal pulse signal is detected, and the pulse Signal error detection may be performed.

このように、エラー判断手段が、正常パルス信号記録手段に記録されるパルス信号の変化状態に基づいて、検出されたパルス信号が正常なパルス信号であるか否かを判断することによって、パルス信号の検出エラーを迅速かつ確実に判断することが可能となる。   As described above, the error determination unit determines whether the detected pulse signal is a normal pulse signal based on the change state of the pulse signal recorded in the normal pulse signal recording unit. It is possible to quickly and reliably determine the detection error.

さらに、ロータリエンコーダの設置位置や設置数が変更等された場合には、正常パルス信号記録手段に記録されるパルス信号の変化状態を更新することによって、簡易にパルス信号の正常検出判断基準を変更することが可能となる。   In addition, when the installation position and number of rotary encoders are changed, the normal detection judgment criteria of the pulse signal can be changed easily by updating the change state of the pulse signal recorded in the normal pulse signal recording means. It becomes possible to do.

また、本発明に係る回転量判断装置のコンピュータに用いられるコンピュータプログラムは、ロータリエンコーダによって所定時間毎に検出されるパルス信号の変化に基づいて回転式スイッチの回転量を判断する回転量判断装置のコンピュータに、ロータリエンコーダによって検出されたパルス信号と、所定時間前に検出されたパルス信号とを比較してロータリエンコーダによるパルス信号の検出エラーを判断するエラー判断処理と、エラー判断処理においてパルス信号の検出エラーを判断した場合に、当該判断時を基準として予め設定されるエラー監視時間の経過を計測するエラー監視時間計測処理と、エラー監視時間計測処理によるエラー監視時間の計測中に検出されたパルス信号の変化数をカウントする変化数カウント処理と、エラー監視時間計測処理における前記エラー監視時間の経過完了を判断し、変化数カウント処理によってカウントされたパルス情報の変化数に基づいて、エラー監視時間における回転式スイッチの回転量を決定する回転量決定処理とを実現させるためのコンピュータプログラムであることを特徴とする。   The computer program used for the computer of the rotation amount determination device according to the present invention is a rotation amount determination device that determines the rotation amount of the rotary switch based on a change in a pulse signal detected every predetermined time by a rotary encoder. An error determination process for comparing a pulse signal detected by the rotary encoder with a pulse signal detected a predetermined time before determining a detection error of the pulse signal by the rotary encoder, and a pulse signal in the error determination process. When a detection error is determined, an error monitoring time measurement process that measures the passage of a preset error monitoring time based on the determination time, and a pulse that is detected during error monitoring time measurement by the error monitoring time measurement process Error count processing that counts signal changes and errors Rotation amount determination processing for determining the completion of the error monitoring time in the viewing time measurement processing and determining the rotation amount of the rotary switch during the error monitoring time based on the number of changes in the pulse information counted by the change number counting processing It is a computer program for realizing.

このように、本発明に係るコンピュータプログラムを用いることによって、コンピュータが、ロータリエンコーダによって検出されたパルス信号と、所定時間前に検出されたパルス信号とを比較してロータリエンコーダによるパルス信号の検出エラーを判断し、検出エラーを検出した場合に、カウントされたパルス情報の変化数に基づいて、エラー監視時間中の回転式スイッチの回転量を決定するので、例えば、操作者が、ロータリエンコーダの設けられた回転式スイッチ等を速い速度で回転操作させた場合であっても、回転操作に追従させて回転式スイッチの回転量を決定することが可能となる。このように、パルス情報の変化数に基づいて回転式スイッチの回転量を決定することによって、操作者が違和感を感じることがないように回転量を決定することが可能となる。   In this way, by using the computer program according to the present invention, the computer compares the pulse signal detected by the rotary encoder with the pulse signal detected a predetermined time ago, and the pulse signal detection error by the rotary encoder. When the detection error is detected, the amount of rotation of the rotary switch during the error monitoring time is determined based on the number of changes in the counted pulse information. For example, the operator installs the rotary encoder. Even when the rotary switch is rotated at a high speed, the rotation amount of the rotary switch can be determined by following the rotation operation. Thus, by determining the rotation amount of the rotary switch based on the number of changes in pulse information, the rotation amount can be determined so that the operator does not feel uncomfortable.

また、検出エラーの判断を行った場合には、当該判断時を基準としてエラー監視時間の計測処理を開始するので、操作者が回転式スイッチ等を速く回転操作し始めてから回転操作が通常操作に戻ると想定されるまでの時間を、エラー監視時間として設定することによって、回転式スイッチの回転量を好適に決定することができる。このため、操作者の操作パターンに適した回転量判断を行うことが可能となる。   In addition, when a detection error is determined, the error monitoring time measurement process is started based on the determination time, so that the rotation operation is changed to the normal operation after the operator starts rotating the rotary switch etc. quickly. By setting the time until the return is assumed as the error monitoring time, the rotation amount of the rotary switch can be suitably determined. For this reason, it is possible to determine the amount of rotation suitable for the operation pattern of the operator.

本発明に係る回転量判断装置およびその装置に用いられるコンピュータプログラムによって、操作者が回転式スイッチを速い速度で回転させた場合であっても、演算処理部における処理負担を増大させることなく、さらに操作者が違和感を感じることがないようにして、回転式スイッチの回転量を決定することが可能となる。   Even when the operator rotates the rotary switch at a high speed by the rotation amount determination device according to the present invention and the computer program used for the device, the processing load on the arithmetic processing unit is not increased. It is possible to determine the rotation amount of the rotary switch so that the operator does not feel uncomfortable.

本発明に係る回転量判断装置を備えた車載オーディオ装置について、図面を用いて詳細に説明する。図1は、車載オーディオ装置1の概略構成を示したブロック図である。車載オーディオ装置1は、CD(CompactDisc)再生部2と、MD(MiniDisc)再生部3と、ラジオチューナ部4、セレクタ部5と、操作部7と、制御部(エラー判断手段、エラー監視時間計測手段、変化数カウント手段、回転量決定手段)8と、情報記録部(正常パルス信号記録手段)9と、音量変更部10と、パワーアンプ11とを備えており、車載オーディオ装置1にはスピーカ12が接続されている。   An in-vehicle audio apparatus including a rotation amount determination device according to the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of the in-vehicle audio apparatus 1. The in-vehicle audio apparatus 1 includes a CD (CompactDisc) playback unit 2, an MD (MiniDisc) playback unit 3, a radio tuner unit 4, a selector unit 5, an operation unit 7, and a control unit (error determination means, error monitoring time measurement). Means, change number counting means, rotation amount determining means) 8, information recording section (normal pulse signal recording means) 9, volume changing section 10, and power amplifier 11, and the in-vehicle audio apparatus 1 includes a speaker. 12 is connected.

CD再生部2は、CDメディアに記録されるデジタル信号を読み取ってデコードしアナログの音響信号として出力する機能を備えており、MD再生部3は、MDメディアに記録されるデジタル信号を読み取ってデコードしアナログの音響信号として出力する機能を備えている。また、ラジオチューナ部4は、電波を介して受信したAM/FM信号を音響信号として出力する機能を備えている。CD再生部2、MD再生部3、ラジオチューナ部4は、制御部8による再生信号に基づいて音響信号の出力開始処理を行い、また制御部8の停止信号に基づいて音響信号の出力停止処理を行う。また、同様に、制御部8による制御信号に応じて、曲目や周波数の選択等が行われる。   The CD playback unit 2 has a function of reading and decoding a digital signal recorded on the CD medium and outputting it as an analog sound signal. The MD playback unit 3 reads and decodes the digital signal recorded on the MD media. It has a function to output as an analog sound signal. The radio tuner unit 4 has a function of outputting an AM / FM signal received via radio waves as an acoustic signal. The CD playback unit 2, MD playback unit 3, and radio tuner unit 4 perform an acoustic signal output start process based on the playback signal from the control unit 8, and an acoustic signal output stop process based on the stop signal from the control unit 8 I do. Similarly, selection of a music piece or a frequency is performed in accordance with a control signal from the control unit 8.

なお、本実施形態においては音響信号を再生する機器(以下、音源ソースという)として、CD再生部2、MD再生部3、ラジオチューナ部4を示したが、音響信号を再生する機器はこれらに限定されるものではなく、カセットテープ、DVD―ROM、ハードディスク等のメディアに記録される音響信号を出力するものであってもよい。   In the present embodiment, the CD playback unit 2, the MD playback unit 3, and the radio tuner unit 4 are shown as the devices that play back the acoustic signals (hereinafter referred to as the sound source). The present invention is not limited, and an audio signal recorded on a medium such as a cassette tape, a DVD-ROM, or a hard disk may be output.

セレクタ部5は、CD再生部2、MD再生部3、ラジオチューナ部4によって出力された音響信号の中から音量変更部10に入力させる音響信号の選択を行う装置である。このセレクタ部5による音響信号の選択は、制御部8より受信する選択信号に基づいて決定される。   The selector unit 5 is a device that selects an acoustic signal to be input to the volume changing unit 10 from the acoustic signals output by the CD reproducing unit 2, the MD reproducing unit 3, and the radio tuner unit 4. The selection of the acoustic signal by the selector unit 5 is determined based on the selection signal received from the control unit 8.

操作部7は、車載オーディオ装置1の前面パネル等に設けられる操作ボタンおよび回転式スイッチであり、ユーザはこの操作ボタン等を操作することによって、各種操作を行うことが可能となっている。操作部7には、例えば、音響ソース(CD再生部2、MD再生部3、ラジオチューナ部4)の入力元を選択するための音源ソース選択ボタン7aや、選択された音源ソースにおける音響信号の出力を開始させるための再生ボタン7bや、音響信号の出力を停止させるための停止ボタン7c等が設けられている。音源ソース選択ボタン7a、再生ボタン7b、停止ボタン7cにより選択された設定情報は制御部8に伝達される。   The operation unit 7 is an operation button and a rotary switch provided on the front panel or the like of the in-vehicle audio apparatus 1, and the user can perform various operations by operating the operation button or the like. The operation unit 7 includes, for example, a sound source source selection button 7a for selecting an input source of an acoustic source (CD reproduction unit 2, MD reproduction unit 3, radio tuner unit 4) and an acoustic signal of the selected sound source. A playback button 7b for starting output, a stop button 7c for stopping output of an acoustic signal, and the like are provided. The setting information selected by the sound source selection button 7a, the playback button 7b, and the stop button 7c is transmitted to the control unit 8.

また、操作部7には、スピーカ12から出力される出力音の音量調節を行うための音量調節用の回転式スイッチ7dが設けられている。回転式スイッチ7dには、図2に示すように、回転式スイッチ7dの回転量および回転方向を検出するためにロータリエンコーダ14が設けられている。   The operation unit 7 is provided with a rotary switch 7d for volume adjustment for adjusting the volume of the output sound output from the speaker 12. As shown in FIG. 2, the rotary switch 7d is provided with a rotary encoder 14 for detecting the amount and direction of rotation of the rotary switch 7d.

具体的には、回転式スイッチ7dの回転軸7iを回転軸として円盤14aが形成されており、この円盤14aの周縁部には放射状の窓(スリット)14bが複数設けられている。さらに円盤14aを中央に挟むようにして発光ダイオード15aとフォトトランジスタ15bとが一対となって設けられており、回転式スイッチ7dの回転に伴って円盤14aが回転し、発光ダイオード15aに形成される発光部の正面に窓14bが位置する場合には、フォトトランジスタ15bに形成される受光部において発光部の発射光を受光することができ、発光部の正面に窓以外の部分が位置する場合には、フォトトランジスタ15bの受光部において発光部の発射光を受光することができない構造となっている。   Specifically, a disk 14a is formed with the rotation shaft 7i of the rotary switch 7d as a rotation axis, and a plurality of radial windows (slits) 14b are provided on the periphery of the disk 14a. Further, a pair of a light emitting diode 15a and a phototransistor 15b are provided so as to sandwich the disk 14a in the center, and the disk 14a rotates with the rotation of the rotary switch 7d, and a light emitting portion formed in the light emitting diode 15a. When the window 14b is located in front of the light emitting portion, the light emitting portion formed in the phototransistor 15b can receive the emitted light of the light emitting portion, and when the portion other than the window is located in front of the light emitting portion, The light-receiving portion of the phototransistor 15b cannot receive the emitted light from the light-emitting portion.

なお、フォトトランジスタ15bの受光部において発光ダイオード15aの発光部の発射光を受光できた場合、制御部8は、フォトトランジスタ15bの受光部において発射光を受光した旨を示す情報「1」を所定時間t毎(例えば、4ms毎)に取得し、フォトトランジスタ15bの受光部において発光部の発射光を受光できなかった場合、制御部8は、フォトトランジスタ15bの受光部において発射光を受光できなかった旨を示す情報「0」を、所定時間t毎に取得する。なお、この「0」「1」情報は、本発明のパルス信号に関する情報(以下、パルス情報という。)に該当し、「0」「1」の変化がパルス信号の変化(パルス情報の変化)に該当する。   If the light receiving unit of the phototransistor 15b can receive the emitted light from the light emitting unit of the light emitting diode 15a, the control unit 8 provides information “1” indicating that the emitted light is received by the light receiving unit of the phototransistor 15b. If the light received from the light emitting unit is not received by the light receiving unit of the phototransistor 15b and acquired at every time t (for example, every 4 ms), the control unit 8 cannot receive the light emitted from the light receiving unit of the phototransistor 15b. Information “0” indicating that it has been acquired is acquired every predetermined time t. The information “0” and “1” corresponds to information related to the pulse signal of the present invention (hereinafter referred to as pulse information), and a change of “0” or “1” indicates a change of the pulse signal (change of pulse information). It corresponds to.

また、上述した発光ダイオード15aとフォトトランジスタ15bとは近接した位置に光源と受光部が2組設置されており(便宜上、発光ダイオード15aにおける一方の発光部の符号を15a1、他方の発光部の符号を15a2とし、また、フォトトランジスタ15bにおける一方の受光部の符号を15b1とし、他方の受光部の符号を15b2とする)、回転式スイッチ7dが同一方向に回転される場合、フォトトランジスタ15bの一方の受光部15b1で、発光ダイオード15aの発光部15a1の発射光が受光されて情報「1」が制御部8に伝達されてから、フォトトランジスタ15bの他方の受光部15b2で発光ダイオード15aの発光部15a2の発射光が受光されて制御部8に情報「1」が伝達されるまでにタイムラグが生ずる。制御部8では、このタイムラグにより生ずる「1」「0」の位相変化に基づいて、回転式スイッチ7dの回転方向を判断し、さらにこの変化パターンに基づいて、回転量の決定を行っている。   The light emitting diode 15a and the phototransistor 15b described above are provided with two sets of light sources and light receiving portions in the proximity of each other (for convenience, one light emitting portion of the light emitting diode 15a is denoted by 15a1, and the other light emitting portion is denoted by the reference numeral 15a2, and the sign of one light receiving part in the phototransistor 15b is 15b1 and the sign of the other light receiving part is 15b2.) When the rotary switch 7d is rotated in the same direction, one of the phototransistors 15b After the light emitted from the light emitting part 15a1 of the light emitting diode 15a is received by the light receiving part 15b1 and information "1" is transmitted to the control part 8, the other light receiving part 15b2 of the phototransistor 15b receives the light emitting part of the light emitting diode 15a There is a time lag until the light “15a2” is received and information “1” is transmitted to the control unit 8. Sly. The control unit 8 determines the rotation direction of the rotary switch 7d based on the phase change of “1” and “0” caused by this time lag, and further determines the rotation amount based on this change pattern.

例えば、回転式スイッチ7dが正回転方向(例えば、時計回り方向)に回転される場合、図3に示すように、フォトトランジスタ15bの一方の受光部15b1における「0」「1」の変化に比べて、フォトトランジスタ15bの他方の受光部15b2における「0」「1」の変化は、僅かに遅れたタイミングで発生することとなる。このように変化するフォトトランジスタ15bの値を、制御部8が所定時間t毎(例えば4ms毎)に取得することによって、制御部8において取得されるパルス情報が、
(0,0)→(1,0)→(1,1)→(0,1)→(0,0)・・・・
と変化する。なお、括弧の前半の値は、フォトトランジスタ15bの一方の受光部15b1により取得されたパルス情報の値を示し、括弧の後半の値は、フォトトランジスタ15bの他方の受光部15b2により取得されたパルス情報の値を示している。
For example, when the rotary switch 7d is rotated in the forward rotation direction (for example, clockwise direction), as shown in FIG. 3, it is compared with the change of “0” and “1” in one light receiving portion 15b1 of the phototransistor 15b. Thus, the change of “0” and “1” in the other light receiving portion 15b2 of the phototransistor 15b occurs at a slightly delayed timing. When the control unit 8 acquires the value of the phototransistor 15b that changes in this way at every predetermined time t (for example, every 4 ms), the pulse information acquired in the control unit 8 becomes
(0,0) → (1,0) → (1,1) → (0,1) → (0,0)...
And change. The value in the first half of the parenthesis indicates the value of the pulse information acquired by one light receiving unit 15b1 of the phototransistor 15b, and the value in the second half of the parenthesis indicates the pulse acquired by the other light receiving unit 15b2 of the phototransistor 15b. Information values are shown.

制御部8では、フォトトランジスタ15bより取得したパルス情報の値が、例えば、(0,0)→(1,0)→(1,1)→(0,1)→(0,0)という経緯を経て変化した場合には、回転式スイッチ7dが正回転方向へと回転されたものと判断する。また、この「0」「1」変化に基づいてパルス情報の値が同じ値まで一巡して変化された場合、制御部8は、音量変更部10における出力音の出力レベルを1レベルだけ増加させる。   In the control unit 8, the value of the pulse information acquired from the phototransistor 15b is, for example, (0,0) → (1,0) → (1,1) → (0,1) → (0,0). If the change has occurred, it is determined that the rotary switch 7d has been rotated in the forward rotation direction. When the pulse information value is changed to the same value based on the change of “0” and “1”, the control unit 8 increases the output level of the output sound in the volume changing unit 10 by one level. .

一方で、回転式スイッチ7dが逆回転方向(例えば、反時計回り方向)に回転された場合には、制御部8において取得される情報が、
(0,0)→(0,1)→(1,1)→(1,0)→(0,0)・・・
と変化する。このように、パルス情報の値が、例えば、(0,0)→(0,1)→(1,1)→(1,0)→(0,0)という経緯を経て変化した場合、制御部8は、回転式スイッチ7dが逆回転方向へと回転されたものと判断する。また、この「0」「1」変化に基づいてパルス情報の値が同じ値まで一巡変化した場合、制御部8は、音量変更部10における出力音の出力レベルを1レベルだけ減少させる。
On the other hand, when the rotary switch 7d is rotated in the reverse rotation direction (for example, counterclockwise direction), the information acquired in the control unit 8 is
(0,0) → (0,1) → (1,1) → (1,0) → (0,0)...
And change. As described above, when the value of the pulse information changes through, for example, (0, 0) → (0, 1) → (1, 1) → (1, 0) → (0, 0), control is performed. The unit 8 determines that the rotary switch 7d has been rotated in the reverse rotation direction. In addition, when the value of the pulse information changes once to the same value based on the change of “0” and “1”, the control unit 8 decreases the output level of the output sound in the volume changing unit 10 by one level.

情報記録部9には、図4に示すように、所定時間t前に取得されたパルス情報に基づいて次に正常に取得され得るパルス情報を一覧表示させた(正常なパルス信号の検出時に検出され得るパルス信号の状態変化を記録した)パルス情報テーブル16が記録されている。   As shown in FIG. 4, the information recording unit 9 displays a list of pulse information that can be normally acquired based on the pulse information acquired before a predetermined time t (detected when a normal pulse signal is detected). A pulse information table 16 (recording possible state changes of the pulse signal) is recorded.

例えば、パルス情報テーブル16には、所定時間t前に取得されたパルス情報が(0,0)の場合、回転式スイッチ7dが正回転の場合において正常に取得され得るパルス情報として(1,0)、逆回転の場合に正常に取得され得るパルス情報として(0,1)、回転がなされなかった場合に正常に取得され得るパルス情報として(0,0)が記録されている。従って、所定時間t前に取得したパルス情報が(0,0)であった場合、次に取得するパルス情報が、(1,0)、(0,1)および(0,0)以外の値(つまり、(1,1))のときには、正常なパルス信号を受信できなかったものと判断することができる。   For example, in the pulse information table 16, when the pulse information acquired before the predetermined time t is (0, 0), the pulse information that can be normally acquired when the rotary switch 7 d is in the forward rotation is (1, 0). ), (0, 1) is recorded as pulse information that can be normally acquired in the case of reverse rotation, and (0, 0) is recorded as pulse information that can be normally acquired when rotation is not performed. Therefore, when the pulse information acquired before the predetermined time t is (0, 0), the pulse information acquired next is a value other than (1, 0), (0, 1) and (0, 0). When (in other words, (1, 1)), it can be determined that a normal pulse signal has not been received.

同様に、所定時間t前に取得されたパルス情報が(1,0)の場合、正常に取得され得るパルス情報は、回転式スイッチ7dが正回転の場合には(0,0)、逆回転の場合には(1,1)、回転がなされなかった場合には(1,0)である旨が示されている。また、所定時間t前に取得されたパルス情報が(0,1)の場合、正常に取得され得るパルス情報は、回転式スイッチ7dが正回転の場合には(1,1)、逆回転の場合には(0,0)、回転がなされなかった場合には(0,1)である旨が示されている。さらに、所定時間t前に取得されたパルス情報が(1,1)の場合、正常に取得され得るパルス情報は、回転式スイッチ7dが正回転の場合には(0,1)、逆回転の場合には(1,0)、回転がなされなかった場合には(1,1)である旨が示されている。   Similarly, when the pulse information acquired before the predetermined time t is (1, 0), the pulse information that can be normally acquired is the reverse rotation when the rotary switch 7d is rotating forward (0, 0). In this case, (1, 1) is shown, and (1, 0) is shown when no rotation is made. In addition, when the pulse information acquired before the predetermined time t is (0, 1), the pulse information that can be normally acquired is (1, 1) when the rotary switch 7d is rotating forward (1, 1). In this case, (0, 0) is indicated, and when rotation is not performed, (0, 1) is indicated. Further, when the pulse information acquired before the predetermined time t is (1, 1), the pulse information that can be normally acquired is (0, 1) when the rotary switch 7d is rotating forward (0, 1). In this case, (1, 0) is indicated, and when rotation is not made, (1, 1) is indicated.

なお、後述する制御部8のRAM8bには、パルス情報の変化量を示す変数P(以下、この変数Pを変化量Pという。)が記録されている。この変化量Pの値は、回転式スイッチ7dが正回転され、正常にパルス情報の値が変化した場合に1増加され、回転式スイッチ7dが逆回転され、正常にパルス情報の値が変化した場合に1減少される。この変化量Pは、制御部8における回転量決定処理において使用される変数である。   Note that a variable P indicating the amount of change in pulse information (hereinafter, this variable P is referred to as a change amount P) is recorded in the RAM 8b of the control unit 8 described later. The value of the change amount P is incremented by 1 when the rotary switch 7d is rotated forward and the pulse information value is changed normally, and the rotary switch 7d is rotated backward and the pulse information value is changed normally. If it is reduced by one. The change amount P is a variable used in the rotation amount determination process in the control unit 8.

情報記録部9は、例えばハードディスク等のデジタルデータを記録することが可能な記録媒体によって構成される。情報記録部9に用いられる記録媒体は、デジタルデータを記録することが可能な記録媒体であればよいため、ハードディスクのみに限定されず、例えば、フラッシュメモリ等の不揮発性メモリ等を用いるものであってもよく、また、SDカード(登録商標)やCF(Compact Flash:登録商標)等のように、車載用オーディオから着脱可能な記録媒体を用いることも可能である。   The information recording unit 9 is configured by a recording medium capable of recording digital data such as a hard disk. The recording medium used for the information recording unit 9 may be any recording medium that can record digital data. Therefore, the recording medium is not limited to a hard disk. For example, a non-volatile memory such as a flash memory is used. It is also possible to use a recording medium that is detachable from the in-vehicle audio, such as an SD card (registered trademark) or CF (Compact Flash: registered trademark).

制御部8は、車載オーディオ装置1における全体的な制御処理を行う役割を有している。制御部8は、本発明に係るエラー判断手段、エラー監視時間計測手段、変化数カウント手段、回転量決定手段としての機能を有している。   The control unit 8 has a role of performing overall control processing in the in-vehicle audio device 1. The control unit 8 has functions as error determination means, error monitoring time measurement means, change count counting means, and rotation amount determination means according to the present invention.

制御部8は、演算処理を行うCPU(Central Processing Unit)、処理を行うためのプログラム等が記録されるROM(Read Only Memory)8a、処理に必要な情報の記録が行われ、また、処理を行うためのワークエリアとして利用されるRAM(Random Access Memory)8b等を有しており、一般的な車載オーディオ装置では、これらの機能が1チップ化されたIC等によって構成されている。   The control unit 8 includes a CPU (Central Processing Unit) that performs arithmetic processing, a ROM (Read Only Memory) 8a in which a program for performing the processing is recorded, information necessary for the processing is recorded, and processing is performed. It has a RAM (Random Access Memory) 8b used as a work area for performing such functions, and a general in-vehicle audio apparatus is configured by an IC or the like in which these functions are made into one chip.

制御部8のRAM8bには、上述したフォトトランジスタ15bによって取得されたパルス情報(例えば、上述した(0,0)等)が所定情報数だけ記録される。   In the RAM 8b of the control unit 8, pulse information (for example, (0, 0) described above) acquired by the above-described phototransistor 15b is recorded by a predetermined number of information.

また、制御部8は、ROM8aに記録されるプログラムに従って所定時間(以下、エラー監視時間という。例えば、100ms)の経時処理を行うことが可能なタイマ機能を備えており、エラー監視時間の経過を判断することが可能となっている。なおこのタイマ機能は、必ずしも制御部8におけるプログラム処理によって実現されるものには限定されず、例えば、制御部8とは別にクロックパルス発生器等の他の機器を設けてハードウェア的な処理を利用して経時処理を行うものであってもよい。   Further, the control unit 8 has a timer function capable of performing a aging process for a predetermined time (hereinafter referred to as an error monitoring time, for example, 100 ms) according to a program recorded in the ROM 8a. It is possible to judge. Note that this timer function is not necessarily limited to that realized by the program processing in the control unit 8. For example, other devices such as a clock pulse generator are provided separately from the control unit 8 to perform hardware processing. It may be one that performs aging treatment using it.

制御部8には、操作部7の音源ソース選択ボタン7a、再生ボタン7b、停止ボタン7c、回転式スイッチ7dにおいて操作者により設定された操作情報が伝達される。制御部8は、音源ソース選択ボタン7aより音源ソースをCD再生部2、MD再生部3、ラジオチューナ部4のいずれかに選択した旨の選択情報を取得した場合、取得した選択情報に従って、セレクタ部5に対応する音源ソースへ音響信号の出力先を切り替えさせるための選択信号を送信する。セレクタ部5では、制御部8より受信した選択信号に応じて音源ソースの切り替えを行い、所定の音源ソースによって出力された音響信号を音量変更部10に出力する。   Operation information set by the operator in the sound source selection button 7a, playback button 7b, stop button 7c, and rotary switch 7d of the operation unit 7 is transmitted to the control unit 8. When the control unit 8 acquires selection information indicating that the sound source is selected from the CD playback unit 2, the MD playback unit 3 and the radio tuner unit 4 from the sound source source selection button 7a, the control unit 8 selects a selector according to the acquired selection information. The selection signal for switching the output destination of the acoustic signal to the sound source corresponding to the unit 5 is transmitted. In the selector unit 5, the sound source is switched according to the selection signal received from the control unit 8, and the acoustic signal output from the predetermined sound source is output to the volume changing unit 10.

また、制御部8が、操作者の操作に従って再生ボタン7bより再生情報を取得した場合には、セレクタ部5によって選択された音源ソースに対して音響信号を出力させるための再生信号を出力する。制御部8より再生信号を受信した音源ソースでは、制御部8からの指示に従って所定の音響信号を出力させる。また同様に、制御部8が、操作者の操作に従って停止ボタン7cより停止情報を取得した場合には、セレクタ部5によって選択された音源ソースに対して停止信号を出力する。制御部8より停止信号を受信した音源ソースでは、制御部8からの指示に従って音響信号の出力を停止させる。   When the control unit 8 obtains reproduction information from the reproduction button 7b according to the operation of the operator, it outputs a reproduction signal for causing the sound source selected by the selector unit 5 to output an acoustic signal. The sound source that receives the reproduction signal from the control unit 8 outputs a predetermined acoustic signal in accordance with an instruction from the control unit 8. Similarly, when the control unit 8 obtains stop information from the stop button 7c according to the operation of the operator, it outputs a stop signal to the sound source selected by the selector unit 5. The sound source that has received the stop signal from the control unit 8 stops the output of the acoustic signal in accordance with an instruction from the control unit 8.

さらに、制御部8は、所定時間t毎に、回転式スイッチ7dから上述したパルス情報を取得し、取得したパルス情報に基づいて、回転式スイッチ7dの回転方向を判断すると共に、回転式スイッチ7dの回転量を決定し、決定された回転量に関する情報(以下、回転量情報という。)を音量変更部10へと出力する。なお、回転量情報は、回転式スイッチ7dが正回転(例えば時計回り方向へ回転)された場合には回転量情報をプラスのレベル値で設定し、回転式スイッチ7dが逆回転(例えば反時計回り方向へ回転)された場合には回転量情報をマイナスのレベル値で設定するものとする。   Further, the control unit 8 acquires the above-described pulse information from the rotary switch 7d at every predetermined time t, determines the rotation direction of the rotary switch 7d based on the acquired pulse information, and also uses the rotary switch 7d. The rotation amount is determined, and information on the determined rotation amount (hereinafter referred to as rotation amount information) is output to the volume changing unit 10. As for the rotation amount information, when the rotary switch 7d is rotated forward (for example, clockwise), the rotation amount information is set as a positive level value, and the rotary switch 7d is rotated backward (for example, counterclockwise). When the rotation amount is rotated), the rotation amount information is set as a negative level value.

音量変更部10は、制御部8より取得した回転量情報に基づいてセレクタ部5を介して入力された音響信号の音量を変更する役割を有している。この音量変更部10で音量変更(音量調節)が行われることによって、スピーカ12より出力される音の大きさが変更される。   The volume changing unit 10 has a role of changing the volume of the acoustic signal input via the selector unit 5 based on the rotation amount information acquired from the control unit 8. The volume of sound output from the speaker 12 is changed by changing the volume (volume adjustment) in the volume changing unit 10.

パワーアンプ11は、音量変更部10によって音量変更が行われた音響信号を増幅するための装置である。このパワーアンプ11で音響信号の増幅処理が行われることによって、スピーカ12より迫力のある音を出力することが可能となる。   The power amplifier 11 is a device for amplifying an acoustic signal whose volume has been changed by the volume changing unit 10. When the power signal is amplified by the power amplifier 11, it is possible to output a powerful sound from the speaker 12.

スピーカ12は、一般的な車載用のスピーカであって、車室内の前席左右ドア部分や後席後ろの左右ダッシュボード等に設けられている。また、スピーカ12は、必要に応じて高音出力用のツイーターや低音出力用のウーハーを備えるものであってもよい。なお、図1には便宜上1つしかスピーカが示されていないが、スピーカの数およびその設置箇所は特に限定されるものではない。   The speaker 12 is a general vehicle-mounted speaker, and is provided on the left and right door portions of the front seat in the vehicle interior and the left and right dashboards behind the rear seat. The speaker 12 may include a tweeter for high sound output and a woofer for low sound output as necessary. Although only one speaker is shown in FIG. 1 for convenience, the number of speakers and their installation locations are not particularly limited.

次に、制御部8が回転式スイッチ7dのフォトトランジスタ15bより受信するパルス情報に基づいて、回転式スイッチ7dの回転量を決定する処理について説明を行う。図5および図6は、制御部8における回転量決定処理の処理内容を示したフローチャートである。   Next, processing for determining the amount of rotation of the rotary switch 7d based on the pulse information received by the control unit 8 from the phototransistor 15b of the rotary switch 7d will be described. FIG. 5 and FIG. 6 are flowcharts showing the processing content of the rotation amount determination processing in the control unit 8.

まず、制御部8、情報記録部9に記録されるパルス情報テーブル16を読み出してRAM8bの所定領域に展開する(S1)。また、制御部8は、変化量Pに0を代入すると共に、回転式スイッチ7dの回転方向を示す回転フラグQに1を代入する(S2)。この処理は、いわゆる初期設定処理であり、後述する処理において利用する変数を示している。変化量Pおよび回転フラグQの値は、RAM8bの所定領域に記録される。   First, the pulse information table 16 recorded in the control unit 8 and the information recording unit 9 is read and developed in a predetermined area of the RAM 8b (S1). Further, the control unit 8 substitutes 0 for the change amount P, and substitutes 1 for the rotation flag Q indicating the rotation direction of the rotary switch 7d (S2). This process is a so-called initial setting process and indicates variables used in the process described later. The value of the change amount P and the rotation flag Q are recorded in a predetermined area of the RAM 8b.

次に、制御部8は、所定時間t毎に、本実施の形態では4ms毎に、フォトトランジスタ15bからパルス情報を取得し(S3)、取得されたパルス情報の変化が、正常に検出されたパルス情報の変化に該当するか否かを判断する(S4:エラー判断処理)。   Next, the control unit 8 acquires pulse information from the phototransistor 15b every predetermined time t, every 4 ms in this embodiment (S3), and a change in the acquired pulse information is normally detected. It is determined whether it corresponds to a change in pulse information (S4: error determination process).

具体的に制御部8は、所定時間t毎に取得されたパルス情報を制御部8のRAM8bに記録しておくことによって、所定時間t(4ms)前に取得したパルス情報とRAM8bに記録されるパルス情報テーブル16とに基づいて、新たに取得されたパルス情報が、所定時間t前に取得されたパルス情報の次に取得され得る正常なパルス情報に該当するか否かを判断する。   Specifically, the control unit 8 records the pulse information acquired every predetermined time t in the RAM 8b of the control unit 8, thereby recording the pulse information acquired before the predetermined time t (4 ms) and the RAM 8b. Based on the pulse information table 16, it is determined whether or not the newly acquired pulse information corresponds to normal pulse information that can be acquired next to the pulse information acquired before the predetermined time t.

パルス情報テーブル16によって、新たに取得されたパルス情報が正常に取得され得るパルス情報に該当するものと判断できる場合(S4においてYes)、制御部8は、パルス情報テーブル16を参照して、回転式スイッチが正回転方向に回転されたか否かをパルス情報の変化状態に基づいて判断する(S5)。回転式スイッチ7dが正回転方向に回転されたものと判断した場合(S5においてYes)、制御部8は、変化量Pに1を加えると共に、回転フラグQに1を代入する(S6)。   When it can be determined by the pulse information table 16 that the newly acquired pulse information corresponds to pulse information that can be acquired normally (Yes in S4), the control unit 8 refers to the pulse information table 16 and rotates. It is determined whether or not the expression switch is rotated in the forward rotation direction based on the change state of the pulse information (S5). When it is determined that the rotary switch 7d has been rotated in the forward rotation direction (Yes in S5), the control unit 8 adds 1 to the change amount P and substitutes 1 for the rotation flag Q (S6).

その後、制御部8は、変化量Pの値が4になっているか否かを判断する(S7)。変化量Pが4の場合、上述したパルス情報は正回転方向に4回変化したものと判断できるので、パルス情報の値が正回転方向に一巡変化したこととなる。従って、変化量Pが4の場合、制御部8は、レベル1だけ上昇させた回転量情報を音量変更部10に伝達する(S8)と共に、変化量Pの値を0に設定する(S9)。音量変更部10では、制御部8より受信した回転量情報に基づいて音響信号の音量をレベル1だけ変更させる。この音量レベルの変更によって、スピーカ12より出力される出力音が大きくなる。その後、制御部8は、4ms毎に、フォトトランジスタ15bからパルス情報を取得する処理(S3)を繰り返し実行する。   Thereafter, the control unit 8 determines whether or not the value of the change amount P is 4 (S7). When the amount of change P is 4, since it can be determined that the above-described pulse information has changed four times in the forward rotation direction, the value of the pulse information has changed once in the forward rotation direction. Therefore, when the change amount P is 4, the control unit 8 transmits the rotation amount information increased by level 1 to the volume changing unit 10 (S8) and sets the value of the change amount P to 0 (S9). . The volume changing unit 10 changes the volume of the acoustic signal by level 1 based on the rotation amount information received from the control unit 8. By changing the volume level, the output sound output from the speaker 12 increases. Thereafter, the control unit 8 repeatedly executes a process (S3) of acquiring pulse information from the phototransistor 15b every 4 ms.

一方で、パルス情報の変化によって回転式スイッチ7dが正回転方向に回転されたと判断できなかった場合(S5においてNo)、制御部8は、回転式スイッチ7dが逆回転方向に回転されたものと判断できるか否かの判断を行う(S10)。回転式スイッチ7dが逆回転方向に回転されたと判断できる場合(S10においてYes)、制御部8は、変化量Pの値を1だけ減ずると共に、回転フラグQに0を代入する(S11)。   On the other hand, when it cannot be determined that the rotary switch 7d has been rotated in the forward rotation direction due to the change in the pulse information (No in S5), the control unit 8 determines that the rotary switch 7d has been rotated in the reverse rotation direction. It is determined whether it can be determined (S10). When it can be determined that the rotary switch 7d has been rotated in the reverse rotation direction (Yes in S10), the control unit 8 decreases the value of the change amount P by 1 and assigns 0 to the rotation flag Q (S11).

その後、制御部8は、変化量Pの値が−4になっているか否かを判断する(S12)。変化量Pが−4の場合、上述したパルス情報は逆回転方向に4回変化したものと判断できるので、パルス信号の値が逆回転方向に一巡変化したこととなる。従って、変化量Pが−4の場合、制御部8は、レベル1だけ減少させた回転量情報を音量変更部10に伝達する(S13)と共に、変化量Pの値を0に設定する(S9)。音量変更部10では、制御部8より受信した回転量情報に基づいて音響信号の音量をレベル1だけ変更させる。この音量レベルの変更によって、スピーカ12より出力される出力音が小さくなる。その後、制御部8は、4ms毎に、フォトトランジスタ15bからパルス情報を取得する処理(S3)を繰り返し実行する。   Thereafter, the control unit 8 determines whether or not the value of the change amount P is −4 (S12). When the change amount P is −4, it can be determined that the above-described pulse information has changed four times in the reverse rotation direction, and thus the value of the pulse signal has changed once in the reverse rotation direction. Therefore, when the change amount P is −4, the control unit 8 transmits the rotation amount information decreased by level 1 to the volume changing unit 10 (S13) and sets the value of the change amount P to 0 (S9). ). The volume changing unit 10 changes the volume of the acoustic signal by level 1 based on the rotation amount information received from the control unit 8. By changing the volume level, the output sound output from the speaker 12 is reduced. Thereafter, the control unit 8 repeatedly executes a process (S3) of acquiring pulse information from the phototransistor 15b every 4 ms.

パルス情報の変化によって回転式スイッチ7dが正回転方向にも逆回転方向にも回転されたと判断できなかった場合(S5およびS10においてNo)、制御部8は、回転式スイッチ7dが全く回転されていないものと判断し、4ms毎にフォトトランジスタ15bからパルス情報を取得する処理(S3)を繰り返し実行する。   When it is not possible to determine that the rotary switch 7d has been rotated in both the forward rotation direction and the reverse rotation direction due to the change in pulse information (No in S5 and S10), the control unit 8 indicates that the rotary switch 7d has not been rotated at all. It is determined that there is not, and the process (S3) of acquiring pulse information from the phototransistor 15b is repeatedly executed every 4 ms.

一方で、パルス情報テーブル16によって、新たに取得されたパルス情報が正常に取得され得るパルス情報に該当しないものと判断された場合(S4においてNo)、制御部8は、変化量Pに0を代入すると共に(S14)、タイマ機能を用いて、エラー監視時間、本実施の形態においては100msの経時測定処理を開始する(S15:エラー監視時間計測処理)。   On the other hand, when the pulse information table 16 determines that the newly acquired pulse information does not correspond to the pulse information that can be normally acquired (No in S4), the control unit 8 sets the change amount P to 0. While substituting (S14), the timer function is used to start a time measurement process of error monitoring time, which is 100 ms in this embodiment (S15: error monitoring time measurement process).

そして、制御部8は、新たに取得されたパルス信号の値が4ms(所定時間t)前に取得されたパルス信号の値に比べて変化があったか否かを判断し(S16)、変化があった場合(S16においてYes)には、RAM8bから回転フラグQを読み出して(S17)、回転フラグQが1であるか否かを判断する(S18)。ここで回転フラグQの値は、S6およびS11において説明した処理より明らかなように、最後にパルス信号が正常に検出されたときの回転式スイッチ7dの回転方向を示している。   Then, the control unit 8 determines whether or not the value of the newly acquired pulse signal has changed compared to the value of the pulse signal acquired 4 ms (predetermined time t) (S16). If the rotation flag Q is found (Yes in S16), the rotation flag Q is read from the RAM 8b (S17), and it is determined whether or not the rotation flag Q is 1 (S18). Here, as is clear from the processing described in S6 and S11, the value of the rotation flag Q indicates the rotation direction of the rotary switch 7d when the pulse signal is finally detected normally.

通常、操作者が回転式スイッチ7dを回転操作する場合、一定の回転方向に回転式スイッチの回転速度(回転量)を徐々に速めてから、所望の音量に近づくに従って回転速度をゆっくりにする傾向がある。このため、回転式スイッチ7dの回転をパルス情報より正確に判断することができない場合であっても、直前に正確に検出されたパルス信号より求められる回転方向に回転式スイッチ7dが回転されているものと推測することができる。このため、制御部8は、回転フラグQが1である場合(S18においてYes)、つまり回転式スイッチ7dが正回転方向に回転されていた場合には、変化量Pの値に1を加え(S19:変化数カウント処理)、回転フラグQが0である場合(S18においてNo)、つまり回転式スイッチ7dが逆回転方向に回転されていた場合には、変化量Pの値を1だけ減らす(S20:変化数カウント処理)。   Normally, when the operator rotates the rotary switch 7d, the rotational speed (rotation amount) of the rotary switch gradually increases in a certain rotational direction, and then the rotational speed tends to decrease as the desired sound volume is approached. There is. For this reason, even when the rotation of the rotary switch 7d cannot be accurately determined from the pulse information, the rotary switch 7d is rotated in the rotation direction obtained from the pulse signal accurately detected immediately before. Can be guessed. Therefore, when the rotation flag Q is 1 (Yes in S18), that is, when the rotary switch 7d is rotated in the forward rotation direction, the control unit 8 adds 1 to the value of the change amount P ( S19: Change count counting process) When the rotation flag Q is 0 (No in S18), that is, when the rotary switch 7d is rotated in the reverse rotation direction, the value of the change amount P is decreased by 1 ( S20: Change count counting process).

一方で、新たに取得されたパルス信号の値が4ms(所定時間t)前に取得されたパルス信号の値に比べて変化がなかった場合(S16においてNo)、制御部8は、変化量Pの値の増減を行わない。   On the other hand, when the value of the newly acquired pulse signal has not changed compared to the value of the pulse signal acquired 4 ms (predetermined time t) (No in S16), the control unit 8 determines the change amount P Do not increase or decrease the value of.

その後、制御部8は、タイマ機能によって100ms(エラー監視時間)経過したか否かを判断(S21)し、100ms経過していない場合(S21においてNo)には、4ms(所定時間t)毎に、フォトトランジスタ15bからパルス情報を取得して(S22)、新たに取得されたパルス信号の値が4ms(所定時間t)前に取得されたパルス信号の値に比べて変化があったか否かを繰り返し判断する(S16)。   Thereafter, the control unit 8 determines whether or not 100 ms (error monitoring time) has elapsed by the timer function (S21), and when 100 ms has not elapsed (No in S21), every 4 ms (predetermined time t). The pulse information is acquired from the phototransistor 15b (S22), and it is repeated whether or not the value of the newly acquired pulse signal has changed compared to the value of the pulse signal acquired 4 ms (predetermined time t). Judgment is made (S16).

一方で、制御部8が、タイマ機能によって100ms経過したものと判断した場合(S21においてYes)、制御部8は、変化量Pが0であるか否かを判断する(S23)。変化量Pが0の場合(S23においてYes)、制御部8は、S3に示したパルス情報の取得処理を繰り返し実行する(S3)。   On the other hand, when the control unit 8 determines that 100 ms has elapsed due to the timer function (Yes in S21), the control unit 8 determines whether or not the amount of change P is 0 (S23). When the change amount P is 0 (Yes in S23), the control unit 8 repeatedly executes the pulse information acquisition process shown in S3 (S3).

変化量Pが0でない場合(S23においてNo)、制御部8は、変化量Pに基づいて回転式スイッチの回転量を
M=(P/4)/A ・・・・・(式1)
によって計算された整数値に基づいて決定する(S24:回転量決定処理)。但し、本実施の形態では、Aの値として4を用いるものとする。
When the change amount P is not 0 (No in S23), the control unit 8 determines the rotation amount of the rotary switch based on the change amount P M = (P / 4) / A (Equation 1)
Is determined based on the integer value calculated by (S24: rotation amount determination process). However, in this embodiment, 4 is used as the value of A.

式1では、まず、検出されたパルス情報の変化量Pを4で除算することによって、パルス情報が正回転方向または逆回転方向に一巡した回数を求めることができる。   In Equation 1, the number of times the pulse information has made a round in the forward rotation direction or the reverse rotation direction can be obtained by dividing the detected change amount P of the pulse information by 4.

さらに、上述したようにしてパルス情報の値が一巡した回数を算出しても、S17〜S20の処理では、パルス信号の値に変化があった場合に回転フラグQの値に応じて変化量Pが正又は負の値に一方的に加算されるため、求められたパルス情報の一巡回数は、操作者が回転式スイッチ7dを操作することによって変化され得る音量変更部10のレベル変更値よりも多くなる傾向がある。このため、一巡された回数をAで除算することによって操作者の操作感覚と実際に音量調整が行われる音量変更部10の変更レベルとの調整を行うことが可能となる。このAの値は、本実施の形態に示した数値4に限定されるものではなく、自由に変更することが可能である。   Further, even if the number of times that the pulse information value has made a round as described above is calculated, in the processes of S17 to S20, when the value of the pulse signal has changed, the change amount P according to the value of the rotation flag Q. Is unilaterally added to a positive or negative value, so that the number of rounds of the obtained pulse information can be changed by the level change value of the volume changing unit 10 that can be changed by the operator operating the rotary switch 7d. There is a tendency to increase. For this reason, by dividing the number of rounds by A, it is possible to adjust the operating feeling of the operator and the change level of the volume changing unit 10 where the volume is actually adjusted. The value of A is not limited to the numerical value 4 shown in the present embodiment, and can be freely changed.

一般的に、Aはエラー監視時間の長さに応じて値を変化させることが好ましい。例えば、エラー監視時間が短い場合には、現実に回転することが可能な回転式スイッチ7dの回転量は少ないので、Aの値を小さくしても操作者の操作に違和感を感じ難い。一方で、エラー監視時間が長い場合には、現実に回転することが可能な回転式スイッチ7dの回転量の幅が大きくなるので、Aの値を少し大きくする方が操作者が操作に違和感を感じ難くなる傾向がある。このため、エラー監視時間の長さの増大に応じてAの値を増加させることによって、算出される回転量Mの値を減少させることが好ましい。   In general, it is preferable to change the value of A according to the length of the error monitoring time. For example, when the error monitoring time is short, the amount of rotation of the rotary switch 7d that can actually rotate is small, so even if the value of A is reduced, it is difficult to feel uncomfortable in the operation of the operator. On the other hand, when the error monitoring time is long, the range of the rotation amount of the rotary switch 7d that can actually rotate becomes large. Therefore, the operator feels uncomfortable when the value of A is slightly increased. It tends to be difficult to feel. For this reason, it is preferable to decrease the value of the calculated rotation amount M by increasing the value of A according to the increase in the length of the error monitoring time.

なお、算出された回転量Mは、変化量Pの値に応じて正の値および負の値となるが、正の値の場合に回転式スイッチ7dが正回転方向に回転操作されたものと判断することができ、負の値の場合に回転式スイッチ7dが逆回転方向に回転操作されたものと判断することができる。   The calculated rotation amount M becomes a positive value and a negative value according to the value of the change amount P. In the case of a positive value, the rotation switch 7d is rotated in the positive rotation direction. In the case of a negative value, it can be determined that the rotary switch 7d has been rotated in the reverse rotation direction.

そして、制御部8は、算出された回転量Mを回転式スイッチ7dの操作によって検出された回転量と決定し、決定された回転量情報を音量変更部10に伝達する(S25)。その後、制御部8は、変化量Pの値を0に設定し(S26)、4ms毎に、フォトトランジスタ15bからパルス情報を取得する処理(S3)を繰り返し実行する。   Then, the control unit 8 determines the calculated rotation amount M as the rotation amount detected by operating the rotary switch 7d, and transmits the determined rotation amount information to the volume changing unit 10 (S25). Thereafter, the control unit 8 sets the value of the change amount P to 0 (S26), and repeatedly executes a process (S3) of acquiring pulse information from the phototransistor 15b every 4 ms.

このように、本発明に係る車載オーディオ装置1では、ロータリエンコーダ14のフォトトランジスタ15bより取得されたパルス情報が、パルス情報テーブル16に記載された正常に取得され得るパルス情報であるかを制御部8において判断し、パルス情報が正常に取得できなかった場合には、式1に基づいて回転量Mの決定を行うので、操作者が回転式スイッチ7dを速く回転させてしまった場合であっても、操作者が違和感を感じないような回転量を決定することができ、回転式スイッチの回転に対応する(追従する)ようにして回転量を決定することが可能となる。   Thus, in the in-vehicle audio device 1 according to the present invention, the control unit determines whether the pulse information acquired from the phototransistor 15b of the rotary encoder 14 is the pulse information that can be normally acquired described in the pulse information table 16. If the pulse information cannot be normally acquired as determined in 8, the amount of rotation M is determined based on Equation 1, and thus the operator has rotated the rotary switch 7d quickly. However, it is possible to determine the amount of rotation so that the operator does not feel uncomfortable, and it is possible to determine the amount of rotation so as to correspond (follow) the rotation of the rotary switch.

特に、式1に示したAの値をエラー監視時間に応じて変更させることによって、操作者の操作パターン等を考慮した回転量Mの算出を行うことができるので、より操作者が違和感を感じにくい回転量を決定することが可能となる。   In particular, by changing the value of A shown in Equation 1 according to the error monitoring time, the rotation amount M can be calculated in consideration of the operation pattern of the operator, so the operator feels more uncomfortable. It becomes possible to determine a difficult rotation amount.

また、式1において、検出されたパルス信号の変化数をAで除算することによって、回転式スイッチが速く回転されてパルス情報の変化が顕著に増大してしまう場合であっても、回転量を適切に低減させることが可能となるので、回転式スイッチ7dの操作において操作者に違和感を感じさせにくくすることが可能となる。   Further, even if the change in the pulse information is remarkably increased by dividing the number of changes in the detected pulse signal by A in Equation 1, the rotary switch is rotated quickly, the amount of rotation is reduced. Since it can be appropriately reduced, it is possible to make it difficult for the operator to feel uncomfortable in the operation of the rotary switch 7d.

さらに、パルス情報が正常に取得できなかった場合には、正常にパルス情報を取得できた場合に記録された回転式スイッチ7dの回転方向に基づいて回転式スイッチ7dの回転方向を決定するので、回転式スイッチ7dにおける操作者の回転パターンを考慮した回転量決定を行うことが可能である。   Furthermore, when the pulse information cannot be acquired normally, the rotation direction of the rotary switch 7d is determined based on the recorded rotation direction of the rotary switch 7d when the pulse information can be acquired normally. It is possible to determine the rotation amount in consideration of the operator's rotation pattern in the rotary switch 7d.

また、パルス情報が正常に取得できなかった場合には、エラー検出を検出した時点(もし、直前に正確なパルス情報を検出することができた場合には、正確なパルス情報の検出直後のエラー検出を検出した時点)からエラー監視時間の経過処理を行うことによって、操作者が回転式スイッチ7dを速く回転操作を行うと想定され得る期間内の回転量を好適に決定することができる。このため、操作者の操作パターンに適した回転量判断を行うことが可能となる。なお、想定され得る操作者の操作パターンに応じてエラー監視時間を変更することも可能である。このエラー監視時間を適切に変更・調整することによって、より操作者が違和感を感じにくい回転量を決定することが可能となる。   Also, if the pulse information could not be acquired normally, the error immediately after the detection of the accurate pulse information (if the correct pulse information could be detected immediately before if the error detection was detected) By performing the error monitoring time lapse process from the time when the detection is detected, it is possible to suitably determine the amount of rotation within a period during which it can be assumed that the operator quickly rotates the rotary switch 7d. For this reason, it is possible to determine the amount of rotation suitable for the operation pattern of the operator. It is also possible to change the error monitoring time according to an operator's operation pattern that can be assumed. By appropriately changing and adjusting the error monitoring time, it is possible to determine a rotation amount that makes it more difficult for the operator to feel uncomfortable.

また、制御部8が、パルス情報テーブル16に基づいてパルス信号の正常検出判断を行うことより、制御部におけるパルス信号判断を迅速かつ確実に行うことが可能となる。さらに、設置位置や発光ダイオード15aやフォトトランジスタ15bの設置位置の変更、設置数の変更等によって、正確に取得され得るパルス情報の判断基準が変更される場合には、パルス情報テーブル16を更新することによって簡易にパルス信号の正常検出判断基準を変更することが可能となる。   In addition, since the control unit 8 performs the normal detection determination of the pulse signal based on the pulse information table 16, the pulse signal determination in the control unit can be performed quickly and reliably. Furthermore, the pulse information table 16 is updated when the criteria for determining the pulse information that can be accurately acquired is changed by changing the installation position, the installation position of the light emitting diode 15a or the phototransistor 15b, the number of installations, or the like. Accordingly, it is possible to easily change the normal detection judgment standard of the pulse signal.

なお、本実施の形態では、図5のフローチャートに示したS1の処理において、情報記録部9に記録されるパルス情報テーブル16を制御部8のRAM8bに展開させる構成としたが、必ずしもRAM8bに展開させる必要はなく、パルス情報テーブル16の情報を十分な速度で読み取ることが可能であるならば、情報記録部9より制御部8がパルス情報テーブル16を直接参照する構成とすることができる。   In the present embodiment, the pulse information table 16 recorded in the information recording unit 9 is expanded in the RAM 8b of the control unit 8 in the processing of S1 shown in the flowchart of FIG. If the information in the pulse information table 16 can be read at a sufficient speed, the control unit 8 can directly refer to the pulse information table 16 from the information recording unit 9.

また、パルス情報テーブル16が記録される情報記録部9は、必ずしもハードディスク等で構成されるものには限定されず、例えば、制御部8のROM8a等に記録させる構成とすることも可能である。この場合、制御部8のROMが、本発明に係る情報記録部に該当することとなる。   Further, the information recording unit 9 in which the pulse information table 16 is recorded is not necessarily limited to the one configured by a hard disk or the like, and may be configured to be recorded in the ROM 8a or the like of the control unit 8, for example. In this case, the ROM of the control unit 8 corresponds to the information recording unit according to the present invention.

以上、本発明に係る回転量判断装置を、図面を用いて詳細に説明したが、本発明に係る回転量判断装置は上述した実施の形態に示したものに限定されない。当業者であれば、特許請求の範囲に記載された範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   While the rotation amount determination device according to the present invention has been described in detail with reference to the drawings, the rotation amount determination device according to the present invention is not limited to the one shown in the above-described embodiment. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are naturally within the technical scope of the present invention. Understood.

例えば、上記実施の形態では、制御部8における回転量判断処理が、ROM8aに記録されるプログラムによって実現されるものであったが、このプログラムも本発明に係るものである。また、プログラムは必ずしも制御部8のROM8aに記録されるものに限定されるものではない。例えば、プログラムが、CD−ROMやDVD−ROM等の記録媒体に記録されていてもよく、さらに通信回線等を通じてプログラムが提供される場合であっても、この通信回線を媒体として提供されるプログラムが本発明に係るプログラムに該当するものである。   For example, in the above embodiment, the rotation amount determination processing in the control unit 8 is realized by a program recorded in the ROM 8a. This program also relates to the present invention. Further, the program is not necessarily limited to the one recorded in the ROM 8a of the control unit 8. For example, the program may be recorded on a recording medium such as a CD-ROM or DVD-ROM, and even if the program is provided through a communication line or the like, the program provided using the communication line as a medium. Corresponds to the program according to the present invention.

実施の形態に係る回転量判断装置を備えた車載オーディオ装置の概略構成を示したブロック図である。It is the block diagram which showed schematic structure of the vehicle-mounted audio apparatus provided with the rotation amount determination apparatus which concerns on embodiment. 実施の形態に係る車載オーディオ装置の回転式スイッチに設置されるロータリエンコーダの概略構成を示した外観斜視図である。1 is an external perspective view showing a schematic configuration of a rotary encoder installed in a rotary switch of an in-vehicle audio apparatus according to an embodiment. 図2に示したロータリエンコーダに設けられるフォトトランジスタの受光部で検出されたパルス信号の変化状態を示した図である。It is the figure which showed the change state of the pulse signal detected by the light-receiving part of the phototransistor provided in the rotary encoder shown in FIG. 実施の形態に係る情報記録部に記録されたパルス情報テーブルを示した図である。It is the figure which showed the pulse information table recorded on the information recording part which concerns on embodiment. 実施の形態に係る制御部の制御処理を示した第1のフローチャートである。It is the 1st flowchart which showed the control processing of the control part which concerns on embodiment. 実施の形態に係る制御部の制御処理を示した第2のフローチャートである。It is the 2nd flowchart which showed the control processing of the control part which concerns on embodiment.

符号の説明Explanation of symbols

1 …車載オーディオ装置
2 …CD再生部
3 …MD再生部
4 …ラジオチューナ部
5 …セレクタ部
7 …操作部
7a …音源ソース選択ボタン
7b …再生ボタン
7c …停止ボタン
7d …回転式スイッチ
7i …回転軸
8 …制御部(エラー判断手段、エラー監視時間計測手段、変化数カウント手段、回転量決定手段)
8a …ROM
8b …RAM
9 …情報記録部(正常パルス信号記録手段)
10 …音量変更部
11 …パワーアンプ
12 …スピーカ
14 …ロータリエンコーダ
14a …円盤
14b …窓
15a …発光ダイオード
15b …フォトトランジスタ
16 …パルス情報テーブル
M …回転量
P …変化量
Q …回転フラグ
DESCRIPTION OF SYMBOLS 1 ... Car-mounted audio apparatus 2 ... CD reproduction part 3 ... MD reproduction part 4 ... Radio tuner part 5 ... Selector part 7 ... Operation part 7a ... Sound source selection button 7b ... Play button 7c ... Stop button 7d ... Rotary switch 7i ... Rotation Axis 8 ... control unit (error determination means, error monitoring time measurement means, change count counting means, rotation amount determination means)
8a ROM
8b ... RAM
9 Information recording section (normal pulse signal recording means)
DESCRIPTION OF SYMBOLS 10 ... Volume change part 11 ... Power amplifier 12 ... Speaker 14 ... Rotary encoder 14a ... Disk 14b ... Window 15a ... Light emitting diode 15b ... Phototransistor 16 ... Pulse information table M ... Rotation amount P ... Change amount Q ... Rotation flag

Claims (5)

ロータリエンコーダによって所定時間毎に検出されるパルス信号の変化に基づいて回転式スイッチの回転量を判断する回転量判断装置であって、
前記ロータリエンコーダによって検出されたパルス信号と、所定時間前に検出されたパルス信号とを比較して前記ロータリエンコーダによるパルス信号の検出エラーを判断するエラー判断手段と、
該エラー判断手段によって前記パルス信号の検出エラーを判断した場合に、当該判断時を基準として予め設定されるエラー監視時間の経過を計測するエラー監視時間計測手段と、
該エラー監視時間計測手段による前記エラー監視時間の計測中に検出された前記パルス信号の変化数をカウントする変化数カウント手段と、
前記エラー監視時間計測手段に基づいて前記エラー監視時間の経過完了を判断し、前記変化数カウント手段によってカウントされた前記パルス信号の変化数に基づいて、前記エラー監視時間における前記回転式スイッチの回転量を決定する回転量決定手段と
を有することを特徴とする回転量判断装置。
A rotation amount determination device that determines a rotation amount of a rotary switch based on a change in a pulse signal detected every predetermined time by a rotary encoder,
An error determination means for comparing a pulse signal detected by the rotary encoder with a pulse signal detected a predetermined time ago to determine a detection error of the pulse signal by the rotary encoder;
An error monitoring time measuring means for measuring an elapse of an error monitoring time set in advance based on the determination time when the error determination means determines the detection error of the pulse signal;
Change number counting means for counting the number of changes in the pulse signal detected during the measurement of the error monitoring time by the error monitoring time measuring means;
The completion of the error monitoring time is determined based on the error monitoring time measuring means, and the rotation of the rotary switch during the error monitoring time is determined based on the number of changes in the pulse signal counted by the change number counting means. A rotation amount determination device comprising: a rotation amount determination means for determining an amount.
前記回転量決定手段は、前記変化数カウント手段によってカウントされた前記パルス信号の変化数に基づいて算出される回転量よりも少ない回転量を、前記回転式スイッチの回転量として決定することを特徴とする請求項1に記載の回転量判断装置。   The rotation amount determination means determines a rotation amount smaller than the rotation amount calculated based on the number of changes of the pulse signal counted by the change number counting means as the rotation amount of the rotary switch. The rotation amount determination device according to claim 1. 前記回転量決定手段は、前記エラー監視時間の長さに応じて前記回転量の減少量を変化させることを特徴とする請求項2に記載の回転量判断装置。   The rotation amount determination device according to claim 2, wherein the rotation amount determination unit changes a decrease amount of the rotation amount according to a length of the error monitoring time. 前記所定時間前に検出されたパルス信号に応じて正常なパルス信号の検出時に検出され得るパルス信号の変化状態を記録した正常パルス信号記録手段を有し、
前記エラー判断手段は、前記正常パルス信号記録手段に記録されるパルス信号の変化状態に基づいて、検出されたパルス信号が正常なパルス信号の検出時に検出され得るパルス信号であるか否かを判断して、前記パルス信号のエラー検出を行うこと
を特徴とする請求項1乃至請求項3のいずれか1項に記載の回転量判断装置。
Normal pulse signal recording means for recording a change state of the pulse signal that can be detected when detecting a normal pulse signal according to the pulse signal detected before the predetermined time,
The error determining means determines whether the detected pulse signal is a pulse signal that can be detected when a normal pulse signal is detected, based on a change state of the pulse signal recorded in the normal pulse signal recording means. The rotation amount determination device according to any one of claims 1 to 3, wherein error detection of the pulse signal is performed.
ロータリエンコーダによって所定時間毎に検出されるパルス信号の変化に基づいて回転式スイッチの回転量を判断する回転量判断装置のコンピュータに、
前記ロータリエンコーダによって検出されたパルス信号と、所定時間前に検出されたパルス信号とを比較して前記ロータリエンコーダによるパルス信号の検出エラーを判断するエラー判断処理と、
該エラー判断処理において前記パルス信号の検出エラーを判断した場合に、当該判断時を基準として予め設定されるエラー監視時間の経過を計測するエラー監視時間計測処理と、
該エラー監視時間計測処理による前記エラー監視時間の計測中に検出された前記パルス信号の変化数をカウントする変化数カウント処理と、
前記エラー監視時間計測処理における前記エラー監視時間の経過完了を判断し、当該エラー監視時間において前記変化数カウント処理によってカウントされた前記パルス信号の変化数に基づいて、前記回転式スイッチの回転量を決定する回転量決定処理と
を実現させるためのコンピュータプログラム。
In the computer of the rotation amount determination device that determines the rotation amount of the rotary switch based on the change of the pulse signal detected every predetermined time by the rotary encoder,
An error determination process for comparing a pulse signal detected by the rotary encoder with a pulse signal detected a predetermined time before determining a detection error of the pulse signal by the rotary encoder;
An error monitoring time measurement process for measuring the passage of an error monitoring time set in advance based on the determination time when the detection error of the pulse signal is determined in the error determination process;
A change number counting process for counting the number of changes in the pulse signal detected during the measurement of the error monitoring time by the error monitoring time measuring process;
The completion of the error monitoring time in the error monitoring time measurement process is determined, and the rotation amount of the rotary switch is determined based on the number of changes in the pulse signal counted by the change number counting process in the error monitoring time. A computer program for realizing the rotation amount determination process to be determined.
JP2007075268A 2007-03-22 2007-03-22 Rotation amount determination device and computer program used for the device Expired - Fee Related JP4804390B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007075268A JP4804390B2 (en) 2007-03-22 2007-03-22 Rotation amount determination device and computer program used for the device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007075268A JP4804390B2 (en) 2007-03-22 2007-03-22 Rotation amount determination device and computer program used for the device

Publications (2)

Publication Number Publication Date
JP2008236546A JP2008236546A (en) 2008-10-02
JP4804390B2 true JP4804390B2 (en) 2011-11-02

Family

ID=39908746

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007075268A Expired - Fee Related JP4804390B2 (en) 2007-03-22 2007-03-22 Rotation amount determination device and computer program used for the device

Country Status (1)

Country Link
JP (1) JP4804390B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6012852B2 (en) * 2012-05-02 2016-10-25 ボルボ トラック コーポレイション Vehicle differential control system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04104007A (en) * 1990-08-22 1992-04-06 Alpine Electron Inc Monitoring method for rotation step of rotary encoder
JPH1039901A (en) * 1996-07-25 1998-02-13 Nippon Columbia Co Ltd Variable amount controller
JPH10145877A (en) * 1996-11-13 1998-05-29 Nikon Corp Remote controller and eye examination system
JP2001028524A (en) * 1999-07-14 2001-01-30 Onkyo Corp Sound volume controller
JP2001147137A (en) * 1999-11-22 2001-05-29 Rohm Co Ltd Rotation information detector
JP3942334B2 (en) * 2000-02-18 2007-07-11 ローム株式会社 Rotation information detector
JP3855637B2 (en) * 2000-10-05 2006-12-13 横河電機株式会社 Rotary switch and rotary switch scan interface

Also Published As

Publication number Publication date
JP2008236546A (en) 2008-10-02

Similar Documents

Publication Publication Date Title
JP2010136035A (en) Music playback system and information processing method
JP3812332B2 (en) Recording medium playback device
JP4804390B2 (en) Rotation amount determination device and computer program used for the device
JP2005175562A (en) Graphic equalizer and adjustment method thereof
JPH061869B2 (en) Audio equipment
JP2010225235A (en) On-vehicle sound reproducing apparatus and sound reproducing method
JP5508178B2 (en) Mixing equipment
KR101394879B1 (en) Apparatus and method for reproducing audio data
KR20070017668A (en) Method for broadcasting receive status detection and control
JP2006517047A (en) Bit clock generation apparatus and bit clock generation method
JP2006339848A (en) Variable adjustment system, sound volume adjustment system, equalizer adjustment system, variable adjustment apparatus, sound volume adjustment apparatus, and equalizer adjustment apparatus
JP2001160266A (en) Audio signal processing device
JP3804582B2 (en) Gain control circuit and electronic volume circuit
JPS5841404A (en) Recorder and reproducer with automatic fade-out mechanism
JP2008211397A (en) Display control unit, control program, and computer-readable recording medium
JP6331869B2 (en) Display device and electronic device including the same
JP2006340026A (en) Volume control device, audio device equipped therewith, and volume control method
JP4807046B2 (en) Automotive electronics
JP2005209422A (en) On-vehicle av electronic apparatus
JP2000259150A (en) mp-3 REPRODUCING DEVICE USED IN CASSETTE, AND ITS CONTROLLING METHOD
KR100443619B1 (en) method for playing car audio using control dial and car audio
JP3982609B2 (en) Display device with built-in input filter
JP3104146U (en) Recording / playback device
KR100281478B1 (en) How to detect audio level of HiFi VRC
JPH1131358A (en) Method and circuit for adjusting timing of read gate and write gate of magnetic disk device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100302

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110208

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110406

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110809

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110809

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140819

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees