KR100191724B1 - An apparatus for receiving data - Google Patents

An apparatus for receiving data Download PDF

Info

Publication number
KR100191724B1
KR100191724B1 KR1019950053470A KR19950053470A KR100191724B1 KR 100191724 B1 KR100191724 B1 KR 100191724B1 KR 1019950053470 A KR1019950053470 A KR 1019950053470A KR 19950053470 A KR19950053470 A KR 19950053470A KR 100191724 B1 KR100191724 B1 KR 100191724B1
Authority
KR
South Korea
Prior art keywords
data
value
transmission
format
detecting
Prior art date
Application number
KR1019950053470A
Other languages
Korean (ko)
Other versions
KR970056512A (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 KR1019950053470A priority Critical patent/KR100191724B1/en
Publication of KR970056512A publication Critical patent/KR970056512A/en
Application granted granted Critical
Publication of KR100191724B1 publication Critical patent/KR100191724B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

본 발명은 비동기 직렬 인터페이스 모뎀에 의한 데이타 수신시에 메인 클럭신호를 카운트한 결과를 이용해서 정보 전송속도와 그 속도에 대응하는 데이타 포멧을 디코딩하여 구할 수 있도록 한 데이타 단말기용 모뎀의 정보 전송속도 검출장치에 관한 것이다.The present invention detects the information transmission rate of a modem for a data terminal that can be obtained by decoding the information transmission rate and the data format corresponding to the speed using the result of counting the main clock signal when receiving data by the asynchronous serial interface modem. Relates to a device.

종래에는 인터럽트 처리를 이용해서 중앙처리장치가 전송속도를 검출하기 때문에, 다수의 인터럽트 포트를 속도 검출에 할당해야 하고, 전송 속도 검출을 중앙처리장치가 부담하기 때문에 전송속도 검출루틴의 수행중에는 다른 인터럽트원의 처리를 할 수 없게되는 제약이 수반되며, 신뢰성 저하의 문제점이 있다.Conventionally, since the central processing unit detects the transmission speed by using interrupt processing, many interrupt ports must be allocated to the speed detection, and since the central processing unit is responsible for the transmission speed detection, other interrupts are performed during the execution of the transmission speed detection routine. It entails the restriction that the original processing cannot be performed, and there is a problem of lowering reliability.

본 발명은, 수신 데이타의 비트 천이 구간을 메인 클럭신호(MCLK)로 카운트하는 카운트 수단과, 상기 카운트된 값을 전송속도 검출값으로 저장하는 속도 검출수단과, 상기 카운트된 값을 이용해서 상기 수신되는 데이타값을 검출하는 데이타 검출수단과, 상기 검출된 데이타값을 디코딩하여 전송 포맷을 판별하는 포맷 판별수단과, 상기의 메인 클럭신호 카운트와 카운트값의 저장 및 출력, 그리고 데이타값 검출과 그것에 대응하는 전송 포맷의 판정에 필요한 제어신호들을 생성하여 각 부에 공급하는 제어수단으로 데이타 단말기용 모뎀의 정보 전송속도 검출장치를 구성함으로써, 인터럽트 포트 사용의 제약이나 전송속도 검출을 위한 중앙처리장치의 부담을 줄이고, 중앙처리장치가 전송속도 검출중에도 다른 인터럽트나 제어 처리의 수행이 가능하게하며, 데이타 전송(수신) 시스템의 신뢰성을 확보할 수 있도록 한 데이타 단말기용 모뎀의 정보 전송속도 검출장치를 제공한다.The present invention provides counting means for counting a bit transition period of received data as a main clock signal MCLK, speed detecting means for storing the counted value as a transmission rate detected value, and receiving the received value using the counted value. Data detection means for detecting a data value to be converted; format determination means for decoding the detected data value to determine a transmission format; and storing and outputting the main clock signal count and count value, and detecting and corresponding data value. A control means for generating the control signals necessary for the determination of the transmission format to be supplied to each unit and configuring the information transmission rate detection device of the modem for the data terminal, thereby limiting the use of an interrupt port or the burden on the central processing unit for detecting the transmission rate. Reduce the number of interrupts and perform other interrupt or control processing while the CPU detects the baud rate. , And it provides the data transmission (the reception) of the modem for the data terminal so as to ensure the reliability of the system information transmission rate detecting device.

Description

데이타 수신 장치Data receiver

본 발명은 데이타 단말기용 모뎀에서 디지탈 정보의 전송속도(Baud Rate)를 자동적으로 검출할 수 있도록 하는 것으로, 특히 비동기 직렬 인터페이스 모뎀에 의한 데이타 수신시에, 메인 클럭신호를 카운트한 결과를 이용해서 정보 전송속도와 그 속도에 대응하는 데이타 포맷을 디코딩하여 구할 수 있도록 하여 이에 따라 데이타를 수신할 수 있도록 한 데이타 수신 장치에 관한 것이다.The present invention enables a data terminal modem to automatically detect the baud rate of digital information. In particular, when a data is received by an asynchronous serial interface modem, the main clock signal is used to obtain information. The present invention relates to a data receiving apparatus capable of decoding and obtaining a transmission speed and a data format corresponding to the speed, thereby receiving data.

종래의 데이타 단말기용 인터페이스 모뎀에서 데이타 전송 속도를 검출하기 위한 회로 구성을 도면 제1도에 도시하였다.FIG. 1 is a circuit configuration for detecting a data transmission speed in a conventional interface modem for a data terminal.

제1도에 도시된 바와같이, 데이타 전송 속도를 판정하는 중앙처리장치(CPU)(1)와, 데이타 송수신을 위한 인터페이스(UART)(2), 그리고 통신 선로에 연결되는 상대방 데이타 단말장치(DTE)(3)로 이루어진다.As shown in FIG. 1, a central processing unit (CPU) 1 for determining a data transmission speed, an interface (UART) 2 for data transmission and reception, and a counterpart data terminal device (DTE) connected to a communication line (3).

상대방의 데이타 단말장치(3)로부터 통신 선로를 통해 인터페이스(2)로 데이타가 수신되면, 인터페이스(2)는 중앙처리장치(1)에 인터럽트(INT1, INT2)를 걸어서 전송 속도의 판정이 이루어지도록 한다.When data is received from the counterpart's data terminal device 3 via the communication line to the interface 2, the interface 2 issues interrupts INT1 and INT2 to the central processing unit 1 so that the transmission rate can be determined. do.

즉, 데이타 단말장치와 모뎀의 인터페이스는 RS232C 비동기 직렬 인터페이스를 사용하는데, 모뎀과 단말기 사이의 명령에 대한 표준으로 자리잡고 있는 Hayes AT Command Set의 커맨드 프리픽스(Command Prefix)인 AT 또는 at의 두 캐릭터(Character) 데이타 포맷 등을 검출하여 전송속도와 데이타 포맷을 검출하고 있다.In other words, the interface between the data terminal and the modem uses the RS232C asynchronous serial interface, which has two characters (AT or at), which are command prefixes of Hayes AT Command Set, which is a standard for commands between modems and terminals. Character) Data format is detected to detect the transmission speed and data format.

