CN106201965B - A kind of interior external clock source switching device and switching method based on IRIG-B - Google Patents

A kind of interior external clock source switching device and switching method based on IRIG-B Download PDF

Info

Publication number
CN106201965B
CN106201965B CN201610553210.2A CN201610553210A CN106201965B CN 106201965 B CN106201965 B CN 106201965B CN 201610553210 A CN201610553210 A CN 201610553210A CN 106201965 B CN106201965 B CN 106201965B
Authority
CN
China
Prior art keywords
irig
clock synchronization
blvds
board
coding
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.)
Active
Application number
CN201610553210.2A
Other languages
Chinese (zh)
Other versions
CN106201965A (en
Inventor
李伟
黄作兵
黄蕾
赵永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Guodian Nanzi 710086 Automation Co Ltd
Original Assignee
Nanjing Guodian Nanzi 710086 Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Guodian Nanzi 710086 Automation Co Ltd filed Critical Nanjing Guodian Nanzi 710086 Automation Co Ltd
Priority to CN201610553210.2A priority Critical patent/CN106201965B/en
Publication of CN106201965A publication Critical patent/CN106201965A/en
Application granted granted Critical
Publication of CN106201965B publication Critical patent/CN106201965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

The interior external clock source switching device based on IRIG-B that the invention discloses a kind of, including main website board and several substation boards, the main website board are connect with substation board by BLVDS clock synchronization bus;CPU and FPGA are provided on main website board, the FPGA of main website board includes IRIG-B decoding circuit, internal clock circuit, time setting register, clock synchronization register, IRIG-B coding circuit and the first BLVDS coding-decoding circuit;CPU and FPGA are provided on the board of substation, the FPGA of substation board includes the 2nd BLVDS coding-decoding circuit.The switching method of the device is also disclosed simultaneously.The present invention is decoded and encodes to IRIG-B signal using FPGA realization, in external clock reference lossing signal, automatically switches to internal clock source, sends signal according to IRIG-B coded format, to guarantee each fastener clock synchronization work.

Description

A kind of interior external clock source switching device and switching method based on IRIG-B
Technical field
The present invention relates to a kind of interior external clock source switching device and switching method based on IRIG-B, belong to network clock synchronization skill Art field.
Background technique
When there are record the real-time and synchronism of event time when the fastener of muti-piece record event to a device Often merit attention.IRIG-B (InterRange Instrumentation Group), abbreviation B code clock synchronization, in stability Industrial control field is widely used in high reliablity.Using IRIG-B as external clock reference, obtained in more and more devices Using.But when external clock reference IRIG-B dropout for some reason, how to guarantee still to have clock to these fasteners into Row clock synchronization becomes problem.
Summary of the invention
The interior external clock source switching device that in order to solve the above-mentioned technical problems, the present invention provides a kind of based on IRIG-B and Switching method.
In order to achieve the above object, the technical scheme adopted by the invention is that:
A kind of interior external clock source switching device based on IRIG-B, including main website board and several substation boards, the master Board of standing is connect with substation board by BLVDS clock synchronization bus;
CPU and FPGA are provided on the main website board, when the FPGA of main website board includes IRIG-B decoding circuit, is internal Clock circuit, time setting register, clock synchronization register, IRIG-B coding circuit and the first BLVDS coding-decoding circuit;The time Register is arranged to connect with the CPU of main website board, the time setting register, internal clock circuit, clock synchronization register, IRIG-B coding circuit and the first BLVDS coding-decoding circuit are sequentially connected, the external IRIG-B pin of IRIG-B decoding circuit, The IRIG-B decoding circuit is connect with clock synchronization register, and the IRIG-B coding circuit is connect with the CPU of main website board, described First BLVDS coding-decoding circuit is connect with BLVDS clock synchronization bus;
CPU and FPGA are provided on the substation board, the FPGA of substation board includes the 2nd BLVDS coding-decoding circuit, The 2nd BLVDS coding-decoding circuit is connect with the CPU of substation board, the 2nd BLVDS coding-decoding circuit also with BLVDS pairs When bus connect.
The CPU of main website board is arranged register with the time by GPMC interface and connect.
IRIG-B coding circuit is connect by IRIG-B signal wire with the CPU of main website board.
2nd BLVDS coding-decoding circuit is connect by IRIG-B signal wire with the CPU of substation board.
A kind of switching method of the interior external clock source switching device based on IRIG-B, includes the following steps,
S1, defines priority rule in clock synchronization register, i.e., the priority of external clock synchronization time is higher than inside to constantly Between priority;
S2, when powering on, self-operating time and beginning clock synchronization instruction are sent to main website board by the CPU of main website board FPGA;After time setting register receives the self-operating time of main website Computer card CPU and starts clock synchronization instruction, internal clocking electricity Road is initialized according to the self-operating time of main website Computer card CPU, and as internal clock synchronization source, the internal clock synchronization time is written In clock synchronization register;
IRIG-B decoding circuit real time parsing exterior I RIG-B pin signal, when being resolved to exterior I RIG-B signal, The external clock synchronization time that parsing obtains is written in clock synchronization register;
S3, IRIG-B coding circuit carry out IRIG-B coding according to the clock synchronization time of clock synchronization register, and coding is obtained IRIG-B signal pass to the CPU of the first BLVDS coding-decoding circuit and main website board;
S4, IRIG-B signal is converted into BLVDS signal by the first BLVDS coding-decoding circuit, and BLVDS signal is sent to In BLVDS clock synchronization bus;
The CPU of main website board carries out IRIG-B decoding, and it is synchronous to reach temporal;
S5, the FPGA real-time monitoring BLVDS clock synchronization bus of substation board, the 2nd BLVDS coding-decoding circuit is by BLVDS clock synchronization BLVDS signal in bus is converted to IRIG-B signal, and IRIG-B signal is sent to the CPU of substation board, substation board CPU carry out IRIG-B decoding, reach substation board time synchronization.
Advantageous effects of the invention: the 1, present invention is decoded and compiles to IRIG-B signal using FPGA realization Code, in external clock reference lossing signal, automatically switches to internal clock source, sends and believes according to IRIG-B coded format Number, to guarantee each fastener clock synchronization work;2, the present invention sends IRIG-B encoded signal using FPGA, and precision is high, postpones small; 3, the present invention sends IRIG-B signal by BLVDS bus, can set time to muti-piece substation board, stability high reliability By force.
Detailed description of the invention
Fig. 1 is structural block diagram of the invention.
Fig. 2 is the structural block diagram of main website board.
Fig. 3 is the structural block diagram of substation board.
Specific embodiment
The invention will be further described below in conjunction with the accompanying drawings.Following embodiment is only used for clearly illustrating the present invention Technical solution, and not intended to limit the protection scope of the present invention.
As shown in Figure 1, a kind of interior external clock source switching device based on IRIG-B, including main website board and several substation plates Card, main website board connect by BLVDS clock synchronization bus with substation board
As shown in Fig. 2, be provided with CPU and FPGA on main website board, the FPGA of main website board include IRIG-B decoding circuit, Internal clock circuit, time setting register, clock synchronization register, IRIG-B coding circuit and the first BLVDS coding-decoding circuit.
Time setting register is connect with the CPU of main website board, is generally connect with the GPMC interface of CPU, time setting is posted Storage, internal clock circuit, clock synchronization register, IRIG-B coding circuit and the first BLVDS coding-decoding circuit are sequentially connected, The external IRIG-B pin of IRIG-B decoding circuit, IRIG-B decoding circuit are connect with clock synchronization register, and IRIG-B coding circuit is logical It crosses IRIG-B signal wire to connect with the CPU of main website board, the first BLVDS coding-decoding circuit is connect with BLVDS clock synchronization bus.
As shown in figure 3, being provided with CPU and FPGA on the board of substation, the FPGA of substation board includes the 2nd BLVDS encoding and decoding Circuit, the 2nd BLVDS coding-decoding circuit are connect by IRIG-B signal wire with the CPU of substation board, the 2nd BLVDS encoding and decoding electricity Road is also connect with BLVDS clock synchronization bus.
The switching method of above-mentioned apparatus, comprising the following steps:
S1, defines priority rule in clock synchronization register, i.e., the priority of external clock synchronization time is higher than inside to constantly Between priority.
S2, when powering on, self-operating time and beginning clock synchronization instruction are sent to main website board by the CPU of main website board FPGA;After time setting register receives the self-operating time of main website Computer card CPU and starts clock synchronization instruction, internal clocking electricity Road is initialized according to the self-operating time of main website Computer card CPU, and as internal clock synchronization source, the internal clock synchronization time is written In clock synchronization register;
IRIG-B decoding circuit real time parsing exterior I RIG-B pin signal, when being resolved to exterior I RIG-B signal, The external clock synchronization time that parsing obtains is written in clock synchronization register.
S3, IRIG-B coding circuit according to clock synchronization time of clock synchronization register (when there is the external clock synchronization time, coding Time is the external clock synchronization time;When not having the external clock synchronization time, the time of coding is the internal clock synchronization time) carry out IRIG-B It encodes, and the IRIG-B signal that coding obtains is passed to the CPU of the first BLVDS coding-decoding circuit and main website board.
S4, IRIG-B signal is converted into BLVDS signal by the first BLVDS coding-decoding circuit, and BLVDS signal is sent to In BLVDS clock synchronization bus;
The CPU of main website board carries out IRIG-B decoding, and it is synchronous to reach temporal.
S5, the FPGA real-time monitoring BLVDS clock synchronization bus of substation board, the 2nd BLVDS coding-decoding circuit is by BLVDS clock synchronization BLVDS signal in bus is converted to IRIG-B signal, and IRIG-B signal is sent to the CPU of substation board, substation board CPU carry out IRIG-B decoding, reach substation board time synchronization.
The present invention is decoded and encodes to IRIG-B signal using FPGA realization, in external clock reference lossing signal situation Under, internal clock source is automatically switched to, sends signal according to IRIG-B coded format, to guarantee each fastener clock synchronization work; IRIG-B encoded signal is sent using FPGA, precision is high, postpones small;IRIG-B signal is sent by BLVDS bus, it can be to muti-piece Substation board is set time, and stability high reliability is strong.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, several improvement and deformations can also be made, these improvement and deformations Also it should be regarded as protection scope of the present invention.

Claims (1)

1. a kind of switching method of the interior external clock source switching device based on IRIG-B, the interior external clock source based on IRIG-B Switching device, including main website board and several substation boards, the main website board and substation board are connected by BLVDS clock synchronization bus It connects;
CPU and FPGA are provided on the main website board, the FPGA of main website board includes IRIG-B decoding circuit, internal clocking electricity Road, time setting register, clock synchronization register, IRIG-B coding circuit and the first BLVDS coding-decoding circuit;The time setting Register is connect with the CPU of main website board, and the time setting register, internal clock circuit, clock synchronization register, IRIG-B are compiled Code circuit and the first BLVDS coding-decoding circuit are sequentially connected, and the external IRIG-B pin of IRIG-B decoding circuit is described IRIG-B decoding circuit is connect with clock synchronization register, and the IRIG-B coding circuit is connect with the CPU of main website board, and described first BLVDS coding-decoding circuit is connect with BLVDS clock synchronization bus;
CPU and FPGA are provided on the substation board, the FPGA of substation board includes the 2nd BLVDS coding-decoding circuit, described 2nd BLVDS coding-decoding circuit is connect with the CPU of substation board, and the 2nd BLVDS coding-decoding circuit is also total with BLVDS clock synchronization Line connection;
It is characterized by comprising following steps,
S1, defines priority rule in clock synchronization register, i.e., the priority of external clock synchronization time is higher than the internal clock synchronization time Priority;
S2, when powering on, self-operating time and beginning clock synchronization instruction are sent to main website board by the CPU of main website board FPGA;After time setting register receives the self-operating time of main website Computer card CPU and starts clock synchronization instruction, internal clocking electricity Road is initialized according to the self-operating time of main website Computer card CPU, and as internal clock synchronization source, the internal clock synchronization time is written In clock synchronization register;
IRIG-B decoding circuit real time parsing exterior I RIG-B pin signal will be solved when being resolved to exterior I RIG-B signal The external clock synchronization time that analysis obtains is written in clock synchronization register;
S3, IRIG-B coding circuit carry out IRIG-B coding according to the clock synchronization time of clock synchronization register, and coding is obtained IRIG-B signal passes to the CPU of the first BLVDS coding-decoding circuit and main website board;
S4, IRIG-B signal is converted into BLVDS signal by the first BLVDS coding-decoding circuit, and BLVDS signal is sent to In BLVDS clock synchronization bus;
The CPU of main website board carries out IRIG-B decoding, and it is synchronous to reach temporal;
S5, the FPGA real-time monitoring BLVDS clock synchronization bus of substation board, the 2nd BLVDS coding-decoding circuit is by BLVDS clock synchronization bus On BLVDS signal be converted to IRIG-B signal, and IRIG-B signal is sent to the CPU of substation board, the CPU of substation board IRIG-B decoding is carried out, substation board time synchronization is reached.
CN201610553210.2A 2016-07-14 2016-07-14 A kind of interior external clock source switching device and switching method based on IRIG-B Active CN106201965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610553210.2A CN106201965B (en) 2016-07-14 2016-07-14 A kind of interior external clock source switching device and switching method based on IRIG-B

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610553210.2A CN106201965B (en) 2016-07-14 2016-07-14 A kind of interior external clock source switching device and switching method based on IRIG-B

Publications (2)

Publication Number Publication Date
CN106201965A CN106201965A (en) 2016-12-07
CN106201965B true CN106201965B (en) 2019-05-21

Family

ID=57475320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610553210.2A Active CN106201965B (en) 2016-07-14 2016-07-14 A kind of interior external clock source switching device and switching method based on IRIG-B

Country Status (1)

Country Link
CN (1) CN106201965B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109193951A (en) * 2018-11-08 2019-01-11 南京国电南自维美德自动化有限公司 A kind of intelligent operation box with surge suppression function
CN111245567B (en) * 2020-01-10 2023-06-23 深圳市风云实业有限公司 Decoding and encoding system and method for IRIG-B (DC) code
CN112328002A (en) * 2020-10-27 2021-02-05 许继集团有限公司 Multi-board time synchronization method and system for relay protection device
CN117421270A (en) * 2023-10-12 2024-01-19 中国兵器装备集团自动化研究所有限公司 Self-adaptive clock system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200994146Y (en) * 2006-12-30 2007-12-19 中国电子科技集团公司第五十研究所 High speed serial time division multiplexing bux
CN101789627A (en) * 2010-01-06 2010-07-28 江苏方天电力技术有限公司 High-precision Ethernet timing device
CN206003087U (en) * 2016-07-14 2017-03-08 南京国电南自美卓控制系统有限公司 A kind of interior external clock source switching device based on IRIG B

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10845399B2 (en) * 2007-04-03 2020-11-24 Electro Industries/Gaugetech System and method for performing data transfers in an intelligent electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200994146Y (en) * 2006-12-30 2007-12-19 中国电子科技集团公司第五十研究所 High speed serial time division multiplexing bux
CN101789627A (en) * 2010-01-06 2010-07-28 江苏方天电力技术有限公司 High-precision Ethernet timing device
CN206003087U (en) * 2016-07-14 2017-03-08 南京国电南自美卓控制系统有限公司 A kind of interior external clock source switching device based on IRIG B

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"具光电接口的IRIG-B码的时间同步系统与时滞校正";吴炜;《中国优秀硕士学位论文全文数据库 信息科技辑》;20111215(第12期);论文3.1节、3.5节、3.6节、4.1节、4.3节,图3-1、图3-9、图4-3

Also Published As

Publication number Publication date
CN106201965A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106201965B (en) A kind of interior external clock source switching device and switching method based on IRIG-B
CN201838298U (en) Two-backup circuit and two-backup system of LED display screen power supply
CN205016208U (en) LED display screen power and signal double copies system
CN105403793A (en) Automatic transformer station digital relay protection tester
CN112532484B (en) Transparent protocol conversion method and device for joint debugging test of stability control test system
CN105305640A (en) Intelligent substation fault record protection motion information diagnosis method
CN105955398B (en) A kind of system timing device and time synchronization method based on FPGA
CN108183814B (en) Troubleshooting method and device for communication channel of electricity utilization information acquisition system
CN209728073U (en) HWIL simulation commissioning device under CRH3 type EMU cell level maintenance model
CN104795894A (en) Fault information intelligent processing system of large power grid
CN204649927U (en) A kind of primary cut-out state monitoring device
CN206003087U (en) A kind of interior external clock source switching device based on IRIG B
CN103888331A (en) General high speed bus device for distribution terminal and data interaction method
CN202394060U (en) Merging unit hardware core board based on PowerPC system
CN205594496U (en) System timing device based on FPGA
CN102522821B (en) Intelligent terminal equipment in intelligent transformer substation and control method thereof
CN112235281A (en) Fault indicator and data transmission system of fault indicator
CN202906581U (en) Fault resetting system of cooling device of high-voltage direct-current power transmission converter valve
CN103942510A (en) Wiegand signal reading and converting device
CN203149057U (en) A flexible DC power distribution network DC bus successive fault synchronous testing device
CN203104497U (en) Digital relay protection testing device
CN210780840U (en) Integrated multifunctional intelligent data acquisition system
CN207082908U (en) A kind of breaker is met an urgent need intelligence control system
CN105259784A (en) Power system simulation oriented signaling coding method and high-speed data transmission method thereof
CN110994550A (en) Regional protection system based on 5G edge computing technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 210032 Jiangsu province Nanjing city Pukou high tech Zone Huidalu No. 9

Applicant after: Nanjing Guodian Nanzi 710086 Automation Co. Ltd.

Address before: Nanjing City, Jiangsu province 210032 Spark Road, Pukou hi tech Development Zone No. 8

Applicant before: Nanjing Guodian Nanzi Meizhuo Control System Co.,Ltd.

GR01 Patent grant
GR01 Patent grant