CN103138767A - Decoder of inter range instrumentation group (IRIG)-B code - Google Patents

Decoder of inter range instrumentation group (IRIG)-B code Download PDF

Info

Publication number
CN103138767A
CN103138767A CN2013100136952A CN201310013695A CN103138767A CN 103138767 A CN103138767 A CN 103138767A CN 2013100136952 A CN2013100136952 A CN 2013100136952A CN 201310013695 A CN201310013695 A CN 201310013695A CN 103138767 A CN103138767 A CN 103138767A
Authority
CN
China
Prior art keywords
code
signal
irig
input
chip microcomputer
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
CN2013100136952A
Other languages
Chinese (zh)
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.)
HANGZHOU VICON TECHNOLOGY Co Ltd
Original Assignee
HANGZHOU VICON TECHNOLOGY 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 HANGZHOU VICON TECHNOLOGY Co Ltd filed Critical HANGZHOU VICON TECHNOLOGY Co Ltd
Priority to CN2013100136952A priority Critical patent/CN103138767A/en
Publication of CN103138767A publication Critical patent/CN103138767A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

The invention belongs to the technical field of electronic communication and relates to a decoder, in particular to the decoder of an inter range instrumentation group (IRIG) code. The decoder of the IRIG-B code comprises a direct current (DC) code decoding module, an alternating current (AC) code decoding module and a field programmable gate array (FPGA) chip, wherein the DC code decoding module comprises a DC code interface and a level conversion circuit. A DC code is input to the level conversion module through the DC code interface and input to the FPGA chip to be decoded after conversion. The AC code decoding module comprises a sampling clock generation module, a signal sampling processing module and an isolation transformer, wherein the isolation transformer can achieve isolated protection of an input AC code. The decoder of the IRIG-B code has the advantages that the IRIG-B (AC) code and the IRIG-B (DC) code can be decoded simultaneously, and a unit of a micro controller unit and the FPGA are selected to conduct decoding analysis and calculation in order to solve the problems of the speed and the time precision of decoding signals and reduce decoding errors.

Description

