KR100778876B1 - Device for Detecting Auto baudrate and Method for the same - Google Patents

Device for Detecting Auto baudrate and Method for the same Download PDF

Info

Publication number
KR100778876B1
KR100778876B1 KR1020010046598A KR20010046598A KR100778876B1 KR 100778876 B1 KR100778876 B1 KR 100778876B1 KR 1020010046598 A KR1020010046598 A KR 1020010046598A KR 20010046598 A KR20010046598 A KR 20010046598A KR 100778876 B1 KR100778876 B1 KR 100778876B1
Authority
KR
South Korea
Prior art keywords
bit
bits
start bit
baud rate
signal
Prior art date
Application number
KR1020010046598A
Other languages
Korean (ko)
Other versions
KR20030012542A (en
Inventor
홍병일
Original Assignee
매그나칩 반도체 유한회사
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 매그나칩 반도체 유한회사 filed Critical 매그나칩 반도체 유한회사
Priority to KR1020010046598A priority Critical patent/KR100778876B1/en
Publication of KR20030012542A publication Critical patent/KR20030012542A/en
Application granted granted Critical
Publication of KR100778876B1 publication Critical patent/KR100778876B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals
    • H04L7/041Speed or phase control by synchronisation signals using special codes as synchronising signal
    • H04L7/042Detectors therefor, e.g. correlators, state machines

Abstract

본 발명은 전송되는 데이터의 시작 비트 신호 및 이에 연속되는 0 비트 신호의 전송 시간을 검사하는 카운터를 별도로 구성하여 상기 두 비트 신호의 전송 시간을 보드레이트(Auto Baudrate)의 기준으로 삼아 데이터 송수신을 하는 자동 보드레이트 검출 장치에 관한 것으로, 입력 신호를 수신하는 수신부와, 상기 입력 신호의 비트 신호별 에지 발생을 검출하는 에지 검출부와, 상기 입력 신호의 시작 비트 클럭수를 카운트하는 제 1 카운터와, 상기 시작 비트에 이어 전송되는 0 비트의 클럭수를 카운트하는 제 2 카운터와, 상기 제 1 카운터의 시작 비트 클럭수와 상기 제 2 카운터의 0 비트 클럭수를 저장하는 제 1 레지스터와, 상기 제 1 레지스터에 저장된 시작 비트 클럭수와 0 비트 클럭수를 비교하는 제 1 비교부와, 상기 시작 신호의 보드레이트와 동일한 보드레이트를 가지도록 연속되는 0 비트 및 이하 연속된 비트를 샘플링하는 샘플링부와, 상기 샘플링된 0 비트 및 이하 연속된 비트를 저장하는 제 2 레지스터와, 상기 제 2 레지스터에 저장된 샘플링된 비트와 입력 신호의 일치시 종료신호를 출력하는 제 2 비교부를 포함하여 구성된다.The present invention separately configures a counter for checking a transmission time of a start bit signal of a transmitted data and a subsequent 0 bit signal, and performs data transmission / reception using the transmission time of the two bit signals as a reference for auto baud rate. An automatic baud rate detection apparatus, comprising: a receiver for receiving an input signal, an edge detector for detecting edge generation for each bit signal of the input signal, a first counter for counting the number of start bit clocks of the input signal, and A second counter for counting a clock number of zero bits transmitted following the start bit, a first register for storing a start bit clock number of the first counter and a zero bit clock number of the second counter, and the first register A first comparator for comparing the number of start bit clocks and the number of 0 bit clocks stored in the second signal; A sampling unit for sampling consecutive zero bits and subsequent consecutive bits to have a rate, a second register for storing the sampled zero bits and subsequent consecutive bits, sampled bits and an input signal stored in the second register And a second comparator for outputting an end signal upon matching.

DTE(Data Terminal Equipment), DCE(Data Communication Equipment)Data Terminal Equipment (DTE), Data Communication Equipment (DCE)

Description

자동 보드 레이트 검출 장치 및 검출 방법{Device for Detecting Auto baudrate and Method for the same}Device for Detecting Auto baudrate and Method for the same

도 1은 일반적인 데이터 전송 방식을 나타낸 블록도1 is a block diagram showing a general data transmission scheme

도 2는 종래의 "A" 캐릭터의 자동 보딩(Auto Bauding)을 수행하는 송수신 상태에 대한 타이밍도FIG. 2 is a timing diagram of a transmission / reception state for performing automatic baud of the conventional “A” character.

도 3은 종래의 자동 보드레이트 검출 방법을 나타낸 타이밍도3 is a timing diagram showing a conventional automatic baud rate detection method

도 4는 본 발명의 "A" 캐릭터의 자동 보딩을 수행하는 송수신 상태에 대한 타이밍도Figure 4 is a timing diagram for the transmission and reception state to perform automatic boarding of the "A" character of the present invention

도 5는 본 발명의 자동 보드 레이트 검출 방법을 나타낸 나타낸 플로우도5 is a flowchart illustrating an automatic baud rate detection method of the present invention.

도 6은 본 발명의 자동 보드 레이트 검출 장치를 나타낸 블록도6 is a block diagram showing an automatic baud rate detection apparatus of the present invention.

도면의 주요 부분에 대한 부호 설명Explanation of symbols for the main parts of the drawings

START BIT : 시작 비트 STOP BIT : 정지 비트START BIT: Start bit STOP BIT: Stop bit

CNT1 : 시작 비트 클럭수 CNT2 : 0 비트 클럭수CNT1: Start bit clock CNT2: 0 bit clock

(가) : 입력 신호 (마) ,(바) : 폴링 에지(A): Input signal (e), (bar): Polling edge

(사) : 라이징 에지 (나), (아), (차) : 로직 "0" 구간(G): Rising edge (B), (H), (D): Logic "0" section

(라), (자) : 로직 "1" 구간(D), (R): Logic "1" section

61 : 수신부 62 : 에지 검출부 61 receiver 61 edge detector                 

63 : 제 1 카운터 64 : 제 2 카운터63: first counter 64: second counter

65 : 제 1 레지스터 66 : 제 1 비교부65: first register 66: first comparator

67 : 샘플링부 68 : 제 2 레지스터 67: sampling unit 68: second register

69 : 제 2 비교부69: second comparison unit

본 발명은 데이터 송수신에 관한 것으로, 전송되는 데이터의 시작 비트 신호 및 이에 연속되는 0 비트 신호의 전송 시간을 검사하는 카운터를 별도로 구성하여 상기 두 비트 신호의 전송 시간을 보드레이트(Auto Baudrate)의 기준으로 삼아 데이터 송수신을 하는 자동 보드레이트 검출 장치 및 검출 방법에 관한 것이다. The present invention relates to data transmission and reception, and separately configures a counter for checking a transmission time of a start bit signal of a data to be transmitted and a 0 bit signal subsequent to the transmission bit of the two bit signals. The present invention relates to an automatic baud rate detection device and a detection method for transmitting and receiving data.

이하, 첨부된 도면을 참고하여 종래 기술의 자동 보드레이트 검출 장치 및 검출 방법에 관하여 설명하면 다음과 같다.Hereinafter, an automatic baud rate detection apparatus and a detection method according to the related art will be described with reference to the accompanying drawings.

도 1은 일반적인 데이터 전송 방식을 나타낸 블록도이다.1 is a block diagram showing a general data transmission scheme.

도 1과 같이, 데이터의 전송은 송신단(1)과 수신단(4) 사이에 각각 모뎀(2, 3)을 구성하여 서로의 통신 속도를 조절하여 이루어진다.As shown in FIG. 1, data transmission is performed by configuring modems 2 and 3 between the transmitter 1 and the receiver 4, respectively, to adjust the communication speeds of each other.

이때, 송수신 양단간에 보드레이트(baudrate)는 동기화 되어야 원활한 통신이 이루어진다. 사용자가 소프트웨어적으로 결정된 어느 한쪽과 동일하게 설정하거나 아니면 수신단에서 입력 신호를 인가받아 자동적으로 보드레이트를 검출하도록 되어있다. At this time, baud rate must be synchronized between both ends of the transmission and reception for smooth communication. The user sets the same as either of the software-determined ones, or receives the input signal from the receiving end to automatically detect the baud rate.                         

한편, 보드레이트란, bps(bit per second) 단위이며 1초당 몇 비트의 데이터를 전송할 것인가를 가리키는 단위이다. 이 값은 전송측 기기와 수신측 기기가 같은 값으로 설정되어야 데이터를 주고받을 수 있다.On the other hand, baud rate is a unit of bps (bit per second) and indicates how many bits per second to transmit data. This value can be transmitted and received only when the sending device and the receiving device are set to the same value.

현재의 데이터 통신 시스템에 있어, 비동기 직렬 디지털 데이터(asynchronous serial digital data)는 일반적으로 데이터 터미널 장비, 즉 DTE(Data Terminal Equipment)에서 발생된다. DTE는 개인용 컴퓨터(Personal Computer)이다. In current data communication systems, asynchronous serial digital data is generally generated in data terminal equipment, namely Data Terminal Equipment (DTE). DTE is a personal computer.

DTE는 공중의 전화망과 서로서로 연결되어 있으며, 각각의 DTE는 DCE(Data Communication Equipment)를 통한 전화망으로 연결되어 있다. The DTEs are connected to the public telephone network and to each other, and each DTE is connected to the telephone network through DCE (Data Communication Equipment).

전형적으로, DCE는 모듈레이터(modulator)/ 디모듈레이터(demodulator) 장비, 즉, 일반적으로 모뎀(modem)이라 불리는 장치이다.Typically, DCE is a modulator / demodulator device, i.e. a device commonly referred to as a modem.

DTE를 구동시키는 프로그램은 모뎀에 전송되는 디지털 데이터의 비트 속도(rate of bits)를 설정한다. 모뎀은 어떤 비트 속도의 DTE로부터도 데이터 또는 명령 신호를 받을 수 있음에 틀림없다. 따라서, 모뎀은 DTE에 의해 발생되는 디지털 신호의 비트 속도를 자동적으로 인지하고 적응할 수 있어야 한다.The program that drives the DTE sets the rate of bits of digital data sent to the modem. The modem must be able to receive data or command signals from any bit rate DTE. Therefore, the modem should be able to automatically recognize and adapt the bit rate of the digital signal generated by the DTE.

DTE로부터 모뎀으로 제공되는 신호의 비트 속도를 분석하고 결정하는 과정을 자동 보딩(Autobauding)이라 한다. 용어상, 자동 보딩이란 모뎀이 일반 모드일 때만 수행된다. 당업자에 있어, 모뎀이 일반모드일 때, 모뎀으로 입력된 이진 데이터(binary data)가 어떤 기능을 수행하기 위한 명령어로 번역된다는 것은 자명한 일이다. The process of analyzing and determining the bit rate of the signal from the DTE to the modem is called autobauding. In terminology, automatic boarding is only performed when the modem is in normal mode. For those skilled in the art, it is obvious that when the modem is in normal mode, binary data input to the modem is translated into instructions for performing a certain function.                         

대부분의 현대의 고성능의 모뎀은 AT 명령어 셋의 형태가 적용된다. AT 명령어 형식은 각 명령어가 문자 "AT"를 서두에 포함하고 캐리지 리턴(carriage return)으로 종료되는 방식이다.Most modern high performance modems come in the form of AT command sets. The AT command format is such that each command includes the letter "AT" at the beginning and ends with a carriage return.

만일 그 사이에 있는 테스트 라인이 유효한 명령어로 모뎀이 인식할 수 있다면, 명령어가 모뎀에 의해 실행되고, 확실한 결과 코드가 나온다.If the test line in between is recognized by the modem as a valid command, the command is executed by the modem and a certain result code is returned.

만일 명령어가 인지할 수 없거나, 유효하지 않다면, 그것은 무시되고, 명령어는 실행할 수 없다는 것을 나타내는 결과 코드가 DTE에 되돌아온다.If the instruction is unrecognized or invalid, it is ignored and a result code is returned to the DTE indicating that the instruction cannot be executed.

모뎀은 "AT" 초기 문자 신호를 이용하여 입력 디지털 데이터를 고정하는 비트 속도를 결정하고 분석한다.The modem uses the "AT" initial character signal to determine and analyze the bit rate that holds the input digital data.

일반적으로 ASCII(American Standard Code for Information Interchange) 코드에서, 문자 "A"를 이진 비트 신호로 인코딩하면 1000001(16진수 41)과 같고, "T"는 1010100(16진수 54)과 같다. 이와 같이, 7비트로 표현되는 아스키 코드는 데이터 전송시는 패러티(parity) 비트를 상기 7비트의 최상위 비트에 두어 1 바이트(byte) 신호로 전송한다. Generally, in American Standard Code for Information Interchange (ASCII) code, the encoding of the character "A" into a binary bit signal is equivalent to 1000001 (hexadecimal 41), and "T" is equal to 1010100 (54 hexadecimal 54). As such, the ASCII code represented by 7 bits transmits a parity bit to the most significant bit of the 7 bits as a 1 byte signal during data transmission.

이러한 패러티 비트에는 짝수 패러티(even parity)와 홀수 패러티(odd parity)가 있는 데, 짝수 패러티는 전송되는 신호 중 "1"의 개수가 짝수개가 되도록 하는 것이고, 홀수 패러티는 홀수개가 되도록 하는 것이다. 이 때, 패러티 비트는 신호의 오류를 검증하는 기능을 하는 것이다. These parity bits include even parity and even parity. Even parity is an even number of " 1 " of transmitted signals, and odd parity is an odd number. At this time, the parity bit serves to verify a signal error.

한편, UART(Universal Asynchronous Receiver Transmitter) 방식은 저속이지만 간단한, 장치들간에 통신을 하는 방법이다. 즉, UART 방식은 클럭에 대한 정보 를 보내지 않고 데이터만을 전하는 방식으로, 아스키 코드 형식으로 하나의 문자(Character)를 한 번에 전송하는 방식이다.UART (Universal Asynchronous Receiver Transmitter) method, on the other hand, is a low speed but simple method of communicating between devices. In other words, UART transmits only data without sending information about clock, and transmits one character at a time in ASCII code format.

도 2는 종래의 "A" 캐릭터의 자동 보딩(Auto Bauding)을 수행하는 송수신 상태에 대한 타이밍도이다.FIG. 2 is a timing diagram of a transmission / reception state for performing automatic boarding of the conventional “A” character.

도 2와 같이, 입력신호 (가)는 AT 명령을 포함하고 있고 이때 보드 속도는 시작 비트(START BIT) (나) 구간에서부터 "A(BIT0∼BIT7 : 01000001)" 캐릭터에 관한 정보가 전송되는 동안 결정된다.As shown in Fig. 2, the input signal (A) contains an AT command, and the baud rate is the start bit (START BIT) while the information about the character "A (BIT0 to BIT7: 01000001)" is transmitted from the interval (START BIT) (b). Is determined.

상기 시작 비트(START BIT)는 폴링 에지 (바)로부터 시작하여 라이징 에지 (사)로 종료한다.The START BIT starts from the falling edge (bar) and ends with the rising edge (sa).

이 때, "A"의 최하위 비트인 0 비트(BIT0) 구간 (라)는 상기 스타트 비트의 종료 시점이 라이징 에지 (바)로부터 시작하여 폴링 에지 (마)에서 종료한다.At this time, the 0 bit (BIT0) section (D), which is the least significant bit of "A", starts at the rising edge (bar) and ends at the falling edge (E).

도 3은 종래의 자동 보드레이트 검출 방법을 나타낸 타이밍도이다.3 is a timing diagram illustrating a conventional automatic baud rate detection method.

도 3과 같이, (A) 샘플링 영역, (B) 샘플링 영역의 에지가 발생한 부분, 즉, 첫 번째 에지 발생 지점 (C)에서부터 두 번째 에지 발생 지점 (D) 사이의 구간 클럭수를 카운트하여 샘플링함으로써, 1 비트(one bit) 신호에 대한 자동 보드레이트(auto baudrate)를 검출한다. As shown in FIG. 3, the edges of the sampling area (A) and the sampling area (B), that is, the number of interval clocks between the first edge generation point C and the second edge generation point D are counted and sampled. Thus, auto baudrate is detected for a one bit signal.

상기 (A) 및 (B)의 샘플링 영역에서는 각각 (E)와 (F) 사이, (G)와 (H) 사이에서 에지가 발생한다.In the sampling areas of (A) and (B), an edge occurs between (E) and (F), and between (G) and (H), respectively.

그러나 이와 같은 종래 기술의 자동 보드레이트 검출 방법에는 다음과 같은 문제가 있다.However, the conventional automatic baud rate detection method has the following problems.

즉, 종래의 자동 보드레이트 검출시에는 오로지 시작 비트만을 샘플링하여 보드레이트를 검출하였으나, 이 때, 시작 비트 전송 후 노이즈가 발생될 수 있고, 전송되는 신호 자체에도 에러 신호가 입력될 수 있다.That is, in the conventional automatic baud rate detection, only the start bit is sampled to detect the baud rate. At this time, noise may be generated after the start bit is transmitted, and an error signal may be input to the transmitted signal itself.

또한, 시작 비트 자체가 오류 신호일 때, 상기 시작 비트를 샘플링 기준으로 삼아 검출한 보드레이트는 신뢰할 수 없는 값이다.In addition, when the start bit itself is an error signal, the baud rate detected by using the start bit as a sampling reference is an unreliable value.

본 발명은 상기와 같은 문제점을 해결하기 위해 안출한 것으로 전송되는 데이터의 시작 비트 신호 및 이에 연속되는 0 비트 신호의 전송 시간을 검사하는 카운터를 별도로 구성하여 상기 두 비트 신호의 전송 시간을 보드레이트(Auto Baudrate)의 기준으로 삼아 데이터 송수신을 하는 자동 보드레이트 검출 장치 및 검출 방법을 제공하는데 그 목적이 있다.In order to solve the above problems, the present invention separately configures a counter that checks the transmission time of the start bit signal of the data transmitted and the subsequent 0 bit signal and baudrates the transmission time of the two bit signals. It is an object of the present invention to provide an automatic baud rate detection apparatus and a detection method for transmitting and receiving data based on Auto Baudrate.

이와 같은 목적을 달성하기 위한 본 발명은 자동 보드레이트 검출 장치는 입력 신호를 수신하는 수신부와, 상기 입력 신호의 비트 신호별 에지 발생을 검출하는 에지 검출부와, 상기 입력 신호의 시작 비트 클럭수를 카운트하는 제 1 카운터와, 상기 시작 비트에 이어 전송되는 0 비트의 클럭수를 카운트하는 제 2 카운터와, 상기 제 1 카운터의 시작 비트 클럭수와 상기 제 2 카운터의 0 비트 클럭수를 저장하는 제 1 레지스터와, 상기 제 1 레지스터에 저장된 시작 비트 클럭수와 0 비트 클럭수를 비교하는 제 1 비교부와, 상기 시작 신호의 보드레이트와 동일한 보드레이트를 가지도록 연속되는 0 비트 및 이하 연속된 비트를 샘플링하는 샘플링부 와, 상기 샘플링된 0 비트 및 이하 연속된 비트를 저장하는 제 2 레지스터와, 상기 제 2 레지스터에 저장된 샘플링된 비트와 입력 신호의 일치시 종료신호를 출력하는 제 2 비교부를 포함하여 구성된다.In order to achieve the above object, the present invention provides an automatic baud rate detection apparatus comprising: a receiver configured to receive an input signal, an edge detector configured to detect edge generation for each bit signal of the input signal, and a start bit clock number of the input signal; A first counter to store a second counter for counting the number of clocks of 0 bits transmitted following the start bit, a first counter for storing the start bit clock number of the first counter and the number of zero bit clocks of the second counter. A register, a first comparator for comparing the number of start bit clocks and a number of zero bit clocks stored in the first register, and a series of zero bits and subsequent consecutive bits to have the same baud rate as the baud rate of the start signal. A sampling section for sampling, a second register for storing the sampled zero bits and subsequent consecutive bits, and a sampling stored in the second register And a second comparator for outputting an end signal when the bit is matched with the input signal.

또한, 본 발명의 자동 보드레이트 검출 방법은 입력 신호를 수신하는 단계와, 시작 비트의 폴링 에지를 검지하는 단계와, 상기 시작 비트의 클럭수를 카운트를 하는 단계와, 상기 시작 비트의 라이징 에지를 검지하여 시작 비트의 카운트 종료를 하는 단계와, 상기 시작 비트의 클럭수를 제 1 레지스터에 저장하고, 상기 시작 비트 신호에 이어 전송되는 0 비트의 클럭수를 카운트를 하는 단계와, 상기 0 비트의 클럭수가 상기 시작 비트의 클럭수의 1/2 값을 가질 때 상기 0 비트 신호를 샘플링하는 단계와, 상기 0 비트의 폴링 에지를 검지하여 카운트를 종료하는 단계와, 상기 0 비트의 클럭수를 상기 제 1 레지스터에 저장하는 단계와, 상기 제 1 레지스터에 저장한 시작 비트의 클럭수와 상기 0 비트 클럭수의 동일 여부를 검사하여 동일하지 않을 경우 전송 중단 신호를 출력하는 단계와, 상기 시작 비트 및 0 비트의 클럭수가 시간이 동일할 때, 동일한 보드레이트의 1 비트 내지 7비트 신호 및 정지 비트를 샘플링하는 단계와, 상기 0 비트 내지 7 비트로 구성된 데이터가 상기 입력 신호와 동일시 종료 신호를 출력하는 단계를 포함하여 이루어진다.In addition, the automatic baud rate detection method of the present invention includes receiving an input signal, detecting a falling edge of a start bit, counting a clock number of the start bit, and measuring a rising edge of the start bit. Detecting and ending counting of a start bit; storing a clock number of the start bit in a first register; counting a clock number of 0 bits transmitted following the start bit signal; Sampling the zero bit signal when the number of clocks has a value 1/2 of the clock number of the start bit, detecting the falling edge of the zero bit, ending the count, and counting the number of clocks of the zero bit. Storing in the first register and checking whether the number of clocks of the start bit stored in the first register and the number of clocks of the 0 bit are the same and transmitting the data if not equal. Outputting a signal, sampling the 1- to 7-bit signal and the stop bit of the same baud rate when the clock numbers of the start bit and the 0 bit are the same, and the data consisting of the 0 to 7 bit. And outputting an end signal identical to the input signal.

이하, 첨부된 도면을 참고하여 본 발명에 따른 자동 보드레이트 검출 장치에 관하여 상세히 설명하면 다음과 같다.Hereinafter, an automatic baud rate detection apparatus according to the present invention will be described in detail with reference to the accompanying drawings.

도 4는 본 발명의 "A" 캐릭터의 자동 보딩을 수행하는 송수신 상태에 대한 타이밍도이다. 4 is a timing diagram for a transmission and reception state of performing automatic boarding of an "A" character of the present invention.                     

도 4와 같이, 본 발명의 자동 보드레이트(auto baudrate)는 상기 시작 비트(START BIT)의 전송 속도를 카운팅하여 결정되는 것은 종래와 동일하나, 이어 전송되는 데이터 신호의 0 비트(BIT0)를 카운팅하고, 이 때의 클럭수를 기억하여 상기 시작 비트와 함께 0 비트(BIT0)를 자동 보드레이트 검출의 기준으로 삼는 것을 특징으로 한다.As shown in Figure 4, the automatic baudrate of the present invention is determined by counting the transmission rate of the start bit (BIT) is the same as conventional, but counting the 0 bit (BIT0) of the data signal to be transmitted The number of clocks at this time is stored, and 0 bit (BIT0) is used as the reference for automatic baud rate detection together with the start bit.

이때 카운트하는 클럭은 빠른 것을 쓰면 쓸수록 더욱 정밀하게 보드레이트를 검출할 수 있게 된다.At this time, the faster the clock is used, the more accurate the baud rate can be detected.

시작 비트(START BIT)의 클럭수(CNT1)는 첫 번째 폴링 에지(falling edge) (바)와 동시에 0에서부터 카운트해 나간다. 그리고, 첫 번째 라이징 에지(rising edge) (사)와 동시에 카운트(count)를 중지한다.The clock number CNT1 of the START bit is counted from zero simultaneously with the first falling edge (bar). The count is stopped at the same time as the first rising edge.

0 비트(BIT0)의 클럭수(CNT2)는 시작 비트(START BIT)의 카운팅이 정지하는 시점인 (사)에서부터 카운트를 시작하여 0 비트(BIT0)의 종료 시점이 폴링 에지 (마)에서 카운트를 중지한다.The clock number CNT2 of the 0 bit BIT0 starts counting from the point at which the counting of the start bit START BIT stops, and the ending point of the 0 bit BIT0 counts at the falling edge. Stop it.

전송되는 데이터가 입력 신호 (가)와 같은 구조, 즉 로직 "0"의 시작 비트(START BIT)와 로직 "1" 상태인 정지 비트(STOP BIT)를 가지고, 그 사이에 로직 "1"의 0 비트(BIT0), 로직 "0"의 1 비트 내지 5 비트(BIT1∼BIT5), 로직 "1"의 6 비트(BIT6), 로직 "0"의 짝수 패러티 7비트(BIT7)로 이루어진 데이터 신호는 01000001로서 아스키 코드의 문자 "A"값을 전송한다.The data to be transmitted has the same structure as the input signal (i), i.e. the start bit (START BIT) of logic "0" and the stop bit (STOP BIT) in logic "1" state, with a zero of logic "1" in between. The data signal consists of a bit BIT0, 1 bit to 5 bits (BIT1 to BIT5) of logic "0", 6 bits (BIT6) of logic "1", and even parity 7 bits (BIT7) of logic "0" to 01000001. Transmits the ASCII "A" value.

이때 시작 비트(START BIT) 구간 (나)과 0 비트(BIT0) 신호구간 (라), 6 비트(BIT6)의 구간 (자), 7 비트(BIT7)의 구간 (차)는 모두 동일한 클럭수를 가지게 되며, 1 비트 내지 5 비트(BIT1∼BIT5)의 구간 (아)는 상기 0 비트(BIT0)의 구간 (라)의 다섯 배와 동일하다.At this time, START bit section (B), 0 bit (BIT0) signal section (D), 6 bit (BIT6) section (child), and 7 bit (BIT7) section (difference) all have the same number of clocks. The interval (a) of 1 to 5 bits (BIT1 to BIT5) is equal to five times the interval (d) of the 0 bit (BIT0).

즉, 상기 시작 비트(START BIT) 및 0 비트(BIT0) 구간에서 클럭수 카운트를 실시하여 자동 보드레이트를 검출하여 이를 샘플링 기준으로 삼아 이후의 비트 신호들이 검출한 클럭수와 동일한 클럭수를 갖도록, 즉 동일한 보드레이트를 갖도록 전송한다.That is, by counting the number of clocks in the start bit (START BIT) and 0 bit (BIT0) interval to detect the automatic baud rate and use this as a sampling reference so that subsequent bit signals have the same clock number as the detected clock number, That is, it transmits to have the same baud rate.

상기 시작 비트의 클럭수(CNT1)와 0 비트의 클럭수(CNT2)는 전송 데이터가 정상적인 경우에는 동일한 값이다. 만일 서로 다를 경우는 전송도중 값이 왜곡되었다고 판단한다.The clock number CNT1 of the start bit and the clock number CNT2 of 0 bits are the same value when the transmission data is normal. If they are different, it is determined that the values are distorted during transmission.

이와 같이, 시작 비트의 클럭수(CNT1) 및 0 비트의 클럭수(CNT2)가 동일한 경우는 이상적으로 데이터가 전송된 경우이다. 이 때에는 카운트 속도와 클럭수의 관계에 의하여 보드레이트를 알 수 있게 된다.Thus, the case where the clock number CNT1 of the start bit and the clock number CNT2 of the 0 bit are the same is ideally when data is transferred. In this case, the baud rate can be known by the relationship between the count rate and the number of clocks.

데이터 통신에 있어서는 보드레이트를 알고 있으면, 입력신호를 받아들임으로써 상기 보드 속도에 맞게 입력신호를 샘플링하여 전송하면 올바른 데이터 통신이 이루어질 수 있다.In data communication, if the baud rate is known, correct data communication can be achieved by sampling and transmitting the input signal at the baud rate by receiving the input signal.

즉, 입력신호 (가)를 수신부에 인가하였을 때, 이미 구간 (나), (라)에서 클럭수(CNT1, CNT2)로 보드레이트를 검출하였으므로, 1 비트 이하의 비트 신호(BIT1∼BIT7)들을 샘플링할 수 있는 것이다.That is, when the input signal (a) is applied to the receiver, the baud rate is already detected by the number of clocks (CNT1, CNT2) in the sections (b) and (d). You can sample it.

이러한 샘플링 방식은 다음과 같이 이루어진다. This sampling method is performed as follows.

0 비트의 클럭수 카운트가 정지되고, 폴링 에지 (마)에서 시작하여 상기 시 작 비트(START BIT) 또는 0 비트(BIT0)의 클럭수(CNT1 또는 CNT2)의 절반 길이에 해당하는 시간 후 1 비트(BIT1)를 샘플링하기 시작한다.The clock count of 0 bits is stopped and 1 bit after a time corresponding to half the length of the clock bit (CNT1 or CNT2) of the start bit (START BIT) or 0 bit (BIT0) starting from the falling edge (e). Start sampling (BIT1).

이 때, 상기 시작 비트 또는 0 비트(BIT0)와 동일한 보드레이트를 갖도록 상기 시작 비트(START BIT) 또는 0 비트(BIT0)의 클럭수(CNT 1 또는 CNT 2)를 기준으로 샘플링하고 로직 "0"의 1 비트(BIT1)를 얻는다.At this time, the sampling is performed based on the clock number CNT 1 or CNT 2 of the start bit or the 0 bit BIT0 to have the same baud rate as the start bit or the 0 bit BIT0, and the logic " 0 " Get one bit (BIT1) of.

이어, 구간 (40)에서 1 비트(BIT1)의 값을 샘플링한 후 다시 상기 클럭수에 해당하는 시간 후 구간(41)에서 2 비트(BIT2)의 값을 샘플링하여 로직 "0"로우값을 얻는다. Next, after sampling the value of one bit (BIT1) in the interval 40, and again after the time corresponding to the clock number, the value of two bits (BIT2) is sampled in the interval 41 to obtain a logic "0" low value. .

이어, 구간 (41)에서 2 비트(BIT2)의 값을 샘플링한 후 다시 상기 클럭수에 해당하는 시간 후 구간(42)에서 3 비트(BIT3)의 값을 샘플링하여 로직 "0" 값을 얻는다.Next, the value of 2 bits (BIT2) is sampled in the section 41, and the value of 3 bits (BIT3) is sampled in the section 42 after the time corresponding to the clock number again to obtain a logic "0" value.

이어, 구간 (42)에서 3 비트(BIT3)의 값을 샘플링한 후 다시 상기 클럭수에 해당하는 시간 후 구간(43)에서 4 비트(BIT4)의 값을 샘플링하여 로직 "0" 값을 얻는다.Next, after sampling the value of 3 bits (BIT3) in the interval 42, the value of 4 bits (BIT4) is sampled again in the interval 43 after the time corresponding to the clock number to obtain a logic "0" value.

이어, 구간 (43)에서 4 비트(BIT4)의 값을 샘플링한 후 다시 상기 클럭수에 해당하는 시간 후 구간(44)에서 5 비트(BIT5)의 값을 샘플링하여 로직 "0" 값을 얻는다.Next, the value of 4 bits (BIT4) is sampled in the section 43, and the value of 5 bits (BIT5) is sampled in the section 44 after the time corresponding to the clock number again to obtain a logic "0" value.

이어, 구간 (44)에서 5 비트(BIT5)의 값을 샘플링한 후 다시 상기 클럭수에 해당하는 시간 후 구간(45)에서 6 비트(BIT6)의 값을 샘플링하여 로직 "1" 값을 얻는다. Next, after sampling the value of 5 bits (BIT5) in the interval 44, the value of 6 bits (BIT6) is sampled again in the interval 45 after the time corresponding to the clock number to obtain a logic "1" value.                     

이어, 구간 (45)에서 6 비트(BIT6)의 값을 샘플링한 후 다시 상기 클럭수에 해당하는 시간 후 구간(46)에서 7 비트(BIT7)의 값을 샘플링하여 로직 "0"의 짝수 패러티(even parity) 값을 얻는다.Subsequently, after sampling the value of 6 bits (BIT6) in the interval 45 and again, the value of 7 bits (BIT7) is sampled in the interval 46 after the time corresponding to the number of clocks. even parity)

