JP2012165048A - Time stamp acquisition device and method - Google Patents

Time stamp acquisition device and method Download PDF

Info

Publication number
JP2012165048A
JP2012165048A JP2011021694A JP2011021694A JP2012165048A JP 2012165048 A JP2012165048 A JP 2012165048A JP 2011021694 A JP2011021694 A JP 2011021694A JP 2011021694 A JP2011021694 A JP 2011021694A JP 2012165048 A JP2012165048 A JP 2012165048A
Authority
JP
Japan
Prior art keywords
time
count value
time stamp
value
information
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.)
Withdrawn
Application number
JP2011021694A
Other languages
Japanese (ja)
Inventor
Hirotaka Noguchi
弘貴 野口
Takuji Tokushige
卓司 徳繁
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2011021694A priority Critical patent/JP2012165048A/en
Publication of JP2012165048A publication Critical patent/JP2012165048A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To acquire a time stamp of minute time without incorporating high-definition hardware.SOLUTION: A time stamp acquisition device (107) includes: a first clock time update process part (108, 108a) for obtaining timer information T when grasping an event of carrying of the minimum digit of the timer information of a timer circuit; a second clock time update process part (108, 108b) for calculating, when resetting the count value of a watch-dog timer, a cumulative count value C since obtaining a pre-reset count value and grasping the event of carrying of the minimum digit of the timer information; and a time stamp generation process part (109) for calculating, when a predetermined event occurs, a cumulative count value (C+Cm) since obtaining a count value Cm of the watch-dog timer and grasping the event of carrying of the minimum digit of the timer information and calculating a time stamp value Ts from the cumulative count value (C+Cm), time Δt required for one-count and the timer information T.

Description

本発明の実施の形態は、ウオッチドッグタイマを利用したタイムスタンプ取得装置及びタイムスタンプ取得方法に関する。   Embodiments described herein relate generally to a time stamp acquisition apparatus and a time stamp acquisition method using a watch dog timer.

情報処理装置では、所定のイベントが発生した時刻情報(タイムスタンプ)を取得する機能が必要とされることが多い。そして、近年の情報処理の高速化に伴い、取得するべき時刻情報の最小単位が微細化している。例えば、マイクロ秒オーダの時刻情報の取得が求められる。そのような微細な時刻情報を取得する際には、情報処理装置内部に設けられた専用の内部時計を利用する方法が知られている(例えば、特許文献1参照)。   Information processing apparatuses often require a function of acquiring time information (time stamp) when a predetermined event occurs. With the recent increase in information processing speed, the minimum unit of time information to be acquired has become finer. For example, acquisition of time information in the microsecond order is required. When acquiring such minute time information, a method using a dedicated internal clock provided inside the information processing apparatus is known (for example, see Patent Document 1).

特開2009−49554号公報JP 2009-49554 A

しかしながら、微細な時刻情報を取得するためには、高精細な内部時計が必要となり、ハードウェアコストの上昇につながる。また、情報処理装置によっては、ハードウェアの構成上の制約から高精細な内部時計を搭載することが困難となる場合もある。   However, in order to acquire fine time information, a high-definition internal clock is required, leading to an increase in hardware costs. Also, depending on the information processing apparatus, it may be difficult to mount a high-definition internal clock due to hardware restrictions.

従って、特別なハードウェアを搭載することなく、微細時間のタイムスタンプを取得することのできる技術のニーズが存在する。   Therefore, there is a need for a technique that can acquire a time stamp of fine time without installing special hardware.

上記課題を解決するための本発明の実施の形態によれば、計時回路の計時情報の最小桁が桁上がりを生じたことを把握した際の当該計時情報Tを取得する第1の時刻更新処理部と、ウオッチドッグタイマのカウント値をリセットする際、リセット前のカウント値を取得して前記計時情報の最小桁が桁上がりを生じたことを把握してからの累積カウント値Cを算出する第2の時刻更新処理部と、所定イベント発生の際、ウオッチドッグタイマのカウント値Cmを取得して前記計時情報の最小桁が桁上がりを生じたことを把握してからの累積カウント値(C+Cm)を算出し、累積カウント値(C+Cm)、1カウントに要する時間Δt、前記計時情報Tからタイムスタンプ値Tsを算出するタイムスタンプ生成処理部とを備えたタイムスタンプ取得装置が提供される。   According to the embodiment of the present invention for solving the above-described problem, the first time update process for acquiring the time information T when it is grasped that the minimum digit of the time information of the time circuit has generated a carry. And when the count value of the watchdog timer is reset, the count value before the reset is obtained and the accumulated count value C is calculated after grasping that the minimum digit of the timekeeping information has been raised. 2 and the cumulative count value (C + Cm) after acquiring the count value Cm of the watchdog timer and grasping that the minimum digit of the timekeeping information has been raised when a predetermined event occurs. A time stamp including a cumulative count value (C + Cm), a time Δt required for one count, and a time stamp generation processing unit for calculating a time stamp value Ts from the timekeeping information T The resulting device is provided.

本実施形態に係るタイムスタンプ取得装置を搭載する情報処理装置の構成例について説明するためのブロック図。The block diagram for demonstrating the structural example of the information processing apparatus carrying the time stamp acquisition apparatus which concerns on this embodiment. 実施の形態のウオッチドッグタイマの動作について説明するための図。The figure for demonstrating operation | movement of the watchdog timer of embodiment. 本実施の形態の時刻更新処理部の動作手順を示す図。The figure which shows the operation | movement procedure of the time update process part of this Embodiment. 本実施の形態のタイムスタンプ生成処理部の動作手順を示す図。The figure which shows the operation | movement procedure of the time stamp production | generation process part of this Embodiment. 第2の実施の形態の時刻更新処理部の動作手順を示す図。The figure which shows the operation | movement procedure of the time update process part of 2nd Embodiment. 第2の実施の形態の時刻更新処理部の動作手順を示す図。The figure which shows the operation | movement procedure of the time update process part of 2nd Embodiment.

〔第1の実施の形態〕
以下、図面を参照しながら、本発明の実施形態に係るタイムスタンプ取得装置について詳細に説明する。
[First Embodiment]
Hereinafter, a time stamp acquisition apparatus according to an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本実施形態に係るタイムスタンプ取得装置を搭載する情報処理装置の構成例について説明するためのブロック図である。
図1に示すように情報処理装置100は、CPU101、RTC(リアルタイムクロック)102、WDT(ウオッチドッグタイマ)103、プログラムメモリ部104及びメモリ部105を備えている。
FIG. 1 is a block diagram for explaining a configuration example of an information processing apparatus equipped with a time stamp acquisition apparatus according to this embodiment.
As illustrated in FIG. 1, the information processing apparatus 100 includes a CPU 101, an RTC (real time clock) 102, a WDT (watchdog timer) 103, a program memory unit 104, and a memory unit 105.

CPU101は、クロック信号に同期して情報処理装置100に組み込まれた命令を順次実行する。RTC102は、実時間(年月日時分秒)を生成する計時回路である。WDT103は、クロック信号をカウントし、カウント値が所定値よりも大きくなった場合、CPU101に対して異常発生を表すCPU割り込みを出力する。なお、CPU101、RTC102、WDT103は、同じCPUボード上に構成される。   The CPU 101 sequentially executes instructions incorporated in the information processing apparatus 100 in synchronization with the clock signal. The RTC 102 is a clock circuit that generates real time (year / month / day / hour / minute / second). The WDT 103 counts the clock signal, and outputs a CPU interrupt indicating the occurrence of an abnormality to the CPU 101 when the count value exceeds a predetermined value. Note that the CPU 101, the RTC 102, and the WDT 103 are configured on the same CPU board.

プログラムメモリ部104は情報処理装置100を制御するプログラムを格納する。メモリ部105は、種々のデータを格納する。メモリ部105は、揮発性メモリで構成しても良く、例えば、EEPROMあるいはフラッシュROMなどのデータの書き込み及び書換えが可能な不揮発性のメモリで構成しても良い。   The program memory unit 104 stores a program for controlling the information processing apparatus 100. The memory unit 105 stores various data. The memory unit 105 may be composed of a volatile memory, for example, a nonvolatile memory such as an EEPROM or a flash ROM that can write and rewrite data.