A kind of IRIG-B code decoder
Technical field
The invention belongs to the electronic communication field, refer to especially a kind of decoder, especially a kind of IRIG-B code decoder.
Background technology
IRIG(Inter-Range Instrumentation Group target range instrument group) be the U.S. RCC(Range Commanders Council target range commandant committee) affiliated institutions, can be used for time system master station to the time, correction time, also can be by timing code to the timing equipment precision time service, the IRIG standard that it is formulated becomes general international standard.The serial timing code standard code of IRIG A, B, C, D, E, G, seven kinds of forms of H (the C code is cancelled), wherein, the B IRIG-B format time code due to the time frame period be 1 second, the demand that is fit to people, obtained using the most widely, the IRIG timing code that most occasions are used is all the B form type code, namely the IRIG-B code.Exchange because the IRIG-B code is divided into again AC() code and DC(direct current) code, in existing products scheme, a lot of designs can only decode AC code or DC code, and the single-chip microcomputer that only adopts that has in design decodes, and is prone to like this situation that code error is even made mistakes greatly of separating.Generally in decoding AC code, all adopt the device modules such as zero passage, amplification and sampling.Because the amplitude of AC code input be not fix (0.5~10Vp-p), fix when the multiplication factor of amplifier, will certainly cause the scope of AC input signal to limit to some extent.The method of sampling of the employing routine that has in sampler is carried out sampling analysis to whole AC signal, cause the data analysis amount large, affect the processor operating efficiency.Along with client's requirement is more and more higher, only design solution AC code or DC code can not satisfy the demands, should adopt two kinds of codes can separate simultaneously.In decoding design, adopt FPGA to combine deal with data with single-chip microcomputer, can reach efficiently, accurately, purpose easily.In addition, if AC code input signal amplitude range limits to some extent, also be difficult to satisfy the client, adopt the automatic gain to control, can effectively solve the amplitude problem.
Summary of the invention
The objective of the invention is to have the problems referred to above for existing technology, proposed a kind of a large amount of data analysis that reduces, raise the efficiency, can reach efficient, accurate IRIG-B code decoder.
For achieving the above object, the present invention has adopted following technical proposal: a kind of IRIG-B code decoder comprises DC code decoder module, AC code decoder module, fpga chip; DC code decoder module comprises: DC code interface, level shifting circuit.The DC code is input to level shifting circuit by DC code interface, is input to fpga chip after changing and decodes; AC code decoder module comprises: sampling clock generation module, signal sampling processing module and can realize the AC code isolating transformer that carries out insulation blocking to input; The sampling clock generation module comprises zero passage and bleeder circuit, fpga chip, and the signal of isolating transformer output produces sampled clock signal through the sampling clock generation module, as the sampling clock of single-chip microcomputer; The signal sampling processing module comprises absolute value and bleeder circuit, follower, automatic gain control, analog switch, single-chip microcomputer, signal after the isolating transformer isolation is divided into two-way by absolute value and bleeder circuit, and one the tunnel directly sends into single-chip microcomputer detects voltage peak; Another road is carried out automatic gain after by follower and is controlled, and the signal of output is input to single-chip microcomputer and samples after the analog switch protection.
In above-mentioned a kind of IRIG-B code decoder, when checking signal, described single-chip microcomputer can with uncomfortable signal feedback to the automatic gain module, regulate magnification ratio to be suitable for the specified input range of single-chip microcomputer.
Compared with prior art, the invention has the advantages that: can decode to IRIG-B (AC) code and IRIG-B (DC) code simultaneously, adopt SCM﹠FPGA to unite and carried out Decoding Analysis and calculating, improved the generation of speed, time accuracy and the minimizing decoding error of decoded signal.Unrestricted to IRIG-B (AC) code input voltage range in addition; a high amplitude detection and automatic gain control circuit have been adopted; voltage to signal automatically adjusts; signal voltage is reached can be surveyed in scope; and externally IRIG-B code input interface and single-chip microcomputer signal input interface have adopted respectively the protective circuits such as isolation and analog switch, have effectively guaranteed the reliability of circuit.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is DC and AC code decoding process figure;
Fig. 2 is DC code decoding process figure;
Fig. 3 is AC code decoding process figure;
Fig. 4 is zero passage comparison circuit schematic diagram;
Fig. 5 is absolute value and bleeder circuit schematic diagram.
Fig. 6 is the ACC oscillogram;
Fig. 7 is the automatic gain control principle drawing;
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 1, 2, a kind of IRIG-B code decoder comprises DC code decoder module, AC code decoder module, fpga chip; DC code decoder module comprises: DC code interface, level shifting circuit.The DC code is input to level shifting circuit by DC code interface, is input to fpga chip after changing and decodes; AC code decoder module comprises: sampling clock generation module, signal sampling processing module and can realize the AC code isolating transformer that carries out insulation blocking to input.
The sampling clock generation module comprises zero passage and bleeder circuit, fpga chip, and the signal of isolating transformer output produces sampled clock signal through the sampling clock generation module, as the sampling clock of single-chip microcomputer; The signal sampling processing module comprises absolute value and bleeder circuit, follower, automatic gain control, analog switch, single-chip microcomputer, signal after the isolating transformer isolation is divided into two-way by absolute value and bleeder circuit, and one the tunnel directly sends into single-chip microcomputer detects voltage peak; Another road is carried out automatic gain after by follower and is controlled, and the signal of output is input to single-chip microcomputer and samples after the analog switch protection.
As shown in Figure 3 and Figure 4; IRIG-B alternating current code (AC) is after standard interface; carry out circuit protection by isolating transformer; signal after isolation is processed through zero passage and bleeder circuit; generation frequency 1kHz, amplitude are the pulse signal A1KC of 3V; the A1KC pulse signal is delivered to the FPGA module, and the FPGA module is carried out 1 frequency multiplication and is obtained the pulse signal that frequency is 2kHz, is that the pulse signal of 2kHz is as the sampling clock of single-chip microcomputer with this frequency.As shown in Figure 5, the signal after simultaneously isolating transformer isolation obtains signal ACC after processing through absolute value and bleeder circuit, the oscillogram of ACC signal as shown in Figure 6, the ACC signal will be divided into two-way, one road ACC signal is directly sent into single-chip microcomputer detection voltage peak; As shown in Figure 7, another road ACC signal carries out automatic gain after by follower and controls, being input to single-chip microcomputer after the signal ACC_1 of output protects by analog switch samples, wherein absolute value and bleeder circuit are that negative half axis signal with the AC code becomes positive axis signal and dividing potential drop, thereby realize reading the AC code; In addition, when checking signal, single-chip microcomputer can with uncomfortable signal feedback to the automatic gain module, regulate magnification ratio to be suitable for the specified input range of single-chip microcomputer.
The above is only preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (2)