마지막으로 상기 7 비트(BIT7) 샘플링 후 로직 "1"의 정지 비트(STOP BIT) 값을 전송하여 "A" 값의 데이터 전송을 완료한다.Finally, after sampling the 7 bits (BIT7), the STOP BIT value of logic "1" is transmitted to complete the data transfer of "A" value.

예측된 것처럼 "A" 값이 정상적으로 수신되었을 경우에는 정확한 보드레이트가 검출되었으며, 입력 신호 (가)와 같이 한 바이트의 데이터를 통해서 확인과 검증단계를 마쳤음을 의미한다.As expected, if the “A” value is normally received, the correct baud rate is detected, which means that the verification and verification steps have been completed through one byte of data as shown in (a).

도 5는 본 발명의 자동 보드레이트 검출 방법을 나타낸 플로우도이다.5 is a flowchart illustrating an automatic baud rate detection method of the present invention.

도 5와 같이, 자동 보드레이트 검출 방법은 다음과 같은 방식으로 이루어진다.As shown in FIG. 5, the automatic baud rate detection method is performed in the following manner.

먼저, 송신부에 전송하려는 입력 신호(INPUT)를 모뎀(혹은 수신부)을 통해 수신한다(501S).First, an input signal INPUT to be transmitted to a transmitter is received through a modem (or a receiver) (501S).

에지 검출부를 통해 상기 입력 신호(INPUT) 중 시작 비트(START BIT)의 폴링 에지(Falling Edge)를 검지한다(502S).The falling edge of the start bit START BIT of the input signal INPUT is detected through the edge detector 502S.

상기 시작 비트(START BIT)의 클럭수(CNT1)를 카운트한다(503S).The clock number CNT1 of the start bit START BIT is counted (503S).

상기 시작 비트(START BIT)의 종료점인 라이징 에지(Rising Edge)를 검지(DETECTION)하여 시작 비트(START BIT)의 카운트를 종료한다(504S).The rising edge, which is the end point of the START bit, is detected and the count of the start bit is terminated (504S).

상기 시작 비트의 클럭수(CNT1)를 제 1 레지스터에 저장하고, 상기 시작 비트(START BIT)에 이어 전송되는 0 비트(BIT0)의 클럭수(CNT2)를 카운트한다(505S). The clock number CNT1 of the start bit is stored in the first register, and the clock number CNT2 of the 0 bit BIT0 transmitted following the start bit START BIT is counted (505S).                     

상기 0 비트(BIT0)의 클럭수(CNT2)가 상기 시작 비트(START BIT)의 클럭수(CNT1)의 1/2 값을 가질 때까지, 상기 0 비트(BIT0)를 클럭수(CNT2)를 늘리면서(507S) 카운팅을 계속하고, 상기 시작 비트(START BIT)의 클럭수(CNT1)와 같게 될 때(506S), 0 비트(BIT0)의 샘플링을 시작한다(508S).While increasing the number of clocks CNT2 to 0 bits BIT0 until the clock number CNT2 of the 0 bit BIT0 has a value 1/2 of the clock number CNT1 of the start bit START BIT. Counting continues, and when the number of clock bits CNT1 of the start bit START BIT is equal to 506S, sampling of the zero bit BIT0 is started (508S).

