JP6225863B2 - Clock adjustment mechanism - Google Patents
Clock adjustment mechanism Download PDFInfo
- Publication number
- JP6225863B2 JP6225863B2 JP2014196729A JP2014196729A JP6225863B2 JP 6225863 B2 JP6225863 B2 JP 6225863B2 JP 2014196729 A JP2014196729 A JP 2014196729A JP 2014196729 A JP2014196729 A JP 2014196729A JP 6225863 B2 JP6225863 B2 JP 6225863B2
- Authority
- JP
- Japan
- Prior art keywords
- clock
- unit
- count number
- correction
- processing unit
- 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
Links
Images
Description
本発明は、処理部のクロック補正を行うためのクロック調整機構に関する。 The present invention relates to a clock adjustment mechanism for performing clock correction of a processing unit.
複合機などの画像形成装置には、メインCPUおよびサブCPUを含む複数のCPU(処理部)が設けられる。たとえば、メインCPUは、装置全体を制御するための処理を実行する。サブCPUは、メインCPUから指示を受け、通信制御や電源制御など特定の処理を実行する(たとえば、特許文献1参照)。 An image forming apparatus such as a multifunction peripheral is provided with a plurality of CPUs (processing units) including a main CPU and a sub CPU. For example, the main CPU executes processing for controlling the entire apparatus. The sub CPU receives an instruction from the main CPU and executes specific processing such as communication control and power control (see, for example, Patent Document 1).
各CPUは、動作クロックを生成するクロック生成部を含み、そのクロック生成部が生成した動作クロックに基づき処理を実行する。たとえば、各CPUは、クロック生成部が生成した動作クロックを用いて時間を計測し、実行する処理のタイミングを計る。 Each CPU includes a clock generation unit that generates an operation clock, and executes processing based on the operation clock generated by the clock generation unit. For example, each CPU measures time using the operation clock generated by the clock generation unit, and measures the timing of processing to be executed.
時間を計測して処理のタイミングを計るCPUを備えた画像形成装置において、CPUの計時が正確に行われなければ(すなわち、クロック生成部で生成されるクロックの周波数精度が低ければ)、CPUで実行される処理のタイミングが所望のタイミングに対してずれてしまう(処理を行うべき時間帯から外れた時点で処理が行われる)。したがって、CPUによる計時は精度良く行われる必要がある。 In an image forming apparatus provided with a CPU that measures time by measuring time, if the CPU is not timed accurately (that is, if the frequency accuracy of the clock generated by the clock generator is low), the CPU The timing of the processing to be executed is deviated from the desired timing (the processing is performed at a point outside the time zone for processing). Therefore, the timing by the CPU needs to be accurately performed.
ここで、たとえば、水晶を振動子として用いるクロック生成部が内蔵または外付けされたCPUでは、正確に計時を行える。このため、CPUで実行される処理のタイミングのずれを低減するには、正確に計時を行える高精度なクロック生成部をCPUに内蔵または外付けすればよい。 Here, for example, a CPU with a built-in or external clock generation unit using a crystal as a vibrator can accurately measure time. For this reason, in order to reduce a shift in timing of processing executed by the CPU, a high-accuracy clock generation unit that can accurately measure time may be built in or externally attached to the CPU.
しかし、正確に計時を行える高精度なクロック生成部は、一般的に高価である。このため、複数のCPUが設けられた画像形成装置においては、複数のCPUの全てのクロック生成部を正確で高精度なものとすると、コスト的に問題がある。このため、サブCPUのクロック生成部は、コストアップを避けるため、安価な発振回路(たとえば、CR発振回路など)が用いられる。その結果、サブCPUの計時精度が低くなるという不都合が生じる。すなわち、サブCPUが実行する処理のタイミングがずれる。 However, a high-accuracy clock generator that can accurately measure time is generally expensive. For this reason, in an image forming apparatus provided with a plurality of CPUs, there is a problem in cost if all the clock generation units of the plurality of CPUs are accurate and highly accurate. For this reason, the clock generation unit of the sub CPU uses an inexpensive oscillation circuit (for example, a CR oscillation circuit) in order to avoid an increase in cost. As a result, there arises a disadvantage that the timing accuracy of the sub CPU is lowered. That is, the timing of processing executed by the sub CPU is shifted.
本発明は、上記課題を解決するためになされたものであり、時間を計測して処理のタイミングを計る処理部の計時精度を向上させることが可能なクロック調整機構を提供することを目的とする。 The present invention has been made to solve the above-described problem, and an object of the present invention is to provide a clock adjustment mechanism capable of improving the timing accuracy of a processing unit that measures time by measuring time. .
上記目的を達成するために、本発明のクロック調整機構は、第1処理部および第2処理部を備える。第1処理部は、第1クロックを生成する第1クロック生成部と、第1クロックを用いて、予め定められた第1カウント数に相当する周期の基準信号を生成して出力する第1クロック出力部と、第1クロックを用いて、第1処理部に入力される信号の周期を測定する第1クロック測定部と、第1クロックの周期を補正する補正部と、を含む。第2処理部は、第2クロックを生成する第2クロック生成部と、第2クロックを用いて、第1処理部から出力される基準信号の周期を測定する第2クロック測定部と、基準信号の周期を測定したときの第2クロック測定部の実カウント数と、基準信号の周期に相当する第2クロックのカウント数として予め定められた第2カウント数とを比較する比較部と、第2クロック測定部の実カウント数が第2カウント数より多いときには基準信号より短い周期の補正用信号を第1処理部に出力し、第2クロック測定部の実カウント数が第2カウント数より少ないときには基準信号より長い周期の補正用信号を第1処理部に出力する第2クロック出力部と、を含む。第2処理部から第1処理部に補正用信号が出力されたとき、第1クロック測定部は、第1クロックを用いて補正用信号の周期を測定し、補正部は、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるように、第1クロックの周期を補正し、第1クロック出力部は、補正後の第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して出力する。そして、第2クロック測定部の実カウント数と第2カウント数とが一致したとき、第2処理部は、第1クロックの周期の補正を終了するよう第1処理部に指示する。 In order to achieve the above object, the clock adjustment mechanism of the present invention includes a first processing unit and a second processing unit. The first processing unit generates a first clock, and a first clock that generates and outputs a reference signal having a period corresponding to a predetermined first count using the first clock. An output unit, a first clock measurement unit that measures a cycle of a signal input to the first processing unit using the first clock, and a correction unit that corrects the cycle of the first clock are included. The second processing unit includes a second clock generation unit that generates a second clock, a second clock measurement unit that measures the period of a reference signal output from the first processing unit using the second clock, and a reference signal A comparison unit that compares the actual count number of the second clock measurement unit when the period of the second clock is measured with a second count number predetermined as the count number of the second clock corresponding to the period of the reference signal; When the actual count number of the clock measurement unit is greater than the second count number, a correction signal having a shorter cycle than the reference signal is output to the first processing unit, and when the actual count number of the second clock measurement unit is smaller than the second count number And a second clock output unit that outputs a correction signal having a longer cycle than the reference signal to the first processing unit. When the correction signal is output from the second processing unit to the first processing unit, the first clock measurement unit measures the period of the correction signal using the first clock, and the correction unit performs the period of the correction signal. The first clock cycle is corrected so that the count number of the first clock counted during the period becomes the first count number, and the first clock output unit uses the corrected first clock to A reference signal having a period corresponding to the count number is generated and output. Then, when the actual count number of the second clock measurement unit matches the second count number, the second processing unit instructs the first processing unit to end the correction of the cycle of the first clock.
本発明の構成では、第1カウント数に相当する周期の基準信号が第1処理部から第2処理部に送信され、その基準信号の周期の測定が第2処理部で行われる。ここで、第1クロックの周波数精度が低いと、第2クロック測定部の実カウント数と第2カウント数とにずれが生じる。具体的には、第1クロックの周期が理想値に対して長くなっていると、基準信号の周期が長くなるので、第2クロック測定部の実カウント数が第2カウント数より多くなる。一方で、第1クロックの周期が理想値に対して短くなっていると、基準信号の周期が短くなるので、第2クロック測定部の実カウント数が第2カウント数より少なくなる。そこで、第2クロック出力部は、第2クロック測定部の実カウント数が第2カウント数より多いときには基準信号より短い周期の補正用信号を第1処理部に出力し、第2クロック測定部の実カウント数が第2カウント数より少ないときには基準信号より長い周期の補正用信号を第1処理部に出力する。このような補正用信号が第1処理部に出力されたとき、第1クロック測定部は、第1クロックを用いて補正用信号の周期を測定する。補正部は、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるように、第1クロックの周期を補正する。第1クロック出力部は、補正後の第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して出力する。そして、第2クロック測定部の実カウント数と第2カウント数とが一致したとき、第2処理部は、第1クロックの周期の補正を終了するよう第1処理部に指示する。すなわち、補正部は、第1クロックの周期の補正を終了する。これにより、第1クロックの周波数精度が高くなり、第1処理部の計時精度が向上する。 In the configuration of the present invention, a reference signal having a period corresponding to the first count number is transmitted from the first processing unit to the second processing unit, and the measurement of the period of the reference signal is performed by the second processing unit. Here, if the frequency accuracy of the first clock is low, a deviation occurs between the actual count number and the second count number of the second clock measurement unit. Specifically, if the period of the first clock is longer than the ideal value, the period of the reference signal is longer, so the actual count number of the second clock measurement unit is larger than the second count number. On the other hand, if the cycle of the first clock is shorter than the ideal value, the cycle of the reference signal is shortened, so that the actual count number of the second clock measurement unit is smaller than the second count number. Therefore, the second clock output unit outputs a correction signal having a shorter cycle than the reference signal to the first processing unit when the actual count number of the second clock measurement unit is larger than the second count number, and the second clock measurement unit When the actual count number is less than the second count number, a correction signal having a longer period than the reference signal is output to the first processing unit. When such a correction signal is output to the first processing unit, the first clock measurement unit measures the period of the correction signal using the first clock. The correction unit corrects the cycle of the first clock so that the count number of the first clock counted during the cycle of the correction signal becomes the first count number. The first clock output unit generates and outputs a reference signal having a period corresponding to the first count number, using the corrected first clock. Then, when the actual count number of the second clock measurement unit matches the second count number, the second processing unit instructs the first processing unit to end the correction of the cycle of the first clock. That is, the correction unit finishes correcting the cycle of the first clock. As a result, the frequency accuracy of the first clock is increased, and the timing accuracy of the first processing unit is improved.
以上のように、本発明の構成では、処理部の計時精度を向上させることができる。 As described above, with the configuration of the present invention, it is possible to improve the timing accuracy of the processing unit.
以下に、本発明の一実施形態について、複合機を例にとって説明する。 Hereinafter, an embodiment of the present invention will be described by taking a multifunction peripheral as an example.
<複合機の全体構成>
図1に示すように、複合機100(本発明の「画像形成装置」に相当)は、画像読取部1および印刷部2を備える。画像読取部1は、原稿を読み取って画像データを生成する。印刷部2は、用紙搬送路21に沿って用紙Pを搬送するとともに、画像データに基づきトナー像を形成する。そして、印刷部2は、搬送中の用紙Pにトナー像を印刷し、印刷済みの用紙Pを排出トレイ22に排出する。
<Overall configuration of MFP>
As shown in FIG. 1, the multifunction peripheral 100 (corresponding to the “image forming apparatus” of the present invention) includes an
印刷部2は、給紙部3、用紙搬送部4、画像形成部5および定着部6で構成される。給紙部3は、ピックアップローラー31および給紙ローラー対32を含み、用紙カセット33に収容された用紙Pを用紙搬送路21に供給する。用紙搬送部4は、複数の搬送ローラー対41を含み、用紙搬送路21に沿って用紙Pを搬送する。
The
画像形成部5は、感光体ドラム51、帯電装置52、露光装置53、現像装置54、転写ローラー55およびクリーニング装置56を含む。そして、画像形成部5は、画像データに基づくトナー像を形成し、そのトナー像を用紙Pに転写する。定着部6は、加熱ローラー61および加圧ローラー62を含み、用紙Pに転写されたトナー像を加熱および加圧して定着させる。
The
また、複合機100は、操作パネル7を備える。操作パネル7は、タッチパネル付きの液晶表示パネル71を含む。この液晶表示パネル71は、各種設定を受け付けるためのソフトキーやメッセージなどを表示する。さらに、操作パネル7には、テンキーやスタートキーなどのハードキー72も設けられる。
The
<複合機のハードウェア構成>
図2に示すように、複合機100は、主制御部110を備える。主制御部110は、メインCPU111、画像処理部112および記憶部113を含む。画像処理部112は、画像処理専用のASICなどからなり、画像データに対して画像処理(拡大/縮小、濃度変換およびデータ形式変換など)を施す。記憶部113は、ROMおよびRAMなどからなり、制御用のプログラムおよびデータを記憶する。
<Hardware configuration of MFP>
As shown in FIG. 2, the
そして、メインCPU111は、記憶部113に記憶された制御用のプログラムおよびデータに基づき、複合機100の全体制御を行う。具体的には、メインCPU111は、画像読取部1の読取動作および印刷部2の印刷動作を制御する。また、メインCPU111は、操作パネル7の表示動作を制御したり、操作パネル7に対して行われた操作を検知したりする。
The
また、複合機100は、電源部120および電源制御部130を備える。電源部120は、商用電源と接続され、複数の被電力供給部10(電力供給を受けて動作する部分)を動作させるのに必要な電圧を生成する。電源制御部130は、電源CPU131および電源記憶部132を含み、複数の被電力供給部10への電力供給を制御する。なお、電源CPU131は、本発明の「第1処理部」に相当する。
The
ここで、複合機100において被電力供給部10に相当する部分は、画像読取部1、印刷部2(給紙部3、用紙搬送部4、画像形成部5および定着部6)、操作パネル7および主制御部110である。具体的には、画像読取部1および印刷部2の各部を構成する回転体を駆動するためのモーターなどが被電力供給部10相当する。また、操作パネル7では、液晶表示パネル71(タッチパネル)が被電力供給部10に相当する。さらに、主制御部110では、メインCPU111、画像処理部112および記憶部113が被電力供給部10に相当する。
Here, the parts corresponding to the
<被電力供給部への電力供給>
図3に示すように、電源制御部130には、複数の被電力供給部10にそれぞれ対応する複数のスイッチ部SWが接続される。スイッチ部SWがオンしているときには、対応する被電力供給部10への電力供給が行われ、スイッチ部SWがオフしているときには、対応する被電力供給部10への電力供給が停止される。そして、電源CPU131は、スイッチ部SWのオンオフを切り替えることにより、被電力供給部10への電力の供給および供給停止を制御する。
<Power supply to the power receiver>
As shown in FIG. 3, a plurality of switch units SW respectively corresponding to the plurality of
具体的には、電源CPU131は、複合機100に対する電源投入時に、複数の被電力供給部10への電力供給を予め定められた順番で開始する。すなわち、電源CPU131は、複数のスイッチ部SWを予め定められた順番でオフからオンに切り替える。たとえば、電源CPU131は、メインCPU111への電力供給を最初に開始した後、他の被電力供給部10への電力供給を順番に開始する。
Specifically, the
また、電源CPU131は、メインCPU111に対する電力供給時にも、メインCPU111を構成する各要素への電力供給を予め定められた順番で開始する。たとえば、電源CPU131は、CPU全体の管理や演算を行うCPUコアへの電力供給を最初に開始してから、CPUコア以外の構成要素への電力供給を順次開始する。
The
<CPUのクロック補正>
図4に示すように、電源CPU131は、コア部133、バスインターフェイス部134、キャッシュメモリー135、および、第1クロック生成部136を含む。コア部133は、CPU全体の管理や各種処理を行う。バスインターフェイス部134は、他のCPUとの間で信号を送受信し、処理対象のデータを読み込んだり、処理済みのデータを出力したりする。キャッシュメモリー135は、データを記憶する。第1クロック生成部136は、電源CPU131の動作クロック(本発明の「第1クロック」に相当)を生成する。この第1クロック生成部136は、コストアップを避けるため、周波数精度が低い安価な発振回路(たとえば、CR発振回路など)で構成される。以下、第1クロック生成部136で生成される電源CPU131の動作クロックを第1クロックと称する。
<CPU clock correction>
As shown in FIG. 4, the
そして、電源CPU131は、複数の被電力供給部10に対する電力供給を順番に開始するとき、第1クロックを用いて時間を計測し、電力供給の開始タイミング(スイッチ部SWのオンオフを切り替えるタイミング)を計る。しかし、第1クロックの周波数精度が低いと、スイッチ部SWのオンオフの切り替えタイミングが理想的なタイミングからずれる可能性がある。
When the
このため、電源CPU131は、複合機100とは別体の補正用治具200との間で信号を送受信し、補正用治具200から送信される補正用信号に基づき第1クロックの周期の補正(クロック補正)を行う。たとえば、補正用治具200は、電源CPU131を搭載する制御基板の着脱が可能となっている。そして、その制御基板を補正用治具200に装着することにより、制御基板の端子(電源CPU131のバスインターフェイス部134に繋がる端子)を補正用治具200に通信可能に接続することができる。このような補正用治具200を用いてクロック補正を行う場合、電源CPU131を搭載する制御基板を補正用治具200に装着する必要があるため、クロック補正は装置出荷前の調整時に行われる。
Therefore, the
電源CPU131には、クロック補正を行うため、第1クロック出力部137、第1クロック測定部138および補正部139が設けられる。第1クロック出力部137は、第1クロックを用いてクロック信号を生成して電源CPU131の外部に出力する。第1クロック測定部138は、第1クロックを用いて、電源CPU131に入力されるクロック信号の周期を測定する。補正部139は、第1クロックの周期を補正する。
The
また、補正用治具200は、たとえば、治具CPU210、治具記憶部220および治具操作部230を備える。治具CPU210は、クロック補正に必要な処理を行う。治具記憶部220は、治具CPU210を動作させるプログラムやデータを記憶する。治具操作部230は、クロック補正を行うための各種操作を受け付ける。
The
治具CPU210は、CPU全体の管理や各種処理を行うコア部211、他のCPUとの間で信号を送受信するバスインターフェイス部212、データを記憶するキャッシュメモリー213、および、治具CPU210の動作クロック(本発明の「第2クロック」に相当)を生成する第2クロック生成部214を含む。以下、第2クロック生成部214で生成される治具CPU210の動作クロックを第2クロックと称する。
The
なお、第2クロック生成部214は、たとえば、水晶振動子を発振源とする水晶発振回路を用いて構成される。このため、第2クロック生成部214で生成される第2クロックは、第1クロック生成部136で生成される第1クロックより周波数精度が高い。また、第2クロックは第1クロックよりも高周波であり、補正用CPU210は電源CPU131よりも高速で動作する。
The second
この治具CPU210には、クロック補正を行うため、第2クロック出力部215、第2クロック測定部216および比較部217が設けられる。第2クロック出力部215は、第2クロックを用いてクロック信号を生成して治具CPU210の外部に出力する。第2クロック測定部216は、第2クロックを用いて、治具CPU210に入力されるクロック信号の周期を測定する。比較部217は、2つのクロック信号の各周期の大小関係を比較する。
The
クロック補正では、まず、クロック補正の開始指示が治具CPU210から電源CPU131に対して行われる。たとえば、治具CPU210は、クロック補正を開始するための操作が治具操作部230に対して行われたとき、電源CPU131にクロック補正の開始を指示する。クロック補正の開始指示を電源CPU131が受けると、第1クロック出力部137は、第1クロックを用いて、予め定められた第1カウント数に相当する周期の基準信号を生成し、治具CPU210に出力する。なお、第1カウント数を示すデータは、たとえば、電源記憶部132に予め記憶され、クロック補正時に電源記憶部132からキャッシュメモリー135に読み出される。
In the clock correction, first, a clock correction start instruction is issued from the
基準信号が治具CPU210に入力されると、第2クロック測定部216は、第2クロックを用いて、基準信号の周期を測定する。そして、比較部217は、基準信号の周期を測定したときの第2クロック測定部216の実カウント数と、基準信号の周期に相当する第2クロックのカウント数として予め定められた第2カウント数と、を比較する。なお、第2カウント数を示すデータは、たとえば、治具記憶部220に予め記憶され、クロック補正時に治具記憶部220からキャッシュメモリー213に読み出される。
When the reference signal is input to the
ここで、第1クロックの周期が理論値からずれている場合には、第2クロック測定部216の実カウント数と第2カウント数とが一致しない。具体的には、第1クロックの周期が理想値に対して長くなっていると、第1クロックを第1カウント数に達するまでカウントするのに要する時間が長くなり、第1クロックの周期が理想値に対して短くなっていると、第1クロックを第1カウント数に達するまでカウントするのに要する時間が短くなる。したがって、治具CPU210に入力される基準信号の周期(第2クロック測定部216により測定される周期)は、第1クロックの周期が長くなっている場合には長くなり、第1クロックの周期が短くなっている場合には短くなる。これにより、第1クロックの周期が理想値に対して長くなっている場合には、第2クロック測定部216の実カウント数が第2カウント数より多くなり、第1クロックの周期が理想値に対して短くなっている場合には、第2クロック測定部216の実カウント数が第2カウント数より少なくなる。
Here, when the period of the first clock is deviated from the theoretical value, the actual count number of the second
比較部217による比較の結果、第2クロック測定部216の実カウント数と第2カウント数とが一致していなければ、第2クロック出力部215は、第1クロックの周期を補正するための補正用信号を生成する。このときに第2クロック出力部215により生成される補正用信号は、治具CPU210に入力される基準信号(電源CPU131が出力した基準信号)の周期に基づき設定される。具体的には、第2クロック測定部216の実カウント数が第2カウント数より多ければ、第2クロック測定部216が測定した基準信号の周期より所定値だけ短い周期の補正用信号が生成され、第2クロック測定部216の実カウント数が第2カウント数より少なければ、第2クロック測定部216が測定した基準信号の周期より所定値だけ長い周期の補正用信号が生成される。なお、所定値は予め定められており、たとえば、第1クロックの一周期分の長さに相当する。そして、第2クロック出力部215は、補正用信号を電源CPU131に出力する。
As a result of the comparison by the
治具CPU210から電源CPU131に補正用信号が出力されると、第1クロック測定部138は、第1クロックを用いて補正用信号の周期を測定する。なお、補正用信号の周期が第1クロックの周期より短く設定されていると、補正用信号の周期の測定が行えない。したがって、補正用信号の周期は、第1クロックの周期より長く設定される。
When the correction signal is output from the
第1クロック測定部138により補正用信号の周期が測定されると、補正部139は、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるように(第1クロックを第1カウント数に達するまでカウントするのに要する時間が補正用信号の周期となるように)、第1クロックの周期を補正する。なお、このような補正を行うため、第1クロック生成部136で生成される第1クロックの周期は可変となっている。そして、第1クロック出力部137は、補正後の第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して出力する。
When the cycle of the correction signal is measured by the first
補正後の第1クロックに基づく基準信号が電源CPU131から治具CPU210に出力されて以降、引き続き、第2クロック測定部216は、第2クロックを用いて基準信号の周期を測定し、比較部217は、第2クロック測定部216の実カウント数と第2カウント数とを比較する。そして、第2クロック出力部215は、第2クロック測定部216の実カウント数と第2カウント数とが一致するまで、補正用信号を所定値ずつ増減させて電源CPU131に出力する(クロック補正を続ける)。なお、第2クロック測定部216の実カウント数と第2カウント数との差が予め定められた許容範囲に入ったとき、第2クロック測定部216の実カウント数と第2カウント数とが一致したと見做してもよい。
After the corrected reference signal based on the first clock is output from the
このようなクロック補正により、第2クロック測定部216の実カウント数と第2カウント数とが一致すると、治具CPU210は、クロック補正の終了を電源CPU131に指示し、クロック補正を終了させる。これにより、クロック補正が終了したときには、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるよう第1クロックの周期が補正された状態となる。このため、電源CPU131は、クロック補正の終了指示を受けたときの第1クロックの周期を電源記憶部132に保持する。そして、電源CPU131は、クロック補正が終了して以降、周期が補正された第1クロックに基づき動作する。
When the actual count number of the second
<クロック補正の流れ>
まず、図5を参照して、クロック補正時の治具CPU210の処理の流れについて説明する。なお、図5のフローチャートのスタートは、クロック補正を開始するための操作が治具操作部230に対して行われたときである。
<Flow of clock correction>
First, the processing flow of the
ステップS1において、治具CPU210は、クロック補正の開始を電源CPU131に指示する。その後、ステップS2において、治具CPU210は、電源CPU131からの基準信号を入力したか否かを判断する。その結果、基準信号を入力していれば、ステップS3に移行し、基準信号を入力していなければ、ステップS2の判断を繰り返す。
In step S1, the
ステップS3に移行すると、第2クロック測定部216は、第2クロックを用いて基準信号の周期を測定する。そして、ステップS4において、比較部217は、第2クロック測定部216の実カウント数と第2カウント数とを比較する。その結果、第2測定部216の実カウント数と第2カウント数とが異なっていれば、ステップS5に移行する。
In step S3, the second
ステップS5に移行すると、比較部217は、第2クロック測定部216の実カウント数が第2カウント数より多いか少ないかを判断する。その結果、第2クロック測定部216の実カウント数が第2カウント数より多ければ、ステップS6に移行し、第2測定部216の実カウント数が第2カウント数より少なければ、ステップS7に移行する。ステップS6に移行した場合、第2クロック出力部215は、基準信号の周期より所定値短い周期の補正用信号を生成して電源CPU131に出力する。一方で、ステップS7に移行した場合、第2クロック出力部215は、基準信号の周期より所定値長い周期の補正用信号を生成して電源CPU131に出力する。
In step S5, the
補正用信号を電源CPU131に出力した後、ステップS2において、治具CPU210は、電源CPU131からの基準信号を入力したか否かの判断を繰り返す。その結果、基準信号が入力されると、ステップS3に移行し、第2クロック測定部216は、第2クロックを用いて基準信号の周期を測定する。
After outputting the correction signal to the
ステップS4において、第2クロック測定部216の実カウント数と第2カウント数とが同じであると比較部217が判定すると、ステップS8に移行する。ステップS8に移行すると、治具CPU210は、クロック補正の終了を電源CPU131に指示する。
In step S4, when the
次に、図6を参照して、クロック補正時の電源CPU131の処理の流れについて説明する。なお、図6のフローチャートのスタートは、クロック補正の開始指示を補正用治具200から受けたときである。
Next, a processing flow of the
ステップS21において、第1クロック出力部137は、第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して治具CPU210に出力する。そして、ステップS22において、電源CPU131は、治具CPU210からの補正用信号を入力したか否かを判断する。その結果、補正用信号を入力していれば、ステップ23に移行する。
In step S <b> 21, the first
ステップS23に移行すると、第1クロック測定部138は、第1クロックを用いて補正用信号の周期を測定する。そして、ステップS24において、補正部139は、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるよう第1クロックの周期を補正する。その後、ステップS21に移行し、第1クロック出力部137は、第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して治具CPU210に出力する。なお、このときにカウントする第1クロックの周期は、ステップS24において補正されている。
In step S23, the first
ステップS22において、補正用信号が入力されていないと電源CPU131が判断すると、ステップS25に移行する。ステップS25に移行すると、電源CPU131は、クロック補正の終了指示を治具CPU210から受けたか否かを判断する。その結果、クロック補正の終了指示が有れば、ステップS26に移行し、クロック補正の終了指示が無ければ、ステップS22に戻る。ステップS26に移行すると、電源CPU131は、クロック補正の終了指示を受けたときの第1クロックの周期(補正後の周期)を電源記憶部132に保持する。
If the
本実施形態のクロック調整機構は、上記のように、電源CPU131(第1処理部)および治具CPU210(第2処理部)を備える。電源CPU131は、第1クロックを生成する第1クロック生成部136と、第1クロックを用いて、予め定められた第1カウント数に相当する周期の基準信号を生成して出力する第1クロック出力部137と、第1クロックを用いて、電源CPU131に入力される信号の周期を測定する第1クロック測定部138と、第1クロックの周期を補正する補正部139と、を含む。治具CPU210は、第2クロックを生成する第2クロック生成部214と、第2クロックを用いて、電源CPU131から出力される基準信号の周期を測定する第2クロック測定部216と、基準信号の周期を測定したときの第2クロック測定部216の実カウント数と、基準信号の周期に相当する第2クロックのカウント数として予め定められた第2カウント数とを比較する比較部217と、第2クロック測定部216の実カウント数が第2カウント数より多いときには基準信号より短い周期の補正用信号を電源CPU131に出力し、第2クロック測定部216の実カウント数が第2カウント数より少ないときには基準信号より長い周期の補正用信号を電源CPU131に出力する第2クロック出力部215と、を含む。治具CPU210から電源CPU131に補正用信号が出力されたとき、第1クロック測定部138は、第1クロックを用いて補正用信号の周期を測定し、補正部139は、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるように、第1クロックの周期を補正し、第1クロック出力部137は、補正後の第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して出力する。そして、第2クロック測定部216の実カウント数と第2カウント数とが一致したとき、治具CPU210、第1クロックの周期の補正を終了するよう電源CPU131に指示する。
As described above, the clock adjustment mechanism of the present embodiment includes the power supply CPU 131 (first processing unit) and the jig CPU 210 (second processing unit). The
本実施形態の構成では、第1カウント数に相当する周期の基準信号が電源CPU131から治具CPU210に送信され、その基準信号の周期の測定が治具CPU210で行われる。ここで、第1クロックの周波数精度が低いと、第2クロック測定部216の実カウント数と第2カウント数とにずれが生じる。具体的には、第1クロックの周期が理想値に対して長くなっていると、基準信号の周期が長くなるので、第2クロック測定部216の実カウント数が第2カウント数より多くなる。一方で、第1クロックの周期が理想値に対して短くなっていると、基準信号の周期が短くなるので、第2クロック測定部216の実カウント数が第2カウント数より少なくなる。そこで、第2クロック出力部215は、第2クロック測定部216の実カウント数が第2カウント数より多いときには基準信号より短い周期の補正用信号を電源CPU131に出力し、第2クロック測定部216の実カウント数が第2カウント数より少ないときには基準信号より長い周期の補正用信号を電源CPU131に出力する。このような補正用信号が電源CPU131に出力されたとき、第1クロック測定部138は、第1クロックを用いて補正用信号の周期を測定する。補正部139は、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるように、第1クロックの周期を補正する。第1クロック出力部137は、補正後の第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して出力する。そして、第2クロック測定部216の実カウント数と第2カウント数とが一致したとき、治具CPU210、第1クロックの周期の補正を終了するよう電源CPU131に指示する。すなわち、補正部139は、第1クロックの周期の補正を終了する。これにより、第1クロックの周波数精度が高くなり、電源CPU131の計時精度が向上する。
In the configuration of this embodiment, a reference signal having a period corresponding to the first count number is transmitted from the
また、本実施形態では、上記のように、第2クロック出力部215は、第2クロック測定部216の実カウント数が第2カウント数と一致するまで、電源CPU131に出力する補正用信号の周期を所定値ずつ増減させる。このように構成すれば、第1クロックの周波数精度がより向上する。
Further, in the present embodiment, as described above, the second
また、本実施形態では、上記のように、電源CPU131(第1クロック生成部136)のクロック補正が行われるので、複数の被電力供給部10への電力供給のオンオフの切り替えタイミングがずれるのを抑制することができる。
In the present embodiment, as described above, since the clock correction of the power supply CPU 131 (first clock generation unit 136) is performed, the timing for switching on / off the power supply to the plurality of power supplied
また、本実施形態では、上記のように、補正用治具200を用いてクロック補正を行うので、クロック補正を行うための処理部を予め複合機100に搭載しておく必要はない。
Further, in the present embodiment, as described above, clock correction is performed using the
今回開示された実施形態は、すべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記実施形態の説明ではなく特許請求の範囲によって示され、さらに、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれる。 It should be thought that embodiment disclosed this time is an illustration and restrictive at no points. The scope of the present invention is shown not by the description of the above-described embodiment but by the scope of claims for patent, and further includes meanings equivalent to the scope of claims for patent and all modifications within the scope.
たとえば、上記実施形態では、補正用治具200を用いてクロック補正を行う場合について説明したが、本発明はこれに限らず、補正用治具200の機能をメインCPU111に持たせてもよい。すなわち、本発明の「第2クロック出力部」、「第2クロック測定部」および「比較部」の各部がメインCPU111に搭載されてもよい。これにより、クロック補正を行うときに、補正用治具を別途準備する必要が無くなる。
For example, in the above-described embodiment, the case where clock correction is performed using the
10 被電力供給部
100 複合機(画像形成装置)
120 電源部
131 電源CPU(第1処理部)
136 第1クロック生成部
137 第1クロック出力部
138 第1クロック測定部
139 補正部
200 補正用治具
210 治具CPU(第2処理部)
214 第2クロック生成部
215 第2クロック出力部
216 第2クロック測定部
217 比較部
10
120
136 First
214 Second
Claims (3)
前記第1処理部は、画像形成装置に搭載される処理部であり、
前記画像形成装置は、電力供給を受けて駆動する複数の被電力供給部と、前記複数の被電力供給部に供給される電力を生成する電源部と、を備え、
前記複数の被電力供給部への電力供給のオンオフの制御が前記第1処理部により行われ、
前記第1処理部は、
第1クロックを生成する第1クロック生成部と、
前記第1クロックを用いて、予め定められた第1カウント数に相当する周期の基準信号を生成して出力する第1クロック出力部と、
前記第1クロックを用いて、前記第1処理部に入力される信号の周期を測定する第1クロック測定部と、
前記第1クロックの周期を補正する補正部と、を含み、
前記第2処理部は、
第2クロックを生成する第2クロック生成部と、
前記第2クロックを用いて、前記第1処理部から出力される前記基準信号の周期を測定する第2クロック測定部と、
前記基準信号の周期を測定したときの前記第2クロック測定部の実カウント数と、前記基準信号の周期に相当する前記第2クロックのカウント数として予め定められた第2カウント数とを比較する比較部と、
前記第2クロック測定部の実カウント数が前記第2カウント数より多いときには前記基準信号より短い周期の補正用信号を前記第1処理部に出力し、前記第2クロック測定部の実カウント数が前記第2カウント数より少ないときには前記基準信号より長い周期の前記補正用信号を前記第1処理部に出力する第2クロック出力部と、を含み、
前記第2処理部から前記第1処理部に前記補正用信号が出力されたとき、
前記第1クロック測定部は、前記第1クロックを用いて前記補正用信号の周期を測定し、
前記補正部は、前記補正用信号の周期の間にカウントされる前記第1クロックのカウント数が前記第1カウント数となるように、前記第1クロックの周期を補正し、
前記第1クロック出力部は、補正後の前記第1クロックを用いて、前記第1カウント数に相当する周期の前記基準信号を生成して出力し、
前記第2クロック測定部の実カウント数と前記第2カウント数とが一致したとき、
前記第2処理部は、前記第1クロックの周期の補正を終了するよう前記第1処理部に指示することを特徴とするクロック調整機構。 A first processing unit and a second processing unit;
The first processing unit is a processing unit mounted on the image forming apparatus,
The image forming apparatus includes: a plurality of power supply units that are driven by power supply; and a power supply unit that generates power to be supplied to the plurality of power supply units.
On / off control of power supply to the plurality of power supplied units is performed by the first processing unit,
The first processing unit includes:
A first clock generator for generating a first clock;
A first clock output unit configured to generate and output a reference signal having a period corresponding to a predetermined first count using the first clock;
A first clock measurement unit that measures a period of a signal input to the first processing unit using the first clock;
A correction unit for correcting the period of the first clock,
The second processing unit includes:
A second clock generator for generating a second clock;
A second clock measurement unit that measures a period of the reference signal output from the first processing unit using the second clock;
The actual count number of the second clock measurement unit when the period of the reference signal is measured is compared with a second count number predetermined as the count number of the second clock corresponding to the period of the reference signal. A comparison unit;
When the actual count number of the second clock measuring unit is larger than the second count number, a correction signal having a shorter cycle than the reference signal is output to the first processing unit, and the actual count number of the second clock measuring unit is A second clock output unit that outputs the correction signal having a longer period than the reference signal to the first processing unit when the count is less than the second count number;
When the correction signal is output from the second processing unit to the first processing unit,
The first clock measurement unit measures the period of the correction signal using the first clock,
The correction unit corrects the cycle of the first clock so that the count number of the first clock counted during the cycle of the correction signal becomes the first count number,
The first clock output unit generates and outputs the reference signal having a period corresponding to the first count number, using the corrected first clock.
When the actual count number of the second clock measurement unit matches the second count number,
The clock adjusting mechanism, wherein the second processing unit instructs the first processing unit to end the correction of the cycle of the first clock.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014196729A JP6225863B2 (en) | 2014-09-26 | 2014-09-26 | Clock adjustment mechanism |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014196729A JP6225863B2 (en) | 2014-09-26 | 2014-09-26 | Clock adjustment mechanism |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016071413A JP2016071413A (en) | 2016-05-09 |
JP6225863B2 true JP6225863B2 (en) | 2017-11-08 |
Family
ID=55864649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014196729A Expired - Fee Related JP6225863B2 (en) | 2014-09-26 | 2014-09-26 | Clock adjustment mechanism |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6225863B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0450793A (en) * | 1990-06-20 | 1992-02-19 | Toshiba Corp | Clock accuracy adjusting device |
JPH1116467A (en) * | 1997-06-20 | 1999-01-22 | Omron Corp | Timer with time correcting function and temperature controller |
JP5509055B2 (en) * | 2009-12-24 | 2014-06-04 | キヤノンファインテック株式会社 | Image forming apparatus |
JP5696117B2 (en) * | 2012-09-27 | 2015-04-08 | 京セラドキュメントソリューションズ株式会社 | Image forming apparatus |
-
2014
- 2014-09-26 JP JP2014196729A patent/JP6225863B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2016071413A (en) | 2016-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5509055B2 (en) | Image forming apparatus | |
JP5578951B2 (en) | Imaging device and interchangeable lens | |
US8708585B2 (en) | Imaging apparatus and lens unit | |
JP6269407B2 (en) | Image forming apparatus | |
JP2009175267A (en) | Time measuring instrument and image forming device | |
JP6225863B2 (en) | Clock adjustment mechanism | |
JP6072090B2 (en) | Information processing apparatus and data processing method | |
JP5696117B2 (en) | Image forming apparatus | |
JP2005094933A (en) | Motor driving device | |
JP6158621B2 (en) | Image forming apparatus and image forming method | |
JP2006201606A (en) | Light beam scanner and image forming apparatus | |
JP2013235293A (en) | Image forming apparatus | |
JP5617569B2 (en) | Operation clock generation device, operation circuit, and image forming apparatus | |
JP2009186778A (en) | Optical scanning device and image forming apparatus using the same | |
JP5153497B2 (en) | Clock device, electronic equipment | |
JP2003248076A (en) | Image forming apparatus | |
JP2015093477A (en) | Image formation apparatus and control method thereof, and program | |
JP4390522B2 (en) | Time information creation device, image processing system and method | |
JP2009145868A (en) | Image forming apparatus | |
US10084927B2 (en) | Image forming apparatus for determining an abnormal voltage adjustment of the processor | |
JP6365489B2 (en) | Image forming apparatus | |
JP2004007169A (en) | Signal control unit and image forming apparatus | |
JP6384360B2 (en) | Electronic apparatus and image forming apparatus | |
JP2006157662A (en) | Information processor | |
JP2020112742A (en) | Image forming apparatus and method for controlling the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160923 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170704 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170630 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170828 |
|
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: 20170912 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170925 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6225863 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |