JP2023078537A - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP2023078537A
JP2023078537A JP2021191698A JP2021191698A JP2023078537A JP 2023078537 A JP2023078537 A JP 2023078537A JP 2021191698 A JP2021191698 A JP 2021191698A JP 2021191698 A JP2021191698 A JP 2021191698A JP 2023078537 A JP2023078537 A JP 2023078537A
Authority
JP
Japan
Prior art keywords
value
counter
specified
specified value
maximum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2021191698A
Other languages
Japanese (ja)
Inventor
光政 安部
Mitsumasa Abe
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2021191698A priority Critical patent/JP2023078537A/en
Publication of JP2023078537A publication Critical patent/JP2023078537A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

To generate an appropriate pulse signal for synchronous processing using a counter.SOLUTION: A communication device comprises: a counter that is configured to increment a counter value at timing of an external clock, and to set the counter value to a predetermined minimum value when the counter value is more than or equal to a predetermined maximum value; a correction section that corrects the counter value of the counter; and a signal control section that outputs a pulse signal having a low level and a high level while switching the level when the counter value is more than or equal to a specified value by comparing the counter value of the counter with the predetermined specified value, and adds a predetermined value to the specified value to update. When correction to have a value less than the minimum value of the counter is performed by the correction section, or when the updated specified value is more than or equal to a predetermined maximum specified value which can be taken by the specified value, the signal control section does not output the pulse signal for a certain period based on the counter value.SELECTED DRAWING: Figure 9

Description

本発明は、時刻同期技術に関する。 The present invention relates to time synchronization technology.

近年、複数の機器で構成されるシステムにおいて、当該複数の機器間で同期を取って運用させる技術が、多分野にわたり利用されている。一例として、複数のカメラにより時刻同期して撮影された画像を用いて、リアルタイムで任意の視点の画像に切り替えて自由視点映像を作成する、スタジアムビジョンやボリュメトリックスタジオといった技術が挙げられる。 2. Description of the Related Art In recent years, in a system composed of a plurality of devices, a technique for synchronizing and operating the plurality of devices has been used in many fields. As an example, technologies such as stadium vision and volumetric studio can be used to create free-viewpoint video by switching in real time to an image of an arbitrary viewpoint using images captured with time synchronization by multiple cameras.

高品位な自由視点映像を得るには、各カメラの撮影タイミングが正確に同期している必要がある。そのため、例えば、各カメラの制御を行う同期通信装置(端末)間の時刻同期のための技術としてPTP(Precision Time Protocol)が用いられている。また、例えば、同期通信装置とカメラ間の同期にはPulse Per Second(PPS)信号やGenLock信号といった同期信号が用いられている。また、同期通信装置の内部クロックには、ジッタ等の誤差が含まれ得るため、同期信号を揃えるレファレンスとしてGPS(Global Positioning System)といった高精度な時計を持ち、自身の時刻を配信するタイムサーバが用いられうる。 In order to obtain high-quality free-viewpoint video, it is necessary to precisely synchronize the shooting timing of each camera. Therefore, for example, PTP (Precision Time Protocol) is used as a technique for time synchronization between synchronous communication devices (terminals) that control each camera. Further, for example, a synchronization signal such as a Pulse Per Second (PPS) signal or a GenLock signal is used for synchronization between a synchronous communication device and a camera. In addition, since the internal clock of a synchronous communication device may contain errors such as jitter, a time server that distributes its own time has a high-precision clock such as GPS (Global Positioning System) as a reference for aligning the synchronization signal. can be used.

同期信号の生成方法の1つに、カウンタを用いる方法がある。同期通信装置の内部クロックをカウントし、カウントした値(カウンタ値)を規定値と比較して出力の “0” (ローレベル)と “1” (ハイレベル)を切り替え、切り替え後に規定値に一定の値を加算する。この処理を繰り返すことで周期信号が生成される。カウンタ値は、必要に応じて、適宜加算・減算(補正)され、複数の同期通信装置でカウンタ値を揃えることで、当該複数の装置間で、位相が揃った周期信号を基にした同期信号が得られる。このカウンタの補正を行うための時刻を共有するのがPTP等の時刻同期プロトコルである。カウンタは有限数のビットで構成されているため、カウンタ値には最大値があり、最大値を超えると最小値にリセットされてカウントを継続する。 One method of generating the synchronization signal is to use a counter. Counts the internal clock of the synchronous communication device, compares the counted value (counter value) with the specified value, switches the output between “0” (low level) and “1” (high level), and after switching, the specified value is fixed. Add the value of A periodic signal is generated by repeating this process. The counter value is appropriately added/subtracted (corrected) as necessary, and by aligning the counter values in a plurality of synchronous communication devices, a synchronous signal based on a periodic signal whose phases are aligned among the plurality of devices can be generated. is obtained. A time synchronization protocol such as PTP shares the time for correcting this counter. Since the counter consists of a finite number of bits, the counter value has a maximum value, after which it resets to a minimum value and continues counting.

特許文献1には、外部から補正を受け、最大値を超えると最小値にリセットされてカウントを継続するカウンタにおいて、リセットをまたいでカウンタを補正する手法が記載されている。 Japanese Patent Laid-Open No. 2002-200002 describes a method of correcting a counter across resets in a counter that receives correction from the outside and is reset to a minimum value and continues counting when the maximum value is exceeded.

特開2020-148120号公報Japanese Patent Application Laid-Open No. 2020-148120

しかしながら、特許文献1に記載の手法では以下の課題が発生する。例えば、カウンタのカウンタ値の減算することにより当該カウンタを補正する場合、減算する値が現在のカウンタ値よりも大きいと、カウンタ値は現在のカウンタ値より大きくなる。このような場合には、正確な周期信号、すなわち同期信号が生成できなくなる。また、カウンタ値と規定値との比較のタイミングによっては、正確な同期信号が生成できない場合もある。 However, the method described in Patent Document 1 has the following problems. For example, when correcting a counter by subtracting its counter value, if the value to be subtracted is greater than the current counter value, the counter value will be greater than the current counter value. In such a case, it becomes impossible to generate an accurate periodic signal, that is, a synchronizing signal. Also, depending on the timing of comparison between the counter value and the specified value, it may not be possible to generate an accurate synchronization signal.

本発明は上記課題に鑑みてなされたものであり、カウンタを用いて、同期処理のための適切なパルス信号を生成するための技術を提供することを目的とする。 SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and it is an object of the present invention to provide a technique for generating an appropriate pulse signal for synchronization processing using a counter.

上記目的を達成するための一手段として、本発明の通信装置は以下の構成を有する。すなわち、通信装置であって、外部クロックのタイミングでカウンタ値をインクリメントし、前記カウンタ値が所定の最大値以上となった場合に前記カウンタ値を所定の最小値に設定するように構成されたカウンタと、前記カウンタの前記カウンタ値を補正する補正部と、前記カウンタの前記カウンタ値を所定の規定値と比較して、前記カウンタ値が前記規定値以上となった場合に、ローレベルとハイレベルを有するパルス信号のレベルを切り替えて出力し、前記規定値に所定の値を加算して更新する信号制御部と、を有し、前記補正部により前記カウンタの前記最小値を下回るような補正が行われた場合、もしくは、前記更新された規定値が前記規定値の取りうる所定の最大の規定値以上となった場合、前記信号制御部は、前記パルス信号の出力を、前記カウンタ値に基づく一定期間、行わない。 As one means for achieving the above object, the communication device of the present invention has the following configuration. That is, the communication device is a counter configured to increment a counter value at the timing of an external clock, and set the counter value to a predetermined minimum value when the counter value exceeds a predetermined maximum value. a correction unit for correcting the counter value of the counter; and a low level and a high level when the counter value of the counter is equal to or greater than the specified value by comparing the counter value of the counter with the specified value. and a signal control unit for switching and outputting the level of the pulse signal having a pulse signal, and updating by adding a predetermined value to the specified value, and the correction unit performs correction such that the counter falls below the minimum value. or if the updated specified value becomes equal to or greater than a predetermined maximum specified value that the specified value can take, the signal control unit outputs the pulse signal based on the counter value Not for a period of time.

本発明によれば、カウンタを用いて、同期処理のための適切なパルス信号を生成することが可能となる。 According to the present invention, a counter can be used to generate an appropriate pulse signal for synchronization processing.

図1は、同期撮影システムの構成例を示す。FIG. 1 shows a configuration example of a synchronous imaging system. 図2は、同期通信装置の内部構成例を示す。FIG. 2 shows an example of the internal configuration of a synchronous communication device. 図3は、同期信号生成部の内部構成例を示す。FIG. 3 shows an internal configuration example of the synchronization signal generator. 図4は、同期信号生成部における第2カウンタの内部構成例を示す。FIG. 4 shows an internal configuration example of the second counter in the synchronization signal generator. 図5は、第2カウンタにおける補正カウンタの内部構成例を示す。FIG. 5 shows an internal configuration example of a correction counter in the second counter. 図6は、第2カウンタにおけるパルス出力部の内部構成例を示す。FIG. 6 shows an internal configuration example of a pulse output section in the second counter. 図7は、パルス信号生成のタイミング波形の一例を示す。FIG. 7 shows an example of timing waveforms for pulse signal generation. 図8は、パルス信号生成のタイミング波形の別の例を示す。FIG. 8 shows another example of timing waveforms for pulse signal generation. 第1実施形態による同期通信装置の同期信号生成部における第2カウンタにより実行される処理のフローチャートである。4 is a flow chart of processing executed by a second counter in the synchronization signal generator of the synchronous communication device according to the first embodiment; 第2実施形態による同期通信装置の同期信号生成部における第2カウンタにより実行される処理のフローチャートである。9 is a flow chart of processing executed by a second counter in a synchronization signal generator of the synchronous communication device according to the second embodiment;

以下、添付図面を参照して、本発明を実施するための実施形態について詳細に説明する。なお、以下に説明する実施形態は、本発明の実現手段としての一例であり、本発明が適用される装置の構成や各種条件によって適宜修正または変更されるべきものであり、本発明は以下の実施形態に限定されるものではない。また、本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。 Embodiments for carrying out the present invention will be described in detail below with reference to the accompanying drawings. The embodiments described below are examples of means for realizing the present invention, and should be appropriately modified or changed according to the configuration of the apparatus to which the present invention is applied and various conditions. It is not limited to the embodiment. Also, not all combinations of features described in the present embodiment are essential for the solution means of the present invention.

<第1実施形態>
図1は、第1実施形態による同期撮影システム100の構成例である。同期撮影システム100は、タイムサーバ140、スイッチングハブ130、同期通信装置110-1~110-m(m>1)、111-1~111-n(n>1)、112、撮影装置120-1~120-m、121-1~121-n、122を含んで構成される。図1に示すように、同期通信装置110-1~110-m、111-1~111-n、112のそれぞれは、撮影装置120-1~120-m、121-1~121-n、122のそれぞれと接続されている。なお、以下の説明において、同期通信装置110-1~110-mを同期通信装置110、同期通信装置111-1~111-nを同期通信装置111と総称する場合がある。また、撮影装置120-1~120-m、121-1~121-nを撮影装置120、121と総称する場合がある。
<First embodiment>
FIG. 1 is a configuration example of a synchronized imaging system 100 according to the first embodiment. The synchronous imaging system 100 includes a time server 140, a switching hub 130, synchronous communication devices 110-1 to 110-m (m>1), 111-1 to 111-n (n>1), 112, and an imaging device 120-1. 120-m, 121-1 to 121-n, 122. As shown in FIG. 1, each of the synchronous communication devices 110-1 to 110-m, 111-1 to 111-n, and 112 includes the imaging devices 120-1 to 120-m, 121-1 to 121-n, and 122. connected to each of the In the following description, the synchronous communication devices 110-1 to 110-m may be collectively referred to as the synchronous communication device 110, and the synchronous communication devices 111-1 to 111-n may be collectively referred to as the synchronous communication device 111. Also, the imaging devices 120-1 to 120-m and 121-1 to 121-n may be collectively referred to as the imaging devices 120 and 121 in some cases.

タイムサーバ140は、正確な時刻を有する時刻源(時計)を有し、当該時刻の時刻情報を、スイッチングハブ130を通じて、同期通信装置110-1、111-1、121に送信する。同期通信装置110-1~110-m、111-1~111-n、112同士は、当該時刻情報に基づき、ネットワークを介して時刻を同期し、データを送受信している。当該ネットワークは、Ethernet(登録商標、以下省略)であるIEEE標準準拠のGbE(ギガビットイーサーネット)や10GbEや100GbEであるが、インターコネクト(Infiniband)、産業用イーサーネット等を組合せて構成してもよい。また、これらに限定されず、他の種別のネットワークを使用してもよい。 The time server 140 has a time source (clock) having accurate time, and transmits the time information of the time to the synchronous communication devices 110-1, 111-1, 121 through the switching hub 130. Based on the time information, the synchronous communication devices 110-1 to 110-m, 111-1 to 111-n, and 112 synchronize their time via the network and transmit and receive data. The network is GbE (Gigabit Ethernet), 10GbE, or 100GbE conforming to the IEEE standard, which is Ethernet (registered trademark, hereinafter omitted), but may be configured by combining interconnect (Infiniband), industrial Ethernet, and the like. . Moreover, it is not limited to these, and other types of networks may be used.

タイムサーバ140は、前述のように、正確な時刻を有する時刻源を有し、当該時刻の時刻情報を時刻同期プロトコルに従って配信するサーバである。タイムサーバ140の時刻源として、例えば、GPSや原子時計が使用される。このほかに、OCXO(Oven Controlled X‐tal Oscilator)等他の種類の時刻源が使用されてもよい。タイムサーバ140における時刻源は、同期通信装置110、111、112が内部に有する時計よりも精度が高いものが好ましい。 As described above, the time server 140 is a server that has a time source that has accurate time and distributes time information of that time according to the time synchronization protocol. As the time source of the time server 140, for example, GPS or atomic clock is used. Other types of time sources may also be used, such as OCXOs (Oven Controlled X-tal Oscillators). The time source in the time server 140 preferably has higher accuracy than the clocks inside the synchronous communication devices 110 , 111 , 112 .

本実施形態では、時刻情報を配信する時刻同期プロトコルとして、PTP(Precision Time Protocol)を使用する。なお、他の時刻同期プロトコル、例えば、IEEE802.1標準のAVB(Audio Video Bridging)やPPS(Pulse Per Second)信号を使用することも可能である。また、冗長性確保のために、タイムサーバ140を複数台使用してもよい。 In this embodiment, PTP (Precision Time Protocol) is used as a time synchronization protocol for distributing time information. Note that other time synchronization protocols such as IEEE802.1 standard AVB (Audio Video Bridging) and PPS (Pulse Per Second) signals can also be used. Also, a plurality of time servers 140 may be used to ensure redundancy.

同期通信装置110、111、112は全て同じ構成を有しうる。同期通信装置110、111、112のそれぞれは内部に時計を有し、受信した時刻情報に従って自身の時刻情報を更新する。また、同期通信装置110、111、112は、後述するように撮影同期信号を生成し、撮影装置120、121、122のそれぞれに対し、当該撮影同期信号を含めた撮影制御信号を送信する。
同期通信装置110、111、112は、時刻情報を受信できない間は、自身の時計を用いて時刻情報を更新して同期信号を生成することができる。
Synchronous communication devices 110, 111, 112 may all have the same configuration. Each of the synchronous communication devices 110, 111, and 112 has an internal clock and updates its own time information according to the received time information. In addition, the synchronous communication devices 110, 111, and 112 generate shooting synchronization signals as described later, and transmit shooting control signals including the shooting synchronization signals to the shooting devices 120, 121, and 122, respectively.
While the synchronous communication devices 110, 111, and 112 cannot receive the time information, they can use their clocks to update the time information and generate the synchronization signal.

ここで、同期通信装置110、111、112のそれぞれにより撮影装置120、121、122のそれぞれへ送信される撮影制御信号について説明する。撮影制御信号は、撮影装置120、121、122に対する設定情報や撮影同期信号を含む信号である。撮影同期信号には、撮影装置120、121、122に正確な撮影間隔を伝えるパルスであるGenLock信号、Timecode信号等が含まれる。撮影装置120、121、122は、当該撮影同期信号を基準としてタイミングを揃えて撮影することで、これらの撮影装置の間で、一定周期にて撮影時刻が揃った撮影が可能となる。 Here, the imaging control signals transmitted to the imaging devices 120, 121 and 122 by the synchronous communication devices 110, 111 and 112 will be described. The shooting control signal is a signal including setting information for the shooting devices 120, 121, and 122 and a shooting synchronization signal. The imaging synchronization signal includes a GenLock signal, a Timecode signal, etc., which are pulses for transmitting accurate imaging intervals to the imaging devices 120 , 121 , 122 . The imaging devices 120, 121, and 122 perform imaging at the same timing based on the imaging synchronization signal, so that these imaging devices can perform imaging at the same imaging time in a constant cycle.

図1に示す同期撮影システムにおいて、同期通信装置110-1~110-mはデイジーチェーン接続されている。同様に、同期通信装置111-1~111-nはデイジーチェーン接続されている。なお、同期通信装置110、111、112の構成は、図1の構成に限定されず、同期通信装置110-1、111-1、112のみがスイッチングハブ130を用いてスター結線されていてもよい。また、冗長性確保のために、同期通信装置110-1~110-m(m>1)、111-1~111-n(n>1)、112の接続が二重化されていても良い。 In the synchronous imaging system shown in FIG. 1, synchronous communication devices 110-1 to 110-m are daisy-chained. Similarly, synchronous communication devices 111-1 to 111-n are daisy-chained. Note that the configuration of the synchronous communication devices 110, 111, and 112 is not limited to the configuration shown in FIG. . Further, in order to ensure redundancy, the connections of the synchronous communication devices 110-1 to 110-m (m>1), 111-1 to 111-n (n>1), and 112 may be duplicated.

スイッチングハブ130は、時刻同期プロトコルを維持しつつ、タイムサーバ140と、同期通信装置110、111、112とを接続するハブである。前述のように、本実施形態では時刻同期プロトコルとしてPTPを使用し、PTPに従い、タイムサーバ140はTC(Transparent Clock)機能を有する。TC機能は、時刻情報(PTPパケット)を中継する際にパケットの中継にかかる時間などを当該時刻情報に追加するための機能である。
スイッチングハブ130は、複数のタイムサーバ140を用いる場合や、同期通信装置110-1、111-1、112をスター接続する際等には必要となるが、タイムサーバ140が複数ポートを持ち直接接続する場合はなくてもよい。
The switching hub 130 is a hub that connects the time server 140 and the synchronous communication devices 110, 111, 112 while maintaining the time synchronization protocol. As described above, in this embodiment, PTP is used as a time synchronization protocol, and according to PTP, the time server 140 has a TC (Transparent Clock) function. The TC function is a function for adding, when relaying time information (PTP packets), the time required for packet relay, etc., to the time information.
The switching hub 130 is required when using a plurality of time servers 140 or when star connecting the synchronous communication devices 110-1, 111-1, 112, etc., but the time server 140 has a plurality of ports and is directly connected. Optional if you do.

撮影装置120、121、122のそれぞれは、同期通信装置110、111、112のそれぞれから撮影制御信号を受信し、当該撮影制御信号に含まれる撮影同期信号に基づいて同期撮影を行い、撮像画像を、同期通信装置110、111、112のそれぞれに送信する。当該撮影制御信号は、同期通信装置110-2の場合は、図2に示す撮影制御信号251に対応する。撮影装置120、121、122は、内部に時計を持ち、受信した撮影制御信号内の同期信号を基に、基に自身の時刻を更新する。撮影装置120、121、122は、受信した撮影制御信号内の撮影同期信号に対して、同期信号受付タイミングを持ち、当該受付期間中に撮影同期信号を受信することで、同期通信装置110、111、112と同期する。なお、撮影装置120、121、122は同一の構成でなくてもよく、例えばそれぞれが異なる機種の装置で構成されていてもよい。また、撮影装置120、121、122は、LiDAR(Light Detection and Ranging)やRADAR(RAdio Detecting And Ranging)等の測距センサも含みうる。 Each of the photographing devices 120, 121, and 122 receives a photographing control signal from each of the synchronous communication devices 110, 111, and 112, performs synchronous photographing based on the photographing synchronization signal included in the photographing control signal, and produces a photographed image. , to the synchronous communication devices 110, 111, and 112, respectively. The shooting control signal corresponds to the shooting control signal 251 shown in FIG. 2 in the case of the synchronous communication device 110-2. Each of the imaging devices 120, 121, and 122 has an internal clock and updates its own time based on the synchronization signal in the received imaging control signal. The image capturing apparatuses 120, 121, and 122 have synchronization signal reception timings for the image capturing synchronization signals in the received image capturing control signals, and receive the image capturing synchronization signals during the reception period. , 112. Note that the imaging devices 120, 121, and 122 do not have to have the same configuration, and for example, they may be configured by devices of different models. The imaging devices 120, 121, and 122 may also include ranging sensors such as LiDAR (Light Detection and Ranging) and RADAR (RADio Detecting and Ranging).

なお、本実施形態では、特に断りがない限り、画像という文言が、動画と静止画の概念を含むものとして説明する。すなわち、本実施形態の同期撮影システム100は、静止画及び動画の何れについても処理可能であるものとする。 In this embodiment, unless otherwise specified, the term "image" will be described as including the concepts of moving images and still images. In other words, the synchronized imaging system 100 of this embodiment can process both still images and moving images.

[同期通信装置の構成]
図2は、図1における同期通信装置110-2の内部構成例を示すブロック図である。ここでは同期通信装置110-2を例に説明するが、他の同期通信装置110、111、112も同様の内部構成を有しうる。
同期通信装置110-2は、第1通信部210および第2通信部211、同期信号生成部220、記憶部230、伝送処理部240、撮影制御部250、画像処理部260、制御部270で構成される。各機能ブロック210~270はシステムバスを介して、各種情報/データの送受信を行っている。また、同期通信装置110-2は、不図示の電源やクロックを有しうる。
[Configuration of Synchronous Communication Device]
FIG. 2 is a block diagram showing an example internal configuration of the synchronous communication device 110-2 in FIG. Here, the synchronous communication device 110-2 will be described as an example, but the other synchronous communication devices 110, 111, and 112 can also have similar internal configurations.
Synchronous communication device 110-2 is composed of first communication unit 210 and second communication unit 211, synchronization signal generation unit 220, storage unit 230, transmission processing unit 240, imaging control unit 250, image processing unit 260, and control unit 270. be done. Each functional block 210 to 270 transmits and receives various information/data via the system bus. Also, the synchronous communication device 110-2 can have a power supply and a clock (not shown).

第1通信部210と第2通信部211は、MAC(媒体アクセス制御)部およびPHY(物理層)部からなる通信インターフェイスである。第2通信部211は、同期通信装置110-3からの画像データを受信して伝送処理部240に送信する。第1通信部210は、伝送処理部240から、同期通信装置110-3および撮影装置120-2からの画像データを受信して、同期通信装置110-1に送信する。また、第1通信部210と第2通信部211は、同期プロトコルを介して、正確な時刻を示す時刻情報を受信し、また、当該受信のタイミングの情報(更新タイミング情報)を取得し、当該時刻情報と当該更新タイミング情報を同期信号生成部220に対し通知する。当該時刻情報は、図3における時刻情報331に対応し、当該更新タイミング情報は、図3における第1更新タイミング332に対応する。 The first communication unit 210 and the second communication unit 211 are communication interfaces consisting of a MAC (medium access control) unit and a PHY (physical layer) unit. The second communication unit 211 receives image data from the synchronous communication device 110 - 3 and transmits it to the transmission processing unit 240 . The first communication unit 210 receives image data from the synchronous communication device 110-3 and the imaging device 120-2 from the transmission processing unit 240, and transmits the image data to the synchronous communication device 110-1. In addition, the first communication unit 210 and the second communication unit 211 receive time information indicating the correct time via the synchronization protocol, acquire information on the timing of the reception (update timing information), The synchronization signal generation unit 220 is notified of the time information and the update timing information. The time information corresponds to the time information 331 in FIG. 3, and the update timing information corresponds to the first update timing 332 in FIG.

なお、図1における同期通信装置110-mは、同期通信装置110-1~110-mのデイジーチェーン接続にてタイムサーバ140から最も遠い同期通信装置(端末)であるため、第2通信部211は外部装置に対して接続されていなくてもよい。同期通信装置111-nについても同様である。
また、スイッチングハブ130に対して、同期通信装置110-1、111-1、112がスター結線される場合においても、第2通信部211は外部装置に対して接続されていなくてもよい。
1 is the synchronous communication device (terminal) farthest from the time server 140 in the daisy chain connection of the synchronous communication devices 110-1 to 110-m, the second communication unit 211 may not be connected to an external device. The same applies to the synchronous communication device 111-n.
Further, even when the synchronous communication devices 110-1, 111-1, and 112 are star-connected to the switching hub 130, the second communication unit 211 does not have to be connected to the external device.

制御部270は、同期通信装置110-2全体の制御を行う1つ以上のCPU(Central Processing Unit)で構成される。例えば制御部270は、PTP等時刻同期プロトコルで定義される時刻同期シーケンスの制御、同期通信装置110-3から受信した画像データを含む画像パケット転送の制御を行う。また、制御部270は、バスを介して第1通信部210や第2通信部211より取得した時刻情報を基に撮影制御信号251に含めるTimecodeを生成する。また、制御部270は、同期信号生成部220に対して制御情報(図3の制御情報335に対応)を送信する。 The control unit 270 is composed of one or more CPUs (Central Processing Units) that control the entire synchronous communication device 110-2. For example, the control unit 270 controls a time synchronization sequence defined by a time synchronization protocol such as PTP, and controls image packet transfer including image data received from the synchronous communication device 110-3. Also, the control unit 270 generates a timecode to be included in the imaging control signal 251 based on the time information acquired from the first communication unit 210 and the second communication unit 211 via the bus. The control unit 270 also transmits control information (corresponding to the control information 335 in FIG. 3) to the synchronization signal generation unit 220 .

記憶部230は、同期通信装置110-2内の各機能ブロックが共有して利用可能な主記憶装置であり、主にDRAM(Dynamic Random Access Memory)等の半導体メモリ等で構成される。記憶部230は、各機能ブロック210~270にて取り扱う各種情報および撮影装置120-2の設定情報等を記憶する。 The storage unit 230 is a main storage device that can be shared and used by each functional block in the synchronous communication device 110-2, and is mainly composed of a semiconductor memory such as a DRAM (Dynamic Random Access Memory). The storage unit 230 stores various information handled by the functional blocks 210 to 270, setting information of the imaging device 120-2, and the like.

同期信号生成部220は、第1通信部210や第2通信部211より時刻情報と更新タイミング情報を受け取り、同期信号であるパルス信号を生成する。当該パルス信号は、図2のパルス334に対応し、撮影制御部250および伝送処理部240に送信される。パルス334の一例として、正確な間隔と比率を持つPPS等がある。また、同期信号生成部220は、バスを介してパルス334の位相を揃える際の閾値等を設定・格納するレジスタを持つ。
同期信号生成部220の内部構成については、図3を用いて後述する。
The synchronization signal generation unit 220 receives time information and update timing information from the first communication unit 210 and the second communication unit 211, and generates a pulse signal that is a synchronization signal. The pulse signal corresponds to the pulse 334 in FIG. 2 and is transmitted to the imaging control section 250 and transmission processing section 240 . An example of a pulse 334 is a PPS with precise intervals and ratios. The synchronization signal generation unit 220 also has a register for setting and storing thresholds and the like for aligning the phases of the pulses 334 via the bus.
The internal configuration of the synchronization signal generator 220 will be described later with reference to FIG.

伝送処理部240は、同期通信装置110-2が出力する画像パケットを生成する。伝送処理部240は、画像処理部260から取得した撮影装置120-2による撮影画像をパケット化し、第2通信部211から受信した同期通信装置110-3からの画像パケットとともに第1通信部210へと送出する。また、伝送処理部240は、同期信号生成部220からパルス334を受信して、画像処理部260から受け取った画像データにタイムスタンプを供給する。なお、図1における同期通信装置110-m、111-nといった、デイジーチェーン接続にてタイムサーバ140から最も遠い同期通信装置である場合、受信する画像パケットは存在しなくてもよい。同期通信装置110-1、111-1、121が、デイジーチェーン接続する同期通信装置なく、スター結線される場合等においても同様である。 The transmission processing unit 240 generates image packets to be output by the synchronous communication device 110-2. The transmission processing unit 240 packetizes the image captured by the image capturing device 120-2 obtained from the image processing unit 260, and transmits the packet to the first communication unit 210 together with the image packet from the synchronous communication device 110-3 received from the second communication unit 211. and send. The transmission processing unit 240 also receives the pulse 334 from the synchronization signal generation unit 220 and supplies the time stamp to the image data received from the image processing unit 260 . In the case of the synchronous communication devices 110-m and 111-n in FIG. 1, which are the synchronous communication devices furthest from the time server 140 in the daisy chain connection, there may be no image packets to be received. The same applies when the synchronous communication devices 110-1, 111-1, and 121 are star-connected without daisy-chained synchronous communication devices.

撮影制御部250は、同期信号生成部220からパルス334を受け取り、パルス334に基づいて、撮影タイミングを示す撮影同期信号(撮影処理同期信号)を生成する。また、撮影制御部250は、制御部270からのTimecodeを受け取る。そして、撮影制御部250は、生成した撮影同期信号と、受け取ったTimecodeとを撮影制御信号251に含めて、撮影装置121に送信する。 The imaging control unit 250 receives the pulse 334 from the synchronizing signal generating unit 220, and based on the pulse 334, generates an imaging synchronizing signal (imaging process synchronizing signal) indicating imaging timing. Also, the shooting control unit 250 receives the timecode from the control unit 270 . Then, the imaging control unit 250 includes the generated imaging synchronization signal and the received Timecode in the imaging control signal 251 and transmits the imaging control signal 251 to the imaging device 121 .

撮影装置120-2は、撮影制御部250からの撮影制御信号251に含まれる同期信号に同期して、撮影を行い、撮影画像と、撮影制御信号251に含まれるTimecodeとを画像処理部260へ出力する。
画像処理部260は、撮影装置120-2から撮影画像を受け取り、当該撮影画像に対して画像処理(背景や前景の切り出し等)を行い、処理後のデータとして画像データを生成する。画像処理部260は、生成した画像データを伝送処理部240に出力する。
The photographing device 120-2 performs photographing in synchronization with the synchronization signal included in the photographing control signal 251 from the photographing control unit 250, and transmits the photographed image and the timecode included in the photographing control signal 251 to the image processing unit 260. Output.
The image processing unit 260 receives a photographed image from the photographing device 120-2, performs image processing on the photographed image (cutting out background and foreground, etc.), and generates image data as processed data. The image processing section 260 outputs the generated image data to the transmission processing section 240 .

[同期信号生成部220の構成]
図3は、図2に示した同期信号生成部220の内部構成例を示すブロック図である。同期信号生成部220は、第1カウンタ320および第2カウンタ321、バスインターフェイス310から構成される。同期信号生成部220は、クロック330、時刻情報331、第1更新タイミング332を受信して、伝送処理部240および撮影制御部250にパルス334を生成して出力するように構成される。
[Configuration of Synchronization Signal Generation Unit 220]
FIG. 3 is a block diagram showing an example internal configuration of the synchronization signal generator 220 shown in FIG. The synchronization signal generator 220 is composed of a first counter 320 , a second counter 321 and a bus interface 310 . The synchronization signal generator 220 is configured to receive the clock 330 , the time information 331 and the first update timing 332 , and generate and output the pulse 334 to the transmission processor 240 and imaging controller 250 .

クロック330は、第1カウンタ320および第2カウンタ321を駆動する外部クロックによるクロック信号である。また、クロック330は、バスインターフェイス310の動作にも用いられる。
時刻情報331および第1更新タイミング332は、第1通信部210や第2通信部211から受信される。第1更新タイミング332は、第1カウンタ320の更新タイミングとなる。
A clock 330 is a clock signal based on an external clock that drives the first counter 320 and the second counter 321 . Clock 330 is also used to operate bus interface 310 .
Time information 331 and first update timing 332 are received from first communication unit 210 and second communication unit 211 . The first update timing 332 is the update timing of the first counter 320 .

バスインターフェイス310は、バスを通じて、同期信号生成部220の外の構成要素と通信するインターフェイスである。バスインターフェイス310は、制御部270から、第1カウンタ320と第2カウンタ321間のオフセット値等を含む制御情報335を取得し、第1カウンタ320および第2カウンタ321に出力する。オフセット値とは、図4にて後述する補正カウンタ420に対する補正値443の計算に用いる値である。制御情報335には、この他に、補正値443の上限を決めるリミット値や第1カウンタ320や第2カウンタ321をリセットした際のデフォルト値、第1カウンタ320と第2カウンタ321の初期化や開始指示、停止指示、第2カウンタ321を更新する際に用いる閾値等を含みうる。 The bus interface 310 is an interface that communicates with components outside the sync signal generator 220 via a bus. Bus interface 310 acquires control information 335 including an offset value between first counter 320 and second counter 321 from control unit 270 , and outputs the control information to first counter 320 and second counter 321 . An offset value is a value used to calculate a correction value 443 for a correction counter 420, which will be described later with reference to FIG. The control information 335 also includes a limit value that determines the upper limit of the correction value 443, a default value when the first counter 320 and the second counter 321 are reset, initialization of the first counter 320 and the second counter 321, It can include a start instruction, a stop instruction, a threshold used when updating the second counter 321, and the like.

第1カウンタ320は、外部から値を書き換え可能な自走式カウンタで、入力される更新タイミング332のタイミング以外では、クロック330のタイミングにて自身のカウンタ値をインクリメントする。第1カウンタ320は、第1更新タイミング332のタイミングで時刻情報332の値に書き換えられることで、時刻源の正確な時刻と同期する。第1カウンタ320は、第2カウンタに対し、自身のカウンタ値である第1カウンタ値336と、当該カウンタ値を基に生成する第2更新タイミング337とを、第2カウンタ321へ出力する。 The first counter 320 is a self-running counter whose value can be rewritten from the outside, and increments its own counter value at the timing of the clock 330 except for the timing of the input update timing 332 . The first counter 320 is rewritten to the value of the time information 332 at the timing of the first update timing 332, thereby synchronizing with the accurate time of the time source. The first counter 320 outputs to the second counter 321 a first counter value 336 which is its own counter value and a second update timing 337 generated based on the counter value.

第2カウンタ321は、外部から値を書き換え可能な自走式カウンタで、入力される第2更新タイミング337のタイミング以外では、クロック330のタイミングにて自身のカウンタ値をインクリメントする。第2カウンタ321は、第2更新タイミング337のタイミングで、第1カウンタ値336や制御情報335内のオフセット値等を用いて自身のカウンタ値を更新し、当該カウンタ値を用いてパルス334を生成する。生成されたパルス334は、伝送処理部240および撮影制御部250に対して出力される。
第2カウンタ321の内部構成については、図4を用いて後述する。
The second counter 321 is a self-running counter whose value can be rewritten from the outside, and increments its own counter value at the timing of the clock 330 except for the timing of the second update timing 337 to be input. The second counter 321 updates its own counter value using the first counter value 336 and the offset value in the control information 335 at the timing of the second update timing 337, and generates the pulse 334 using the counter value. do. The generated pulse 334 is output to the transmission processing section 240 and the imaging control section 250 .
The internal configuration of the second counter 321 will be described later using FIG.

パルス334は、第2カウンタ321のカウンタ値を基に生成される位相パルスである。第2カウンタ321の同期元である第1カウンタ320が、時刻情報331および第1更新タイミング332により同期されているため、パルス334は、同期が取れている同期通信装置110、111、112間では同じ時刻に送出される。 A pulse 334 is a phase pulse generated based on the counter value of the second counter 321 . Since the first counter 320, which is the synchronization source of the second counter 321, is synchronized by the time information 331 and the first update timing 332, the pulse 334 is sent out at the same time.

[第2カウンタ321の構成]
図4は、図3に示した同期信号生成部220における第2カウンタ321の内部構成例を示すブロック図である。第2カウンタ321は、補正部410、補正カウンタ420、パルス出力部430から構成される。第2カウンタ321は、第1カウンタ320から、第1カウンタ値336と第2更新タイミング337を受信し、バスインターフェイス310から制御情報335を受信し、パルス334を生成して出力するように構成される。
[Configuration of second counter 321]
FIG. 4 is a block diagram showing an example internal configuration of the second counter 321 in the synchronization signal generator 220 shown in FIG. The second counter 321 is composed of a correction section 410 , a correction counter 420 and a pulse output section 430 . The second counter 321 is configured to receive a first counter value 336 and a second update timing 337 from the first counter 320, receive control information 335 from the bus interface 310, and generate and output a pulse 334. be.

補正部410は、第1カウンタ320から受信した第1カウンタ値336と、補正カウンタ420から受信した第2カウンタ値440との差分を計算し、制御情報335内のオフセット値を合わせて補正値443を計算し、補正カウンタ420に出力する。なお、補正部410は、これ以外の方法で補正値443を計算しても良い。 The correction unit 410 calculates the difference between the first counter value 336 received from the first counter 320 and the second counter value 440 received from the correction counter 420, and adds the offset value in the control information 335 to obtain a correction value 443. is calculated and output to the correction counter 420 . Note that the correction unit 410 may calculate the correction value 443 by a method other than this.

補正カウンタ420は、外部から値を書き換え可能な自走式カウンタで、第2更新タイミング337のタイミング以外では、クロック330にて自身のカウンタ値をインクリメントする。補正カウンタ420は、第2更新タイミング337のタイミングで、補正部410から受信した補正値443を基に、自身の現在のカウンタ値を補正する。補正部410は、補正後のカウンタ値を、第2カウンタ値440として、補正部410およびパルス出力部430に通知する。なお、第2カウンタ値440の取りうる値の範囲は予め設定されており、すなわち、所定の最大値と最小値が予め設定されている。そして、第2カウンタ値440が当該範囲を超えるような補正が行われた際は、補正カウンタ420は、その旨を制御信号441でパルス出力部に通知する。 The correction counter 420 is a self-running counter whose value can be rewritten from the outside, and increments its own counter value with the clock 330 at timings other than the second update timing 337 . The correction counter 420 corrects its current counter value based on the correction value 443 received from the correction unit 410 at the timing of the second update timing 337 . Correction section 410 notifies correction section 410 and pulse output section 430 of the corrected counter value as second counter value 440 . The range of possible values of the second counter value 440 is set in advance, that is, predetermined maximum and minimum values are set in advance. Then, when the second counter value 440 is corrected to exceed the range, the correction counter 420 notifies the pulse output section to that effect by means of the control signal 441 .

ここで、第2カウンタ値440と制御信号441との関係について具体的に説明する。第2カウンタ値440は、前述のように予め取りうる値の範囲、すなわち、所定の最大値と最小値が設定されている。補正や自走により第2カウンタ値440が最大値を超える場合は、第2カウンタ値440は、最小値にリセットされ、超えた分は最小値に加算される(以下、最小値へのリセット)。一方、補正により第2カウンタ値440が最小値を下回る場合は、第2カウンタ値440は、最大値にリセットされ、最小値と下回る分は最大値に対して減算される(以下、最大値へのリセット)。そして、それぞれのリセット、すなわち、第2カウンタ値420の最小値へのリセットおよび最大値へのリセットは、制御信号441を通じてパルス出力部430に通知される。それぞれの情報は区別される。
補正カウンタ420の内部構成については、図5を用いて後述する。
Here, the relationship between the second counter value 440 and the control signal 441 will be specifically described. As described above, the second counter value 440 has a range of possible values, that is, predetermined maximum and minimum values. When the second counter value 440 exceeds the maximum value due to correction or self-running, the second counter value 440 is reset to the minimum value, and the exceeding amount is added to the minimum value (hereinafter, reset to the minimum value). . On the other hand, when the second counter value 440 falls below the minimum value due to correction, the second counter value 440 is reset to the maximum value, and the amount below the minimum value is subtracted from the maximum value (hereinafter referred to as the maximum value). reset). Each reset, that is, the reset to the minimum value and the reset to the maximum value of the second counter value 420 is notified to the pulse output section 430 through the control signal 441 . Each piece of information is distinct.
The internal configuration of correction counter 420 will be described later with reference to FIG.

パルス出力部430は、補正カウンタ420から受信した第2カウンタ値440と制御信号441、およびバスインターフェイス310から受信した制御情報335に基づいて、パルス334を生成し出力する。
パルス出力部430の内部構成については、図6を用いて後述する。
Pulse output unit 430 generates and outputs pulse 334 based on second counter value 440 and control signal 441 received from correction counter 420 and control information 335 received from bus interface 310 .
The internal configuration of pulse output section 430 will be described later with reference to FIG.

[補正カウンタ420の構成]
図5は、図4に示した第2カウンタ321における補正カウンタ420の内部構成例を示すブロック図である。補正カウンタ420は、補正値レジスタ510、周期情報レジスタ520、カウンタ制御部530、カウンタ540から構成される。補正カウンタ420は、補正部410から補正値443を受信し、第1カウンタ320から第2更新タイミング337を受信し、制御信号441と第2カウンタ値440とをパルス出力部430へ出力するように構成される。
[Configuration of Correction Counter 420]
FIG. 5 is a block diagram showing an internal configuration example of the correction counter 420 in the second counter 321 shown in FIG. The correction counter 420 is composed of a correction value register 510 , a period information register 520 , a counter control section 530 and a counter 540 . Correction counter 420 receives correction value 443 from correction unit 410 , receives second update timing 337 from first counter 320 , and outputs control signal 441 and second counter value 440 to pulse output unit 430 . Configured.

補正値レジスタ510は、補正部410から補正値443を受け取り、カウンタ制御部530に補正値443を提供するレジスタである。
周期情報レジスタ520は、カウンタ540の周期的なカウントアップ値を周期情報521として格納しておくレジスタである。なお、この周期情報521は外部から書き換え可能であってもよく、周期情報レジスタ520は、周期情報521を用いてカウンタ540を補正する機能があってもよい。
The correction value register 510 is a register that receives the correction value 443 from the correction unit 410 and provides the correction value 443 to the counter control unit 530 .
The period information register 520 is a register that stores the periodic count-up value of the counter 540 as period information 521 . Note that the period information 521 may be rewritable from the outside, and the period information register 520 may have a function of correcting the counter 540 using the period information 521 .

カウンタ制御部530は、第2更新タイミング337のタイミングで、補正値443と周期情報521の値(カウントアップ値)との合計値を、それ以外のタイミングでは周期情報521の値を、それぞれインクリメント値531としてカウンタ540に対し通知する。また、カウンタ制御部530は、最大値へのリセットおよび最小値へのリセットの際は、その旨を制御信号441として出力する機能を持つ。 The counter control unit 530 increments the total value of the correction value 443 and the value (count-up value) of the period information 521 at the timing of the second update timing 337, and the value of the period information 521 at other timings. 531 to the counter 540 . Further, the counter control unit 530 has a function of outputting a control signal 441 to that effect when resetting to the maximum value and resetting to the minimum value.

カウンタ540は、カウンタ制御部530から与えられるインクリメント値531を自身の現在のカウンタ値に加算するカウンタである。カウンタ540は自身のカウンタ値を、第2カウンタ値440として、カウンタ制御部530に出力し、また、補正部410とパルス出力部430に出力する。 The counter 540 is a counter that adds an increment value 531 given from the counter control unit 530 to its current counter value. Counter 540 outputs its own counter value as second counter value 440 to counter control section 530 and also to correction section 410 and pulse output section 430 .

[パルス出力部430の構成]
図6は、図4に示した第2カウンタ321におけるパルス出力部430の内部構成例を示すブロック図である。パルス出力部430は、補正カウンタ420から制御信号441と第2カウンタ値440を受信し、バスインターフェイス310から制御情報335を受信し、パルス334を出力するように構成される。パルス出力部430は、受信した各種信号とパルス334に対する制御を行う信号制御部として機能する。
[Configuration of pulse output unit 430]
FIG. 6 is a block diagram showing an example internal configuration of the pulse output section 430 in the second counter 321 shown in FIG. The pulse output unit 430 is configured to receive the control signal 441 and the second counter value 440 from the correction counter 420 , receive the control information 335 from the bus interface 310 , and output the pulse 334 . The pulse output unit 430 functions as a signal control unit that controls various received signals and the pulse 334 .

規定値レジスタ610は、規定値611を格納しておくレジスタである。規定値611は、第2カウンタ値と比較される値であり、パルス生成部630により定期的に新たな値に更新される。規定値611について、取りうる最大値(以後、最大規定値)および初期値が予め設定されているものとする。
比較部620は、第2カウンタ値440と規定値611とを比較し、第2カウンタ値440が規定値611以上となった際に、比較結果621をパルス生成部630に出力する。比較結果621は、第2カウンタ値440が規定値611以上となった場合に“1”、それ以外では“0”となる。なお、これは一例であり、他の比較結果としての値が用いられてもよい。
A specified value register 610 is a register that stores a specified value 611 . The prescribed value 611 is a value to be compared with the second counter value, and is periodically updated to a new value by the pulse generator 630 . For the specified value 611, it is assumed that a possible maximum value (hereinafter referred to as maximum specified value) and an initial value are set in advance.
Comparing section 620 compares second counter value 440 with specified value 611 , and outputs comparison result 621 to pulse generating section 630 when second counter value 440 becomes equal to or greater than specified value 611 . The comparison result 621 is "1" when the second counter value 440 is equal to or greater than the specified value 611, and "0" otherwise. Note that this is just an example, and other comparison result values may be used.

パルス生成部630は、比較結果621に基づいて、パルス334の “0”(ローレベル)と“1”(ハイレベル)を切り替え(以下、パルス(レベル)の切り替え)を行う。パルス生成部630は、比較結果621が、第2カウンタ値440が規定値611以上となった場合に“1”、それ以外では“0”を示す場合、“1”の場合にパルス334の切り替えを行う。なお、後述するように、第2カウンタ値440に基づく一定期間に、Aフラグおよび/Bフラグ640がセットされ、パルス生成部630は、当該一定期間では、パルス334の出力(生成)を行わないように動作する。 The pulse generator 630 switches between “0” (low level) and “1” (high level) of the pulse 334 based on the comparison result 621 (hereinafter referred to as pulse (level) switching). The pulse generation unit 630 switches the pulse 334 when the comparison result 621 indicates “1” when the second counter value 440 is equal to or greater than the specified value 611, and indicates “0” otherwise. I do. As will be described later, the A flag and the /B flag 640 are set for a certain period of time based on the second counter value 440, and the pulse generator 630 does not output (generate) the pulse 334 for that certain period of time. works like

また、パルス生成部630はパルス334を切り替えると同時に、規定値611に対して所定の値を加算して新たな規定値611を通知する処理(以下、規定値の更新)を行う。なお、規定値611に対して加算する値については固定値である必要はなく、可変な値に設定されてもよい。 At the same time as switching the pulse 334, the pulse generator 630 adds a predetermined value to the specified value 611 and notifies a new specified value 611 (hereinafter referred to as update of specified value). Note that the value to be added to the specified value 611 need not be a fixed value, and may be set to a variable value.

フラグレジスタ660は、Bフラグ640とAフラグ650を格納する。
Bフラグ640は、パルス生成部630によりセットされるフラグである。パルス生成部630の計算した規定値611が最大規定値以上となった場合にセット(“1”にセット)される。また、最小値へのリセットを示す制御信号441がフラグレジスタ660で受信された場合に、Bフラグはクリア(“0”にセット)される。
Aフラグ650は、制御信号441に応じてセットされるフラグである。最大値へのリセットを示す制御信号441がフラグレジスタ660で受信された場合に、Aフラグ650はセットされる。また、最小値へのリセットを示す制御信号441がフラグレジスタ660で受信された場合に、Aフラグ650はクリアされる。
パルス生成部630は、Bフラグ640またはAフラグ650がセットされている間は、規定値611の更新およびパルス334の切り替えを行わない(停止する)。ここで、例えば、Bフラグ640またはAフラグ650がセットされている間は、比較部620が比較処理を停止するように構成されてもよい。
Flag register 660 stores B flag 640 and A flag 650 .
A B flag 640 is a flag set by the pulse generator 630 . It is set (set to "1") when the specified value 611 calculated by the pulse generator 630 is greater than or equal to the maximum specified value. The B flag is cleared (set to "0") when the flag register 660 receives a control signal 441 indicating a reset to the minimum value.
A flag 650 is a flag that is set according to control signal 441 . A flag 650 is set when control signal 441 is received in flag register 660 indicating a reset to maximum value. Also, A flag 650 is cleared when control signal 441 indicating a reset to minimum value is received in flag register 660 .
While the B flag 640 or the A flag 650 is set, the pulse generator 630 does not update the specified value 611 or switch the pulse 334 (stops). Here, for example, while the B flag 640 or the A flag 650 is set, the comparison unit 620 may be configured to stop the comparison process.

[パルス信号生成のタイミング]
図7は、本実施形態におけるパルス信号生成のタイミング波形の一例を示す。具体的には、図7は、図4~図6を参照して説明した第2カウンタ321において、Aフラグ650を用いて第1カウンタ値336、制御情報335、第2更新タイミング337からパルス334を生成するまでを示した図である。説明のため、第1カウンタ値336、第2カウンタ値440、規定値611は2桁としているが、これは一例であり、桁数に限定はない。また、初期状態においてインクリメント値531(周期情報521の値)は1としているが、クロックの周期等、別の値でもよい。また、規定値611は初期値を“01”とし、“01”から10ずつ更新されるとし、第2カウンタ値440の最小値は“00”、最大値は“100”としている。また、規定値611の最大規定値(規定値611が取りうる最大の値)は、“101”とする。
[Timing of pulse signal generation]
FIG. 7 shows an example of timing waveforms for pulse signal generation in this embodiment. Specifically, in FIG. 7, in the second counter 321 described with reference to FIGS. is a diagram showing the process up to the generation of . For the sake of explanation, the first counter value 336, the second counter value 440, and the specified value 611 are two digits, but this is an example and the number of digits is not limited. Also, although the increment value 531 (the value of the period information 521) is 1 in the initial state, it may be another value such as a clock period. The specified value 611 has an initial value of "01" and is updated by 10 from "01", and the second counter value 440 has a minimum value of "00" and a maximum value of "100". Also, the maximum specified value of the specified value 611 (the maximum value that the specified value 611 can take) is assumed to be "101".

時刻t1は、第2更新タイミング337のタイミングでない場合の動作を示している。制御情報335内のオフセット値として“-15”が指定されたことで補正値443が“-15”と計算される。第2更新タイミング337のタイミングではないため、インクリメント値531は“+1”である。 Time t1 indicates the operation when the timing of the second update timing 337 is not reached. Since "-15" is specified as the offset value in the control information 335, the correction value 443 is calculated as "-15". Since it is not the timing of the second update timing 337, the increment value 531 is "+1".

時刻t2は、第2カウンタ321における最大値へのリセットが行われる際の動作を示している。第2更新タイミング337のタイミングのため、インクリメント値531が補正(“1”+“-15”)を受け“-14”となる。減算される値(=“14”)が第2カウンタ値440である“10”より大きいため、カウンタ制御部530は、最大値へのリセットを示す制御信号441をフラグレジスタ660に対して通知し、これに応じて、Aフラグ650がセットされる。
第2カウンタ値440は、最大値(=“100”)から、第2カウンタ値440(=“10”)と減算される値(=“14”)との差分である“4”が減算された“96”となる。第2カウンタ値440(=“96”)が規定値611の値である“11”を超え、比較結果621は“1”となる。Aフラグ650がセットされているため、比較結果621による規定値611の更新およびパルス334の切り替えは行われない。
Time t2 shows the operation when the second counter 321 is reset to the maximum value. Due to the timing of the second update timing 337, the increment value 531 is corrected (“1”+“−15”) and becomes “−14”. Since the subtracted value (=“14”) is greater than “10” which is the second counter value 440, the counter control section 530 notifies the flag register 660 of the control signal 441 indicating resetting to the maximum value. , and accordingly the A flag 650 is set.
The second counter value 440 is obtained by subtracting "4", which is the difference between the second counter value 440 (="10") and the subtracted value (="14"), from the maximum value (="100"). It becomes "96". The second counter value 440 (=“96”) exceeds “11” which is the value of the specified value 611, and the comparison result 621 becomes “1”. Since the A flag 650 is set, the specified value 611 is not updated by the comparison result 621 and the pulse 334 is not switched.

時刻t3は、第2カウンタ321における最小値へのリセットが行われる際の動作を示している。第2カウンタ値440は“99”から“+1”インクリメントされ、最大値である“100”以上となり最小値である“00”にセットされる。この時、最小値へのリセットを示す制御信号441がフラグレジスタ660に対して通知し、これに応じて、Aフラグ650およびBフラグ640はクリアされる。 Time t3 shows the operation when the second counter 321 is reset to the minimum value. The second counter value 440 is incremented by "+1" from "99", reaches the maximum value of "100" or more, and is set to the minimum value of "00". At this time, a control signal 441 indicating resetting to the minimum value notifies the flag register 660, and accordingly the A flag 650 and the B flag 640 are cleared.

時刻t4は、第1カウンタ値336が“19”から“05”に変更され、制御情報335内のオフセット値が“0”になった際の動作を示す。この時、第1カウンタ値336と第2カウンタ値337が一致し、当該カウンタ値の差分と制御情報335内のオフセット値とを合わせ計算した補正値443は“0”となる。 Time t4 shows the operation when the first counter value 336 is changed from "19" to "05" and the offset value in the control information 335 becomes "0". At this time, the first counter value 336 and the second counter value 337 match, and the correction value 443 calculated by combining the difference between the counter values and the offset value in the control information 335 becomes "0".

時刻t5は、第2カウンタ値440が規定値611と一致した際の動作を示している。第2カウンタ値440と規定値611が一致し、Aフラグ650およびBフラグ640双方ともに“0”のため、比較部620は、比較結果621をパルス生成部630に通知する。パルス生成部630は、パルス334を“0”から“1”に切り替え、規定値611を“11”から“21”に更新する。 Time t5 shows the operation when the second counter value 440 matches the specified value 611. FIG. Since the second counter value 440 and the specified value 611 match and both the A flag 650 and the B flag 640 are “0”, the comparing section 620 notifies the pulse generating section 630 of the comparison result 621 . The pulse generator 630 switches the pulse 334 from "0" to "1" and updates the specified value 611 from "11" to "21".

時刻t6は、時刻t5の後に第2カウンタ値440と規定値611と一致した際の動作を示している。第2カウンタ値440と規定値611が一致したため、比較部620は“1”である比較結果621をパルス生成部630に通知する。これに応じて、パルス生成部630は、パルス334を“1”から“0”に切り替え、規定値611を“21”から“31”に更新する。 Time t6 shows the operation when the second counter value 440 and the specified value 611 match after time t5. Since the second counter value 440 and the specified value 611 match, the comparator 620 notifies the pulse generator 630 of the comparison result 621 of "1". In response to this, the pulse generator 630 switches the pulse 334 from "1" to "0" and updates the specified value 611 from "21" to "31".

本実施形態による動作を従来技術と比較するために定義した規定値701とパルス702を図7に併せて示す。
規定値701は、Aフラグ650を参照しない場合の規定値611の動きを示したものである。時刻t2からt3まで比較結果621は“1”となる。このため規定値611は、クロック330ごとに更新され、時刻t3以降は更新された値“61”となる。
パルス702は、Aフラグ650を参照しない場合のパルス334の動きを示したものである。時刻t2から時刻t3まで比較結果621が“1”であるため、パルス702はこの期間クロックが入る毎に切り替えが行われ、所望のパルス334を得ることができない。
FIG. 7 also shows a specified value 701 and a pulse 702 defined to compare the operation according to the present embodiment with the conventional technology.
A specified value 701 indicates the behavior of the specified value 611 when the A flag 650 is not referred to. The comparison result 621 is "1" from time t2 to t3. Therefore, the specified value 611 is updated every clock 330, and becomes the updated value "61" after time t3.
Pulse 702 shows the behavior of pulse 334 when A flag 650 is not referenced. Since the comparison result 621 is "1" from time t2 to time t3, the pulse 702 is switched each time the clock is input during this period, and the desired pulse 334 cannot be obtained.

このように、Aフラグ650の制御により、カウンタを補正するために減算する値が現在のカウンタ値よりも大きい場合であっても、一定期間、パルス334の生成を行わないことにより、結果として正確なパルス334を生成することが可能となる。 In this way, by controlling the A flag 650, even if the value to be subtracted to correct the counter is greater than the current counter value, the generation of the pulse 334 is not performed for a certain period of time. pulse 334 can be generated.

図8は、本実施形態におけるパルス信号生成のタイミング波形の別の例を示す。具体的には、図8は、図4~図6を参照して説明した第2カウンタ321において、Bフラグ640を用いて、第1カウンタ値336、制御情報335、第2更新タイミング337からパルス334を生成するまでを示した図である。第1カウンタ値336、第2カウンタ値440、規定値611、インクリメント値531および出力等の条件は、図7と同様である。 FIG. 8 shows another example of timing waveforms for pulse signal generation in this embodiment. Specifically, in FIG. 8, the B flag 640 is used in the second counter 321 described with reference to FIGS. 3 is a diagram showing the process up to the generation of H.334; FIG. Conditions such as the first counter value 336, the second counter value 440, the specified value 611, the increment value 531, and the output are the same as in FIG.

時刻t7は、第1カウンタ値336と第2カウンタ値440に差がある場合の動作を示している。第1カウンタ値336と第2カウンタ値440に差があり、制御情報335内のオフセット値として“0”が指定されている。このため、ここでは補正値443は両カウンタの差分である“+2”と計算される。第2更新タイミング337のタイミングではないため、インクリメント値531は“+1”となる。第2カウンタ値440は、インクリメントにより“81”となり、規定値611の値“81”以上となるため、規定値611の“91”への更新とパルス334の切り替えが行われる。 Time t7 shows the operation when there is a difference between the first counter value 336 and the second counter value 440. FIG. There is a difference between the first counter value 336 and the second counter value 440 , and “0” is specified as the offset value in the control information 335 . Therefore, the correction value 443 is calculated here as "+2", which is the difference between the two counters. Since it is not the timing of the second update timing 337, the increment value 531 is "+1". The second counter value 440 is incremented to "81" and becomes equal to or greater than the value "81" of the specified value 611. Therefore, the specified value 611 is updated to "91" and the pulse 334 is switched.

時刻t8は、第2カウンタ値440を第1カウンタ値336と一致するよう補正する場合の動作を示している。ここで、インクリメント値531は、周期情報520の値と補正値443の値により“+3”と決定される。これが第2補正タイミング337により第2カウンタ値440に対して演算され、第2カウンタ値440は“82”から“85”となり、第1カウンタ値336と一致する。 Time t8 shows the operation for correcting the second counter value 440 to match the first counter value 336. FIG. Here, the increment value 531 is determined as “+3” based on the value of the period information 520 and the value of the correction value 443 . This is calculated with respect to the second counter value 440 at the second correction timing 337 , and the second counter value 440 changes from “82” to “85” and matches the first counter value 336 .

時刻t9は、規定値611が、更新されると最大規定値以上となるタイミングで第2カウンタ値440と規定値611が一致した際の動作を示す。第2カウンタ値440が規定値611以上となったので、パルス334の切り替えと規定値611の更新が行われるが、規定値611に10を加算して“101”と更新すると最大規定値である“101”以上となる。このため、規定値611は規定値の初期値である“01”と更新され、Bフラグ640に“1”がセットされる。 Time t9 shows the operation when the second counter value 440 and the specified value 611 match at the timing when the specified value 611 becomes equal to or greater than the maximum specified value when updated. Since the second counter value 440 has exceeded the specified value 611, the pulse 334 is switched and the specified value 611 is updated. If 10 is added to the specified value 611 and updated to "101", it is the maximum specified value. "101" or more. Therefore, the specified value 611 is updated to "01", which is the initial value of the specified value, and the B flag 640 is set to "1".

時刻t10は、時刻t9の次のクロック330が来たときの動作を示す。第2カウンタ値440は“92”であり、規定値611の値“01”を上回るため、比較結果621は“1”を示す。比較結果621は“1”を示すが、Bフラグ640がセットされており、規定値611の更新およびパルス334の切り替えは行われない。 Time t10 shows the operation when clock 330 next to time t9 comes. Since the second counter value 440 is "92" and exceeds the value "01" of the specified value 611, the comparison result 621 indicates "1". Although the comparison result 621 indicates "1", the B flag 640 is set and the prescribed value 611 is not updated and the pulse 334 is not switched.

時刻t11は、第2カウンタ値440が最大値以上となり、補正される場合の動作を示す。補正値443として“+3”が通知されているため、インクリメント値531は“+4”と計算される。これが、第2カウンタ値440“96”に加算され(=“100”)、第2カウンタ値440は最大値以上となり、“00”へとリセットされる。最小値へのリセットが行われたので、カウンタ制御部530は、最小値へのリセットを示す制御信号441をフラグレジスタ660に対して通知し、これに応じて、Aフラグ650とBフラグ640はクリアされる。第2カウンタ値440は“00”となり、規定値611は“01”なので、比較結果621は“1”を示す。 Time t11 shows the operation when the second counter value 440 becomes equal to or greater than the maximum value and is corrected. Since "+3" is notified as the correction value 443, the increment value 531 is calculated as "+4". This is added to the second counter value 440 "96" (="100"), the second counter value 440 becomes equal to or greater than the maximum value, and is reset to "00". Since the reset to the minimum value has been performed, the counter control unit 530 notifies the flag register 660 of the control signal 441 indicating the reset to the minimum value, and accordingly the A flag 650 and the B flag 640 are set to cleared. Since the second counter value 440 is "00" and the specified value 611 is "01", the comparison result 621 indicates "1".

時刻t12は、第2カウンタ値440が規定値611以上となったときの動作を示す。第2カウンタ値440は自走により“01”となり規定値611の値以上となる。Aフラグ650とBフラグ640共にクリアされているため、パルス334は切り替えられ、規定値611の値が“01”から“11”に更新される。 Time t12 shows the operation when the second counter value 440 reaches the specified value 611 or more. The second counter value 440 becomes "01" due to self-running and becomes equal to or greater than the specified value 611. Since both the A flag 650 and the B flag 640 are cleared, the pulse 334 is switched and the specified value 611 is updated from "01" to "11".

本実施形態による動作を従来技術と比較するために定義した規定値801とパルス802を図8に併せて示す。
規定値801は、Bフラグ640を参照しない場合の規定値611の動きを示したものである。Bフラグ640を参照しない場合、時刻t10のタイミングで第2カウンタ値440の“92”が規定値801の“01”以上となるため、パルス802の切り替えと規定値801の“01”から“11”への更新が行われる。以降、最小値へのリセットが行われるまでパルス802の切り替えと規定値801の更新がクロックごとに行われ、所望のパルス334は生成されない結果となる。
FIG. 8 also shows a specified value 801 and a pulse 802 defined to compare the operation according to the present embodiment with the conventional technology.
A specified value 801 indicates the behavior of the specified value 611 when the B flag 640 is not referred to. If the B flag 640 is not referred to, the second counter value 440 of "92" becomes equal to or greater than the specified value 801 of "01" at time t10. ” will be updated. Thereafter, the pulse 802 is switched and the specified value 801 is updated every clock until the reset to the minimum value is performed, resulting in the desired pulse 334 not being generated.

このように、Bフラグ640の制御により、規定値611が更新により第2カウンタ値440の最大値を上回る場合であっても、一定期間、パルス334の生成を停止することにより、結果として正確なパルス334を生成することが可能となる。 In this way, even if the specified value 611 exceeds the maximum value of the second counter value 440 due to the update, the B flag 640 stops the generation of the pulse 334 for a certain period of time. A pulse 334 can be generated.

[処理の流れ]
図9は、本実施形態による同期通信装置110-2の同期信号生成部220における第2カウンタ321(図4~図6)により実行される処理のフローチャートを示す。
本フローは、同期通信装置110-2が図1に示すシステムを構成する端末の一つとして起動している状態で開始される。なお、他の同期通信装置110、111、112についても同様の処理が行われうる。また、図7と図8と同様に、第2カウンタ値440の最小値は“00”、最大値は“100”、規定値611が取りうる最大規定値は“101”とする。
[Process flow]
FIG. 9 shows a flowchart of processing executed by the second counter 321 (FIGS. 4 to 6) in the synchronization signal generator 220 of the synchronous communication device 110-2 according to this embodiment.
This flow is started while the synchronous communication device 110-2 is activated as one of the terminals constituting the system shown in FIG. Similar processing can be performed for other synchronous communication devices 110 , 111 , and 112 . 7 and 8, the minimum value of the second counter value 440 is "00", the maximum value is "100", and the maximum specified value that the specified value 611 can take is "101".

S901では、第2カウンタ321が起動して初期設定を行う。例えば、第2カウンタ321は、受信した制御情報335に基づき、パルス334や規定値611、Aフラグ650、Bフラグ640、補正値443に初期値をセットする。
S902では、第2カウンタ321は、パルス334の生成を開始する指示(開始指示)がなされたか否かを判定する。開始指示は、第2カウンタ321が受信した制御情報335により判定することができる。開始指示がなされた場合は(S902でYes)、処理はS903へ進み、それ以外の場合は(S902でNo)、第2カウンタ321は、開始指示を待機する。
In S901, the second counter 321 is activated and initialized. For example, the second counter 321 sets initial values to the pulse 334 , the specified value 611 , the A flag 650 , the B flag 640 , and the correction value 443 based on the received control information 335 .
In S902, the second counter 321 determines whether or not an instruction (start instruction) to start generating the pulse 334 has been issued. The start instruction can be determined by the control information 335 received by the second counter 321 . If a start instruction has been issued (Yes in S902), the process proceeds to S903; otherwise (No in S902), the second counter 321 waits for a start instruction.