검출 방법의 예로써, a 캐릭터 데이타 수신(Rx)의 경우를 도면 제2도를 참조하여 살펴보면 다음과 같다.As an example of the detection method, the case of a character data reception (Rx) will be described with reference to FIG.

중앙처리장치(1)에서의 데이타 전송속도를 검출하기 위해서 인터럽트(INT1) 발생을 대기한다.Waiting for the interrupt INT1 to detect the data transfer rate in the central processing unit 1.

데이타 단말장치(3)측에서는 데이타를 전송할때 스타트 비트 전송을 위해서 1비트 듀티비(Duration) 동안에 'O' 상태를 유지한다.On the data terminal device 3 side, the data terminal apparatus 3 maintains an 'O' state during the 1-bit duty ratio for the start bit transmission.

이때 인터럽트1(INT1)이 발생하고, 이 인터럽트(INT1)가 발생하면 중앙처리장치(1)는 내부의 타이머를 동작(RUN)시킨다.At this time, interrupt 1 INT1 occurs, and when this interrupt INT1 occurs, the central processing unit 1 runs the internal timer.

이후에, '0'상태로부터 '1'상태로 데이타 천이가 일어나면 이 것을 인터럽트2(INT2)로 받아들이고, 인터럽트2(INT2)가 발생하면 중앙처리장치(1)는 상부 내부의 타이머를 정지시키고 상기 인터럽트1-인터럽트2(INT1-INT2) 사이의 시간차인 타이머값을 로드(Load)하여 데이타 전송 속도를 검출하는 것이다.Subsequently, when a data transition occurs from the '0' state to the '1' state, this is accepted as interrupt 2 (INT2), and when interrupt 2 (INT2) occurs, the CPU 1 stops the timer inside the upper part. The data transfer rate is detected by loading the timer value, which is the time difference between interrupt 1 and interrupt 2 (INT1-INT2).

이후에는 검출된 상기의 전송속도를 이용해서, 7번째와 8번째 및 9번째 데이타 비트열이 '1' 또는 '0'인가를 인터럽트 발생여부를 사용해서 검색함으로써, 데이타 포맷을 판정하는 것이다.Thereafter, the data format is determined by searching whether the seventh, eighth and ninth data bit strings are '1' or '0' using whether or not an interrupt is generated using the detected transfer rate.

캐릭터 데이타 t의 경우도 또한 상기한 바와같은 처리 과정으로 데이타 포맷을 결정한다.In the case of the character data t, the data format is also determined by the above-described processing.

즉, 종래의 데이타 단말기용 모뎀의 정보 전송속도 검출장치는 데이타 전송에 따른 신호 천이를 이용해서 중앙처리장치(1)에 복수의 인터럽트를 걸고, 이 인터럽트 발생을 이용해서 중앙처리장치(1)가 내부 타이머로 데이타 전송속도를 검출하며, 또 데이타 포맷도 판정하는 것이다.That is, the information transmission speed detection device of the modem for a data terminal in the prior art issues a plurality of interrupts to the central processing unit 1 by using a signal transition in accordance with the data transmission, and the central processing unit 1 uses the interrupt generation. The internal timer detects the data transfer rate and also determines the data format.

그러므로, 중앙처리장치(1)는 전송속도 검출을 위한 다수의 인터럽트 포트를 할당해야 한다.Therefore, the central processing unit 1 must allocate a plurality of interrupt ports for the transmission rate detection.