1. an IRIG-B code decoder, comprise DC code decoder module, AC code decoder module, fpga chip; DC code decoder module comprises: DC code interface, level shifting circuit; The DC code is input to level shifting circuit by DC code interface, is input to fpga chip after changing and decodes; AC code decoder module comprises: sampling clock generation module, signal sampling processing module and can realize the AC code isolating transformer that carries out insulation blocking to input; The sampling clock generation module comprises zero passage and bleeder circuit, fpga chip, and the signal of isolating transformer output produces sampled clock signal through the sampling clock generation module, as the sampling clock of single-chip microcomputer; The signal sampling processing module comprises absolute value and bleeder circuit, follower, automatic gain control, analog switch, single-chip microcomputer, signal after the isolating transformer isolation is divided into two-way by absolute value and bleeder circuit, and one the tunnel directly sends into single-chip microcomputer detects voltage peak; Another road is carried out automatic gain after by follower and is controlled, and the signal of output is input to single-chip microcomputer and samples after the analog switch protection.
2. a kind of IRIG-B code decoder described according to claim 1, is characterized in that, can with uncomfortable signal feedback to the automatic gain module, regulate magnification ratio to be suitable for the specified input range of single-chip microcomputer when described single-chip microcomputer checks signal.
CN2013100136952A 2013-01-14 2013-01-14 Decoder of inter range instrumentation group (IRIG)-B code Pending CN103138767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100136952A CN103138767A (en) 2013-01-14 2013-01-14 Decoder of inter range instrumentation group (IRIG)-B code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100136952A CN103138767A (en) 2013-01-14 2013-01-14 Decoder of inter range instrumentation group (IRIG)-B code

Publications (1)

Publication Number Publication Date
CN103138767A true CN103138767A (en) 2013-06-05

Family

ID=48498155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100136952A Pending CN103138767A (en) 2013-01-14 2013-01-14 Decoder of inter range instrumentation group (IRIG)-B code

Country Status (1)