S903では、補正部410は、補正値443を計算する。具体的には、補正部410は、第1カウンタ値336と第2カウンタ値440の差分を取り、当該差分を、制御情報335内のオフセット値に加算して、補正値443を生成する。なお、補正値443は他の方法で生成されても良い。
S904では、第2カウンタ321は、第2更新タイミング337のタイミングか否か(第2更新タイミング337を受け取ったか否か)を判定する。すなわち、第2カウンタ321は、第2カウンタ値440を補正値443に補正するタイミングか否かを判定する。第2更新タイミング337のタイミングの場合(S904でYes)、処理はS905へ進み、それ以外の場合(S904でNo)、処理はS906へ進む。
In S<b>903 , the correction unit 410 calculates a correction value 443 . Specifically, the correction unit 410 obtains the difference between the first counter value 336 and the second counter value 440 and adds the difference to the offset value in the control information 335 to generate the correction value 443 . Note that the correction value 443 may be generated by another method.
In S904, the second counter 321 determines whether it is the timing of the second update timing 337 (whether the second update timing 337 has been received). That is, the second counter 321 determines whether or not it is time to correct the second counter value 440 to the correction value 443 . If it is the timing of the second update timing 337 (Yes in S904), the process proceeds to S905, otherwise (No in S904), the process proceeds to S906.

S905では、第2カウンタ321は、第2カウンタ値440に補正値443を適用する。補正値443が正の場合は加算、負の場合は減算が行われる。
S906では、第2カウンタ321は、第2カウンタ値440に対し周期情報520の値を加算する。
In S<b>905 , the second counter 321 applies the correction value 443 to the second counter value 440 . Addition is performed when the correction value 443 is positive, and subtraction is performed when the correction value 443 is negative.
In S<b>906 , the second counter 321 adds the value of the period information 520 to the second counter value 440 .

S907では、第2カウンタ321は、S905またはS906の処理後(補正後)の第2カウンタ値440(以後、計算結果)が、第2カウンタ値440の保持可能な最低値未満となるか否かを判定する。計算結果が最低値未満となる場合は(S907でYes)、処理はS908へ進み、それ以外の場合は(S907でNo)、処理はS910へ進む。 In S907, the second counter 321 determines whether or not the second counter value 440 after the processing (corrected) in S905 or S906 (hereinafter referred to as the calculation result) is less than the minimum value that the second counter value 440 can hold. judge. If the calculation result is less than the minimum value (Yes at S907), the process proceeds to S908; otherwise (No at S907), the process proceeds to S910.

S908では、カウンタ制御部530は、最大値へのリセットを示す制御信号441をフラグレジスタ660に通知し、これに応じてAフラグ650は“1”にセットされる。
S909では、第2カウンタ321は、第2カウンタ値440を、保持可能な範囲に調整する。負である計算結果に対し、第2カウンタ値440の保持可能な最大値を加算することで、第2カウンタ値440は最大値からS905にて計算された値分減算された正の値となる。
In S908, the counter control unit 530 notifies the flag register 660 of the control signal 441 indicating resetting to the maximum value, and accordingly the A flag 650 is set to "1".
In S909, the second counter 321 adjusts the second counter value 440 to a holdable range. By adding the maximum holdable value of the second counter value 440 to the negative calculation result, the second counter value 440 becomes a positive value obtained by subtracting the value calculated in S905 from the maximum value. .

S910では、第2カウンタ321は、S905またはS906での計算結果が、第2カウンタ値440が保持可能な最大値以上となるか否かを判定する。計算結果が最大値以上となる場合は(S910でYes)、処理はS911へ進み、それ以外は(S910でNo)、処理はS914へ進む。 In S910, the second counter 321 determines whether the calculation result in S905 or S906 is equal to or greater than the maximum value that the second counter value 440 can hold. If the calculation result is greater than or equal to the maximum value (Yes at S910), the process proceeds to S911; otherwise (No at S910), the process proceeds to S914.

S911では、カウンタ制御部530は、最小値へのリセットを示す制御信号441をフラグレジスタ660に通知し、これに応じてAフラグ650は“0”にセット(クリア)される。同様に、S912では、Bフラグ640が“0”にセット(クリア)される。
S913では、第2カウンタ321は、第2カウンタ値440を保持可能な範囲に調整する。第2カウンタ値440が保持可能な最大値以上である計算結果から、最大値を引くことで、第2カウンタ値440を最大値未満の正の値となる。
In S911, the counter control unit 530 notifies the flag register 660 of the control signal 441 indicating resetting to the minimum value, and accordingly the A flag 650 is set (cleared) to "0". Similarly, in S912, the B flag 640 is set (cleared) to "0".
In S913, the second counter 321 adjusts the second counter value 440 to a holdable range. By subtracting the maximum value from the calculation result in which the second counter value 440 is equal to or greater than the maximum value that can be held, the second counter value 440 becomes a positive value less than the maximum value.

S914では、第2カウンタ321は、Aフラグ650が“1”にセットされているか否かを判定する。Aフラグ650に“1”がセットされている場合は(S914でYes)、処理はS903へ進み、それ以外の場合は(S914でNo)、処理はS915へ進む。
S915では、第2カウンタ321は、Bフラグ640が“1”がセットされているか否かを判定する。Bフラグ640に“1”がセットされている場合は(S915でYes)、処理はS903へ進み、それ以外の場合は(S915でNo)、処理はS916へ進む
In S914, the second counter 321 determines whether the A flag 650 is set to "1". If the A flag 650 is set to "1" (Yes at S914), the process proceeds to S903, otherwise (No at S914), the process proceeds to S915.
In S915, the second counter 321 determines whether or not the B flag 640 is set to "1". If "1" is set in the B flag 640 (Yes at S915), the process proceeds to S903; otherwise (No at S915), the process proceeds to S916.

S916では、第2カウンタ321は、第2カウンタ値440が規定値611以上か否かを判定する。これにより、パルス生成部630がパルス334を切り替えるタイミングであるかどうかが判定される。第2カウンタ値440が規定値611以上の場合は(S916でYes)、処理はS917へ進み、規定値611未満の場合は(S916でNo)、処理はS903へ進む。
なお、S916の処理はS914とS916の前に行われてもよい。
In S<b>916 , the second counter 321 determines whether the second counter value 440 is equal to or greater than the specified value 611 . Thus, it is determined whether or not it is time for the pulse generator 630 to switch the pulse 334 . If the second counter value 440 is equal to or greater than the specified value 611 (Yes at S916), the process proceeds to S917, and if it is less than the specified value 611 (No at S916), the process proceeds to S903.
Note that the processing of S916 may be performed before S914 and S916.

S917では、パルス生成部630は、パルス334の“0”(ローレベル)または“1”(ハイレベル)を切り替える(変更する)。
S918では、パルス生成部630は、次の規定値611を計算する。当該計算は、現在の規定値611の所定の値を加算することにより行われうる。
S919では、第2カウンタ321は、S918で計算された規定値611が、規定値611の最大規定値以上となるか否かを判定する。規定値611の最大規定値未満である場合は(S919でNo)、処理はS903へ進み、規定値611の最大規定値以上である場合(S919でYes)、処理はS920へ進む。
In S917, the pulse generator 630 switches (changes) the pulse 334 between “0” (low level) and “1” (high level).
In S918, the pulse generation unit 630 calculates the following specified value 611. The calculation may be performed by adding a predetermined value of current default value 611 .
In S<b>919 , the second counter 321 determines whether or not the specified value 611 calculated in S<b>918 is equal to or greater than the maximum specified value of the specified value 611 . If it is less than the maximum specified value of the specified value 611 (No in S919), the process proceeds to S903, and if it is equal to or greater than the maximum specified value of the specified value 611 (Yes in S919), the process proceeds to S920.

S920では、パルス生成部630がBフラグ640に“1”をセットする。
S921では、第2カウンタ321は、規定値611を規定値611の初期値で更新する。
S922では、第2カウンタ321は、パルス334の生成を行う処理を停止する指示が行われているか否かを判定する。停止指示がされていない場合は(S922でNo)、処理はS903へ進み、停止指示がされている場合は(S922でYes)、本フローの処理を終了する。
In S920, the pulse generator 630 sets the B flag 640 to "1".
In S<b>921 , the second counter 321 updates the specified value 611 with the initial value of the specified value 611 .
In S922, the second counter 321 determines whether or not an instruction to stop the process of generating the pulse 334 has been issued. If no stop instruction has been issued (No in S922), the process proceeds to S903, and if a stop instruction has been issued (Yes in S922), the process of this flow ends.

このように、本実施形態によれば、更新された第2カウンタ値440が第2カウンタ値440の最大値未満である場合に、Aフラグ650を“1”にセットする。そして、Aフラグ650が1にセットされている一定期間、パルス334の生成を停止する。これにより、カウンタを補正するために減算する値が現在のカウンタ値よりも大きい場合であっても、不要なパルスを生成することなく、正確なパルス334を生成することが可能となる。 As described above, according to the present embodiment, when the updated second counter value 440 is less than the maximum value of the second counter value 440, the A flag 650 is set to "1". Then, the generation of the pulse 334 is stopped for a certain period during which the A flag 650 is set to 1. As a result, even if the value to be subtracted to correct the counter is greater than the current counter value, it is possible to generate an accurate pulse 334 without generating unnecessary pulses.

<第2実施形態>
続いて、第2実施形態について説明する。なお、同期通信システム100の構成、および、同期通信システム100の各装置の構成については、第1実施形態と同様であり、説明を省略する。
[処理の流れ]
図10は、本実施形態による同期通信装置110-2の同期信号生成部220における第2カウンタ321(図4~図6)により実行される処理のフローチャートを示す。基本的な処理の流れは、第1実施形態で説明した図9と同じであり、異なる処理について述べる。
<Second embodiment>
Next, a second embodiment will be described. Note that the configuration of the synchronous communication system 100 and the configuration of each device of the synchronous communication system 100 are the same as those of the first embodiment, and description thereof will be omitted.
[Process flow]
FIG. 10 shows a flowchart of processing executed by the second counter 321 (FIGS. 4 to 6) in the synchronization signal generator 220 of the synchronous communication device 110-2 according to this embodiment. The basic processing flow is the same as in FIG. 9 described in the first embodiment, and different processing will be described.

S909の処理の後のS1001では、第2カウンタ321は、現在の規定値611を保存する。
また、S913の後の処理S002では、第2カウンタ321は、規定値611をS1001またはS1006にて保存した値に更新する。
S1001またはS1002の後のS1003では、第2カウンタ321は、Aフラグ650が“1”がセットされているか否かを判定する。Aフラグ650に“1”がセットされている場合は(S1003でYes)、処理はS1004へ進み、それ以外の場合は(S1003でNo)、処理はS1005へ進む。
In S1001 after the processing of S909, the second counter 321 saves the current specified value 611. FIG.
Also, in processing S002 after S913, the second counter 321 updates the specified value 611 to the value saved in S1001 or S1006.
In S1003 after S1001 or S1002, the second counter 321 determines whether or not the A flag 650 is set to "1". If "1" is set in the A flag 650 (Yes in S1003), the process proceeds to S1004, otherwise (No in S1003), the process proceeds to S1005.

S1004では、第2カウンタ321は、規定値611に最大規定値をセットする。当該最大規定値は、第2カウンタ値440の最大値より大きい値とする。この処理により、規定値611は常に第2カウンタ値440よりも大きい値となり、S916にて常にS903への分岐が指定される。S904の後の処理で第2カウンタ値440への加算が行われ、S911、S912にてフラグがクリアされると、S1002において規定値611は、フラグがセットされる以前の値となり、再びパルス334の切り替え処理や規定値611の更新処理が行われるようになる。 In S1004, the second counter 321 sets the specified value 611 to the maximum specified value. The maximum specified value is set to a value greater than the maximum value of the second counter value 440 . By this processing, the prescribed value 611 always becomes a value larger than the second counter value 440, and the branch to S903 is always specified in S916. In the processing after S904, addition to the second counter value 440 is performed, and when the flag is cleared in S911 and S912, the specified value 611 becomes the value before the flag was set in S1002, and the pulse 334 is generated again. switching processing and updating processing of the specified value 611 are performed.