이러한 인터럽트 포트의 할당은 한정된 갯수의 인터럽트 포트의 이용 범위를 제한하게 되며, 인터럽트 포트 사용에 제약을 가져오는 문제점과, 전송 속도 검출을 중앙처리장치(1)가 부담하기 때문에 전송속도 검출루틴의 수행중에는 다른 인터럽트원의 처리를 할 수 없게되는 제약이 수반되는 문제점과, 이로 인한 중앙처리장치 성능 저하의 문제점과, 고속 통신의 경우 데이타 포맷을 검출하고 또 인터페이스(2)를 초기화하는데 걸리는 시간이 너무 짧아지면 시간적 부담으로 인하여 데이타 전송(수신) 시스템이 동작하지 않을 우려가 높은 신뢰성 저하의 문제점이 있다.The allocation of such interrupt ports limits the range of use of a limited number of interrupt ports, restricts the use of interrupt ports, and performs the transmission rate detection routine because the central processing unit 1 bears the transmission rate detection. Problems with other interrupt sources cannot be handled, resulting in a decrease in CPU performance, and in the case of high-speed communication, the time required to detect the data format and initialize the interface 2 is too long. If it is shortened, there is a problem that the reliability of the data transmission (receipt) system does not operate due to the time burden is high.

본 발명은 상기한 바와같은 종래의 문제점을 해결하여, 인터럽트 포트 사용의 제약이나 전송속도 검출을 위한 중앙처리장치의 부담을 줄이고, 중앙처리장치가 전송속도 검출중에도 다른 인터럽트나 제어 처리의 수행이 가능하게하며, 데이타 전송(수신) 시스템의 신뢰성을 확보할 수 있도록 한 데이타 수신 장치를 제공함을 목적으로 한다.The present invention solves the conventional problems as described above, thereby reducing the restriction on the use of an interrupt port and the burden on the central processing unit for detecting the transmission rate, and performing other interrupt or control processing while the central processing unit detects the transmission speed. In addition, it is an object of the present invention to provide a data receiving apparatus that can ensure the reliability of the data transmission (reception) system.

제1도는 종래의 데이타 수신장치에 있어, 정보 전송속도 검출을 위한 구성을 보인 블록 구성도.1 is a block diagram showing a configuration for detecting an information transmission rate in a conventional data receiving apparatus.

제2도는 종래의 정보 전송속도 검출 타이밍도.2 is a conventional information transmission rate detection timing diagram.

제3도는 본 발명 데이타 수신 장치의 구성을 보인 블록도.3 is a block diagram showing the configuration of the data receiving apparatus of the present invention.

제4도는 본 발명에 있어서, 정보 전송속도 검출장치의 블록 구성도.4 is a block diagram of an information transmission rate detecting device according to the present invention.

제5도는 본 발명에 적용되는 수신 데이타의 파형도.5 is a waveform diagram of received data applied to the present invention.

제6도는 본 발명에 적용되는 데이타 포맷 디코딩 테이블.6 is a data format decoding table applied to the present invention.

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

5, 8, 9 : 카운터 6, 7, 12 : 레지스터5, 8, 9: Counter 6, 7, 12: Register

10 : 시프트 레지스터 11 : 메모리10: shift register 11: memory

13 : 제어회로13: control circuit

상기의 목적을 달성하기 위한 본 발명의 데이타 수신 장치는 도면 제3도에 도시한 바와같이 전송속도 검출장치(4)를 인터페이스(2)와 상대방 데이타 단말장치(3) 사이에 연결한 구성으로, 상기 전송속도 검출장치(4)에서는 상대방 데이타 단말장치(3)에서 데이타의 전송을 위하여 전송데이타와 함께 전송하는 신호 데이타를 이용하여 정보 전송속도와 그 전송 포맷을 검출하고, 검출 결과를 중앙처리장치(1)에 제공한다.The data receiving apparatus of the present invention for achieving the above object is a configuration in which the transmission rate detecting device 4 is connected between the interface 2 and the counterpart data terminal device 3, as shown in FIG. The transmission rate detecting apparatus 4 detects the information transmission rate and its transmission format using signal data transmitted from the counterpart data terminal apparatus 3 together with the transmission data for data transmission, and detects the detection result and the central processing unit. Provide to (1).

이와같은 전송속도 검출장치는, 정보 전송을 위해 상대방 데이타 단말기로부터 제공되는 임의의 캐릭터 데이타에 대하여 초기에 제공되는 비트 천이 구간을 메인 클럭신호(MCLK)로 카운트하는 카운트수단과, 상기 카운트수단에 의해서 카운트된 값을 전송속도 검출값으로 저장하고 또 이 저장된 값을 출력하는 속도 검출수단과, 상기 카운트수단에 의해서 카운트된 값을 이용해서 상기 수신 데이타값을 검출하는 데이타 검출수단과, 상기 검출된 데이타값을 디코딩하여 전송 포맷을 판별하고 이 판별된 결과를 출력하는 포맷 판별수단과, 상기의 메인 클럭신호 카운트와 카운트값의 저장 및 출력, 그리고 데이타값 검출과 그 것에 대응하는 전송 포맷의 판정에 필요한 제어신호들을 생성하여 각 부에 공급하는 제어수단으로 구성함을 특징으로 한다.Such a transmission rate detecting apparatus includes counting means for counting a bit transition period initially provided for any character data provided from a counterpart data terminal for information transmission as a main clock signal MCLK, and by the counting means. Speed detecting means for storing the counted value as a transmission speed detection value and outputting the stored value, data detecting means for detecting the received data value using the value counted by the counting means, and the detected data Format determination means for decoding a value to determine a transmission format and outputting the determined result, storing and outputting the main clock signal count and count value, and detecting a data value and determining a transmission format corresponding thereto. And control means for generating and supplying control signals to each unit.

도면 제4도는 이와같은 본 발명에 적용되는 상기 전송속도 검출장치의 실시예 회로 구성을 나타낸다.Figure 4 shows a circuit configuration of the embodiment of the transmission rate detection apparatus applied to the present invention as described above.