Country Link
CN (1) CN103138767A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103346804A (en) * 2013-07-30 2013-10-09 哈尔滨工业大学 IRIG-B (Inter Range Instrumentation Group) encoding and decoding system and method based on FPGA (Field Programmable Gate Array)
CN103913615A (en) * 2014-03-21 2014-07-09 中国科学院长春光学精密机械与物理研究所 IRIG-B code alternating-current code distortion monitoring displaying system
CN108572544A (en) * 2018-04-23 2018-09-25 中电科技扬州宝军电子有限公司 A kind of alternating current-direct current B code self-adaptings resolver and method
CN108763141A (en) * 2018-06-05 2018-11-06 成都爱斯顿科技有限公司 A kind of IRIG-B codes symbol is nonpolarity data processing equipment and method
CN109639286A (en) * 2018-12-25 2019-04-16 西电通用电气自动化有限公司 A kind of IRIG-B adaptive decoding circuit and method
CN112751569A (en) * 2020-12-25 2021-05-04 北京航星机器制造有限公司 Alternating current B code decoding circuit and decoding method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1665128A (en) * 2005-03-30 2005-09-07 哈尔滨工业大学 Multi-level auto-gain control integrated circuit system having gain indication function

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1665128A (en) * 2005-03-30 2005-09-07 哈尔滨工业大学 Multi-level auto-gain control integrated circuit system having gain indication function

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佟刚 等: "MSP430F149在IRIG-B码解码中的应用", 《计算机测量与控制》, vol. 15, 30 November 2007 (2007-11-30) *
佟刚 等: "基于MSP430+FPGA的IRIG-B码时统设计", 《电光与控制》, vol. 16, no. 5, 31 May 2009 (2009-05-31), pages 93 - 96 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103346804A (en) * 2013-07-30 2013-10-09 哈尔滨工业大学 IRIG-B (Inter Range Instrumentation Group) encoding and decoding system and method based on FPGA (Field Programmable Gate Array)
CN103346804B (en) * 2013-07-30 2016-12-28 哈尔滨工业大学 IRIG-B code coding-decoding system based on FPGA and encoding and decoding method thereof
CN103913615A (en) * 2014-03-21 2014-07-09 中国科学院长春光学精密机械与物理研究所 IRIG-B code alternating-current code distortion monitoring displaying system
CN108572544A (en) * 2018-04-23 2018-09-25 中电科技扬州宝军电子有限公司 A kind of alternating current-direct current B code self-adaptings resolver and method
CN108763141A (en) * 2018-06-05 2018-11-06 成都爱斯顿科技有限公司 A kind of IRIG-B codes symbol is nonpolarity data processing equipment and method
CN109639286A (en) * 2018-12-25 2019-04-16 西电通用电气自动化有限公司 A kind of IRIG-B adaptive decoding circuit and method
CN112751569A (en) * 2020-12-25 2021-05-04 北京航星机器制造有限公司 Alternating current B code decoding circuit and decoding method

Similar Documents

Publication Publication Date Title
CN103138767A (en) Decoder of inter range instrumentation group (IRIG)-B code
CN100583644C (en) Integrating A/D convertion method and its A/D converter
CN102520386B (en) Calibration method of three-phase electric energy meter
CN103941080B (en) The method of electric machine phase current temperature drift is eliminated in real time
CN101957806B (en) Peripheral component interconnection standard acquisition device for synchronous serial interface signal
CN102589584B (en) Method for converting high-precision single-chip digital signal into shaft angle signal
CN105892280B (en) A kind of satellite time transfer device
CN104375163A (en) Multichannel pulse amplitude analyzer
CN103149422A (en) Current detection circuit
CN103235279B (en) A kind of electric mutual inductor output verification device
CN203554071U (en) Intelligent transformer station merging unit automatic verification device
CN108873786B (en) Data acquisition system based on digital quantity conditioning
CN102331522B (en) Isolated voltage acquisition circuit for light transmission equipment
CN203057114U (en) IRIG-B code decoder
CN103926550A (en) Device and method for checking electric transformer based on virtual instrument
CN203151415U (en) Rotary transformer system
CN202362445U (en) Electronic type mutual inductor on-site check meter
CN102508423A (en) IRIG-B (Inter-Range Instrumentation Group-B) time-setting method adopting enhanced capture module
CN204028707U (en) A kind of solar panel automatic tracking system
CN203301361U (en) Intelligent current and voltage isolated transmitter for photovoltaic grid-connected inverter
CN104391182A (en) Multichannel pulse amplitude analyzer in simple differential circuit
CN213875999U (en) Digital direct current electric energy meter calibration device
CN109660256A (en) The A/D error correcting circuit and modification method of preset parameter
CN103487631B (en) Modulation-demodulation type current sensor
CN105300271A (en) Multichannel RDC angle measurement CPCI insertion card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130605