プログラムメモリ部104は、アプリケーション部106及びタイムスタンプ取得部107を有している。そして、タイムスタンプ取得部107には、時刻更新処理部108及びタイムスタンプ生成処理部109が設けられている。アプリケーション部106は、情報処理装置100を制御するアプリケーションプログラムである。なお、タイムスタンプの取得に関しては、タイムスタンプ取得部107が実行する。時刻更新処理部108及びタイムスタンプ生成処理部109については後で詳細に説明する。   The program memory unit 104 includes an application unit 106 and a time stamp acquisition unit 107. The time stamp acquisition unit 107 is provided with a time update processing unit 108 and a time stamp generation processing unit 109. The application unit 106 is an application program that controls the information processing apparatus 100. The time stamp acquisition unit 107 executes time stamp acquisition. The time update processing unit 108 and the time stamp generation processing unit 109 will be described in detail later.

図2は、実施の形態のウオッチドッグタイマの動作について説明するための図である。図2の横軸は経過時間を表し、縦軸はWDT103によるカウント値を表している。そして、このカウント値には、エラーとなる閾値が設定されている。   FIG. 2 is a diagram for explaining the operation of the watchdog timer according to the embodiment. The horizontal axis in FIG. 2 represents the elapsed time, and the vertical axis represents the count value by the WDT 103. The count value is set with an error threshold.

情報処理装置100が起動後、WDT103は、サイクリックに起動してカウントを加算する。WDT103が、カウントする周期は、例えばCPUのクロック周波数に対応するμ秒オーダである。一方、アプリケーション部106は所定周期で起動して、WDT103にカウント値のリセットを指示する。リセット指示を受け取ったWDT103は、カウント値をリセットして、新しく0からカウントを開始する。   After the information processing apparatus 100 is activated, the WDT 103 is cyclically activated and adds a count. The period counted by the WDT 103 is, for example, on the order of μ seconds corresponding to the clock frequency of the CPU. On the other hand, the application unit 106 is activated at a predetermined cycle and instructs the WDT 103 to reset the count value. Receiving the reset instruction, the WDT 103 resets the count value and newly starts counting from zero.

図2に示すように、カウント値は時間間隔C1、C2、C3・・・でリセットされるため、カウント値が閾値に達することはない。このとき、時間間隔を、例えば、m(ミリ)秒オーダに設定する。アプリケーション部106は、情報処理装置100が正常に稼動しているときは、設定された時間間隔でリセット指示を出力することができる。しかし、情報処理装置100が処理を続行できないような異常状態に陥った場合は、アプリケーション部106が、リセット指示を出力することができなくなる。その結果、カウント値が閾値をオーバし、WDT103はCPU101に対して、例外(異常状態発生)の割り込みを出力する。   As shown in FIG. 2, the count value is reset at the time intervals C1, C2, C3..., And thus the count value does not reach the threshold value. At this time, the time interval is set to m (millisecond) order, for example. The application unit 106 can output a reset instruction at a set time interval when the information processing apparatus 100 is operating normally. However, if the information processing apparatus 100 falls into an abnormal state where it cannot continue processing, the application unit 106 cannot output a reset instruction. As a result, the count value exceeds the threshold value, and the WDT 103 outputs an exception (abnormal state occurrence) interrupt to the CPU 101.

本実施の形態では、このWDT103を利用して微細なタイムスタンプを取得する。   In this embodiment, a fine time stamp is acquired using the WDT 103.

図3は、本実施の形態の時刻更新処理部108の動作手順を示す図である。時刻更新処理部108は、アプリケーション部106がリセット指示を出力する際に起動する。   FIG. 3 is a diagram illustrating an operation procedure of the time update processing unit 108 according to the present embodiment. The time update processing unit 108 is activated when the application unit 106 outputs a reset instruction.