제4도를 참조하여 그 구성을 살펴보면, 상기 카운트수단은 수신 데이타(Rx)에 대응하여 초기에 제공되는 데이타 천이 구간 동안 인에이블되어 메인 클럭신호(MCLK)를 카운트하는 카운터(5)로 구성되고, 상기 속도 검출수단은 상기 카운트수단에서 카운트된 값을 일시저장하는 제1 레지스터(6)와, 상기 레지스터(6)의 출력값을 일시 저장하였다가 속도 검출값으로 출력하는 제2 레지스터(7)로 구성되고, 상기 데이타 검출수단은 상기 카운트수단에서 카운트된 값이 수신 데이타(Rx)의 캐릭터값 검출 주기마다 재로드(RE-LOAD)되고 그 로드된 값을 상기 메인 클럭신호(MCLK)로 다운 카운트하는 다운 카운터(8)와, 상기 다운 카운터(8)에서 출력이 발생할 때마다 이 것을 카운트하여 캐릭터 검출에 의한 카운트값 재로드신호로 출력하는 시프트 카운터(9)와, 상기 수신된 캐릭터 데이타(Rx)를 다운 카운터(8)에서 출력이 발생할 때마다 시프트(SHIFT)하여 수신 데이타값을 출력하는 레지스터(10)로 구성되고, 상기 포맷 판별수단은 상기 수신 데이타(Rx)의 전송 포맷에 관련된 정보를 기억하고 있으며, 상기의 데이타 검출수단에서 출력된 데이타 검출값을 어드레스값으로 입력받아 상기의 기억하고 있는 해당 전송 포맷값을 출력하는 메모리(11)와, 상기 메모리(11)에서 출력된 전송 포맷값을 일시 저장하였다가 상기 속도 검출값과 함께 출력하는 포맷 출력 레지스터(12)로 구성되고, 상기 제어수단은 상기 데이타가 수신될때 데이타값을 검출하게 하는 엔에이블 신호와, 메인 클럭신호를 카운트하게 하는 인에이블 신호와, 상기 각 카운트 결과나 검출 결과를 저장하고 또 출력하게 하는 로드 및 출력 인에이블 신호를 출력하는 제어회로(13)로 구성된다.Referring to FIG. 4, the configuration of the counting means includes a counter 5 which is enabled during the data transition period initially provided in response to the received data Rx and counts the main clock signal MCLK. The speed detecting means includes a first register 6 which temporarily stores the value counted by the counting means, and a second register 7 which temporarily stores the output value of the register 6 and outputs it as a speed detection value. And the data detection means is reloaded at every character value detection period of the reception data Rx and the counted value is counted down as the main clock signal MCLK. A down counter 8, a shift counter 9 for counting these outputs each time an output occurs in the down counter 8, and outputting them as a count value reload signal by character detection; And a register 10 for shifting the literal data Rx each time an output occurs from the down counter 8, and outputting a received data value. A memory 11 for storing information related to the data, and outputting from the memory 11 a data detection value output from the data detection means as an address value, and outputting the transfer format value stored therein; And a format output register 12 for temporarily storing the transferred transmission format value together with the speed detection value, wherein the control means includes an enable signal for detecting a data value when the data is received, and a main clock signal. An output signal for outputting a load and output enable signal for storing and outputting each count result or detection result; It consists of a circuit 13.

도면에서 부호 14는 및 15는 버퍼 이고, Rx는 수신 데이타, Tx-out은 송신 데이타 출력, Tx-in은 송신 데이타 입력을 표시한다.In the figure, 14 and 15 are buffers, Rx denotes receive data, Tx-out denotes transmission data output, and Tx-in denotes transmission data input.

이와같이 구성된 전송속도 검출장치에 의한 전송 속도의 자동 검출과 그 포맷 검출 동작은 다음과 같이 이루어진다.The automatic detection of the transmission speed and the format detection operation by the transmission rate detecting device configured as described above are performed as follows.

전송 속도의 자동 검출을 위해 중앙처리장치(1)로부터 자동 검출 시작(RUN)을 지시받고, 이것에 의해서 제어회로(13)는 버퍼(14)에 인에이블 신호(EN)를 공급하여 버퍼(14)를 인에이블시키며, 또한 카운터(5)에 인에이블 신호(EN)를 입력한다.The automatic detection start (RUN) is instructed by the central processing unit 1 for the automatic detection of the transmission speed, whereby the control circuit 13 supplies the enable signal EN to the buffer 14 so that the buffer 14 ) Is enabled, and the enable signal EN is input to the counter 5.

이와같이 제어회로(13)의 제어를 받아 수신 데이타(Rx)에 대응하여 제공되는 초기 비트의 '0'인 상태동안, 카운터(5)는 메인 클럭신호(MCLK)를 카운트하며, '0'에서 '1'로 신호 천이가 발생하면 제어회로(13)는 상기 인에이블신호(EN)를 이용해서 카운터(5)의 카운트 동작을 정지시킨다.The counter 5 counts the main clock signal MCLK while '0' of the initial bit provided under the control of the control circuit 13 in response to the received data Rx. When a signal transition occurs to 1 ', the control circuit 13 stops the counting operation of the counter 5 by using the enable signal EN.

그러므로 카운터(5)는, 상대방 데이타 단말장치(3)측에서 데이타를 전송할때 그 초기에 데이타 전송을 위해서 제공하는, 1비트 듀티비(Duration) 동안에 '0' 상태를 유지하는 시간을 카운트한 값을 가지게 되어 메인 클럭신호(MCLK)에 대비하는 전송속도값을 카운트한 결과가 된다.Therefore, the counter 5 counts the time for maintaining the state of '0' during the 1-bit duty ratio, which is provided for data transmission at the beginning when data is transmitted from the counterpart data terminal apparatus 3 side. The result is a result of counting a transmission rate value corresponding to the main clock signal MCLK.