상기 0 비트(BIT0)의 폴링 에지를 검지하여 카운트를 종료하고 이어, 1 비트(BIT1)의 카운트를 시작한다(509S).Counting is terminated by detecting the falling edge of bit 0 (BIT0), followed by counting of one bit (BIT1) (509S).

상기 카운팅이 종료된 0 비트(BIT0)의 클럭수(CNT2)를 상기 제 1 레지스터에 저장한다(510S).The clock number CNT2 of the zero bit BIT0 from which the counting is completed is stored in the first register (510S).

이 때, 상기 제 1 레지스터에 저장한 시작 비트(START BIT)의 클럭수(CNT1)와 상기 0 비트(BIT0) 클럭수(CNT2)의 동일 여부를 검사(511S)하여 동일하지 않을 경우 전송 중단 신호를 출력한다(522S).At this time, if the clock number CNT1 of the start bit START BIT stored in the first register and the clock number CNT2 of the 0 bit BIT0 are equal to each other (step 511S), the transmission stop signal is not equal. It outputs (522S).

상기 시작 비트(START BIT) 및 0 비트(BIT0)의 클럭수(CNT1=CNT2)가 동일할 때, 동일한 보드레이트의 1 비트 내지 7비트 신호(BIT1∼BIT7) 및 정지 비트(STOP BIT)를 샘플링한다(513S, 514S). When the clock number (CNT1 = CNT2) of the start bit (START BIT) and the 0 bit (BIT0) is the same, sampling the 1 to 7 bit signals (BIT1 to BIT7) and the stop bit (STOP BIT) of the same baud rate (513S, 514S).