ステップS01において、時刻更新処理部108はRTC102から実時間(RTC値)を取得する。そして、取得したRTC値を内部変数のTnに代入する。ステップS02において、取得したRTC値(Tn)と過去の所定時に取得したRTC値(T)とが等しいかどうかを調べる。ここでRTC値は、最小単位が百ミリ秒〜秒である。従って、WDT103が取り扱うμ秒単位でのカウント値とはオーダが異なる。このため、RTC値の最小単位が桁上がりを生ずるまでには、時刻更新処理部108が複数回起動する。   In step S <b> 01, the time update processing unit 108 acquires real time (RTC value) from the RTC 102. Then, the acquired RTC value is substituted into the internal variable Tn. In step S02, it is checked whether the acquired RTC value (Tn) is equal to the RTC value (T) acquired at a predetermined time in the past. Here, the minimum unit of the RTC value is 100 milliseconds to seconds. Therefore, the order is different from the count value in units of μ seconds handled by the WDT 103. For this reason, the time update processing unit 108 is activated a plurality of times until the minimum unit of the RTC value causes a carry.

取得したRTC値(Tn)と過去の所定時に取得したRTC値(T)とが等しくない場合(S02 No)、Tを今回取得したRTC値(Tn)で更新する。即ち、RTC値の最小単位が桁上がりを生じた場合はその最新のRTC値を格納する。そして、累積カウント値(C)を0クリアする。   When the acquired RTC value (Tn) is not equal to the RTC value (T) acquired at a predetermined time in the past (No in S02), T is updated with the RTC value (Tn) acquired this time. That is, when the minimum unit of the RTC value has a carry, the latest RTC value is stored. Then, the accumulated count value (C) is cleared to zero.

取得したRTC値(Tn)と過去の所定時に取得したRTC値(T)とが等しい場合(S02 Yes)、ステップS05において、WDT103がカウントしたカウント値を取得し、その値を内部変数Cnに代入する。このカウント値Cnは図2の時間間隔C1、C2、C3、・・・に対応した値である。そして、ステップS06において、累積カウント値(C)にカウント値Cnを加算する。従って、累積カウント値(C)は、RTC値の最小単位が桁上がりを生じたことを把握した以降のカウント値の累積値である。RTC値(T)は、RTC値の最小単位が桁上がりを生じたことを把握した際のRTC値である。   When the acquired RTC value (Tn) is equal to the RTC value (T) acquired at a predetermined time in the past (Yes in S02), the count value counted by the WDT 103 is acquired in step S05, and the value is substituted into the internal variable Cn. To do. The count value Cn is a value corresponding to the time intervals C1, C2, C3,. In step S06, the count value Cn is added to the cumulative count value (C). Therefore, the cumulative count value (C) is a cumulative value of the count value after grasping that the minimum unit of the RTC value has caused a carry. The RTC value (T) is an RTC value when grasping that the minimum unit of the RTC value has caused a carry.

なお、累積カウント値(C)及びRTC値(T)は、メモリ部105に格納され、アプリケーション部106によって適宜参照されることができる。   The accumulated count value (C) and the RTC value (T) are stored in the memory unit 105 and can be referred to as appropriate by the application unit 106.

図4は、本実施の形態のタイムスタンプ生成処理部109の動作手順を示す図である。タイムスタンプ生成処理部109は、タイムスタンプを生成する要求が出された際に起動する。例えば、所定のイベントが発生して、そのときのタイムスタンプを取得したい場合にタイムスタンプ生成処理部109を起動する。   FIG. 4 is a diagram illustrating an operation procedure of the time stamp generation processing unit 109 according to the present embodiment. The time stamp generation processing unit 109 is activated when a request for generating a time stamp is issued. For example, when a predetermined event occurs and it is desired to acquire a time stamp at that time, the time stamp generation processing unit 109 is activated.