예를 들어, 도면 제5도에 도시된 바와같이 캐릭터 'at'인 경우 'a'값 전송의 스타트 시점에서 '0' 구간을 메인 클럭신호(MCLK)로 카운트한 것이다.For example, as shown in FIG. 5, in the case of the character 'at', the '0' section is counted as the main clock signal MCLK at the start time of 'a' value transmission.

이 카운트값(D15-D0)은 제1 레지스터(6)에 입력되며, 이 타이밍에서 제1 레지스터(6)는 제어회로(13)로부터 로드신호(LOAD)를 입력받아 상기 카운트값을 로드한다.The count value D15-D0 is input to the first register 6, and at this timing, the first register 6 receives the load signal LOAD from the control circuit 13 and loads the count value.

제1 레지스터(6)에 로드된 값(T15-T0)중에서 하위 4개 비트를 제외한 출력값(T15-T4)은 제2 레지스터(7)에 입력되고, 이 타이밍에서 제어회로(13)가 제2 레지스터(7)에 로드신호(LOAD)를 입력함으로써, 상기 입력값(T15-T1)을 기억하게 된다.Of the values T15-T0 loaded in the first register 6, the output values T15-T4 excluding the lower four bits are input to the second register 7, and at this timing, the control circuit 13 receives the second value. By inputting the load signal LOAD into the register 7, the input values T15-T1 are stored.

이와같이 제2 레지스터(7)가 메인 클럭신호(MCLK)를 상기 카운터에 의해서 16분주한 클럭신호 카운트값중 4비트 시프트된 값을 저장하고 또 출력하게 되므로, 제2 레지스터(7)의 값은 인터페이스(2)(UART)의 분주용 래치 레지스터의 상위값(T15-T12) 및 하위값(T11-T4)으로 그대로 사용할 수 있게 한다.As described above, since the second register 7 stores and outputs the 4-bit shifted value among the clock signal count values in which the main clock signal MCLK is divided into 16 by the counter, the value of the second register 7 is interfaced. (2) It can be used as it is as the upper value T15-T12 and the lower value T11-T4 of the divider latch register of (UART).

한편, 상기 제1 레지스터(6)에 로드되어 출력된 값(T15-T1)은 다운 카운터(8)에 입력(IN=D14-D0)되고, 다운 카운터(8)는 제어회로(13)의 로드신호(LOAD)에 의해서 상기 입력값을 로드한 다음, 메인 클럭신호(MCLK)로 상기 로드된 값을 다운 카운트한다.On the other hand, the value T15-T1 loaded and output in the first register 6 is input to the down counter 8 (IN = D14-D0), and the down counter 8 is loaded by the control circuit 13. The input value is loaded by the signal LOAD, and the loaded value is down counted by the main clock signal MCLK.

즉, 첫번째 1비트 데이타를 검출하는 것이다.That is, the first one bit data is detected.

다운 카운터(8)에서 상기 로드된 값의 다운 카운트 결과가 출력되면 이 것을 시프트 카운터(9)가 카운트하고, 제어회로(13)는 카운터(9)의 출력이 있게되면 상기 다운 카운터(8)에 리세트 신호(RESET)를 공급하여 다운 카운터(8)를 리세트 시키고, 또 로드 신호(LOAD)를 공급하여 상기 제1 레지스터(6)의 출력값(T15-T1)을 다시 로드시킨 다음, 이 로드된 값을 메인 클럭신호(MCLK)로 카운트시키는 동작을 반복하여 수행한다.When the down counter 8 outputs the down count result of the loaded value, the shift counter 9 counts this value, and the control circuit 13 transmits the counter 9 to the down counter 8 when the counter 9 is output. The reset signal RESET is supplied to reset the down counter 8, and the load signal LOAD is supplied to reload the output values T15-T1 of the first register 6, and then the load is loaded. The operation of counting the calculated value as the main clock signal MCLK is repeatedly performed.

그러므로, 다운 카운터(8)에서는 1비트 데이타 구간마다 카운트 결과로서 시프트 클럭신호(SHIFT CLOCK)를 출력하게 되며, 이에 따라 도면 제5도에 도시된 바와같이, 첫번째 1비트 데이타로부터, 두번째 1비트 데이타, 세번째 1비트 데이타,,,,, 6번째 1비트 데이타, 7번째 1비트 데이타, 8번째 1비트 데이타, 9번째 1비트 데이타, 10번째 1비트 데이타가 차례로 검출된다.Therefore, the down counter 8 outputs a shift clock signal (SHIFT CLOCK) as a count result for each 1-bit data period. Accordingly, as shown in FIG. 5, from the first 1-bit data, the second 1-bit data is output. The third one bit data, the sixth one bit data, the seventh one bit data, the eighth one bit data, the ninth one bit data, and the tenth one bit data are sequentially detected.

그리고, 상기 다운 카운터(8)에서 시프트 클럭신호(SHIFT CLOCK)가 출력될때마다 시프트 레지스터(10)는 수신 데이타(Rx)를 시프트시켜 출력(OUT)하며, 이때 제어회로(13)의 인에이블신호(EN)에 의한 인에이블 제어를 받는다.Each time the shift clock signal SHIFT CLOCK is output from the down counter 8, the shift register 10 shifts the received data Rx and outputs the OUT signal. At this time, the enable signal of the control circuit 13 is output. Enable control by (EN).