상기 0 비트 내지 7 비트(BIT0∼BIT7)로 구성된 데이터가 상기 입력 신호 "A"와 동일시 종료 신호를 출력하여 검출을 확인 완료한다(515S).When the data composed of the 0 to 7 bits (BIT0 to BIT7) is the same as the input signal "A", an end signal is output to confirm the detection (515S).

도 6은 도 5의 자동 보드레이트 검출 방법을 구현하는 검출 장치를 나타낸 블록도이다.FIG. 6 is a block diagram illustrating a detection device implementing the automatic baud rate detection method of FIG. 5.

도 6과 같이, 자동 보드레이트 검출 장치는 입력 신호를 수신하는 수신부(61)와, 상기 입력 신호의 비트 신호별 에지 발생을 검출하는 에지 검출부(62)와, 상기 입력 신호의 시작 비트 클럭수를 카운트하는 제 1 카운터(63)와, 상기 시작 비트에 이어 전송되는 0 비트의 클럭수를 카운트하는 제 2 카운터(64)와, 상기 제 1 카운터(63)의 시작 비트 클럭수와 상기 제 2 카운터(64)의 0 비트 클럭수를 저장하는 제 1 레지스터(65)와, 상기 제 1 레지스터(65)에 저장된 시작 비트 클럭수와 0 비트 클럭수를 비교하는 제 1 비교부(66)와, 상기 시작 비트의 보드레이트와 동일한 보드레이트를 가지도록 연속되는 0 비트 및 이하 연속된 비트(BIT0∼BIT7)를 샘플링하는 샘플링부(67)와, 상기 샘플링된 0 비트 및 이하 연속된 비트(BIT0∼BIT7) 값을 저장하는 제 2 레지스터(68)와, 상기 제 2 레지스터(68)에 저장된 샘플링된 비트와 입력 신호의 일치시 종료신호를 출력하는 제 2 비교부(69)를 포함하여 구성된다.As shown in FIG. 6, the automatic baud rate detection apparatus includes a receiver 61 that receives an input signal, an edge detector 62 that detects edge generation for each bit signal of the input signal, and a start bit clock number of the input signal. A first counter 63 for counting, a second counter 64 for counting the number of clocks of 0 bits transmitted following the start bit, a number of start bit clocks for the first counter 63 and the second counter A first register (65) for storing the number of zero-bit clocks of (64), a first comparator (66) for comparing the number of start bit clocks and zero-bit clock numbers stored in the first register (65) A sampling unit 67 for sampling consecutive 0 bits and subsequent consecutive bits BIT0 to BIT7 to have the same baud rate as the baud rate of the start bit, and the sampled 0 and subsequent consecutive bits BIT0 to BIT7. ) A second register 68 for storing the value, and the second register 68 It is configured to include a register 68, a second comparison unit (69) for outputting a stop signal when the match stored in the sampled bit and the input signal in.

상기 수신부(61)에서 수신되는 입력 신호는 바이너리 신호로 시작 비트, 0 내지 7비트, 정지 비트로 구성된다.The input signal received by the receiver 61 is a binary signal and is composed of start bits, 0 to 7 bits, and stop bits.

상기 에지 검출부(62)는 폴링 에지와 라이징 에지 모두를 검지한다.The edge detector 62 detects both the falling edge and the rising edge.

상기 제 1 비교부(66)는 0 비트(BIT0)의 클럭수(CNT1)와 시작 비트(START BIT)의 클럭수(CNT2)의 비교를 실시하면서 데이터 전송의 초기 불량을 검증한다.The first comparator 66 compares the clock number CNT1 of the 0 bit BIT0 with the clock number CNT2 of the start bit START BIT, and verifies the initial failure of the data transmission.

상기 샘플링부(67)는 0 비트(BIT0)의 클럭수(CNT1)가 시작 비트(START BIT) 클럭수(CNT2)의 1/2일 때 샘플링 동작을 시작한다. 상기 샘플링부(67)의 최초 샘플링을 통해 구해진 0 비트(BIT0)의 클럭수(CNT2)는 상기 시작 비트(START BIT)의 클럭수(CNT1)와 함께 자동 보드레이트 검출의 기준으로 사용된다.The sampling unit 67 starts a sampling operation when the clock number CNT1 of the 0 bit BIT0 is 1/2 of the clock number CNT2 of the START bit. The clock number CNT2 of the 0 bit BIT0 obtained through the initial sampling of the sampling unit 67 is used as a reference for automatic baud rate detection along with the clock number CNT1 of the start bit START BIT.