ステップS11において、WDT103がカウントしたカウント値を取得し、その値を内部変数Cmに代入する。ステップS12において、微細時間補正値(t)を式(1)に基いて算出する。
t=(C +Cm)/周波数 ・・・式(1)
ここで、周波数は、WDT103の1カウント時間の逆数である。例えば、WDT103は、CPUのクロック周波数でカウントするように構成しても良く、CPUのクロック周波数を分周(例えば、1/2、1/3、・・など)した周波数でカウントするように構成しても良い。また、1カウントに要する時間Δtを用いて微細時間補正値(t)を算出しても良い。
式(1)で求めた微細時間補正値(t)は、RTC値の最小単位が桁上がりを生じたことを把握してからの経過時間を表している。
In step S11, the count value counted by the WDT 103 is acquired, and the value is substituted into the internal variable Cm. In step S12, the fine time correction value (t) is calculated based on the equation (1).
t = (C + Cm) / frequency (1)
Here, the frequency is the reciprocal of one count time of the WDT 103. For example, the WDT 103 may be configured to count at the CPU clock frequency, or configured to count at a frequency obtained by dividing the CPU clock frequency (for example, 1/2, 1/3,...). You may do it. Further, the fine time correction value (t) may be calculated using the time Δt required for one count.
The fine time correction value (t) obtained by the equation (1) represents an elapsed time after grasping that the minimum unit of the RTC value has caused a carry.

ステップS13において、タイムスタンプ値Tsを式(2)に基いて算出する。
Ts=T +t 式(2)
この式(2)によれば、タイムスタンプ値は、WDT103が取り扱うμ秒単位での値として表される。
In step S13, the time stamp value Ts is calculated based on the equation (2).
Ts = T + t Formula (2)
According to this equation (2), the time stamp value is expressed as a value in units of μ seconds handled by the WDT 103.

〔第2の実施の形態〕
第2の実施の形態では、時刻更新処理部の動作手順が第1の実施の形態と異なっている。従って、第1の実施の形態と同一の部位には同一の符号を付して、その詳細の説明は省略する。
[Second Embodiment]
In the second embodiment, the operation procedure of the time update processing unit is different from that of the first embodiment. Accordingly, the same parts as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

第1の実施の形態では、時刻更新処理部108はアプリケーション部106がリセット指示を出力する際に起動する。従って、RTC値の最小単位が桁上がりを生じたタイミングとは正確には一致していない。しかし、第1の実施の形態で算出したタイムスタンプの精度は、従来のRTC値によるタイムスタンプの精度に比べるとオーダが異なるほど格段に改善されているため、適用対象によっては十分な精度を確保している。   In the first embodiment, the time update processing unit 108 is activated when the application unit 106 outputs a reset instruction. Therefore, the RTC value minimum unit does not exactly match the timing at which the carry occurs. However, the accuracy of the time stamp calculated in the first embodiment is significantly improved as the order is different from the accuracy of the time stamp according to the conventional RTC value, so that sufficient accuracy is ensured depending on the application target. is doing.

第2の実施の形態では、更にタイムスタンプの精度を向上させる。第2の実施の形態では、時刻更新処理部108は、時刻更新処理部108a及び時刻更新処理部108bで構成される。   In the second embodiment, the accuracy of the time stamp is further improved. In the second embodiment, the time update processing unit 108 includes a time update processing unit 108a and a time update processing unit 108b.

図5は、第2の実施の形態の時刻更新処理部108aの動作手順を示す図である。時刻更新処理部108aは、RTC値の最小単位が桁上がりを生じた際に起動する。   FIG. 5 is a diagram illustrating an operation procedure of the time update processing unit 108a according to the second embodiment. The time update processing unit 108a is activated when a carry occurs in the minimum unit of the RTC value.

ステップS21において、時刻更新処理部108aはRTC102から実時間(RTC値)を取得する。そして、取得したRTC値を内部変数のTnに代入する。ステップS22において、取得したRTC値(Tn)を前回RTC値の最小単位が桁上がりを生じた時に取得したRTC値(T)に代入する。ステップS23において、累積カウント値(C)を0クリアする。ステップS24において、WDT103のカウント値を取得して桁上がり時のカウント値(Ck)に代入する。   In step S <b> 21, the time update processing unit 108 a acquires real time (RTC value) from the RTC 102. Then, the acquired RTC value is substituted into the internal variable Tn. In step S22, the acquired RTC value (Tn) is substituted into the RTC value (T) acquired when the last unit of the RTC value has a carry. In step S23, the accumulated count value (C) is cleared to zero. In step S24, the count value of the WDT 103 is acquired and substituted for the carry count value (Ck).

