CN110750479A - 基于同步422标准的数据采样方法 - Google Patents
基于同步422标准的数据采样方法 Download PDFInfo
- Publication number
- CN110750479A CN110750479A CN201910966448.1A CN201910966448A CN110750479A CN 110750479 A CN110750479 A CN 110750479A CN 201910966448 A CN201910966448 A CN 201910966448A CN 110750479 A CN110750479 A CN 110750479A
- Authority
- CN
- China
- Prior art keywords
- clock
- data
- sampling
- module
- synchronous
- 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
Links
- 238000005070 sampling Methods 0.000 title claims abstract description 74
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000001360 synchronised effect Effects 0.000 claims abstract description 37
- 230000000630 rising effect Effects 0.000 claims abstract description 27
- 238000012545 processing Methods 0.000 claims abstract description 14
- 230000010354 integration Effects 0.000 claims abstract description 11
- 239000013078 crystal Substances 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000007429 general method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
- G06F13/4286—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0002—Serial port, e.g. RS232C
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/40—Bus coupling
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
本发明属于数据传输技术领域,具体涉及一种基于同步422标准的数据采样方法,其通过采样电路实现传输数据的采样。所述数据采样方法基于数据采样系统来实现,所述数据采样系统包括:高频时钟模块、时钟采样模块、时钟上升沿判断模块、数据采样模块、整合模块、数据处理模块;与现有技术相比较,本发明对数据接收方的通用采样方法做了改进,在数据接收方使用高频时钟(时钟频率不小于同步422时钟的5倍频率)作为采样时钟,同时使用高频时钟采样同步422的时钟信号和数据信号,通过整合电路判断输入时钟的上升沿来采样输入数据信号,保证采样电路的稳定性,能够正确采样输入数据。
Description
技术领域
本发明属于数据传输技术领域,具体涉及一种基于同步422标准的数据采样方法,其通过采样电路实现传输数据的采样。
背景技术
同步422标准是RS-232的改进型,全称是“平衡电压数字接口电路的电器特性”。它使用两根线之间的电压差来代表逻辑电平,通常称之为双绞线。它是一种平衡传输,任何噪声或干扰都会同时影响两根双绞线中的每一根,但对两者之间的差异影响很小,这种现象称为共模抑制。所以同步422可以在更远的距离上以更快的速度传输数据,其抗干扰能力远强于RS-232、SPI等非平衡传输方式。其最大传输距离约1200m,最大传输速度可达10Mb/s。
由于同步422标准指示规定了电压标准而无具体实现细节,通常数据传输采用的实现方式是:使用两根信号线,一根串行时钟线及一根串行数据线。数据发送方驱动这两根信号,数据接收方采样数据信号。具体实现为:数据发送方驱动时钟线,在每个时钟的上升沿,驱动数据线上1bit的数据有效并持续到时钟的下一个上升沿;数据接收方使用该时钟线作为采样时钟同步采样数据线,在每个时钟上升沿采样数据并保存下来。即,如图1所示,为当前同步422数据采样的通用方法,其包括:首先由数据采样模块以同步422输入时钟作为采样时钟采样同步422的数据;然后将采样数据进行处理应用。
但这种实现方式有一个弊端,在长距离传输中,时钟信号因为距离过长造成损耗,时钟的上升边沿不再陡峭,可能会在数据接收方使用该时钟作为采样时钟时出现采样不准,从而出现过高错误率。
发明内容
(一)要解决的技术问题
本发明要解决的技术问题是:如何提供一种基于同步422标准的数据采样方法。
(二)技术方案
为解决上述技术问题,本发明提供一种基于同步422标准的数据采样方法,所述数据采样方法基于数据采样系统来实施,所述数据采样系统包括:高频时钟模块、时钟采样模块、时钟上升沿判断模块、数据采样模块、整合模块、数据处理模块;
所述数据采样方法包括如下步骤:
步骤1:所述高频时钟模块输出高频时钟;
步骤2:所述时钟采样模块以所述高频时钟作为采样时钟来采样同步422时钟,生成同步422时钟采样后的时钟;
步骤3:所述时钟上升沿判断模块对同步422时钟采样后的时钟进行判断处理,判断其时钟的上升沿,生成时钟上升判断信号;
步骤4:所述数据采样模块以所述高频时钟作为采样时钟来采样同步422数据,生成同步422数据采样后的数据;
步骤5:所述整合模块根据所述时钟上升判断信号来对同步422数据采样后的数据进行整合,获得有效数据;
步骤6:所述数据处理模块对有效数据进行后续处理使用。
其中,所述高频时钟模块采用晶振实现。
其中,所述高频时钟为:时钟频率不小于同步422时钟的5倍频率的高频时钟。
其中,所述同步422时钟通过串行时钟线传输而来。
其中,所述同步422数据通过串行数据线传输而来。
(三)有益效果
与现有技术相比较,本发明对数据接收方的通用采样方法做了改进,在数据接收方使用高频时钟(时钟频率不小于同步422时钟的5倍频率)作为采样时钟,同时使用高频时钟采样同步422的时钟信号和数据信号,通过整合电路判断输入时钟的上升沿来采样输入数据信号,保证采样电路的稳定性,能够正确采样输入数据。
附图说明
图1为当前同步422数据采样的通用方案示意图。
图2为本发明的同步422数据采样通用方案示意图,改进部分是虚线框内部分。
具体实施方式
为使本发明的目的、内容、和优点更加清楚,下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。
为解决上述技术问题,本发明提供一种基于同步422标准的数据采样系统,如图2所示,所述数据采样系统包括:高频时钟模块、时钟采样模块、时钟上升沿判断模块、数据采样模块、整合模块、数据处理模块;
所述高频时钟模块采用晶振实现,其用于输出高频时钟;
所述时钟采样模块用于以所述高频时钟作为采样时钟来采样同步422时钟,生成同步422时钟采样后的时钟;
所述时钟上升沿判断模块用于对同步422时钟采样后的时钟进行判断处理,判断其时钟的上升沿,生成时钟上升判断信号;
所述数据采样模块用于以所述高频时钟作为采样时钟来采样同步422数据,生成同步422数据采样后的数据;
所述整合模块用于根据所述时钟上升判断信号来对同步422数据采样后的数据进行整合,获得有效数据;
所述数据处理模块用于对有效数据进行后续处理使用。
其中,所述高频时钟为:时钟频率不小于同步422时钟的5倍频率的高频时钟。
其中,所述同步422时钟通过串行时钟线传输而来。
其中,所述同步422数据通过串行数据线传输而来。
此外,本发明还提供一种基于同步422标准的数据采样方法,所述数据采样方法基于数据采样系统来实施,所述数据采样系统包括:高频时钟模块、时钟采样模块、时钟上升沿判断模块、数据采样模块、整合模块、数据处理模块;
所述数据采样方法包括如下步骤:
步骤1:所述高频时钟模块输出高频时钟;
步骤2:所述时钟采样模块以所述高频时钟作为采样时钟来采样同步422时钟,生成同步422时钟采样后的时钟;
步骤3:所述时钟上升沿判断模块对同步422时钟采样后的时钟进行判断处理,判断其时钟的上升沿,生成时钟上升判断信号;
步骤4:所述数据采样模块以所述高频时钟作为采样时钟来采样同步422数据,生成同步422数据采样后的数据;
步骤5:所述整合模块根据所述时钟上升判断信号来对同步422数据采样后的数据进行整合,获得有效数据;
步骤6:所述数据处理模块对有效数据进行后续处理使用。
其中,所述高频时钟模块采用晶振实现。
其中,所述高频时钟为:时钟频率不小于同步422时钟的5倍频率的高频时钟。
其中,所述同步422时钟通过串行时钟线传输而来。
其中,所述同步422数据通过串行数据线传输而来。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变形,这些改进和变形也应视为本发明的保护范围。
Claims (5)
1.一种基于同步422标准的数据采样方法,其特征在于,所述数据采样方法基于数据采样系统来实施,所述数据采样系统包括:高频时钟模块、时钟采样模块、时钟上升沿判断模块、数据采样模块、整合模块、数据处理模块;
所述数据采样方法包括如下步骤:
步骤1:所述高频时钟模块输出高频时钟;
步骤2:所述时钟采样模块以所述高频时钟作为采样时钟来采样同步422时钟,生成同步422时钟采样后的时钟;
步骤3:所述时钟上升沿判断模块对同步422时钟采样后的时钟进行判断处理,判断其时钟的上升沿,生成时钟上升判断信号;
步骤4:所述数据采样模块以所述高频时钟作为采样时钟来采样同步422数据,生成同步422数据采样后的数据;
步骤5:所述整合模块根据所述时钟上升判断信号来对同步422数据采样后的数据进行整合,获得有效数据;
步骤6:所述数据处理模块对有效数据进行后续处理使用。
2.如权利要求1所述的基于同步422标准的数据采样方法,其特征在于,所述高频时钟模块采用晶振实现。
3.如权利要求1所述的基于同步422标准的数据采样方法,其特征在于,所述高频时钟为:时钟频率不小于同步422时钟的5倍频率的高频时钟。
4.如权利要求1所述的基于同步422标准的数据采样方法,其特征在于,所述同步422时钟通过串行时钟线传输而来。
5.如权利要求1所述的基于同步422标准的数据采样方法,其特征在于,所述同步422数据通过串行数据线传输而来。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910966448.1A CN110750479A (zh) | 2019-10-12 | 2019-10-12 | 基于同步422标准的数据采样方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910966448.1A CN110750479A (zh) | 2019-10-12 | 2019-10-12 | 基于同步422标准的数据采样方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110750479A true CN110750479A (zh) | 2020-02-04 |
Family
ID=69278045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910966448.1A Pending CN110750479A (zh) | 2019-10-12 | 2019-10-12 | 基于同步422标准的数据采样方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110750479A (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112505457A (zh) * | 2020-11-30 | 2021-03-16 | 九江检安石化工程有限公司 | 一种防爆石油化工电气设备用数据采样系统 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102347813A (zh) * | 2011-09-26 | 2012-02-08 | 华为技术有限公司 | 一种选取采样时钟信号的方法和设备 |
CN104461972A (zh) * | 2013-09-12 | 2015-03-25 | 华为技术有限公司 | 一种数据信号采样的方法和设备 |
US20170207907A1 (en) * | 2016-01-15 | 2017-07-20 | Analog Devices Global | Circuits, systems, and methods for synchronization of sampling and sample rate setting |
-
2019
- 2019-10-12 CN CN201910966448.1A patent/CN110750479A/zh active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102347813A (zh) * | 2011-09-26 | 2012-02-08 | 华为技术有限公司 | 一种选取采样时钟信号的方法和设备 |
CN104461972A (zh) * | 2013-09-12 | 2015-03-25 | 华为技术有限公司 | 一种数据信号采样的方法和设备 |
US20170207907A1 (en) * | 2016-01-15 | 2017-07-20 | Analog Devices Global | Circuits, systems, and methods for synchronization of sampling and sample rate setting |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112505457A (zh) * | 2020-11-30 | 2021-03-16 | 九江检安石化工程有限公司 | 一种防爆石油化工电气设备用数据采样系统 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10700903B2 (en) | Circuit structure for efficiently demodulating FSK signal in wireless charging device | |
JPH08509580A (ja) | データバスのための遅延線分離装置 | |
US9104822B2 (en) | Signal transmission method for USB interface and apparatus thereof | |
US20090190690A1 (en) | Communication system | |
US20100232554A1 (en) | PREDICTIVE SIGNAL CANCELLATION FOR EXTRACTING 1 MB/s MIL-STD-1553 COMPONENT FROM COMPOSITE HIGH PERFORMANCE 1553 SIGNAL | |
US9071357B1 (en) | Data communications system including an optical fiber data link disposed between serial bidirectional electrical data busses | |
US11343067B2 (en) | Sampling point identification for low frequency asynchronous data capture | |
JP4393458B2 (ja) | データ伝送装置及びデータ伝送方法 | |
CN110635892A (zh) | 基于同步422标准的数据采样系统 | |
JP5197164B2 (ja) | 信号伝送装置 | |
GB2456517A (en) | Serial data communication circuit for use with transmission lines using both data and clock to enable recovery of data synchronously | |
CN110750479A (zh) | 基于同步422标准的数据采样方法 | |
US8675798B1 (en) | Systems, circuits, and methods for phase inversion | |
US5748123A (en) | Decoding apparatus for Manchester code | |
JP2007295021A (ja) | 受信装置及び受信方法 | |
JPH0779286B2 (ja) | 伝送回路 | |
CN111355623A (zh) | 一种用于万兆以太网SerDes信号抖动检测的方法 | |
CN112492679B (zh) | 一种利用5g通信终端产生b码对时输出的方法及系统 | |
EP3477520A1 (en) | Secure communication for integrated circuits | |
JP2003174484A (ja) | データ伝送システム及びそれに用いられるデータ送受信装置と、その方法 | |
KR102225619B1 (ko) | 고속직렬데이터수신장치 | |
Lee et al. | High-speed transceiver network for in-vehicle communication system | |
CN111342820A (zh) | 一种基于双边沿时钟触发器的相位调整装置、方法及系统 | |
KR100442372B1 (ko) | 데이터 전송 장치 및 방법 | |
CN117528307A (zh) | 一种pdm麦克风数据传输系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200204 |