즉, 시프트 레지스터(10)에는 상기 수신된 캐릭터 데이타가 입력(IN)되고, 이 입력된 데이타가 매 1비트마다 클럭신호(SHIFT CLOCK)에 의해서 시프트되어 출력(OUT)되는 것이다.That is, the received character data is input (IN) to the shift register 10, and this input data is shifted by the clock signal (SHIFT CLOCK) every 1 bit and outputted (OUT).

예를 들면, 도면 제5도에서, 캐릭터 'a'의 경우 데이타는 '61H'(0110 0001)이므로 시프트 레지스터(10)에서 출력되는 값은 '0110 0001'이 된다.For example, in FIG. 5, in the case of the character 'a', since the data is '61H' (0110 0001), the value output from the shift register 10 is '0110 0001'.

시프트 레지스터(10)에서 출력된 값중에서 도면 제5도에 도시된 바와같이, 6번째와 8번째 및 9번째 데이타 시프트 타이밍에서 검출된 3개의 비트 데이타값(A4, A3, A2)을 메모리(11)의 어드레스(A4, A3, A2)로 입력한다.Among the values output from the shift register 10, as shown in FIG. 5, three bit data values A4, A3, and A2 detected at the sixth, eighth, and ninth data shift timings are stored in the memory 11; In the address (A4, A3, A2).

그리고, 그 다음 캐릭터 't'에 대해서도 상기한 바와 동일한 일련의 과정을 거쳐서 8번째와 9번째 데이타 시프트 타이밍에서 검출된 2개의 비트 데이타값(A1, A0)을 메모리(11)의 어드레스(A1, A0)로 입력한다.Then, the second bit data values A1 and A0 detected at the eighth and ninth data shift timings are subjected to the same sequence as described above with respect to the next character 't'. Enter A0).

메모리(11)에는 도면 제6도에 도시된 바와같은 디코딩 테이블이 미리 기억되어 있다.In the memory 11, a decoding table as shown in Fig. 6 is stored in advance.

이 디코딩 테이블은 도면 제5도의 각 경우에 대응하는 값으로 작성된 것이다.This decoding table is created with a value corresponding to each case of FIG.

그러므로, 상기 시프트 레지스터(10)로부터 검출되어 메모리(11)에 어드레스(A4-A0)로 입력된 데이타 검출값에 대응하여 포맷 데이타 형태(Format Data Type)가 디코딩되고, 해당 디코딩 결과(코드)가 출력단(DATA)에서 제어회로(13)의 출력 인에이블 신호(OE)에 의해서 출력된다.Therefore, a format data type is decoded corresponding to the data detection value detected from the shift register 10 and input to the addresses A4-A0 into the memory 11, and the corresponding decoding result (code) is decoded. The output terminal DATA outputs the output enable signal OE of the control circuit 13.

예를 들어, 'at'캐릭터가 상대방 데이타 단말기로부터 전송되어온 경우, 상기 검출된 A4-A0값이 '00000' 이면 오류(코드 FFH), '00111' 이면 7비트 우수 패리티(Even Parity) 포맷(코드 OAH), 등으로 데이타 포맷이 검출되는 것이다.For example, when the 'at' character has been transmitted from the counterpart data terminal, an error (code FFH) is detected if the detected A4-A0 value is '00000', and a 7-bit even parity format (code is set) if '00111' is detected. OAH), etc., to detect the data format.

이 출력된 코딩값은 제어회로(13)로부터 포맷 출력 레지스터(12)에 공급되는 로드신호(LOAD)에 의해서 포맷 출력 레지스터(12)에 저장된다.This output coded value is stored in the format output register 12 by a load signal LOAD supplied from the control circuit 13 to the format output register 12.

상기한 바와같은 모든 동작이 완료되면 제어회로(13)에서 버퍼(14)를 디스에이블시키고, 제2 레지스터(7)와 포맷 출력 레지스터(12)에 출력 인에이블신호(OE)를 공급하여, 상기 제2 레지스터(7)에 기억되어 있는 전송속도 검출정보를 중앙처리장치(1)로 로드(Load)하는 한편, 포맷 출력 레지스터(12)에 기억되어 있는 데이타 포맷 정보를 중앙처리장치(1)로 로드(Load)하며, 인터페이스(2)를 초기화 시킨다.When all of the above operations are completed, the control circuit 13 disables the buffer 14, and supplies an output enable signal OE to the second register 7 and the format output register 12. The transmission speed detection information stored in the second register 7 is loaded into the central processing unit 1 while the data format information stored in the format output register 12 is transferred to the central processing unit 1. Load and initialize the interface (2).

이로써, 전송속도 검출장치의 전송속도 자동 검출 동작이 완료되며, 중앙처리장치(1)에서는 상기한 바와 같이 검출되는 전송속도 및 전송 포맷에 따라 상대방 데이타 단말장치(3)로 부터 전송되는 데이타를 수신하게 된다.As a result, the automatic transmission speed detection operation of the transmission speed detection device is completed, and the CPU 1 receives data transmitted from the counterpart data terminal device 3 according to the transmission speed and transmission format detected as described above. Done.

상기한 바와같이 본 발명에 의하면, 데이타 단말기용 모뎀의 정보 전송 속도와 그 포맷을 검출함에 있어, 메인 클럭신호의 카운트 및 데이타값의 디코딩 처리를 자동적으로 수행함으로써, 상기 중앙처리장치에 인터럽트를 걸어서 처리하던 종래의 기술이 가지는 문제점을 해결할 수 있고, 인터럽트 포트 이용 효율을 높일 수 있게함은 물론, 전송속도를 검출하기 위한 상기의 과정이 진행되는 동안 중앙처리 장치가 개입되지 않기 때문에 중앙처리장치 자체의 기타 루틴 진행에 방해받지 않게 된다.As described above, according to the present invention, in detecting the information transmission speed and the format of the modem for the data terminal, the central processing unit is interrupted by automatically performing the counting of the main clock signal and the decoding of the data value. The central processing unit itself can be solved, and the problem of the conventional technology can be solved, and the efficiency of the interrupt port can be improved, and the central processing unit itself is not intervened during the above process for detecting the transmission speed. You will not be interrupted by other routines.