なお、累積カウント値(C)、RTC値(T)、及び桁上がり時のカウント値(Ck)は、メモリ部105に格納され、アプリケーション部106によって適宜参照されることができる。   The accumulated count value (C), the RTC value (T), and the carry count value (Ck) are stored in the memory unit 105 and can be referred to by the application unit 106 as appropriate.

図6は、第2の実施の形態の時刻更新処理部108bの動作手順を示す図である。時刻更新処理部108bは、アプリケーション部106がサイクリックに起動してリセット指示を出力する際に起動する。   FIG. 6 is a diagram illustrating an operation procedure of the time update processing unit 108b according to the second embodiment. The time update processing unit 108b is activated when the application unit 106 is cyclically activated and outputs a reset instruction.

ステップS25において、時刻更新処理部108bは、WDT103がカウントしたカウント値を取得し、その値を内部変数Cnに代入する。このカウント値Cnは図2の時間間隔C1、C2、C3、・・・に対応した値である。そして、ステップS26において、累積カウント値(C)にカウント値Cnを加算し、さらに桁上がり時のカウント値(Ck)を減算する。従って、累積カウント値(C)は、RTC値の最小単位が桁上がりを生じた以降のカウント値の累積値である。ステップS27において、桁上がり時のカウント値(Ck)を0クリアする。   In step S25, the time update processing unit 108b acquires the count value counted by the WDT 103, and substitutes the value into the internal variable Cn. The count value Cn is a value corresponding to the time intervals C1, C2, C3,. In step S26, the count value Cn is added to the accumulated count value (C), and the count value (Ck) at the time of carry is further subtracted. Therefore, the cumulative count value (C) is the cumulative value of the count value after the minimum unit of the RTC value has been raised. In step S27, the carry count value (Ck) is cleared to zero.

なお、累積カウント値(C)、RTC値(T)、及び桁上がり時のカウント値(Ck)は、メモリ部105に格納され、アプリケーション部106によって適宜参照されることができる。   The accumulated count value (C), the RTC value (T), and the carry count value (Ck) are stored in the memory unit 105 and can be referred to by the application unit 106 as appropriate.

なお、第2の実施の形態のタイムスタンプ処理部の動作は、第1の実施の形態のタイムスタンプ処理部の動作と同じであるため、その詳細の説明は省略する。   The operation of the time stamp processing unit according to the second embodiment is the same as the operation of the time stamp processing unit according to the first embodiment, and thus detailed description thereof is omitted.

第2の実施の形態によれば、RTC102から最小桁の桁上がり信号を入力する必要があるが、RTC102を高精度のものに更新する必要はないため、安価に高精度のタイムスタンプを取得することができる。   According to the second embodiment, it is necessary to input a carry signal of the minimum digit from the RTC 102. However, since it is not necessary to update the RTC 102 to a high-accuracy one, a high-accuracy time stamp is obtained at a low cost. be able to.

なお、上述の各実施の形態で説明した機能は、ハードウェアを用いて構成するに留まらず、ソフトウェアを用いて各機能を記載したプログラムをコンピュータに読み込ませて実現することもできる。また、各機能は、適宜ソフトウェア、ハードウェアのいずれかを選択して構成するものであっても良い。   Note that the functions described in the above-described embodiments are not limited to being configured using hardware, and can be realized by causing a computer to read a program describing each function using software. Each function may be configured by appropriately selecting either software or hardware.

尚、本発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。
上記実施形態に開示されている複数の構成要素の適宜な組み合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。更に、異なる実施形態に亘る構成要素を適宜組み合せてもよい。
Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage.
Various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, you may combine suitably the component covering different embodiment.

100…情報処理装置、101…CPU、102…RTC、103…WDT、104…プログラムメモリ部、105…メモリ部、106…アプリケーション部、107…タイムスタンプ取得部、108、108a、108b…時刻更新処理部、109…タイムスタンプ生成処理部。   DESCRIPTION OF SYMBOLS 100 ... Information processing apparatus 101 ... CPU, 102 ... RTC, 103 ... WDT, 104 ... Program memory part, 105 ... Memory part, 106 ... Application part, 107 ... Time stamp acquisition part, 108, 108a, 108b ... Time update process 109, a time stamp generation processing unit.

Claims (6)