상기 제 2 레지스터(68)에 저장된 샘플링된 0 비트 및 이하 연속되는 비트(BIT0 ∼BIT7)는 전송되는 데이터이다.The sampled zero bits and subsequent consecutive bits BIT0 to BIT7 stored in the second register 68 are the data to be transferred.

상기 시작 비트(START BIT)는 폴링 에지에서 동작하여 라이징 에지로 종료함을 특징으로 한다.The start bit is characterized in that it operates on the falling edge and ends with the rising edge.

상기 0 비트(BIT0)는 라이징 에지에서 동작하여 폴링 에지로 종료한다.The 0 bit BIT0 operates on the rising edge and ends with the falling edge.

상기 제 2 레지스터(68)는 초기 0 비트(BIT0) 이후 차례로 전송되는 7비트(BIT1∼BIT7)의 데이터를 저장하도록 8비트 레지스터로 구성된다.The second register 68 is configured as an 8-bit register to store 7 bits (BIT1 to BIT7) of data which are sequentially transmitted after the initial 0 bit (BIT0).

상기 제 2 비교부(69)에서는 상기 1 비트 내지 7비트(BIT1∼BIT7)가 각각 시작 비트(START BIT)나 0 비트(BIT0)의 클럭수와 동일한지 검사하는 비교부이다. The second comparison section 69 is a comparison section that checks whether the 1 to 7 bits (BIT1 to BIT7) are equal to the clock number of the start bit (START BIT) or the 0 bit (BIT0), respectively.

이와 같은 본 발명에 따른 자동 보드레이트 검출 장치 및 방법은 다음과 같은 효과가 있다.The automatic baud rate detection apparatus and method according to the present invention has the following effects.

첫째, 종래에 송수신 양단간에 보드 속도가 서로 특정한 값으로 약속되어 있어야만 통신이 가능하던 부분을 보완하여, 서로 보드 속도가 다른 송수신측간의 통신에서 자동으로 보드 속도를 검출하고, 서로 통신을 원할하게 할 수 있도록 구현시킬 수 있다.First, it is necessary to complement the part that communication was possible only when the baud rate is promised at a specific value between the two ends of the conventional transmission and reception. Can be implemented to

둘째, 데이터 통신 초기에 보드 속도를 알려주기 위해서 "AT" 문자의 입력 신호를 보내고, 이를 수신하고 분석함으로써 보드 속도를 알아내고, 확인하고 검증하는 과정까지 마칠 수 있다.Second, an input signal of "AT" character is sent, received, and analyzed to inform the baud rate at the beginning of data communication, so that the baud rate can be determined, verified and verified.

Claims (11)

입력 신호를 수신하는 수신부;A receiver for receiving an input signal; 상기 입력 신호의 비트 신호별 에지 발생을 검출하는 에지 검출부; An edge detector which detects edge generation for each bit signal of the input signal; 상기 입력 신호의 시작 비트 클럭수를 카운트하는 제 1 카운터;A first counter for counting a start bit clock number of the input signal; 상기 시작 비트에 이어 전송되는 0 비트의 클럭수를 카운트하는 제 2 카운터;A second counter for counting a clock number of 0 bits transmitted following the start bit; 상기 제 1 카운터의 시작 비트 클럭수와 상기 제 2 카운터의 0 비트 클럭수를 저장하는 제 1 레지스터; A first register for storing the start bit clock number of the first counter and the zero bit clock number of the second counter; 상기 제 1 레지스터에 저장된 시작 비트 클럭수와 0 비트 클럭수를 비교하는 제 1 비교부;A first comparison unit comparing the number of start bit clocks and the number of zero bit clocks stored in the first register; 상기 시작 비트의 보드레이트와 동일한 보드레이트를 가지도록 연속되는 0 비트 및 이하 연속된 비트를 샘플링하는 샘플링부;A sampling unit for sampling consecutive 0 bits and subsequent consecutive bits to have the same baud rate as the baud rate of the start bit; 상기 샘플링된 0 비트 및 이하 연속된 비트를 저장하는 제 2 레지스터;A second register for storing the sampled zero bits and subsequent consecutive bits; 상기 제 2 레지스터에 저장된 샘플링된 비트와 입력 신호의 일치시 종료신호를 출력하는 제 2 비교부를 포함하여 구성됨을 특징으로 하는 자동 보드레이트 검출 장치.And a second comparator for outputting an end signal when the sampled bit stored in the second register and the input signal match each other. 제 1항에 있어서, 상기 입력 신호는 바이너리 신호로 시작 비트, 0 내지 7비트, 정지 비트로 구성됨을 특징으로 하는 자동 보드레이트 검출 장치. The apparatus of claim 1, wherein the input signal is a binary signal comprising a start bit, 0 to 7 bits, and a stop bit. 제 1항에 있어서, 상기 에지 검출부는 폴링 에지와 라이징 에지 모두를 검지함을 특징으로 하는 자동 보드레이트 검출 장치.The automatic baud rate detection apparatus of claim 1, wherein the edge detector detects both a falling edge and a rising edge. 제 1항에 있어서, 상기 제 1 비교부는 0 비트의 클럭수와 시작 비트의 클럭수의 비교를 실시하면서 데이터 전송의 초기 불량을 검증함을 특징으로 하는 자동 보드레이트 검출 장치. The automatic baud rate detection apparatus according to claim 1, wherein the first comparator verifies an initial failure of data transmission while comparing a clock number of 0 bits and a clock number of a start bit. 제 1항에 있어서, 상기 샘플링부는 0 비트의 클럭수가 시작 비트 클럭수의 1/2일 때 동작함을 특징으로 하는 자동 보드레이트 검출 장치.The automatic baud rate detection apparatus of claim 1, wherein the sampling unit operates when the number of clocks of 0 bits is 1/2 of the number of start bit clocks. 제 1항에 있어서, 상기 샘플링부의 최초 샘플링을 통해 구해진 0 비트의 클럭수는 상기 시작 비트의 클럭수와 함께 자동 보드레이트 검출의 기준으로 사용됨을 특징으로 하는 자동 보드레이트 검출 장치.The automatic baud rate detection apparatus according to claim 1, wherein the clock number of 0 bits obtained through the initial sampling of the sampling unit is used as a reference for automatic baud rate detection together with the clock number of the start bit. 제 1항에 있어서, 제 2 레지스터에 저장된 샘플링된 0 비트 및 이하 연속되는 비트(1 비트 ∼7 비트)는 전송되는 데이터임을 특징으로 하는 자동 보드레이트 검출 장치. 2. The automatic baud rate detection apparatus according to claim 1, wherein the sampled zero bits and subsequent consecutive bits (1 to 7 bits) stored in the second register are data to be transmitted. 제 1항에 있어서, 상기 시작 비트는 폴링 에지에서 동작하여 라이징 에지로 종료함을 특징으로 하는 자동 보드레이트 검출 장치.2. The automatic baud rate detection apparatus of claim 1, wherein the start bit operates at a falling edge and ends at a rising edge. 제 1항에 있어서, 상기 0 비트는 라이징 에지에서 동작하여 폴링 에지로 종료함을 특징으로 하는 자동 보드레이트 검출 장치. 2. The automatic baud rate detection apparatus of claim 1, wherein the 0 bit operates at the rising edge and terminates at the falling edge. 제 1항에 있어서, 상기 제 2 레지스터는 초기 0 비트 이후 차례로 전송되는 7비트의 데이터를 저장하도록 8비트 레지스터로 구성됨을 특징으로 하는 자동 보드레이트 검출 장치.2. The automatic baud rate detection apparatus of claim 1, wherein the second register is configured of an 8-bit register to store 7 bits of data transmitted sequentially after an initial 0 bit. 입력 신호를 수신하는 단계;Receiving an input signal; 상기 입력 신호 중 시작 비트의 폴링 에지를 검지하는 단계;Detecting a falling edge of a start bit of the input signal; 상기 시작 비트의 클럭수를 카운트를 하는 단계;Counting the number of clocks of the start bit; 상기 시작 비트의 라이징 에지를 검지하여 시작 비트의 카운트 종료를 하는 단계;Detecting a rising edge of the start bit and ending counting of a start bit; 상기 시작 비트의 클럭수를 제 1 레지스터에 저장하고, 상기 시작 비트 신호에 이어 전송되는 0 비트의 클럭수를 카운트를 하는 단계;Storing the clock number of the start bit in a first register and counting a clock number of 0 bits transmitted following the start bit signal; 상기 0 비트의 클럭수가 상기 시작 비트의 클럭수의 1/2 값을 가질 때 상기 0 비트 신호를 샘플링하는 단계;Sampling the zero bit signal when the number of clocks of the zero bit has a value of 1/2 of the number of clocks of the start bit; 상기 0 비트의 폴링 에지를 검지하여 카운트를 종료하는 단계;Detecting a falling edge of the 0 bit and ending counting; 상기 0 비트의 클럭수를 상기 제 1 레지스터에 저장하는 단계;Storing the clock number of the 0 bit in the first register; 상기 제 1 레지스터에 저장한 시작 비트의 클럭수와 상기 0 비트 클럭수의 동일 여부를 검사하여 동일하지 않을 경우 전송 중단 신호를 출력하는 단계;Checking whether the number of clocks of the start bit stored in the first register and the number of clocks of the zero bit are the same and outputting a transmission stop signal if the number is not the same; 상기 시작 비트의 클럭수와 상기 0 비트의 클럭수의 시간이 동일할 때, 동일한 보드레이트의 1 비트 내지 7비트 신호 및 정지 비트를 샘플링하는 단계;Sampling a 1 to 7 bit signal and a stop bit of the same baud rate when the clock number of the start bit and the clock number of the 0 bit are the same; 상기 0 비트 내지 7 비트로 구성된 데이터가 상기 입력 신호와 동일시 종료 신호를 출력하는 단계를 포함하여 구성된 자동 보드레이트 검증 방법.And outputting an end signal when the data consisting of the 0 to 7 bits is identical to the input signal.
KR1020010046598A 2001-08-01 2001-08-01 Device for Detecting Auto baudrate and Method for the same KR100778876B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020010046598A KR100778876B1 (en) 2001-08-01 2001-08-01 Device for Detecting Auto baudrate and Method for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020010046598A KR100778876B1 (en) 2001-08-01 2001-08-01 Device for Detecting Auto baudrate and Method for the same