S1005では、第2カウンタ321は、Bフラグ640に“1”がセットされているか否かを判定する。Bフラグ640に“1”がセットされている場合は(S1005でYes)、処理はS1004へ進み、それ以外の場合は(S1005でNo)、処理はS916へ進む。 In S1005, the second counter 321 determines whether or not the B flag 640 is set to "1". If the B flag 640 is set to "1" (Yes at S1005), the process proceeds to S1004; otherwise (No at S1005), the process proceeds to S916.

S920の後のS1006は、規定値611が最大規定値以上となり、Bフラグ640が設定された際に、規定値611の初期値を保存することを示している。これによりS911、S912にてフラグがクリアされた際に規定値611が初期値に更新される。 S1006 after S920 indicates that the initial value of the specified value 611 is saved when the specified value 611 exceeds the maximum specified value and the B flag 640 is set. As a result, the specified value 611 is updated to the initial value when the flag is cleared in S911 and S912.

このように、本実施形態によれば、第1実施形態において述べたような効果を有するだけでなく、Aフラグ650やBフラグ640の設定による規定値611の管理が可能となる。 As described above, according to the present embodiment, it is possible not only to obtain the effects described in the first embodiment, but also to manage the specified value 611 by setting the A flag 650 and the B flag 640 .

以上、上記の実施形態によれば、有限数のビットで構成され、カウンタ値の最大値と最小値が設定されているカウンタを用いて同期信号であるパルス信号を生成する場合に、当該カウンタの補正を行う場合であっても、適切なパルス信号を生成することが可能となる。
また、当該パルス信号を用いて特定の処理(実施形態では撮影処理)のために生成された同期信号により、当該特定の処理の同期処理を継続して行うことが可能となる。
As described above, according to the above-described embodiments, when generating a pulse signal, which is a synchronization signal, using a counter configured with a finite number of bits and having a maximum value and a minimum value of the counter value, Even when correction is performed, it is possible to generate an appropriate pulse signal.
Further, a synchronization signal generated for specific processing (imaging processing in the embodiment) using the pulse signal enables continuous synchronization processing of the specific processing.

なお、上記実施形態では、カウンタはインクリメントカウンタであることを前提に説明したが、デクリメントカウンタを用いる場合であっても、上記説明における最大値/最小値を最小値/最大値と読み替えることにより、同様の説明を適用可能である。 In the above embodiment, the explanation was given on the premise that the counter is an increment counter. Similar statements are applicable.

100:同期撮影システム、111:同期通信装置、220:同期信号生成部、321:第2カウンタ、430:パルス出力部、640:パルス生成部、640:Bフラグ、650:Aフラグ 100: synchronous imaging system, 111: synchronous communication device, 220: synchronization signal generator, 321: second counter, 430: pulse output unit, 640: pulse generator, 640: B flag, 650: A flag

Claims (10)

通信装置であって、
外部クロックのタイミングでカウンタ値をインクリメントし、前記カウンタ値が所定の最大値以上となった場合に前記カウンタ値を所定の最小値に設定するように構成されたカウンタと、
前記カウンタの前記カウンタ値を補正する補正部と、
前記カウンタの前記カウンタ値を所定の規定値と比較して、前記カウンタ値が前記規定値以上となった場合に、ローレベルとハイレベルを有するパルス信号のレベルを切り替えて出力し、前記規定値に所定の値を加算して更新する信号制御部と、を有し、
前記補正部により前記カウンタの前記最小値を下回るような補正が行われた場合、もしくは、前記更新された規定値が前記規定値の取りうる所定の最大の規定値以上となった場合、前記信号制御部は、前記パルス信号の出力を、前記カウンタ値に基づく一定期間、行わない、
ことを特徴とする通信装置。
A communication device,
a counter configured to increment a counter value at the timing of an external clock and set the counter value to a predetermined minimum value when the counter value exceeds a predetermined maximum value;
a correction unit that corrects the counter value of the counter;
The counter value of the counter is compared with a predetermined specified value, and when the counter value exceeds the specified value, the level of a pulse signal having a low level and a high level is switched and output, and the specified value is output. and a signal control unit that updates by adding a predetermined value to
When the correcting unit performs correction such that the counter falls below the minimum value, or when the updated specified value becomes equal to or greater than a predetermined maximum specified value that the specified value can take, the signal The control unit does not output the pulse signal for a certain period of time based on the counter value;
A communication device characterized by:
前記補正部により前記カウンタの前記最小値を下回るような補正が行われた場合、前記カウンタは当該補正後の前記カウンタ値に前記最大値を加算し、前記信号制御部は、前記カウンタ値に前記最大値が加算されてから、前記カウンタ値が前記最大値以上となるまでの間、前記パルス信号の出力を行わないことを特徴とする請求項1に記載の通信装置。 When the correcting unit corrects the counter so as to fall below the minimum value, the counter adds the maximum value to the counter value after the correction, and the signal control unit adds the counter value to the counter value. 2. The communication apparatus according to claim 1, wherein the pulse signal is not output until the counter value becomes equal to or greater than the maximum value after the maximum value is added. 前記信号制御部は、
前記補正部により前記カウンタの前記最小値を下回るような補正が行われた場合に、第1フラグを1にセットし、
前記カウンタにより前記補正後の前記カウンタ値に前記最大値が加算された後に、前記カウンタ値が前記最大値以上となった場合に、前記第1のフラグを0にセットし、
前記第1フラグが1にセットされている間、前記パルス信号の出力を行わないことを特徴とする請求項1に記載の通信装置。
The signal control unit is
setting a first flag to 1 when the correcting unit corrects the counter so as to fall below the minimum value;
setting the first flag to 0 when the counter value becomes equal to or greater than the maximum value after the counter adds the maximum value to the corrected counter value;
2. The communication apparatus according to claim 1, wherein the pulse signal is not output while the first flag is set to 1.
前記更新された規定値が前記最大の規定値以上となった場合、前記信号制御部は、前記規定値を所定の初期値に更新し、前記規定値が前記初期値に更新されてから、前記カウンタ値が前記最大値以上となるまで間、前記パルス信号の出力を行わないことを特徴とする請求項1から3のいずれか1項に記載の通信装置。 When the updated specified value is greater than or equal to the maximum specified value, the signal control unit updates the specified value to a predetermined initial value, and after the specified value is updated to the initial value, the 4. The communication device according to any one of claims 1 to 3, wherein the pulse signal is not output until the counter value reaches or exceeds the maximum value. 前記信号制御部は、前記規定値が前記初期値に更新された場合に、第2フラグを1にセットし、前記規定値が前記初期値に更新された後に、前記カウンタ値が前記最大値以上となった場合に前記第2フラグを0にセットし、
前記第2フラグが1にセットされている間、前記パルス信号の出力を行わないことを特徴とする請求項4に記載の通信装置。
The signal control unit sets a second flag to 1 when the specified value is updated to the initial value, and after the specified value is updated to the initial value, the counter value is equal to or greater than the maximum value. When it becomes, the second flag is set to 0,
5. The communication apparatus according to claim 4, wherein the pulse signal is not output while the second flag is set to 1.
前記信号制御部は、前記パルス信号の出力を行わない間、前記カウンタ値が前記規定値以上とならないように、前記規定値を設定することを特徴とする請求項1から5のいずれか1項に記載の通信装置。 6. The signal control unit sets the specified value so that the counter value does not exceed the specified value while the pulse signal is not output. The communication device according to . 前記最大の規定値は、前記カウンタ値の前記最大値よりも大きい値であり、前記信号制御部は、前記規定値を前記最大の規定値に設定することを特徴とする請求項6に記載の通信装置。 7. The maximum specified value according to claim 6, wherein the maximum specified value is a value larger than the maximum value of the counter value, and the signal control section sets the specified value to the maximum specified value. Communication device. 前記カウンタにより前記カウンタ値をインクリメントする値は、前記外部クロックの周期の値であることを特徴とする請求項1から6のいずれか1項に記載の通信装置。 7. The communication apparatus according to any one of claims 1 to 6, wherein the value by which the counter value is incremented by the counter is a period value of the external clock. 前記規定値に加算される前記所定の値は、可変に設定されることを特徴とする請求項1から8のいずれか1項に記載の通信装置。 9. The communication device according to any one of claims 1 to 8, wherein said predetermined value to be added to said specified value is variably set. 前記信号制御部から出力された前記パルス信号に基づいて、所定の処理のための処理同期信号を生成する生成部をさらに有することを特徴とする請求項1から9のいずれか1項に記載の通信装置。 10. The apparatus according to any one of claims 1 to 9, further comprising a generation section that generates a processing synchronization signal for predetermined processing based on the pulse signal output from the signal control section. Communication device.
JP2021191698A 2021-11-26 2021-11-26 Communication device Pending JP2023078537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021191698A JP2023078537A (en) 2021-11-26 2021-11-26 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021191698A JP2023078537A (en) 2021-11-26 2021-11-26 Communication device

Publications (1)

Publication Number Publication Date
JP2023078537A true JP2023078537A (en) 2023-06-07

Family

ID=86646238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021191698A Pending JP2023078537A (en) 2021-11-26 2021-11-26 Communication device

Country Status (1)

Country Link
JP (1) JP2023078537A (en)

Similar Documents

Publication Publication Date Title
CN107277385B (en) Multi-camera system synchronous exposure control method and device and terminal equipment
US10728428B2 (en) Semiconductor device, electronic device module and network system
US20110035511A1 (en) Remote Hardware Timestamp-Based Clock Synchronization
US11099599B2 (en) Communication device, cascaded network and internal synchronization method
CN107439000B (en) Synchronous exposure method and device and terminal equipment
JP2010197320A (en) Slave device, time synchronization method of the same, master device, and electronic equipment system
GB2557312A (en) Method, device, and computer program for improving synchronization of clocks in devices linked according to a daisy-chain topology
WO2018228352A1 (en) Synchronous exposure method and apparatus and terminal device
US9806876B2 (en) Method and apparatus for compensating synchronization timing in a distributed timing network
US10853288B2 (en) Bus system
JP5802727B2 (en) Synchronous camera
CN113424466A (en) Method and device for clock synchronization
US11949767B2 (en) Communication apparatus, method of controlling communication apparatus, and storage medium
JP2023078537A (en) Communication device
CN107455006B (en) Synchronous exposure method and device and terminal equipment
US9442511B2 (en) Method and a device for maintaining a synchronized local timer using a periodic signal
WO2020090664A1 (en) Time synchronization system
JP2021093695A (en) Synchronous control device, control method thereof, and program
US20240204980A1 (en) Synchronous communication apparatus, control method of the same and storage medium
US20230179314A1 (en) In-band signaling for ingress ptp packets at a master entity
JP2019140643A (en) Transmission equipment
CN110336635B (en) Time noise transmission method, device and network node
CN117336419A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN117394942A (en) Image acquisition method, system and electronic equipment
JP2024075064A (en) COMMUNICATION DEVICE, CONTROL METHOD FOR COMMUNICATION DEVICE, AND PROGRAM