그러므로, 시스템 성능의 향상과 효율적인 데이타 단말기 모뎀의 운용이 가능하고, 또 본 발명의 데이타 단말기용 모뎀의 정보 전송속도 송출장치를 상기 UART칩 내부에 설치하면 회로 구성의 간소화 및 칩 성능 향상도 확보할 수 있는 효과가 있다.Therefore, it is possible to improve the system performance and operate the data terminal modem efficiently, and to install the information transmission rate transmitting device of the data terminal modem of the present invention inside the UART chip, it is possible to simplify the circuit configuration and improve the chip performance. It can be effective.

Claims (7)

정보 전송을 위해 상대방 데이타 단말기로부터 전송되는 신호 데이타를 이용하여 수신 데이타의 전송속도 및 전송포맷을 검출하는 전송속도 검출장치와, 상기 상대방 데이타 단말기와 메인시스템간의 인터페이스를 위한 인터페이스부와, 상기 상대방 데이타 단말기로부터 인터페이스를 통하여 정보를 수신시 전송 속도 검출장치로부터 검출된 전송속도와 전송포맷에 따라 데이타 수신을 하도록 시스템을 제어하는 중앙처리장치를 포함하여 구성되는 것을 특징으로 하는 데이타 수신 장치.A transmission rate detecting apparatus for detecting a transmission rate and a transmission format of received data using signal data transmitted from the other party's data terminal for information transmission, an interface unit for an interface between the other party's data terminal and the main system, and the other party's data And a central processing unit for controlling the system to receive data according to the transmission rate and transmission format detected from the transmission rate detection device when receiving information from the terminal through the interface. 제1항에 있어서, 상기 전송속도 검출장치는, 정보 전송을 위해 상대방 데이타 단말기로부터 제공되는 데이타의 초기 비트 천이 구간을 메인 클럭신호(MCLK)로 카운트하는 카운트수단과, 상기 카운트수단에 의해서 카운트된 값을 전송속도 검출값으로 저장하고 또 이 저장된 값을 출력하는 속도 검출수단과, 상기 카운트수단에 의해서 카운트된 값을 이용해서 상기 수신되는 데이타값을 검출하는 데이타 검출수단과, 상기 검출된 데이타값을 디코딩하여 전송 포맷을 판별하고 이 판별된 결과를 출력하는 포맷 판별수단과, 상기의 메인 클럭신호 카운트와 카운트값의 저장 및 출력, 그리고 데이타값 검출과 그 것에 대응하는 전송 포맷의 판정에 필요한 제어신호들을 생성하여 각 부에 공급하는 제어수단을, 포함하여 구성됨을 특징으로 하는 구성함을 특징으로 하는 데이타 수신장치.The apparatus of claim 1, wherein the apparatus for detecting a transmission rate comprises: counting means for counting an initial bit transition period of data provided from a counterpart data terminal for information transmission as a main clock signal MCLK, and counted by the counting means; Speed detecting means for storing a value as a transmission speed detection value and outputting the stored value, data detecting means for detecting the received data value using the value counted by the counting means, and the detected data value Format determination means for decoding a transmission signal to determine a transmission format and outputting the determined result, storing and outputting the main clock signal count and count value, and detecting data values and determining a transmission format corresponding thereto. And control means for generating signals and supplying the signals to the respective units. Data receiving apparatus for a. 제2항에 있어서, 상기 속도 검출수단은, 상기 카운트수단에서 카운트된 값을 일시저장하는 제1 레지스터(6)와, 상기 레지스터(6)의 출력값을 일시 저장하였다가 속도 검출값으로 출력하는 제2 레지스터(7)로 구성됨을 특징으로 하는 데이타 수신 장치.3. The speed detecting means according to claim 2, wherein said speed detecting means comprises: a first register (6) for temporarily storing a value counted by said counting means, and a second value for temporarily storing an output value of said register (6) and outputting it as a speed detection value; A data receiving device, characterized in that it consists of two registers (7). 제2항에 있어서, 상기 데이타 검출수단은, 상기 카운트수단에서 카운트된 값이 수신 데이타(Rx)의 캐릭터값 검출 주기마다 재로드(RE-LOAD)되고 또 그 로드된 값을 상기 메인 클럭신호(MCLK)로 다운 카운트하는 다운 카운터(8)와, 상기 다운 카운터(8)에서 출력이 발생할 때마다 이 것을 카운트하여 캐릭터 검출에 의한 카운트값 재로드신호로 출력하는 시프트 카운터(9)와, 상기 수신된 캐릭터 데이타(Rx)를 다운 카운터(8)에서 출력이 발생할 때마다 시프트하여 수신 데이타값을 출력하는 시프트 레지스터(10)로 구성됨을 특징으로 하는 데이타 수신 장치.The data detection means of claim 2, wherein the value counted by the counting means is reloaded at every character value detection period of the received data Rx, and the loaded value is converted into the main clock signal (3). A down counter 8 for down counting with MCLK), a shift counter 9 for counting this each time an output occurs in the down counter 8 and outputting it as a count value reload signal by character detection; And a shift register (10) for outputting a received data value by shifting the received character data (Rx) each time an output occurs in the down counter (8). 제2항에 있어서, 상기 포맷 판별수단은, 상기 수신 데이타(Rx)의 전송 포맷에 관련된 정보를 기억하고 있으며, 상기의 데이타 검출수단에서 출력된 데이타 검출값을 어드레스값으로 입력받아 상기의 기억하고 있는 해당 전송 포맷값을 출력하는 메모리(11)와, 상기 메모리(11)에서 출력된 전송 포맷값을 일시 저장하였다가 상기 속도 검출값과 함께 출력하는 포맷 출력 레지스터(12)로 구성됨을 특징으로 하는 데이타 수신 장치.3. The apparatus according to claim 2, wherein said format determining means stores information related to the transmission format of said received data Rx, receives said data detection value output from said data detecting means as an address value, and stores said information. And a memory 11 for outputting the corresponding transport format value, and a format output register 12 for temporarily storing the transport format value output from the memory 11 and outputting the transport format value together with the speed detection value. Data receiving device. 제3항에 있어서, 상기 제1 레지스터(6)의 출력값 중에서 하위 4개 비트를 제외한 나머지 상위 비트값을 제2 레지스터(7)가 기억하여, 4비트 시프트된 값을 인터페이스(UART) 상하위 레지스터값으로 출력함을 특징으로 하는 데이타 수신 장치.4. The upper and lower register values of the interface UART according to claim 3, wherein the second register 7 stores the remaining upper bit values other than the lower four bits among the output values of the first register 6, and stores the four bit shifted values. Data receiving apparatus characterized in that the output. 제2항에 있어서, 상기 카운트수단은, 수신 데이타(Rx)에 대응하여 제공되는 초기의 데이타 천이 구간 동안 인에이블되어 '0' 구간 동안을 메인 클럭 신호(MCLK)로 카운트하는 카운터(5)로 구성됨을 특징으로 하는 데이타 수신 장치.3. The counter according to claim 2, wherein said counting means is enabled during an initial data transition period provided in correspondence with the received data Rx and counts a counter clock 5 as a main clock signal MCLK for a '0' period. Data receiving device, characterized in that configured.
KR1019950053470A 1995-12-21 1995-12-21 An apparatus for receiving data KR100191724B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950053470A KR100191724B1 (en) 1995-12-21 1995-12-21 An apparatus for receiving data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950053470A KR100191724B1 (en) 1995-12-21 1995-12-21 An apparatus for receiving data

