A method for improving the decoding performance of B time code is proposed by the present invention, which aims to provide a decoding method that can obtain stable time information when the quality of the external B time code is not good. The invention is realized by the following technical scheme: the first stage B time code decoder decodes the B code of the external input. The time information of the decoding output is converted into the BCD code format in the BCD code converter, and the correction reference time information is provided by the time code encoder of the B time code by the school time controller; the signal locking decision module is based on the first time code. The output of the first level B time code decoder outputs the external time information and the second pulse information. By calculating the lock state of the current B time code, the time code is triggered by the periodic correction of the timer generated by the timer, and according to the locking decision of the external B time code and the time information of the BCD code format, the B time code is periodically corrected. The time offset between the encoder and the outer B time code; the inner B code encoder generates the internal B time code under the local system clock drive, and obtains the final output time information.
【技术实现步骤摘要】
提高B时间码译码性能的方法
本专利技术涉及一种广泛应用于测量、控制、计算、通信、气象等测试设备,商业、工业等诸多领域,在信号质量不佳时,对B时间码的译码方法。
技术介绍
IRIG-B格式时间码,简称B码为国际通用时间格式码,用于各系统的时间同步具有传输容易,接口标准化,国际通用等特点。IRIG-B时间码格式是每秒一帧的时间串码,每个码元宽度为10ms,一个时帧周期包括100个码元。码元的“准时”参考点是其脉冲前沿,时帧的参考标志由一个位置识别标志和相邻的参考码元组成,其宽度为8ms;每10个码元有一个位置识别标志:P1,P2,P3,…,P9,P10,它们均为8ms宽度;PR为帧参考点;二进制"1"和"0"的脉宽为5ms和2ms。一个时间格式帧从帧参考标志开始,连续两个8ms宽脉冲表明秒的开始,从第二个8ms开始对码元进行编码,分别为第0,1,2,…,99个码元。在B码时间格式中含有天、时、分、秒,时序为秒-分-时-天,所占信息位为秒7位、分7位、时6位、天10位,其位置在P0~P5之间。P6~P10包含其他控制信息。其中“秒”信息:第1,2,3,4,6,7,8码元;"分”"信息:第10,11,12,13,15,16,17码元;“时”信息:第20,21,22,23,25,26,27码元;第5,14,24码元为索引标志,宽度为2ms。时、分、秒均用BCD码表示,低位在前,高位在后;个位在前,十位在后。对B码进行解码就是将B码中所包含的时、分、秒信息提取出来,转换成主计算机能够识别的形式,同时以秒的准时点为参考,生成毫秒信息,一同送入主计算机中。由于一般存在线缆 ...
【技术保护点】
一种提高B时间码译码性能的方法,其特征在于包括如下步骤:在传统B时间码译码器基础上,增加与之相连的BCD码转换器、锁定判决器和连接BCD码转换器的校时控制器及定时器、校时控制器,通过第二级内B时间码编码器输出时间信息的内B时间码译码器,以构成译码‑编码‑码译架构的B时间码译码电路;第一级B时间码译码器对外部输入的B码进行译码,将输出的时间信息传输到BCD码转换器转换为BCD码格式,通过校时控制器向内B时间码编码器提供校正参考时间信息;信号锁定判决模块根据第一级B时间码译码器输出的外时间信息和秒脉冲信息,通过计算判决当前外B码的锁定状态;校时控制器在定时器产生的周期性校时脉冲触发下,根据外B码的锁定判决指示和BCD码格式的时间信息,周期性的校正内B时间码编码器与外B时间码的时间偏差;内B码编码器在本地系统时钟驱动下,稳定的产生内B时间码;内B时间码通过第二级B时间码译码器解调,得到最终的输出时间信息。
【技术特征摘要】
1.一种提高B时间码译码性能的方法,其特征在于包括如下步骤:在传统B时间码译码器基础上,增加与之相连的BCD码转换器、锁定判决器和连接BCD码转换器的校时控制器及定时器、校时控制器,通过第二级内B时间码编码器输出时间信息的内B时间码译码器,以构成译码-编码-码译架构的B时间码译码电路;第一级B时间码译码器对外部输入的B码进行译码,将输出的时间信息传输到BCD码转换器转换为BCD码格式,通过校时控制器向内B时间码编码器提供校正参考时间信息;信号锁定判决模块根据第一级B时间码译码器输出的外时间信息和秒脉冲信息,通过计算判决当前外B码的锁定状态;校时控制器在定时器产生的周期性校时脉冲触发下,根据外B码的锁定判决指示和BCD码格式的时间信息,周期性的校正内B时间码编码器与外B时间码的时间偏差;内B码编码器在本地系统时钟驱动下,稳定的产生内B时间码;内B时间码通过第二级B时间码译码器解调,得到最终的输出时间信息。2.如权利要求1所述的提高B时间码译...
【专利技术属性】
技术研发人员:蒋友邦,
申请(专利权)人:西南电子技术研究所中国电子科技集团公司第十研究所,
类型:发明
国别省市:四川,51
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。