Publications (2)

Publication Number Publication Date
KR20030012542A KR20030012542A (en) 2003-02-12
KR100778876B1 true KR100778876B1 (en) 2007-11-22

Family

ID=27717698

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020010046598A KR100778876B1 (en) 2001-08-01 2001-08-01 Device for Detecting Auto baudrate and Method for the same

Country Status (1)

Country Link
KR (1) KR100778876B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006842B (en) * 2021-10-29 2023-03-10 北京中科昊芯科技有限公司 Method, device, equipment and medium for detecting baud rate

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0669738A2 (en) * 1993-12-29 1995-08-30 International Business Machines Corporation System and method for automatically detecting speed, parity, and character length
US6097754A (en) * 1998-02-25 2000-08-01 Lucent Technologies, Inc. Method of automatically detecting the baud rate of an input signal and an apparatus using the method
US6163586A (en) * 1998-12-01 2000-12-19 Philips Electronics North America Corp. Autobaud/autoecho method
US6198785B1 (en) * 1997-09-29 2001-03-06 Lucent Technologies Inc. Autobaud rate detection and adjustment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0669738A2 (en) * 1993-12-29 1995-08-30 International Business Machines Corporation System and method for automatically detecting speed, parity, and character length
US6198785B1 (en) * 1997-09-29 2001-03-06 Lucent Technologies Inc. Autobaud rate detection and adjustment
US6097754A (en) * 1998-02-25 2000-08-01 Lucent Technologies, Inc. Method of automatically detecting the baud rate of an input signal and an apparatus using the method
US6163586A (en) * 1998-12-01 2000-12-19 Philips Electronics North America Corp. Autobaud/autoecho method

Also Published As

Publication number Publication date
KR20030012542A (en) 2003-02-12

Similar Documents

Publication Publication Date Title
US5903613A (en) Data reception device, data reception method and electronic equipment
US5274679A (en) Hardware arrangement for specifying data format in asynchronous transmission
US5222081A (en) Method of performing an autobaud function using a state flow machine
US7907681B2 (en) Circuit and method for differential signaling receiver
EP0918421B1 (en) Baud rate detection in serial data transmission
US6581100B1 (en) System and method for communication parameter determination
JP3520388B2 (en) Data receiving apparatus, data receiving method, and electronic device
US6529548B1 (en) Device and method for detecting data communication property
US7720138B2 (en) Communication system
EP0606413B1 (en) Method and means for automatically detecting and correcting a polarity error in twisted-pair media
KR100778876B1 (en) Device for Detecting Auto baudrate and Method for the same
US7142592B2 (en) Determining speed of a digital signal in a serial transmission line
JP2983959B1 (en) Serial interface and modem device using the same
US5208840A (en) Method and arrangement for detecting framing bit sequence in digital data communications system
JP3602233B2 (en) AT command analyzer
KR940011759B1 (en) Remote controlling digital loop-back testing device
JP3329229B2 (en) AT command receiving method
JP4586492B2 (en) One-wire data communication method and one-wire data transmitter / receiver using this communication method
KR900006975B1 (en) Method of detecting data transmission speed in data terminal equipment
EP0605028B1 (en) A method and a circuit for identifying the nominal frequency of a logic signal
KR100261074B1 (en) Method and apparatus for compensating baud rate in communication relay
KR100306875B1 (en) Method for detecting start point of data frame over sequence code
KR101040270B1 (en) Apparatus for preventing reception error of data in rs-422 serial communication and method thereof
JP2794994B2 (en) Data transmission speed converter
CN116156021A (en) USB PD message decoding method and device, chip and communication equipment

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121022

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20131017

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20141020

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20151019

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20161020

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20171020

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20181016

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20191016

Year of fee payment: 13