Publications (2)

Publication Number Publication Date
KR970056512A KR970056512A (en) 1997-07-31
KR100191724B1 true KR100191724B1 (en) 1999-06-15

Family

ID=19442396

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950053470A KR100191724B1 (en) 1995-12-21 1995-12-21 An apparatus for receiving data

Country Status (1)

Country Link
KR (1) KR100191724B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6839863B2 (en) 2000-09-06 2005-01-04 Nec Corporation Input data processing circuit comprising of a readout circuit for selecting one of first and second FIFO buffers having a faster clock
KR20190127294A (en) * 2018-05-04 2019-11-13 (주)이즈미디어 System and method for measuring mipi speed

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6985726B2 (en) * 2001-09-28 2006-01-10 Lucent Technologies Inc. Method of blind transport format detection

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6839863B2 (en) 2000-09-06 2005-01-04 Nec Corporation Input data processing circuit comprising of a readout circuit for selecting one of first and second FIFO buffers having a faster clock
KR20190127294A (en) * 2018-05-04 2019-11-13 (주)이즈미디어 System and method for measuring mipi speed
KR102100034B1 (en) * 2018-05-04 2020-04-16 (주)이즈미디어 System and method for measuring mipi speed

Also Published As

Publication number Publication date
KR970056512A (en) 1997-07-31

Similar Documents

Publication Publication Date Title
US4761800A (en) Method and apparatus for detecting a rate of data transmission
KR100240873B1 (en) Serial interface unit having the same register for reception/transmission
US6977960B2 (en) Self test circuit for evaluating a high-speed serial interface
US5404459A (en) Serial interface module and method in which the clock is only activated to send a predetermined number of data bits
EP0522764A2 (en) Multiplexing scheme for modem control signals
US3976844A (en) Data communication system for transmitting data in compressed form
JP2641999B2 (en) Data format detection circuit
US6581100B1 (en) System and method for communication parameter determination
US5159684A (en) Data communication interface integrated circuit with data-echoing and non-echoing communication modes
CA2111264A1 (en) System and method for peripheral data transfer
KR20000071338A (en) Method and apparatus for connecting manufacturing test interface to a global serial bus including an inter integrated circuit bus
US4034346A (en) Interface for establishing communications between a data-processing unit and a plurality of stations
KR100230451B1 (en) Method of transceiving asynchronous serial data of digital signal processor
US5889817A (en) Communication system with data comparison circuit
JPS62298248A (en) Bit pattern detecting circuit
KR100191724B1 (en) An apparatus for receiving data
US3400375A (en) Universal code synchronous transmitter-receiver device
JPH10276266A (en) Exchange test device
US4612635A (en) Sequential data transmission system
Cook IEEE 1355 data-strobe links: ATM speed at RS232 cost
KR100209645B1 (en) Circuit for controlling transmission speed
KR20010019740A (en) Signal converting circuit for debugging of microprocessor
KR960009533B1 (en) Apparatus for receiving data from multi-port control system
KR950004751B1 (en) Non-synchronous serial data receiving method of mobile phone
JP2007036850A (en) Character recognizing circuit

Legal Events

Date Code Title Description
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: 20080102

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee