JP6225863B2 - Clock adjustment mechanism - Google Patents

Clock adjustment mechanism Download PDF

Info

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
Application number
JP2014196729A
Other languages
Japanese (ja)
Other versions
JP2016071413A (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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2014196729A priority Critical patent/JP6225863B2/en
Publication of JP2016071413A publication Critical patent/JP2016071413A/en
Application granted granted Critical
Publication of JP6225863B2 publication Critical patent/JP6225863B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2012−244606号公報JP 2012-244606 A

時間を計測して処理のタイミングを計る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.

本発明の一実施形態による複合機の一例を示した概略図Schematic showing an example of a multifunction machine according to an embodiment of the present invention. 本発明の一実施形態による複合機のハードウェア構成の一例を示したブロック図1 is a block diagram showing an example of a hardware configuration of a multifunction machine according to an embodiment of the present invention. 本発明の一実施形態による複合機の電力供給系統を説明するための図The figure for demonstrating the electric power supply system of the multifunctional device by one Embodiment of this invention 本発明の一実施形態による複合機の電源CPUのクロック補正について説明するための図The figure for demonstrating the clock correction of the power supply CPU of the multifunctional device by one Embodiment of this invention. 本発明の一実施形態による複合機の電源CPUのクロック補正の流れ(治具CPUが行う処理の流れ)を説明するための図The figure for demonstrating the flow (The flow of the process which jig | tool CPU performs) of the power supply CPU of the multifunctional device by one Embodiment of this invention 本発明の一実施形態による複合機の電源CPUのクロック補正の流れ(電源CPUが行う処理の流れ)を説明するための図The figure for demonstrating the flow (clocking of the process which power supply CPU performs) of the power supply CPU of the multifunctional device by one Embodiment of this invention

以下に、本発明の一実施形態について、複合機を例にとって説明する。   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 image reading unit 1 and a printing unit 2. The image reading unit 1 reads a document and generates image data. The printing unit 2 transports the paper P along the paper transport path 21 and forms a toner image based on the image data. Then, the printing unit 2 prints the toner image on the paper P being conveyed, and discharges the printed paper P to the discharge tray 22.

印刷部2は、給紙部3、用紙搬送部4、画像形成部5および定着部6で構成される。給紙部3は、ピックアップローラー31および給紙ローラー対32を含み、用紙カセット33に収容された用紙Pを用紙搬送路21に供給する。用紙搬送部4は、複数の搬送ローラー対41を含み、用紙搬送路21に沿って用紙Pを搬送する。   The printing unit 2 includes a paper feeding unit 3, a paper transport unit 4, an image forming unit 5, and a fixing unit 6. The paper feed unit 3 includes a pickup roller 31 and a paper feed roller pair 32, and supplies the paper P stored in the paper cassette 33 to the paper transport path 21. The paper transport unit 4 includes a plurality of transport roller pairs 41 and transports the paper P along the paper transport path 21.

画像形成部5は、感光体ドラム51、帯電装置52、露光装置53、現像装置54、転写ローラー55およびクリーニング装置56を含む。そして、画像形成部5は、画像データに基づくトナー像を形成し、そのトナー像を用紙Pに転写する。定着部6は、加熱ローラー61および加圧ローラー62を含み、用紙Pに転写されたトナー像を加熱および加圧して定着させる。   The image forming unit 5 includes a photosensitive drum 51, a charging device 52, an exposure device 53, a developing device 54, a transfer roller 55, and a cleaning device 56. Then, the image forming unit 5 forms a toner image based on the image data, and transfers the toner image onto the paper P. The fixing unit 6 includes a heating roller 61 and a pressure roller 62, and fixes the toner image transferred onto the paper P by heating and pressing.

また、複合機100は、操作パネル7を備える。操作パネル7は、タッチパネル付きの液晶表示パネル71を含む。この液晶表示パネル71は、各種設定を受け付けるためのソフトキーやメッセージなどを表示する。さらに、操作パネル7には、テンキーやスタートキーなどのハードキー72も設けられる。   The multifunction device 100 also includes an operation panel 7. The operation panel 7 includes a liquid crystal display panel 71 with a touch panel. The liquid crystal display panel 71 displays soft keys and messages for accepting various settings. Further, the operation panel 7 is also provided with hard keys 72 such as a numeric keypad and a start key.

<複合機のハードウェア構成>
図2に示すように、複合機100は、主制御部110を備える。主制御部110は、メインCPU111、画像処理部112および記憶部113を含む。画像処理部112は、画像処理専用のASICなどからなり、画像データに対して画像処理(拡大/縮小、濃度変換およびデータ形式変換など)を施す。記憶部113は、ROMおよびRAMなどからなり、制御用のプログラムおよびデータを記憶する。
<Hardware configuration of MFP>
As shown in FIG. 2, the multifunction machine 100 includes a main control unit 110. The main control unit 110 includes a main CPU 111, an image processing unit 112, and a storage unit 113. The image processing unit 112 includes an ASIC dedicated to image processing, and performs image processing (enlargement / reduction, density conversion, data format conversion, etc.) on the image data. The storage unit 113 includes a ROM and a RAM, and stores a control program and data.

そして、メインCPU111は、記憶部113に記憶された制御用のプログラムおよびデータに基づき、複合機100の全体制御を行う。具体的には、メインCPU111は、画像読取部1の読取動作および印刷部2の印刷動作を制御する。また、メインCPU111は、操作パネル7の表示動作を制御したり、操作パネル7に対して行われた操作を検知したりする。   The main CPU 111 performs overall control of the multifunction peripheral 100 based on the control program and data stored in the storage unit 113. Specifically, the main CPU 111 controls the reading operation of the image reading unit 1 and the printing operation of the printing unit 2. Further, the main CPU 111 controls the display operation of the operation panel 7 or detects an operation performed on the operation panel 7.

また、複合機100は、電源部120および電源制御部130を備える。電源部120は、商用電源と接続され、複数の被電力供給部10(電力供給を受けて動作する部分)を動作させるのに必要な電圧を生成する。電源制御部130は、電源CPU131および電源記憶部132を含み、複数の被電力供給部10への電力供給を制御する。なお、電源CPU131は、本発明の「第1処理部」に相当する。   The multifunction device 100 includes a power supply unit 120 and a power supply control unit 130. The power supply unit 120 is connected to a commercial power supply and generates a voltage necessary for operating the plurality of power supplied units 10 (parts that operate by receiving power supply). The power supply control unit 130 includes a power supply CPU 131 and a power supply storage unit 132, and controls power supply to the plurality of power supplied units 10. The power supply CPU 131 corresponds to the “first processing unit” of the present invention.

ここで、複合機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 power supply unit 10 in the multifunction peripheral 100 are the image reading unit 1, the printing unit 2 (the paper feeding unit 3, the paper transporting unit 4, the image forming unit 5 and the fixing unit 6), and the operation panel 7. And a main control unit 110. Specifically, a motor for driving a rotating body constituting each part of the image reading unit 1 and the printing unit 2 corresponds to the power supply unit 10. In the operation panel 7, the liquid crystal display panel 71 (touch panel) corresponds to the power receiving unit 10. Further, in the main control unit 110, the main CPU 111, the image processing unit 112, and the storage unit 113 correspond to the power supplied unit 10.

<被電力供給部への電力供給>
図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 power receiving units 10 are connected to the power supply control unit 130. When the switch unit SW is on, power is supplied to the corresponding power-supplied supply unit 10, and when the switch unit SW is off, power supply to the corresponding power-supplied supply unit 10 is stopped. . The power supply CPU 131 controls the supply and stop of power supply to the power-supplied supply unit 10 by switching the switch unit SW on and off.

具体的には、電源CPU131は、複合機100に対する電源投入時に、複数の被電力供給部10への電力供給を予め定められた順番で開始する。すなわち、電源CPU131は、複数のスイッチ部SWを予め定められた順番でオフからオンに切り替える。たとえば、電源CPU131は、メインCPU111への電力供給を最初に開始した後、他の被電力供給部10への電力供給を順番に開始する。   Specifically, the power supply CPU 131 starts power supply to the plurality of power supplied units 10 in a predetermined order when the multifunction device 100 is turned on. That is, the power supply CPU 131 switches the plurality of switch units SW from off to on in a predetermined order. For example, the power supply CPU 131 first starts supplying power to the main CPU 111 and then sequentially starts supplying power to the other power-supplied supply units 10.

また、電源CPU131は、メインCPU111に対する電力供給時にも、メインCPU111を構成する各要素への電力供給を予め定められた順番で開始する。たとえば、電源CPU131は、CPU全体の管理や演算を行うCPUコアへの電力供給を最初に開始してから、CPUコア以外の構成要素への電力供給を順次開始する。   The power supply CPU 131 also starts supplying power to the elements constituting the main CPU 111 in a predetermined order when supplying power to the main CPU 111. For example, the power supply CPU 131 first starts power supply to the CPU core that performs management and calculation of the entire CPU, and then sequentially starts power supply to components other than the CPU core.

<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 power supply CPU 131 includes a core unit 133, a bus interface unit 134, a cache memory 135, and a first clock generation unit 136. The core unit 133 performs overall management of the CPU and various processes. The bus interface unit 134 transmits and receives signals to and from other CPUs, reads data to be processed, and outputs processed data. The cache memory 135 stores data. The first clock generation unit 136 generates an operation clock (corresponding to the “first clock” of the present invention) of the power supply CPU 131. The first clock generation unit 136 is composed of an inexpensive oscillation circuit (for example, a CR oscillation circuit) with low frequency accuracy in order to avoid an increase in cost. Hereinafter, the operation clock of the power supply CPU 131 generated by the first clock generation unit 136 is referred to as a first clock.

そして、電源CPU131は、複数の被電力供給部10に対する電力供給を順番に開始するとき、第1クロックを用いて時間を計測し、電力供給の開始タイミング(スイッチ部SWのオンオフを切り替えるタイミング)を計る。しかし、第1クロックの周波数精度が低いと、スイッチ部SWのオンオフの切り替えタイミングが理想的なタイミングからずれる可能性がある。   When the power supply CPU 131 sequentially starts power supply to the plurality of power supplied units 10, the power supply CPU 131 measures time using the first clock, and sets the power supply start timing (timing for switching on / off the switch unit SW). measure. However, if the frequency accuracy of the first clock is low, there is a possibility that the on / off switching timing of the switch unit SW deviates from the ideal timing.

このため、電源CPU131は、複合機100とは別体の補正用治具200との間で信号を送受信し、補正用治具200から送信される補正用信号に基づき第1クロックの周期の補正(クロック補正)を行う。たとえば、補正用治具200は、電源CPU131を搭載する制御基板の着脱が可能となっている。そして、その制御基板を補正用治具200に装着することにより、制御基板の端子(電源CPU131のバスインターフェイス部134に繋がる端子)を補正用治具200に通信可能に接続することができる。このような補正用治具200を用いてクロック補正を行う場合、電源CPU131を搭載する制御基板を補正用治具200に装着する必要があるため、クロック補正は装置出荷前の調整時に行われる。   Therefore, the power supply CPU 131 transmits / receives a signal to / from the correction jig 200 separate from the multifunction peripheral 100, and corrects the cycle of the first clock based on the correction signal transmitted from the correction jig 200. Perform (clock correction). For example, the correction jig 200 can be attached to and detached from a control board on which the power supply CPU 131 is mounted. Then, by attaching the control board to the correction jig 200, the terminal of the control board (terminal connected to the bus interface unit 134 of the power supply CPU 131) can be connected to the correction jig 200 so as to be communicable. When the clock correction is performed using such a correction jig 200, the control board on which the power supply CPU 131 is mounted needs to be mounted on the correction jig 200, so that the clock correction is performed at the time of adjustment before shipping the apparatus.

電源CPU131には、クロック補正を行うため、第1クロック出力部137、第1クロック測定部138および補正部139が設けられる。第1クロック出力部137は、第1クロックを用いてクロック信号を生成して電源CPU131の外部に出力する。第1クロック測定部138は、第1クロックを用いて、電源CPU131に入力されるクロック信号の周期を測定する。補正部139は、第1クロックの周期を補正する。   The power supply CPU 131 is provided with a first clock output unit 137, a first clock measurement unit 138, and a correction unit 139 in order to perform clock correction. The first clock output unit 137 generates a clock signal using the first clock and outputs it to the outside of the power supply CPU 131. The first clock measurement unit 138 measures the period of the clock signal input to the power supply CPU 131 using the first clock. The correction unit 139 corrects the cycle of the first clock.

また、補正用治具200は、たとえば、治具CPU210、治具記憶部220および治具操作部230を備える。治具CPU210は、クロック補正に必要な処理を行う。治具記憶部220は、治具CPU210を動作させるプログラムやデータを記憶する。治具操作部230は、クロック補正を行うための各種操作を受け付ける。   The correction jig 200 includes, for example, a jig CPU 210, a jig storage unit 220, and a jig operation unit 230. The jig CPU 210 performs processing necessary for clock correction. The jig storage unit 220 stores programs and data for operating the jig CPU 210. The jig operation unit 230 receives various operations for performing clock correction.

治具CPU210は、CPU全体の管理や各種処理を行うコア部211、他のCPUとの間で信号を送受信するバスインターフェイス部212、データを記憶するキャッシュメモリー213、および、治具CPU210の動作クロック(本発明の「第2クロック」に相当)を生成する第2クロック生成部214を含む。以下、第2クロック生成部214で生成される治具CPU210の動作クロックを第2クロックと称する。   The jig CPU 210 includes a core unit 211 that performs overall CPU management and various processes, a bus interface unit 212 that transmits and receives signals to and from other CPUs, a cache memory 213 that stores data, and an operation clock of the jig CPU 210. (Corresponding to the “second clock” of the present invention) is included. Hereinafter, the operation clock of the jig CPU 210 generated by the second clock generation unit 214 is referred to as a second clock.

なお、第2クロック生成部214は、たとえば、水晶振動子を発振源とする水晶発振回路を用いて構成される。このため、第2クロック生成部214で生成される第2クロックは、第1クロック生成部136で生成される第1クロックより周波数精度が高い。また、第2クロックは第1クロックよりも高周波であり、補正用CPU210は電源CPU131よりも高速で動作する。   The second clock generation unit 214 is configured using, for example, a crystal oscillation circuit using a crystal resonator as an oscillation source. For this reason, the second clock generated by the second clock generation unit 214 has higher frequency accuracy than the first clock generated by the first clock generation unit 136. The second clock has a higher frequency than the first clock, and the correction CPU 210 operates at a higher speed than the power supply CPU 131.

この治具CPU210には、クロック補正を行うため、第2クロック出力部215、第2クロック測定部216および比較部217が設けられる。第2クロック出力部215は、第2クロックを用いてクロック信号を生成して治具CPU210の外部に出力する。第2クロック測定部216は、第2クロックを用いて、治具CPU210に入力されるクロック信号の周期を測定する。比較部217は、2つのクロック信号の各周期の大小関係を比較する。   The jig CPU 210 is provided with a second clock output unit 215, a second clock measurement unit 216, and a comparison unit 217 in order to perform clock correction. The second clock output unit 215 generates a clock signal using the second clock and outputs it to the outside of the jig CPU 210. The second clock measurement unit 216 measures the period of the clock signal input to the jig CPU 210 using the second clock. The comparison unit 217 compares the magnitude relationships of the periods of the two clock signals.

クロック補正では、まず、クロック補正の開始指示が治具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 jig CPU 210 to the power supply CPU 131. For example, the jig CPU 210 instructs the power supply CPU 131 to start clock correction when an operation for starting clock correction is performed on the jig operation unit 230. When the power supply CPU 131 receives a clock correction start instruction, the first clock output unit 137 generates a reference signal having a period corresponding to a predetermined first count using the first clock, and sends the reference signal to the jig CPU 210. Output. The data indicating the first count number is stored in advance in the power storage unit 132, for example, and is read from the power storage unit 132 to the cache memory 135 at the time of clock correction.

基準信号が治具CPU210に入力されると、第2クロック測定部216は、第2クロックを用いて、基準信号の周期を測定する。そして、比較部217は、基準信号の周期を測定したときの第2クロック測定部216の実カウント数と、基準信号の周期に相当する第2クロックのカウント数として予め定められた第2カウント数と、を比較する。なお、第2カウント数を示すデータは、たとえば、治具記憶部220に予め記憶され、クロック補正時に治具記憶部220からキャッシュメモリー213に読み出される。   When the reference signal is input to the jig CPU 210, the second clock measuring unit 216 measures the period of the reference signal using the second clock. Then, the comparison unit 217 measures the actual count number of the second clock measurement unit 216 when measuring the cycle of the reference signal, and a second count number that is predetermined as the count number of the second clock corresponding to the cycle of the reference signal. And compare. The data indicating the second count number is stored in advance in the jig storage unit 220, for example, and is read from the jig storage unit 220 to the cache memory 213 at the time of clock correction.

ここで、第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 clock measurement unit 216 does not match the second count number. Specifically, if the period of the first clock is longer than the ideal value, the time required to count the first clock until reaching the first count number becomes longer, and the period of the first clock is ideal. If the value is shorter than the value, the time required for counting the first clock until the first count is reached is shortened. Therefore, the period of the reference signal input to the jig CPU 210 (the period measured by the second clock measuring unit 216) is longer when the period of the first clock is longer, and the period of the first clock is longer. If it is shorter, it will be shorter. Thereby, when the cycle of the first clock is longer than the ideal value, the actual count number of the second clock measurement unit 216 is larger than the second count number, and the cycle of the first clock becomes the ideal value. On the other hand, when it is shorter, the actual count number of the second clock measurement unit 216 is smaller than the second count number.

比較部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 comparison unit 217, if the actual count number of the second clock measurement unit 216 and the second count number do not match, the second clock output unit 215 corrects the cycle of the first clock. Signal is generated. At this time, the correction signal generated by the second clock output unit 215 is set based on the period of the reference signal (reference signal output from the power supply CPU 131) input to the jig CPU 210. Specifically, if the actual count number of the second clock measurement unit 216 is larger than the second count number, a correction signal having a period shorter by a predetermined value than the period of the reference signal measured by the second clock measurement unit 216 is generated. If the actual count number of the second clock measuring unit 216 is less than the second count number, a correction signal having a period longer than the period of the reference signal measured by the second clock measuring unit 216 by a predetermined value is generated. The predetermined value is determined in advance and corresponds to the length of one cycle of the first clock, for example. Then, the second clock output unit 215 outputs a correction signal to the power supply CPU 131.

治具CPU210から電源CPU131に補正用信号が出力されると、第1クロック測定部138は、第1クロックを用いて補正用信号の周期を測定する。なお、補正用信号の周期が第1クロックの周期より短く設定されていると、補正用信号の周期の測定が行えない。したがって、補正用信号の周期は、第1クロックの周期より長く設定される。   When the correction signal is output from the jig CPU 210 to the power supply CPU 131, the first clock measurement unit 138 measures the period of the correction signal using the first clock. If the period of the correction signal is set shorter than the period of the first clock, the period of the correction signal cannot be measured. Therefore, the cycle of the correction signal is set longer than the cycle of the first clock.

第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 clock measurement unit 138, the correction unit 139 sets the count number of the first clock counted during the cycle of the correction signal to be the first count number ( The period of the first clock is corrected so that the time required to count the first clock until it reaches the first count number is the period of the correction signal. In order to perform such correction, the cycle of the first clock generated by the first clock generator 136 is variable. The first clock output unit 137 uses the corrected first clock to generate and output a reference signal having a period corresponding to the first count number.

補正後の第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 power supply CPU 131 to the jig CPU 210, the second clock measurement unit 216 continuously measures the period of the reference signal using the second clock, and the comparison unit 217. Compares the actual count number of the second clock measurement unit 216 with the second count number. Then, the second clock output unit 215 increases or decreases the correction signal by a predetermined value and outputs it to the power supply CPU 131 until the actual count number of the second clock measurement unit 216 matches the second count number (clock correction is performed). to continue). When the difference between the actual count number of the second clock measurement unit 216 and the second count number falls within a predetermined allowable range, the actual count number of the second clock measurement unit 216 matches the second count number. You may assume that

このようなクロック補正により、第2クロック測定部216の実カウント数と第2カウント数とが一致すると、治具CPU210は、クロック補正の終了を電源CPU131に指示し、クロック補正を終了させる。これにより、クロック補正が終了したときには、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるよう第1クロックの周期が補正された状態となる。このため、電源CPU131は、クロック補正の終了指示を受けたときの第1クロックの周期を電源記憶部132に保持する。そして、電源CPU131は、クロック補正が終了して以降、周期が補正された第1クロックに基づき動作する。   When the actual count number of the second clock measurement unit 216 matches the second count number by such clock correction, the jig CPU 210 instructs the power supply CPU 131 to end the clock correction, and ends the clock correction. Thus, when the clock correction is completed, the first clock cycle is corrected such that the count number of the first clock counted during the cycle of the correction signal becomes the first count number. For this reason, the power supply CPU 131 holds the cycle of the first clock in the power supply storage unit 132 when receiving a clock correction end instruction. Then, the power supply CPU 131 operates based on the first clock whose cycle is corrected after the clock correction is completed.

<クロック補正の流れ>
まず、図5を参照して、クロック補正時の治具CPU210の処理の流れについて説明する。なお、図5のフローチャートのスタートは、クロック補正を開始するための操作が治具操作部230に対して行われたときである。
<Flow of clock correction>
First, the processing flow of the jig CPU 210 at the time of clock correction will be described with reference to FIG. The start of the flowchart of FIG. 5 is when an operation for starting clock correction is performed on the jig operation unit 230.

ステップS1において、治具CPU210は、クロック補正の開始を電源CPU131に指示する。その後、ステップS2において、治具CPU210は、電源CPU131からの基準信号を入力したか否かを判断する。その結果、基準信号を入力していれば、ステップS3に移行し、基準信号を入力していなければ、ステップS2の判断を繰り返す。   In step S1, the jig CPU 210 instructs the power supply CPU 131 to start clock correction. Thereafter, in step S2, the jig CPU 210 determines whether or not the reference signal from the power source CPU 131 has been input. As a result, if the reference signal is input, the process proceeds to step S3. If the reference signal is not input, the determination in step S2 is repeated.

ステップS3に移行すると、第2クロック測定部216は、第2クロックを用いて基準信号の周期を測定する。そして、ステップS4において、比較部217は、第2クロック測定部216の実カウント数と第2カウント数とを比較する。その結果、第2測定部216の実カウント数と第2カウント数とが異なっていれば、ステップS5に移行する。   In step S3, the second clock measurement unit 216 measures the period of the reference signal using the second clock. In step S4, the comparison unit 217 compares the actual count number of the second clock measurement unit 216 with the second count number. As a result, if the actual count number of the second measurement unit 216 is different from the second count number, the process proceeds to step S5.

ステップ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 comparison unit 217 determines whether the actual count number of the second clock measurement unit 216 is larger or smaller than the second count number. As a result, if the actual count number of the second clock measurement unit 216 is greater than the second count number, the process proceeds to step S6. If the actual count number of the second measurement unit 216 is less than the second count number, the process proceeds to step S7. To do. When the process proceeds to step S <b> 6, the second clock output unit 215 generates a correction signal having a cycle shorter than the cycle of the reference signal by a predetermined value and outputs the correction signal to the power supply CPU 131. On the other hand, when the process proceeds to step S7, the second clock output unit 215 generates a correction signal having a period longer by a predetermined value than the period of the reference signal and outputs the correction signal to the power supply CPU 131.

補正用信号を電源CPU131に出力した後、ステップS2において、治具CPU210は、電源CPU131からの基準信号を入力したか否かの判断を繰り返す。その結果、基準信号が入力されると、ステップS3に移行し、第2クロック測定部216は、第2クロックを用いて基準信号の周期を測定する。   After outputting the correction signal to the power supply CPU 131, in step S2, the jig CPU 210 repeats the determination of whether or not the reference signal from the power supply CPU 131 has been input. As a result, when the reference signal is input, the process proceeds to step S3, and the second clock measurement unit 216 measures the period of the reference signal using the second clock.

ステップS4において、第2クロック測定部216の実カウント数と第2カウント数とが同じであると比較部217が判定すると、ステップS8に移行する。ステップS8に移行すると、治具CPU210は、クロック補正の終了を電源CPU131に指示する。   In step S4, when the comparison unit 217 determines that the actual count number of the second clock measurement unit 216 is the same as the second count number, the process proceeds to step S8. In step S8, the jig CPU 210 instructs the power supply CPU 131 to end the clock correction.

次に、図6を参照して、クロック補正時の電源CPU131の処理の流れについて説明する。なお、図6のフローチャートのスタートは、クロック補正の開始指示を補正用治具200から受けたときである。   Next, a processing flow of the power supply CPU 131 at the time of clock correction will be described with reference to FIG. The start of the flowchart of FIG. 6 is when a clock correction start instruction is received from the correction jig 200.

ステップS21において、第1クロック出力部137は、第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して治具CPU210に出力する。そして、ステップS22において、電源CPU131は、治具CPU210からの補正用信号を入力したか否かを判断する。その結果、補正用信号を入力していれば、ステップ23に移行する。   In step S <b> 21, the first clock output unit 137 generates a reference signal having a period corresponding to the first count number using the first clock, and outputs the reference signal to the jig CPU 210. In step S22, the power supply CPU 131 determines whether or not the correction signal from the jig CPU 210 has been input. As a result, if a correction signal is input, the process proceeds to step 23.

ステップS23に移行すると、第1クロック測定部138は、第1クロックを用いて補正用信号の周期を測定する。そして、ステップS24において、補正部139は、補正用信号の周期の間にカウントされる第1クロックのカウント数が第1カウント数となるよう第1クロックの周期を補正する。その後、ステップS21に移行し、第1クロック出力部137は、第1クロックを用いて、第1カウント数に相当する周期の基準信号を生成して治具CPU210に出力する。なお、このときにカウントする第1クロックの周期は、ステップS24において補正されている。   In step S23, the first clock measurement unit 138 measures the period of the correction signal using the first clock. In step S24, the correction unit 139 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. Thereafter, the process proceeds to step S <b> 21, and the first clock output unit 137 generates a reference signal having a period corresponding to the first count number using the first clock, and outputs the reference signal to the jig CPU 210. Note that the period of the first clock counted at this time is corrected in step S24.

ステップS22において、補正用信号が入力されていないと電源CPU131が判断すると、ステップS25に移行する。ステップS25に移行すると、電源CPU131は、クロック補正の終了指示を治具CPU210から受けたか否かを判断する。その結果、クロック補正の終了指示が有れば、ステップS26に移行し、クロック補正の終了指示が無ければ、ステップS22に戻る。ステップS26に移行すると、電源CPU131は、クロック補正の終了指示を受けたときの第1クロックの周期(補正後の周期)を電源記憶部132に保持する。   If the power supply CPU 131 determines in step S22 that the correction signal has not been input, the process proceeds to step S25. In step S25, the power supply CPU 131 determines whether or not a clock correction end instruction has been received from the jig CPU 210. As a result, if there is an instruction to end clock correction, the process proceeds to step S26, and if there is no instruction to end clock correction, the process returns to step S22. In step S <b> 26, the power supply CPU 131 holds the first clock cycle (the corrected cycle) in the power storage unit 132 when receiving the clock correction end instruction.

本実施形態のクロック調整機構は、上記のように、電源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 power supply CPU 131 generates a first clock that generates a first clock, and a first clock output that generates and outputs a reference signal having a period corresponding to a predetermined first count using the first clock. A first clock measuring unit 138 that measures the period of the signal input to the power supply CPU 131 using the first clock, and a correction unit 139 that corrects the period of the first clock. The jig CPU 210 includes a second clock generation unit 214 that generates a second clock, a second clock measurement unit 216 that measures the period of the reference signal output from the power supply CPU 131 using the second clock, and a reference signal A comparison unit 217 that compares the actual count number of the second clock measurement unit 216 when the period 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 two-clock measuring unit 216 is larger than the second count number, a correction signal having a shorter cycle than the reference signal is output to the power supply CPU 131, and the actual count number of the second clock measuring unit 216 is smaller than the second count number. And a second clock output unit 215 that outputs a correction signal having a period longer than that of the reference signal to the power supply CPU 131. When the correction signal is output from the jig CPU 210 to the power supply CPU 131, the first clock measurement unit 138 measures the period of the correction signal using the first clock, and the correction unit 139 determines the period of the correction signal. The cycle of the first clock is corrected so that the count number of the first clock counted in between becomes the first count number, and the first clock output unit 137 uses the corrected first clock to A reference signal having a period corresponding to the count number is generated and output. When the actual count number of the second clock measurement unit 216 matches the second count number, the jig CPU 210 instructs the power supply CPU 131 to end the correction of the first clock cycle.

本実施形態の構成では、第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 power supply CPU 131 to the jig CPU 210, and the period of the reference signal is measured by the jig CPU 210. Here, if the frequency accuracy of the first clock is low, a deviation occurs between the actual count number of the second clock measurement unit 216 and the second count number. Specifically, if the period of the first clock is longer than the ideal value, the period of the reference signal is longer, so that the actual count number of the second clock measuring unit 216 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 216 is smaller than the second count number. Therefore, the second clock output unit 215 outputs a correction signal having a shorter cycle than the reference signal to the power supply CPU 131 when the actual count number of the second clock measurement unit 216 is larger than the second count number, and the second clock measurement unit 216. When the actual count number is less than the second count number, a correction signal having a longer cycle than the reference signal is output to the power supply CPU 131. When such a correction signal is output to the power supply CPU 131, the first clock measurement unit 138 measures the period of the correction signal using the first clock. The correction unit 139 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 137 generates and outputs a 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 216 matches the second count number, the jig CPU 210 instructs the power supply CPU 131 to end the correction of the first clock cycle. In other words, the correction unit 139 ends the correction of the first clock cycle. As a result, the frequency accuracy of the first clock is increased, and the timing accuracy of the power supply CPU 131 is improved.

また、本実施形態では、上記のように、第2クロック出力部215は、第2クロック測定部216の実カウント数が第2カウント数と一致するまで、電源CPU131に出力する補正用信号の周期を所定値ずつ増減させる。このように構成すれば、第1クロックの周波数精度がより向上する。   Further, in the present embodiment, as described above, the second clock output unit 215 performs the period of the correction signal output to the power supply CPU 131 until the actual count number of the second clock measurement unit 216 matches the second count number. Is increased or decreased by a predetermined value. With this configuration, the frequency accuracy of the first clock is further improved.

また、本実施形態では、上記のように、電源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 units 10 is shifted. Can be suppressed.

また、本実施形態では、上記のように、補正用治具200を用いてクロック補正を行うので、クロック補正を行うための処理部を予め複合機100に搭載しておく必要はない。   Further, in the present embodiment, as described above, clock correction is performed using the correction jig 200, so that it is not necessary to previously install a processing unit for performing clock correction in the multi-function device 100.

今回開示された実施形態は、すべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記実施形態の説明ではなく特許請求の範囲によって示され、さらに、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれる。   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 correction jig 200 has been described. However, the present invention is not limited to this, and the main CPU 111 may have the function of the correction jig 200. That is, the “second clock output unit”, “second clock measurement unit”, and “comparison unit” of the present invention may be mounted on the main CPU 111. This eliminates the need to separately prepare a correction jig when performing clock correction.

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 Power Supply Unit 100 MFP (Image Forming Apparatus)
120 power supply unit 131 power supply CPU (first processing unit)
136 First clock generation unit 137 First clock output unit 138 First clock measurement unit 139 Correction unit 200 Correction jig 210 Jig CPU (second processing unit)
214 Second clock generation unit 215 Second clock output unit 216 Second clock measurement unit 217 Comparison unit

Claims (3)

第1処理部および第2処理部を備え、
前記第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.
前記第2クロック出力部は、前記第2クロック測定部の実カウント数が前記第2カウント数と一致するまで、前記第1処理部に出力する前記補正用信号の周期を所定値ずつ増減させることを特徴とする請求項1に記載のクロック調整機構。   The second clock output unit increases or decreases the period of the correction signal output to the first processing unit by a predetermined value until the actual count number of the second clock measurement unit matches the second count number. The clock adjustment mechanism according to claim 1. 前記第2処理部は、補正用治具であり、前記第1クロックの周期の補正時に、前記第1処理部に接続されることを特徴とする請求項1または2に記載のクロック調整機構。 The second processing unit is a correction jig, said the corrected during the period of the first clock, clock adjustment mechanism according to claim 1 or 2, characterized in that it is connected to the first processing unit.
JP2014196729A 2014-09-26 2014-09-26 Clock adjustment mechanism Expired - Fee Related JP6225863B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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