計時回路の計時情報の最小桁が桁上がりを生じたことを把握した際の当該計時情報T、前記計時情報の最小桁が桁上がりを生じたことを把握してからのウオッチドッグタイマの累積カウント値C、所定イベント発生の際のウオッチドッグタイマのカウント値Cm、ウオッチドッグタイマの1カウントに要する時間Δtを用いて、下記式によりタイムスタンプ値Tsを算出することを特徴とするタイムスタンプ取得装置。
Ts=T+(C+Cm)×Δt
Accumulated counts of the watchdog timer after grasping that the timekeeping information T when the minimum digit of the timekeeping information of the timekeeping circuit has generated a carry, the minimum digit of the timekeeping information having generated a carry A time stamp acquisition device that calculates a time stamp value Ts by the following equation using a value C, a count value Cm of a watchdog timer when a predetermined event occurs, and a time Δt required for one count of the watchdog timer .
Ts = T + (C + Cm) × Δt
ウオッチドッグタイマのカウント値をリセットする際、前記計時情報の最小桁が桁上がりを生じたか否かを把握することを特徴とする請求項1に記載のタイムスタンプ取得装置。   2. The time stamp acquisition apparatus according to claim 1, wherein when the count value of the watchdog timer is reset, it is determined whether or not a carry has occurred in the minimum digit of the time information. 前記計時回路からの信号によって前記計時情報の最小桁が桁上がりを生じたことを把握することを特徴とする請求項1に記載のタイムスタンプ取得装置。   2. The time stamp acquisition apparatus according to claim 1, wherein the time stamp acquisition apparatus recognizes that a carry has occurred in a minimum digit of the time measurement information based on a signal from the time measurement circuit. 計時回路の計時情報の最小桁が桁上がりを生じたことを把握した際の当該計時情報Tを取得する第1の時刻更新処理部と、
ウオッチドッグタイマのカウント値をリセットする際、リセット前のカウント値を取得して前記計時情報の最小桁が桁上がりを生じたことを把握してからの累積カウント値Cを算出する第2の時刻更新処理部と、
所定イベント発生の際、ウオッチドッグタイマのカウント値Cmを取得して前記計時情報の最小桁が桁上がりを生じたことを把握してからの累積カウント値(C+Cm)を算出し、累積カウント値(C+Cm)、1カウントに要する時間Δt、前記計時情報Tからタイムスタンプ値Tsを算出するタイムスタンプ生成処理部と
を備えたことを特徴とするタイムスタンプ取得装置。
A first time update processing unit for acquiring the time information T when the minimum digit of the time information of the time circuit grasps that a carry has occurred;
When resetting the count value of the watchdog timer, the second time for calculating the cumulative count value C after acquiring the count value before resetting and grasping that the minimum digit of the timekeeping information has been raised An update processing unit;
When a predetermined event occurs, the count value Cm of the watchdog timer is acquired, and the cumulative count value (C + Cm) is calculated after grasping that the minimum digit of the timekeeping information has generated a carry. C + Cm) A time stamp acquisition apparatus comprising: a time Δt required for one count; and a time stamp generation processing unit that calculates a time stamp value Ts from the timekeeping information T.
計時回路の計時情報の最小桁が桁上がりを生じたことを把握した際の当該計時情報T、前記計時情報の最小桁が桁上がりを生じたことを把握してからのウオッチドッグタイマの累積カウント値C、所定イベント発生の際のウオッチドッグタイマのカウント値Cm、ウオッチドッグタイマの1カウントに要する時間Δtを用いて、下記式によりタイムスタンプ値Tsを算出することを特徴とするタイムスタンプ取得方法。
Ts=T+(C+Cm)×Δt
Accumulated counts of the watchdog timer after grasping that the timekeeping information T when the minimum digit of the timekeeping information of the timekeeping circuit has generated a carry, the minimum digit of the timekeeping information having generated a carry A time stamp acquisition method, wherein a time stamp value Ts is calculated by the following equation using a value C, a count value Cm of a watchdog timer when a predetermined event occurs, and a time Δt required for one count of the watchdog timer .
Ts = T + (C + Cm) × Δt
計時回路の計時情報の最小桁が桁上がりを生じたことを把握した際の当該計時情報Tを取得し、
ウオッチドッグタイマのカウント値をリセットする際、リセット前のカウント値を取得して前記計時情報の最小桁が桁上がりを生じたことを把握してからの累積カウント値Cを算出し、
所定イベント発生の際、ウオッチドッグタイマのカウント値Cmを取得して前記計時情報の最小桁が桁上がりを生じたことを把握してからの累積カウント値(C+Cm)を算出し、
累積カウント値(C+Cm)、1カウントに要する時間Δt、前記計時情報Tからタイムスタンプ値Tsを算出することを特徴とするタイムスタンプ取得方法。
Acquire the time information T when the minimum digit of the time information of the time circuit grasps that the carry has occurred,
When resetting the count value of the watchdog timer, the cumulative count value C after obtaining the count value before resetting and grasping that the minimum digit of the timekeeping information has been generated is calculated,
When a predetermined event occurs, the count value Cm of the watchdog timer is acquired and the cumulative count value (C + Cm) is calculated after grasping that the minimum digit of the timekeeping information has been raised,
A time stamp acquisition method, wherein a time stamp value Ts is calculated from a cumulative count value (C + Cm), a time Δt required for one count, and the time information T.
JP2011021694A 2011-02-03 2011-02-03 Time stamp acquisition device and method Withdrawn JP2012165048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011021694A JP2012165048A (en) 2011-02-03 2011-02-03 Time stamp acquisition device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011021694A JP2012165048A (en) 2011-02-03 2011-02-03 Time stamp acquisition device and method

Publications (1)

Publication Number Publication Date
JP2012165048A true JP2012165048A (en) 2012-08-30

Family

ID=46844050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011021694A Withdrawn JP2012165048A (en) 2011-02-03 2011-02-03 Time stamp acquisition device and method

Country Status (1)

Country Link
JP (1) JP2012165048A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016217739A (en) * 2015-05-14 2016-12-22 株式会社ケアコム System time correction device and system time correction method
CN106776091A (en) * 2016-11-28 2017-05-31 浙江宇视科技有限公司 Watchdog circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016217739A (en) * 2015-05-14 2016-12-22 株式会社ケアコム System time correction device and system time correction method
CN106776091A (en) * 2016-11-28 2017-05-31 浙江宇视科技有限公司 Watchdog circuit
CN106776091B (en) * 2016-11-28 2020-09-01 浙江宇视科技有限公司 Watchdog circuit

Similar Documents

Publication Publication Date Title
EP2369438B1 (en) Calibration method of a real time clock signal
RU2016107055A (en) ELECTRONIC DEVICE, METHOD OF CORRECTION AND TIME CORRECTION PROGRAM
JP5626199B2 (en) Electronic timepiece and method for detecting operation of electronic timepiece
JP2007078405A (en) Timing program of software timepiece
US9600023B2 (en) Method and data processing unit for providing a timestamp
JP2012165048A (en) Time stamp acquisition device and method
JP6605863B2 (en) Electronic device, method, program, and protection system
JP5936716B2 (en) Signal processing device
US20150378360A1 (en) Passive timing of asynchronous imu attitude data
CN109752738A (en) Target IMU and GNSS data synchronous method when based on standard
JP2007178363A (en) Clocking system, time service providing device and time service providing system
JP4616054B2 (en) Measuring system
CN108873669B (en) UTC time calculation method of computer synchronous clock
JP2011169750A (en) Electronic timepiece, method and program of processing the same
US8688404B1 (en) Method and apparatus of common time-stamping
JP6455247B2 (en) Motor control circuit and electronic timepiece
JP6102618B2 (en) Periodic noise elimination A / D converter
JP2006047101A (en) Timepiece precision correction device
JP5835245B2 (en) Time supply device, time supply method and program
US20230089659A1 (en) Clock calibration in a computing system using temperature sensors
JP2009032142A (en) Real time clock
JP2015055884A (en) Plant monitoring system and plant monitoring method
JP2010154475A (en) Network system
JP6814660B2 (en) A system timer and a surveying instrument equipped with the same system timer
JP5821807B2 (en) Time correction device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131205

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131212

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131219

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140109

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140513