KR20070082302A - Telecommunication system for common using usb and uart - Google Patents

Telecommunication system for common using usb and uart Download PDF

Info

Publication number
KR20070082302A
KR20070082302A KR1020060014962A KR20060014962A KR20070082302A KR 20070082302 A KR20070082302 A KR 20070082302A KR 1020060014962 A KR1020060014962 A KR 1020060014962A KR 20060014962 A KR20060014962 A KR 20060014962A KR 20070082302 A KR20070082302 A KR 20070082302A
Authority
KR
South Korea
Prior art keywords
usb
uart
signal line
gpio
connector
Prior art date
Application number
KR1020060014962A
Other languages
Korean (ko)
Other versions
KR100758565B1 (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 KR1020060014962A priority Critical patent/KR100758565B1/en
Priority to US11/619,802 priority patent/US7743187B2/en
Priority to SG200700045-8A priority patent/SG134232A1/en
Priority to TW096100608A priority patent/TWI337710B/en
Priority to CN2008101814340A priority patent/CN101408870B/en
Priority to EP07025223A priority patent/EP1901176B1/en
Priority to EP07000205A priority patent/EP1806661B1/en
Priority to AT07000205T priority patent/ATE404921T1/en
Priority to DE602007011547T priority patent/DE602007011547D1/en
Priority to DE602007000062T priority patent/DE602007000062D1/en
Priority to CN2008101814336A priority patent/CN101408869B/en
Priority to EP07025222A priority patent/EP1901175B1/en
Priority to AT07025222T priority patent/ATE493711T1/en
Priority to JP2007000431A priority patent/JP4496228B2/en
Publication of KR20070082302A publication Critical patent/KR20070082302A/en
Priority to HK07109759.5A priority patent/HK1104630A1/en
Application granted granted Critical
Publication of KR100758565B1 publication Critical patent/KR100758565B1/en

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E01CONSTRUCTION OF ROADS, RAILWAYS, OR BRIDGES
    • E01FADDITIONAL WORK, SUCH AS EQUIPPING ROADS OR THE CONSTRUCTION OF PLATFORMS, HELICOPTER LANDING STAGES, SIGNS, SNOW FENCES, OR THE LIKE
    • E01F15/00Safety arrangements for slowing, redirecting or stopping errant vehicles, e.g. guard posts or bollards; Arrangements for reducing damage to roadside structures due to vehicular impact
    • E01F15/14Safety arrangements for slowing, redirecting or stopping errant vehicles, e.g. guard posts or bollards; Arrangements for reducing damage to roadside structures due to vehicular impact specially adapted for local protection, e.g. for bridge piers, for traffic islands
    • E01F15/145Means for vehicle stopping using impact energy absorbers
    • E01F15/146Means for vehicle stopping using impact energy absorbers fixed arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Information Transfer Systems (AREA)

Abstract

A telecommunication system using a USB and a UART in common is provided to use USB or UART communication by detecting a USB or UART connection signal from an external device on a single USB connector, and switching a USB or UART data signal line. The USB connector(100) provides interface for an external device, and has signal line data. An analog switch(200) selectively sets a UART or USB data signal line to a signal line of the connector according to a selection control signal. A system controller reads a signal level by setting a UART data signal line terminal as a GPIO(General Purpose Input/Output) port, and detects whether the UART or the USB is connected to the connector depending on a signal level. If a UART connection signal is detected, the system controller sets the UART data signal line terminal as a UART port, and performs the UART communication by connecting a path of the UART data signal line and the connector signal line through the selection control signal. If the USB connection signal is detected, the system controller performs the USB communication by connecting the path of the USB data signal line and the connector signal line through the analog switch.

Description

USB/UART 공용 통신시스템{Telecommunication system for common using USB and UART}Telecommunication system for common using USB and UART

도 1은 종래 기술에 따라 리모컨과 연결하여 사용되는 MP3 장치의 일 예를 나타낸 도면이다.1 is a view showing an example of an MP3 device used in connection with a remote control according to the prior art.

도 2는 종래 기술에 따라 카오디오와 연결하여 사용되는 MP3 장치의 일 예를 나타낸 도면이다.2 is a diagram illustrating an example of an MP3 device used in connection with a car audio according to the prior art.

도 3은 본 발명에 따른 USB/UART 공용 통신시스템의 구성도이다.3 is a block diagram of a USB / UART common communication system according to the present invention.

도 4는 도 3에 도시된 USB/UART 공용 통신시스템의 회로구성도이다.4 is a circuit diagram of the USB / UART common communication system shown in FIG.

도 5는 본 발명에 따른 USB/UART 공용 통신시스템의 동작 과정을 나타낸 흐름도이다.5 is a flowchart illustrating an operation process of a USB / UART common communication system according to the present invention.

도 6은 본 발명의 실시 예에 따라 USB/UART/GPIO 기능을 공용으로 사용하는 통신시스템의 회로구성도이다.6 is a circuit diagram illustrating a communication system using a USB / UART / GPIO function in common according to an embodiment of the present invention.

도 7은 본 발명의 실시 예에 따라 USB/UART/GPIO 기능을 공용으로 사용하는 통신시스템의 동작 과정을 나타낸 흐름도이다.7 is a flowchart illustrating an operation process of a communication system using a USB / UART / GPIO function in common according to an embodiment of the present invention.

도 8은 본 발명의 다른 실시 예에 따라 USB/UART/GPIO 기능을 별도로 사용하는 통신시스템의 회로구성도이다.8 is a circuit diagram illustrating a communication system using a USB / UART / GPIO function separately according to another embodiment of the present invention.

도 9는 본 발명의 실시 예에 따라 USB/UART/GPIO 기능을 별도로 사용하는 통신시스템의 동작 과정을 나타낸 흐름도이다.9 is a flowchart illustrating an operation process of a communication system using a USB / UART / GPIO function separately according to an embodiment of the present invention.

본 발명은 범용직렬버스(Universal Serial Bus, 이하: USB)/범용 비동기화 송수신기(Universal Asynchronous Receiver Transmitter, 이하: UART) 공용 통신시스템에 관한 것으로서, 더욱 상세하게는 단일의 USB 컨넥터를 이용하여 USB와 UART 접속신호를 자동으로 검출하여 공용의 신호라인으로 사용함으로써 USB 혹은 UART 통신을 선택적으로 사용할 수 있는 통신시스템에 관한 것이다.The present invention relates to a universal serial bus (hereinafter referred to as USB) / Universal Asynchronous Receiver Transmitter (hereinafter referred to as UART) common communication system, and more particularly, using a single USB connector. The present invention relates to a communication system capable of selectively using USB or UART communication by automatically detecting a UART connection signal and using it as a common signal line.

최근 각종 미디어 재생장치가 보편화되면서 차량용 카 오디오나 가정용 오디오 장치의 스피커 시스템을 통해 미디어 재생장치에 저장되어 있는 곡들을 듣기를 원하는 소비자의 요구가 증가하고 있는 추세이다. 이를 위하여 종래의 미디어 재생장치에 FM 송신기능을 부가하여 미디어 재생장치가 재생된 곡을 특정 FM 주파수로 송신하고, 오디오 장치는 이를 FM 수신모드에서 주파수 튜닝하여 듣도록 하는 기술이 제안되어 현재 널리 사용되고 있다.Recently, as the various media playback devices become more popular, the demand of consumers who want to listen to the songs stored in the media playback device through the speaker system of the car car audio or the home audio device is increasing. To this end, an FM transmission function has been added to a conventional media playback apparatus, and a technology has been proposed in which a media playback apparatus transmits a tuned song at a specific FM frequency, and the audio apparatus is tuned and listened to it in the FM reception mode. have.

또한, 종래의 오디오 장치에 Aux-Line을 따로 외부로 뽑아내서 미디어 재생장치의 이어폰 잭을 연결하여 듣는 방식도 일반적으로 사용되어 왔다. 이처럼 디지 털 미디어 기술이 보편화되면서 차량용 카 오디오나 가정용 오디오 장치의 스피커 시스템을 통해 USB 메모리 등에 저장되어 있는 디지털 컨텐츠를 직접 재생하고자 하는 소비자의 요구가 증가하고 있다. In addition, a conventional way of listening to the audio device by connecting the earphone jack of the media player to extract the Aux-Line to the outside separately. As digital media technology becomes more popular, the demand for consumers to directly play digital contents stored in USB memory or the like through a car system or a speaker system of a home audio device is increasing.

이를 위하여 본 특허출원인은 '외부 저장장치를 이용한 미디어 처리장치'에 관한 발명을 2002. 04.04자로 출원번호 2003-21307호로 출원하여 2003. 10. 15.자로 등록번호 403,376호로 특허등록을 받은 바 있다. 상기의 기술에 따르면 오디오 장치가 USB 호스트 인터페이스를 구비하여 USB 메모리에 저장되어 있는 컨텐츠를 직접 판독하여 재생하도록 되어 있다.To this end, the present patent applicant filed an invention regarding 'media processing apparatus using an external storage device' as an application number 2003-21307 as of 2002.04.04 and registered as a patent number 403,376 as of October 15, 2003. According to the above technique, the audio device has a USB host interface to directly read and play contents stored in the USB memory.

위에서 설명한 기존의 디지털 미디어 기술에 적용하는 미디어 저장 또는 미디어 재생장치를 보면 표준 USB를 이용하는 MP3 장치 또는 USB 플래시 장치(UFD)의 제품군과 인터페이스로서 UART와 IEEE 1394를 이용하는 애플사의 i-POD 제품군을 들 수 있다.The media storage or media player applied to the existing digital media technologies described above includes Apple's i-POD family using UART and IEEE 1394 as the interface and interface of MP3 or USB flash devices (UFD) using standard USB. Can be.

이와 같은 애플사의 i-POD는 도 1에 도시된 바와 같이, 32-핀 컨넥터(11)와 애플 PC에 연결하여 MP3 파일을 다운로드 하는데 사용하는 IEEE 1394 컨넥터(12)를 구비한 MP3 플레이어(10)를 리모콘에 접속하여 UART 통신방식으로 기기 제어와 곡정보 등의 디스플레이에 활용한다.As shown in FIG. 1, the i-POD of Apple, as shown in FIG. 1, has an MP3 player 10 having a 32-pin connector 11 and an IEEE 1394 connector 12 used for downloading MP3 files by connecting to an Apple PC. Connect to the remote controller and use it for UART communication for device control and song information display.

또한, 애플사의 i-POD는 도 2에 도시된 바와 같이, MP3 플레이어(10)의 32-핀 컨넥터(11)와 카 오디오(20)에 추가로 설치한 32-핀 컨넥터(21)를 접속하여 UART 통신방식으로 카 오디오(20) 측에서 곡 정보를 제공받고, MP3 플레이어(10) 측으로는 기기 조작에 대한 제어정보를 제공하는 32-핀 컨넥터를 활용한 카 오디오 패키지를 제공하여 왔다. 이러한 카 오디오를 iPOD-ready라고 하며, 참고로 아날로그 오디오는 Aux-Line으로 별도 연결된다.In addition, Apple's i-POD is connected to the 32-pin connector 11 of the MP3 player 10 and the 32-pin connector 21 additionally installed in the car audio 20, as shown in FIG. Car audio 20 has been provided with a car audio package using a 32-pin connector that receives song information from the car audio 20 side and provides MP3 player 10 control information for device operation. This car audio is called iPOD-ready, and analog audio is connected to Aux-Line separately.

그러나, 최근 카 오디오 등에 USB 컨넥터가 장착되는 추세이고, 그에 따라 iPOD-ready를 구현하거나 UART 통신을 구현하기 위해서는 확장 컨넥터와 USB 컨넥터를 모두 구비해야 함으로써 공간의 부족과 디자인 상의 문제가 유발된다.However, recently, USB connectors have been installed in car audio, and thus, in order to implement iPOD-ready or UART communication, both an extension connector and a USB connector need to be provided, causing a lack of space and design problems.

이는 최근 애플사의 i-POD 제품이 전용 인터페이스를 통해서만 접속이 가능한 구조로 이루어져 있고 UART 통신을 하는 재생장치는 확장 컨넥터와 USB 컨넥터가 서로 다르기 때문에 카 오디오의 인터페이스를 추가로 구성하지 않는다면 종래의 방식을 사용하기가 곤란하고, 소비자들이 애플사의 i-POD 제품 또는 UART 통신용 제품을 많이 구입하여 사용하고 있음에도 불구하고 그 효용도에 있어서는 그다지 높지 않았다.This is because Apple's i-POD product can be accessed only through a dedicated interface, and the playback device that communicates with UART has a different extension connector and a USB connector. It was difficult to use, and despite the fact that consumers bought and used a lot of Apple's i-POD products or UART communication products, they were not very high in their utility.

이러한 문제점을 해결하기 위하여 본 특허출원인은 출원번호 10-2006-0001525,‘오디오 시스템’에 관한 발명을 2006.01.05자로 출원한 바 있다. 그러나, 본 발명에서는 상기 특허출원에 대하여 보다 구체화될 수 있도록 진보된 기술을 보완하였으며, 또한 실제 제품으로 구현될 수 있도록 제품의 완성도를 높였다.In order to solve this problem, the present applicant has filed an application relating to the application No. 10-2006-0001525, "Audio system" as 2006.01.05. However, the present invention supplements the advanced technology to be more specific to the patent application, and also enhances the completeness of the product to be implemented in the actual product.

본 발명은 상기한 문제점을 해결하기 위한 것으로서 본 발명의 목적은 외부장치가 사용하는 통신이나 인터페이스를 제공하는 접속모듈의 규격에 제한 없이 외부장치와의 인터페이스 제공이 가능하도록 제어할 수 있는 USB/UART 공용 통신시스 템을 제공하는 데 있다.The present invention is to solve the above problems and an object of the present invention is to provide a USB / UART that can be controlled to provide an interface with the external device without limiting the standard of the connection module providing a communication or interface used by the external device To provide a common communication system.

본 발명의 다른 목적은 단일의 USB 컨넥터 상에서 외부장치로부터 USB와 UART의 접속신호를 검출한 후 USB 혹은 UART 데이터 신호라인으로 연결되도록 스위칭 절체함으로써 USB 혹은 UART 통신이 선택적으로 가능한 USB/UART 공용 통신시스템을 제공하는 데 있다.Another object of the present invention is a USB / UART common communication system capable of selectively performing USB or UART communication by switching switching to connect to a USB or UART data signal line after detecting a connection signal between USB and UART from an external device on a single USB connector. To provide.

상기한 본 발명의 목적을 달성하기 위한 기술적 사상으로서 본 발명에 의하면, 외부장치에 대하여 인터페이스를 제공하고 신호라인 데이터(D+)와 데이터(-)를 가지고 있는 컨넥터; 선택 제어신호에 따라 상기 컨넥터의 신호라인(D+_RXD, D-_TXD)에 대하여 UART 데이터 신호라인(UART_TXD, UART_RXD) 또는 USB 데이터 신호라인(USB_HD+, USB_HD-) 중 어느 하나의 경로를 선택적으로 설정하는 아날로그 스위치부; 및 UART 데이터 신호라인 단자를 GPIO로 설정하여 그 신호레벨을 판독하여 그 판독 결과에 따라 상기 컨넥터에 UART가 접속되었는지 USB가 접속되었는지를 검출하고, 만일 UART 접속이 검출된 경우 상기 UART 데이터 신호라인 단자를 UART 포트로 설정하고, 상기 선택 제어신호를 통해 상기 UART 데이터 신호라인과 상기 컨넥터 신호라인의 경로가 연결되도록 설정한 후 UART 통신을 수행하며, 만일 USB 접속이 검출된 경우 상기 선택 제어신호를 통해 상기 USB 데이터 신호라인과 상기 컨넥터 신호라인의 경로가 연결되도록 설정한 후 USB 통신을 수행하도록 하는 시스템 제어부;를 포함하여 구성되는 USB/UART 공용 통신시스템을 제시한다.According to the present invention to achieve the object of the present invention, a connector for providing an interface to the external device and having a signal line data (D +) and data (-); Optionally set one of UART data signal lines UART_TXD and UART_RXD or USB data signal lines USB_HD + and USB_HD- with respect to the signal lines D + _RXD and D-_TXD of the connector according to a selection control signal. An analog switch unit; And setting the UART data signal line terminal to GPIO and reading the signal level to detect whether UART or USB is connected to the connector according to the read result, and if the UART connection is detected, the UART data signal line terminal. UART port is set to the UART port, and the UART data signal line and the connector signal line are connected through the selection control signal, and then UART communication is performed. And a system control unit configured to perform USB communication after setting the path of the USB data signal line and the connector signal line to be connected.

본 발명의 USB/UART 공용 통신시스템에 의하면, 상기 컨넥터의 신호라인에 있어서 데이터(D+_RXD) 신호라인이 HIGH 이고 데이터(D-_TXD) 신호라인이 LOW 이면 상기 컨넥터에 USB 가 접속된 것으로 판단한다.According to the USB / UART common communication system of the present invention, when the data (D + _RXD) signal line is HIGH and the data (D-_TXD) signal line is LOW in the signal line of the connector, it is determined that USB is connected to the connector. do.

본 발명의 USB/UART 공용 통신시스템에 의하면, 상기 컨넥터의 신호라인에 있어서 데이터(D-_TXD) 신호라인이 HIGH 이고 데이터(D+_RXD) 신호라인이 LOW 이면 상기 컨넥터에 UART가 접속된 것으로 판단한다.According to the USB / UART common communication system of the present invention, if the data (D-_TXD) signal line is HIGH and the data (D + _RXD) signal line is LOW in the signal line of the connector, it is determined that the UART is connected to the connector. do.

이하, 본 발명의 실시 예에 대한 구성 및 그 작용을 첨부한 도면을 참조하면서 상세히 설명하기로 한다.Hereinafter, with reference to the accompanying drawings, the configuration and operation of the embodiment of the present invention will be described in detail.

도 3은 본 발명에 따른 USB/UART 공용 통신시스템의 구성도이다. 도 4는 도 3에 도시된 USB/UART 공용 통신시스템의 회로구성도이다.3 is a block diagram of a USB / UART common communication system according to the present invention. 4 is a circuit diagram of the USB / UART common communication system shown in FIG.

본 발명의 구성 및 작용 설명에 앞서 UART 및 USB 개념을 살펴보면, 데이터 전송을 위해 주로 사용되는 통신 포트의 종류에는 범용 비동기화 송수신기(UART)와 범용 직렬 버스(USB) 등이 적용된다.Looking at the UART and USB concept prior to the configuration and operation of the present invention, a universal asynchronous transceiver (UART) and a universal serial bus (USB) is applied to the type of communication port mainly used for data transmission.

먼저 UART는 비동기 직렬통신 처리장치로서 모든 컴퓨터에는 직렬 포트를 관리하기 위해 UART가 존재하며, 모든 내부 모뎀도 각자의 UART를 구비하고 있다. 이러한 UART는 컴퓨터에게 RS-232C 인터페이스를 제공함으로써 모뎀이나 기타 다른 직렬장치들과 통신하거나 데이터를 주고받을 수 있게 한다.First, UART is an asynchronous serial communication processor, and every computer has a UART to manage the serial port, and every internal modem has its own UART. These UARTs provide computers with an RS-232C interface, allowing them to communicate with or send data to modems or other serial devices.

이와는 달리, USB는 IBM 등을 비롯한 7개사가 공동으로 제안한 주변기기 접속 인터페이스 규격으로서 여러 주변장치들을 개인용 컴퓨터에 접속하기 위한 인터 페이스의 공동화를 목적으로 한다. 이러한 USB를 사용하면 주변기기 등을 개인용 컴퓨터와 연결할 때 소프트웨어나 하드웨어를 별도로 설정할 필요없이 모든 주변 기기를 접속할 수 있기 때문에 포트 수를 획기적으로 줄일 수 있을 뿐만 아니라, 설치가 간편하고 휴대형 컴퓨터의 소형화가 가능한 이점이 있다.USB, on the other hand, is a peripheral interface specification jointly proposed by seven companies including IBM, and aims at the commonization of an interface for connecting several peripheral devices to a personal computer. This USB port allows you to connect all peripheral devices without setting up software or hardware when connecting peripherals to a personal computer, which not only reduces the number of ports, but also enables easy installation and miniaturization of portable computers. There is an advantage.

도 3 및 도 4에 도시된 바와 같이, 본 발명에 의한 USB/UART 공용 통신시스템은 USB 컨넥터(connector)(100)의 일단과 아날로그 스위치부(analog switch)(200)의 일단 간에는 UART 송신신호 TXD 단자 혹은 USB 호스트 데이터(D+) 신호 HD+ 단자와 접속되는 USB 컨넥터 신호라인의 D+_RXD와, UART 수신신호 RXD 단자 혹은 USB 호스트 데이터(D-) 신호 HD- 단자와 접속되는 USB 컨넥터 신호라인의 D-_TXD가 연결되어 있다.As shown in FIG. 3 and FIG. 4, in the USB / UART common communication system according to the present invention, a UART transmission signal TXD is connected between one end of a USB connector 100 and one end of an analog switch unit 200. D + _RXD on the USB connector signal line connected to the terminal or USB host data (D +) signal HD + terminal, and D on the USB connector signal line connected to the UART receive signal RXD terminal or the USB host data (D-) signal HD- terminal. -_TXD is connected.

아날로그 스위치부(200)의 타 단에는 UART 송신신호의 TXD 단자, UART 수신신호의 RXD 단자, USB 호스트 데이터(D+) 신호의 HD+ 단자, USB 호스트 데이터(D-) 신호의 HD- 단자 및 스위치 셀렉터(selector)의 SW_SEL이 각각 연결되어 있다. The other end of the analog switch unit 200 has a TXD terminal of a UART transmission signal, an RXD terminal of a UART receiving signal, an HD + terminal of a USB host data (D +) signal, an HD- terminal of a USB host data (D-) signal, and a switch selector. SW_SEL of (selector) is connected respectively.

한편, 도 3에 도시되어 있지는 않으나, 아날로그 스위치부(200)로 제공되는 각종의 신호 라인들(UART_TXD, UART_RXD, USB_HD+, USB_HD-, SW_SEL, SW1, SW2, SW3)은 시스템의 제어부로부터 공급되거나 시스템의 제어부로 공급된다.Although not shown in FIG. 3, various signal lines UART_TXD, UART_RXD, USB_HD +, USB_HD-, SW_SEL, SW1, SW2, and SW3 provided to the analog switch unit 200 may be supplied from a control unit of the system or the system. Supplied to the control unit.

이때, 도 4의 회로도를 살펴보면 아날로그 스위치(200)의 10번 핀(pin)과 전원(VDD) 사이에 접점된 캐패시터(C1)는 안정된 정전압을 공급하기 위해 리플(ripple) 및 잡음(noise)을 감소시키는 기능을 한다.At this time, referring to the circuit diagram of FIG. 4, the capacitor C1 contacted between the pin 10 of the analog switch 200 and the power supply VDD has a ripple and noise to supply a stable constant voltage. It serves to reduce.

USB 컨넥터(100)는 직접 접속되는 외부장치 혹은 어댑터 장치를 통해 접속되는 외부장치에 대하여 인터페이스를 제공한다. 또한, 본 발명의 USB 컨넥터(100)는 표준의 USB 컨넥터이거나 혹은 별도 설계된 컨넥터의 사용도 가능하다.The USB connector 100 provides an interface to an external device connected directly through an external device or an adapter device. In addition, the USB connector 100 of the present invention may be a standard USB connector or a separately designed connector.

아날로그 스위치부(200)는 스위치 셀렉터 SW_SEL의 선택 제어신호에 따라 UART 컨넥터 신호라인 혹은 USB 컨넥터 신호라인 중 어느 하나의 경로를 선택적으로 설정하는 기능을 한다.The analog switch unit 200 functions to selectively set any one path of the UART connector signal line or the USB connector signal line according to the selection control signal of the switch selector SW_SEL.

이때, 스위치 셀렉터 SW_SEL의 경로 설정 조건을 살펴보면, 디폴트(Default) 즉 초기상태에서 USB 컨넥터 신호라인의 D-_TXD가 HIGH(3.3V)이고, USB 컨넥터 신호라인의 D+_RXD 단자가 LOW(0V) 상태일 때 UART 데이터 라인의 경로를 선택적으로 설정하며, USB 컨넥터 신호라인의 D-_TXD가 LOW(0V)이고, USB 컨넥터 신호라인의 D+_RXD가 HIGH(3.3V) 상태일 때 USB 데이터 라인의 경로를 선택적으로 설정함으로써 USB 혹은 UART 통신을 하게 된다.At this time, looking at the routing condition of the switch selector SW_SEL, the D-_TXD of the USB connector signal line is HIGH (3.3V) in the default state, that is, the initial state, and the D + _RXD terminal of the USB connector signal line is LOW (0V). In this state, the path of UART data line is optionally set.When D-_TXD of USB connector signal line is LOW (0V) and D + _RXD of USB connector signal line is HIGH (3.3V), By selectively setting the path, USB or UART communication is performed.

도 5는 본 발명에 따른 USB/UART 공용 통신시스템의 동작 과정을 나타낸 흐름도이다.5 is a flowchart illustrating an operation process of a USB / UART common communication system according to the present invention.

먼저, 아날로그 스위치(200)와 연결된 스위치 셀렉터(SW_SEL)를 초기상태, 즉 디폴트(default)의 로우(LOW)(0V) 상태로 설정한다(S110).First, the switch selector SW_SEL connected to the analog switch 200 is set to an initial state, that is, a default low (0V) state (S110).

스위치 셀렉터(SW_SEL)의 디폴트 상태에서 UART 송신신호 TXD 단자와 USB 컨넥터 신호라인(line)의 D+_RXD를 연결하고, UART 수신신호 RXD 단자와 USB 컨넥터 신호라인(line)의 D-_TXD를 각각 연결한다(S120).Connect UART transmit signal TXD terminal and D + _RXD of USB connector signal line in the default state of switch selector (SW_SEL), and connect UART receive signal RXD terminal and D-_TXD of USB connector signal line, respectively. (S120).

이때, UART 송신신호 TXD 단자와 UART 수신신호 RXD 단자는 GPIO port의 기능으로서 입력 포트(INPUT port) 상태로 설정한다(S130).At this time, the UART transmit signal TXD terminal and the UART receive signal RXD terminal is set to the input port (INPUT port) state as a function of the GPIO port (S130).

또한, USB 호스트 데이터(D+) 신호의 HD+ 단자와 USB 호스트 데이터(D-) 신호의 HD- 단자는 USB port 상태로 설정한다(S140).In addition, the HD + terminal of the USB host data (D +) signal and the HD- terminal of the USB host data (D-) signal are set to the USB port state (S140).

그 상태에서 USB 컨넥터(100)에 외부장치로부터 UART 송신신호의 TXD 단자(GPIO PORT) 신호와 UART 수신신호의 RXD 단자(GPIO PORT) 신호를 읽어들인 후 각각의 값이 LOW(0V)와 HIGH(3.3V) 상태 인지를 비교하여 UART 접속신호의 존재 여부를 판단한다(S150).In this state, after reading the TXD port (GPIO PORT) signal of the UART transmission signal and the RXD port (GPIO PORT) signal of the UART receiving signal from the external device to the USB connector 100, the respective values are LOW (0V) and HIGH ( 3.3V) is compared to determine whether the UART connection signal is present (S150).

판단결과(S150), USB 컨넥터(100)에 외부장치로부터 UART 접속신호가 있는 경우, UART 송신신호인 TXD 단자와 UART 수신신호인 RXD 단자를 GPIO기능에서 UART port 상태로 변경하여 설정한다(S160). 따라서 UART 통신이 가능하게 된다(S170).As a result of determination (S150), when there is a UART connection signal from an external device in the USB connector 100, the TXD terminal, which is a UART transmission signal, and the RXD terminal, which is a UART receiving signal, are changed and set from the GPIO function to the UART port state (S160). . Therefore, UART communication is possible (S170).

판단결과(S150), USB 컨넥터(100)에 외부장치로부터 UART 접속신호가 아닌 경우, UART 송신신호의 TXD 단자(GPIO PORT) 신호와 UART 수신신호의 RXD 단자(GPIO PORT) 신호를 읽어들인 후 각각의 값이 HIGH(3.3V)와 LOW(0V) 상태인지를 비교하여 USB 접속신호의 존재 여부를 판단한다(S180).As a result of the determination (S150), when the UART connection signal of the UART transmission signal and the RXD terminal (GPIO PORT) signal of the UART reception signal are read after the UART connection signal from the external device to the USB connector 100, respectively. It is determined whether the USB connection signal exists by comparing the values of HIGH (3.3V) and LOW (0V) (S180).

판단결과(S180), USB 컨넥터(100)에 외부장치로부터 USB 접속신호가 있는 경우, 아날로그 스위치(200)의 스위치 셀레터(SW_SEL)을 HIGH(3.3V) 상태로 설정한다.As a result of determination (S180), when there is a USB connection signal from an external device in the USB connector 100, the switch selector SW_SEL of the analog switch 200 is set to HIGH (3.3V).

이때, USB 호스트 데이터(D+) 신호인 HD+ 단자와 USB 컨넥터 신호라인(line)의 D+_RXD를 연결하고, USB 호스트 데이터(D-) 신호인 HD- 단자와 USB 컨넥터 신호 라인(line)의 D-_TXD를 각각 연결함으로써(S190) USB 통신이 가능하게 된다(S200).At this time, connect the HD + terminal, which is the USB host data (D +) signal, and the D + _RXD of the USB connector signal line, and the D, which is the HD- terminal, which is the USB host data (D-) signal, and the D of the USB connector signal line. USB communication is enabled by connecting each -_TXD (S190).

만약, 판단결과(S180) 외부장치로부터 USB 컨넥터(100)에 접속된 신호가 USB 접속신호가 아닌 경우, 외부장치에 USB 혹은 UART 접속신호가 없는 것으로 판단한다.If it is determined that the signal connected to the USB connector 100 from the external device is not a USB connection signal (S180), it is determined that the external device does not have a USB or UART connection signal.

상술한 바와 같이, 본 발명에서는 USB 컨넥터 신호라인의 D+_RXD가 HIGH(3.3V)이고 USB 컨넥터 신호라인의 D-_TXD가 LOW(0V)이면, 외부장치로부터 USB 접속신호(USB가 삽입된 상태)가 있는 것으로 판단하며, USB 컨넥터 신호라인의 D-_TXD가 HIGH(3.3V)이고 USB 컨넥터 신호라인의 D+_RXD가 LOW(0V)이면 외부장치로부터 UART 접속신호(UART가 삽입된 상태)가 있는 것으로 판단한다. As described above, in the present invention, when D + _RXD of the USB connector signal line is HIGH (3.3V) and D-_TXD of the USB connector signal line is LOW (0V), the USB connection signal (USB is inserted) from an external device. If D-_TXD of USB connector signal line is HIGH (3.3V) and D + _RXD of USB connector signal line is LOW (0V), UART connection signal (UART is inserted) is I judge it.

따라서, 본 발명에서는 USB 컨넥터(100)에 외부장치로부터 UART 혹은 USB 접속신호의 검출조건(PULL-DOWN 저항이 연결된 상태)은 다음의 [표 1]의 조건 값을 만족한다. Therefore, in the present invention, the UART or USB connection signal detection condition (pull-down resistance is connected) from the external device to the USB connector 100 satisfies the condition values shown in Table 1 below.

D-_TXD or UART_RXDD-_TXD or UART_RXD D+_RXD or UART_TXDD + _RXD or UART_TXD NONENONE LOW(0V)LOW (0V) LOW(0V)LOW (0V) UART 접속UART connection HIGH(3.3V)HIGH (3.3V) LOW(0V)LOW (0V) USB 접속USB connection LOW(0V)LOW (0V) HIGH(3.3V)HIGH (3.3V)

또한, 본 발명의 실시 예로서 외부의 UART 디바이스(DEVICE)가 USB/UART 공용 통신시스템에 접속되며, UART 디바이스의 두 신호인 UART_TXD와 UART_RXD에 모두 풀-업(PULL-UP) 저항이 삽입 되어있는 경우 UART 접속조건이 변경될 수 있다. 이때, UART 접속이 되었지만 USB 컨넥터 신호라인의 D-_TXD가 HIGH(3.3V), USB 컨넥터 신호라인의 D+_RXD 또한 HIGH(3.3V) 경우가 발생할 수 있다. 따라서 UART 접속 검출조건을 D+_RXD의 상태(LOW 혹은 HIGH)와 상관없이 USB 컨넥터 신호라인 D-_TXD의 상태에 따라 설계 변경될 수 있다.In addition, as an embodiment of the present invention, an external UART device (DEVICE) is connected to a USB / UART common communication system, and a pull-up resistor is inserted into both signals UART_TXD and UART_RXD of the UART device. In this case, UART connection conditions may be changed. At this time, the UART is connected, but D-_TXD of the USB connector signal line is HIGH (3.3V), D + _RXD of the USB connector signal line may also be HIGH (3.3V). Therefore, UART connection detection condition can be changed according to the state of USB connector signal line D-_TXD regardless of the state (LOW or HIGH) of D + _RXD.

또한, 본 발명에서는 GPIO port와 UART port를 공용으로 사용하고 아날로그 스위치부(200)를 사용하는 마이크로제어회로(MCU) 경우에 대하여 기술하였지만, GPIO port와 UART port를 공용으로 사용하고 아날로그 스위치부(200)를 사용하지 않는 마이크로제어회로(MCU)와 GPIO port와 UART port를 공용으로 사용하지 않는 즉, UART port가 마이크로제어회로(MCU)의 전용포트(port)로 사용할 경우에도 사용 가능하다.In addition, although the present invention has been described with respect to the microcontroller circuit (MCU) using the GPIO port and the UART port in common and using the analog switch unit 200, the GPIO port and the UART port are used in common and the analog switch unit ( The microcontroller (MCU), which does not use 200), the GPIO port, and the UART port are not used in common, that is, the UART port can be used as a dedicated port of the microcontroller (MCU).

도 6은 본 발명의 실시 예에 따라 USB/UART/GPIO 기능을 공용으로 사용하는 통신시스템의 회로구성도로서 아날로그 스위치부를 사용하지 않는 경우를 나타낸 것이다. 도 7은 본 발명의 실시 예에 따라 USB/UART/GPIO 기능을 공용으로 사용하는 통신시스템의 동작 과정을 나타낸 흐름도이다.FIG. 6 is a circuit diagram of a communication system using a USB / UART / GPIO function in common according to an embodiment of the present invention. 7 is a flowchart illustrating an operation process of a communication system using a USB / UART / GPIO function in common according to an embodiment of the present invention.

도 6을 살펴보면, GPIO_TXD 단자가 풀다운 저항과 연결된 GPIO_USB_HD+ 단자에 접점되고, GPIO_RXD 단자가 풀다운 저항과 연결된 GPIO_USB_HD- 단자에 접점되어 있으며, 상기 GPIO_USB_HD+ 단자 및 GPIO_USB_HD- 단자는 USB 컨넥터(100)의 일단과 연결되어 있다. 이때, GPIO 단자는 통상의 입출력 포트 기능을 수행한다.Referring to FIG. 6, the GPIO_TXD terminal is contacted to the GPIO_USB_HD + terminal connected to the pull-down resistor, the GPIO_RXD terminal is contacted to the GPIO_USB_HD- terminal connected to the pull-down resistor, and the GPIO_USB_HD + terminal and the GPIO_USB_HD- terminal are connected to one end of the USB connector 100. It is. At this time, the GPIO terminal performs a normal input / output port function.

이러한 구성을 갖는 회로구성도에서는 시스템 제어부가 하나의 포트(port)로서 UART 포트와 GPIO 포트의 기능을 선택하여 사용하고, 또한 하나의 포트(port)로서 USB 포트와 GPIO 포트의 기능을 선택하여 사용하는 경우 아날로그 스위치부를 사용하지 않아도 되는 장점이 있다. In the circuit diagram having such a configuration, the system control unit selects and uses the functions of the UART port and the GPIO port as one port, and also selects and uses the functions of the USB port and the GPIO port as one port. In this case, there is no need to use an analog switch unit .

즉, 외부장치의 UART 송신신호 TXD 단자의 신호는 디폴트(default), 즉 초기상태에서 HIGH(3.3V)이고, USB Device 데이터(D+) 신호라인은 HIGH(3.3V) 상태가 된다.That is, the signal of the UART transmission signal TXD terminal of the external device is HIGH (3.3V) in the default state, that is, the initial state, and the USB Device data (D +) signal line is HIGH (3.3V).

따라서 UART 송신신호 TXD 단자와 USB 호스트 데이터(D+) 신호인 HD+ 단자의 레벨(LEVEL)을 사용하여 간단하게 USB 혹은 UART를 선택 하여 통신할 수 있게 된다.Therefore, by using the level (LEVEL) of the UART transmission signal TXD terminal and the HD + terminal which is the USB host data (D +) signal, it is possible to simply select USB or UART to communicate.

좀 더 구체적으로 살펴보면, 도 7에 도시된 바와 같이 GPIO_TXD 단자와 GPIO_RXD 단자를 GPIO 포트 기능으로서 입력포트의 상태로 설정하고, GPIO_USB_HD+ 단자와 GPIO_USB_HD- 단자 또한 GPIO 포트 기능으로서 입력포트의 상태로 설정한다(S210).More specifically, as shown in FIG. 7, the GPIO_TXD terminal and the GPIO_RXD terminal are set to the state of the input port as the GPIO port function, and the GPIO_USB_HD + terminal and the GPIO_USB_HD- terminal are also set to the state of the input port as the GPIO port function. S210).

그 후, GPIO_TXD(GPIO PORT) 단자와 GPIO_RXD(GPIO PORT) 단자의 신호레벨을 판독한다(S220). After that, the signal levels of the GPIO_TXD (GPIO PORT) terminal and the GPIO_RXD (GPIO PORT) terminal are read (S220).

만약, GPIO_RXD 단자가 LOW(0V)이고 GPIO_TXD 단자가 LOW(0V)이면 외부장치로부터 USB 혹은 UART 접속신호가 없는 것으로 판단한다. 만약, GPIO_RXD 단자가 HIGH(3.3V)이면 외부장치로부터 UART 신호가 접속된 것으로 판단한다(S230). 만약, GPIO_TXD 단자가 HIGH(3.3V)이면 외부장치로부터 USB 신호가 접속된 것으로 판단한다(S260). If the GPIO_RXD terminal is LOW (0V) and the GPIO_TXD terminal is LOW (0V), it is determined that there is no USB or UART connection signal from an external device. If the GPIO_RXD terminal is HIGH (3.3V), it is determined that the UART signal is connected from an external device (S230). If the GPIO_TXD terminal is HIGH (3.3V), it is determined that the USB signal is connected from an external device (S260).

판단결과(S230), 외부장치로부터 UART 신호가 USB 컨넥터(100)에 접속되었을 경우 GPIO _RXD(GPIO PORT) 단자와 GPIO _TXD(GPIO PORT) 단자의 상태를 판독하여 그 결과가 HIGH(3.3V)와 LOW(0V)상태라면 GPIO _TXD 단자와 GPIO _RXD 단자의 기능을 GPIO 기능에서 UART 포트의 상태로 설정한다(S240). 따라서 UART 통신이 가능하게 된다(S250). As a result of determination (S230), when the UART signal is connected to the USB connector 100 from an external device, the states of the GPIO _RXD (GPIO PORT) terminal and the GPIO _TXD (GPIO PORT) terminal are read. If the LOW (0V) state, the GPIO _TXD terminal and GPIO _RXD terminal function is set to the state of the UART port in the GPIO function (S240). Therefore, UART communication is possible (S250).

판단결과(S260), 외부장치로부터 USB 신호가 USB 컨넥터(100)에 접속되었을 경우 GPIO_RXD(GPIO PORT) 단자와 GPIO_TXD(GPIO PORT) 단자의 상태를 판독하여 그 결과가 LOW(0V)와 HIGH(3.3V)상태라면 GPIO _USB_HD+ 단자와 GPIO_USB_HD- 단자의 기능을 GPIO 기능에서 USB 포트의 상태로 설정한다(S270). 따라서 UART 통신이 가능하게 된다(S280). As a result of determination (S260), when a USB signal is connected to the USB connector 100 from an external device, the states of the GPIO_RXD (GPIO PORT) terminal and the GPIO_TXD (GPIO PORT) terminal are read. In the V) state, the GPIO _USB_HD + terminal and the GPIO_USB_HD- terminal function are set to the state of the USB port in the GPIO function (S270). Therefore, UART communication is possible (S280).

도 8은 본 발명의 다른 실시 예에 따라 USB/UART/GPIO 기능을 별도로 사용하는 통신시스템의 회로구성도이다. 도 9는 본 발명의 실시 예에 따라 USB/UART/GPIO 기능을 별도로 사용하는 통신시스템의 동작 과정을 나타낸 흐름도이다.8 is a circuit diagram illustrating a communication system using a USB / UART / GPIO function separately according to another embodiment of the present invention. 9 is a flowchart illustrating an operation process of a communication system using a USB / UART / GPIO function separately according to an embodiment of the present invention.

도 8을 살펴보면, USB 컨넥터(100)의 일단과 아날로그 스위치부(200)의 일단 간에는 GPIO_A 단자와 UART 송신신호 TXD 단자 혹은 USB 호스트 데이터(D+) 신호 HD+ 단자와 접속되는 USB 컨넥터 신호라인의 D+_RXD와, GPIO_B 단자와 UART 수신신호 RXD 단자 혹은 USB 호스트 데이터(D-) 신호 HD- 단자와 접속되는 USB 컨넥터 신호라인의 D-_TXD가 연결되어 있다.Referring to FIG. 8, between one end of the USB connector 100 and one end of the analog switch unit 200, the D + of the USB connector signal line connected to the GPIO_A terminal and the UART transmission signal TXD terminal or the USB host data (D +) signal HD + terminal _RXD, GPIO_B terminal and UART receiving signal RXD terminal or USB host data (D-) signal HD- terminal are connected to D-_TXD of USB connector signal line.

아날로그 스위치부(200)의 타 단에는 GPIO PORT 신호 GPIO_A, GPIO_B 단자 UART 송신신호의 TXD 단자, UART 수신신호의 RXD 단자, USB 호스트 데이터(D+) 신호의 HD+ 단자, USB 호스트 데이터(D-) 신호의 HD- 단자 및 스위치 셀렉터(selector)의 SW1, SW2, SW3가 각각 연결되어 있다. On the other end of the analog switch unit 200, GPIO PORT signal GPIO_A, GPIO_B terminal TXD terminal of UART transmission signal, RXD terminal of UART receiving signal, HD + terminal of USB host data (D +) signal, USB host data (D-) signal The HD- terminals of the switch selectors and SW1, SW2, and SW3 are respectively connected.

이러한 구성을 갖는 회로구성도에서는 시스템 제어부가 각각의 포트로서 UART 포트, USB 포트, GPIO 포트의 기능이 각각 제어 되어지는 경우 아날로그 스위치부(200)를 이용한 것이다.In the circuit diagram having such a configuration, the system controller uses the analog switch unit 200 when the functions of the UART port, the USB port, and the GPIO port are controlled as respective ports.

외부장치의 UART 송신신호 TXD 단자의 신호는 디폴트(default), 즉 초기상태에서 HIGH(3.3V)이고, USB Device 데이터(D+) 신호라인은 HIGH(3.3V) 상태가 된다.The signal of the UART transmission signal TXD terminal of the external device is HIGH (3.3V) in the default state, that is, the initial state, and the USB device data (D +) signal line is HIGH (3.3V).

따라서, 통상의 입출력 포트 기능 GPIO_A, GPIO_B의 신호 레벨을 이용하여 간단하게 USB 혹은 UART를 선택하여 통신할 수 있게 된다.Therefore, USB or UART can be easily selected and communicated using the signal levels of the normal input / output port functions GPIO_A and GPIO_B.

좀 더 구체적으로 살펴보면, 도 9에 도시된 바와 같이 아날로그 스위치부(200)와 연결된 스위치 셀렉터 SW1, SW2, SW3를 초기상태, 즉 디폴트의 LOW(0V) 상태로 설정한다(S310).In more detail, as shown in FIG. 9, the switch selectors SW1, SW2, and SW3 connected to the analog switch unit 200 are set to an initial state, that is, a default LOW (0V) state (S310).

스위치 셀렉터(SW1)을 HIGH(3.3V)로 하여 GPIO_A단자와 USB 컨넥터 신호라인(line)의 D+_RXD를 연결하고, GPIO_B단자와 USB 컨텍터 신호라인(line)의 D-_TXD를 각각 연결한다(S320).Set the switch selector (SW1) to HIGH (3.3V) to connect the GPIO_A terminal and D + _RXD of the USB connector signal line, and connect the GPIO_B terminal and the D-_TXD of the USB connector signal line, respectively. (S320).

이때, GPIO_A 단자와 GPIO_B 단자의 신호레벨을 판독한다(S330). 만약, GPIO_A 단자가 LOW(0V)이고 GPIO_B 단자가 LOW(0V)이면 외부장치로부터 USB 혹은 UART 접속신호가 없는 것으로 판단한다. 만약, GPIO_B 단자가 HIGH(3.3V)이고 GPIO_A 단자가 LOW(0V)이면 외부장치로부터 UART 신호가 접속된 것으로 판단한다(S340). 만약, GPIO_A 단자가 HIGH(3.3V)이고 GPIO_B가 LOW(0V)이면 외부장치로부터 USB 신호가 접속된 것으로 판단한다(S370).At this time, the signal levels of the GPIO_A terminal and the GPIO_B terminal are read (S330). If the GPIO_A terminal is LOW (0V) and the GPIO_B terminal is LOW (0V), it is determined that there is no USB or UART connection signal from an external device. If the GPIO_B terminal is HIGH (3.3V) and the GPIO_A terminal is LOW (0V), it is determined that the UART signal is connected from an external device (S340). If the GPIO_A terminal is HIGH (3.3V) and GPIO_B is LOW (0V), it is determined that the USB signal is connected from an external device (S370).

판단결과(S340), 외부장치로부터 UART 신호가 USB 컨넥터(100)에 접속되었을 경우 GPIO_A 단자와 GPIO_B 단자의 상태를 판독하여 그 결과가 각각 LOW(0V)와 HIGH(3.3V) 상태라면 아날로그 스위치부(200)의 스위치 셀렉터 SW1을 LOW(0V), SW2을 HIGH(3.3V)상태로 하여 UART_TXD 단자와 UART_RXD 단자를 각각 D+_RXD 단자와 D-_TXD 단자로 연결시킨다(S350). 따라서 UART 통신을 시작한다(S360).As a result of determination (S340), when the UART signal is connected to the USB connector 100 from the external device, the state of the GPIO_A terminal and the GPIO_B terminal is read out, and if the result is LOW (0V) and HIGH (3.3V), respectively, the analog switch unit The switch selector SW1 of (200) is LOW (0V) and SW2 is HIGH (3.3V) to connect the UART_TXD terminal and the UART_RXD terminal to the D + _RXD terminal and the D-_TXD terminal, respectively (S350). Therefore, the UART communication starts (S360).

판단결과(S370) 외부장치로부터 USB 신호가 USB 컨넥터(100)에 접속되었을 경우 USB 호스트 데이터(D+) 신호인 HD+ 단자에는 1.5K PULL UP 저항이 연결되어 있으므로 GPIO_A 단자와 GPIO_B 단자의 상태를 판독하여 그 결과가 각각 HIGH(3.3V), LOW(0V) 상태라면 아날로그 스위치부(200)의 스위치셀렉터 SW1을 LOW(0V), SW2을 LOW(0V), SW3을 HIGH(3.3V) 상태로 하여 USB_HD+ 단자, USB_HD- 단자를 각각 D+_RXD 단자와 D-_TXD 단자로 연결 시킨다(S380). 따라서 USB 통신이 가능하게 된다(S390). As a result of determination (S370), when the USB signal is connected to the USB connector 100 from the external device, since the 1.5K PULL UP resistor is connected to the HD + terminal, which is the USB host data (D +) signal, the GPIO_A terminal and the GPIO_B terminal are read. If the results are HIGH (3.3V) and LOW (0V), respectively, the switch selector SW1 of the analog switch unit 200 is set to LOW (0V), SW2 is set to LOW (0V), and SW3 is set to HIGH (3.3V). Connect the terminal and the USB_HD- terminal to the D + _RXD terminal and the D-_TXD terminal, respectively (S380). Therefore, USB communication is possible (S390).

상술한 바와 같이, 본 발명의 바람직한 실시 예에 대해 설명하였으나, 본 발명은 상술한 특정의 바람직한 실시 예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변형실시가 가능한 것은 물론이고, 그와 같은 변경은 청구범위 기재의 기술적 범위 내에 포함된다 할 수 있다.As described above, although preferred embodiments of the present invention have been described, the present invention is not limited to the specific preferred embodiments described above, and the technical field to which the present invention pertains without departing from the gist of the present invention claimed in the claims. Anyone of ordinary skill in the art can make various modifications, as well as such changes can be included within the technical scope of the claims.

이상에서와 같이 본 발명에 따르면, 하나의 USB 컨넥터를 이용하여 USB의 접속신호와 UART의 접속신호를 자동으로 검출하여 공용의 데이터 신호라인으로 사용함으로써 사용자는 USB 및 UART 접속신호의 상관없이 USB 컨넥터를 겸용으로 사용할 수 있다.As described above, according to the present invention, by using a single USB connector automatically detects the connection signal of the USB and the connection signal of the UART and use it as a common data signal line, the user can use the USB connector regardless of the USB and UART connection signal Can be used as a combination.

Claims (9)

외부장치에 대하여 인터페이스를 제공하고 신호라인 데이터(D+_RXD)와 데이터(D-_TXD)를 가지고 있는 컨넥터;A connector providing an interface to an external device and having signal line data (D + _RXD) and data (D-_TXD); 선택 제어신호에 따라 상기 컨넥터의 신호라인(D+_RXD, D-_TXD)에 대하여 UART 데이터 신호라인(UART_TXD, UART_RXD) 또는 USB 데이터 신호라인(USB_HD+, USB_HD-) 중 어느 하나의 경로를 선택적으로 설정하는 아날로그 스위치부; 및Optionally set one of UART data signal lines UART_TXD and UART_RXD or USB data signal lines USB_HD + and USB_HD- with respect to the signal lines D + _RXD and D-_TXD of the connector according to a selection control signal. An analog switch unit; And UART 데이터 신호라인 단자를 GPIO 포트로 설정하여 그 신호레벨을 판독하여 그 판독 결과에 따라 상기 컨넥터에 UART가 접속되었는지 USB가 접속되었는지를 검출하고, 만일 UART 접속신호가 검출된 경우 상기 UART 데이터 신호라인 단자를 UART 포트로 설정하고, 상기 선택 제어신호를 통해 상기 UART 데이터 신호라인과 상기 컨넥터 신호라인의 경로가 연결되도록 설정한 후 UART 통신을 수행하며, 만일 USB 접속신호가 검출된 경우 상기 아날로그 스위치부를 통해 상기 USB 데이터 신호라인과 상기 컨넥터 신호라인의 경로가 연결되도록 설정한 후 USB 통신을 수행하도록 하는 시스템 제어부;Set the UART data signal line terminal to the GPIO port to read the signal level and detect whether UART or USB is connected to the connector according to the read result, and if the UART connection signal is detected, the UART data signal line The terminal is set to a UART port, the UART data signal line and the connector signal line are connected to each other through the selection control signal, and then UART communication is performed. A system control unit configured to perform USB communication after setting the path of the USB data signal line and the connector signal line to be connected to each other; 를 포함하여 구성되는 USB/UART 공용 통신시스템.USB / UART common communication system configured to include. 제 1 항에 있어서,The method of claim 1, 상기 컨넥터의 신호라인에 있어서 데이터(D+_RXD) 신호라인이 HIGH 이고 데 이터(D-_TXD) 신호라인이 LOW 이면, 상기 컨넥터에 USB가 접속된 것으로 판단하는 것을 특징으로 하는 USB/UART 공용 통신시스템.When the data (D + _RXD) signal line is HIGH and the data (D-_TXD) signal line is LOW in the signal line of the connector, it is determined that USB is connected to the connector. system. 제 1 항 또는 제 2 항에 있어서,The method according to claim 1 or 2, 상기 컨넥터의 신호라인에 있어서 데이터(D-_TXD) 신호라인이 HIGH 이고 데이터(D+_RXD) 신호라인이 LOW 이면 상기 컨넥터에 UART가 접속된 것으로 판단하는 것을 특징으로 하는 USB/UART 공용 통신시스템.And a data (D-_TXD) signal line is HIGH and a data (D + _RXD) signal line is LOW in the signal line of the connector, determining that the UART is connected to the connector. 외부장치에 대하여 인터페이스를 제공하며, 신호라인 데이터(D+, D-)와 연결된 제1 신호라인 단자(GPIO_TXD, GPIO_USB_HD+)와 제2 신호라인 단자(GPIO_RXD, GPIO_USB_HD-)를 가지고 있는 컨넥터;A connector providing an interface to an external device and having first signal line terminals GPIO_TXD and GPIO_USB_HD + and second signal line terminals GPIO_RXD and GPIO_USB_HD- connected to signal line data D + and D-; 상기 제1 및 제2 신호라인 단자를 GPIO 포트로 설정하고 그 신호레벨을 판독하여 그 판독 결과에 따라 상기 컨넥터에 UART가 접속되었는지 USB가 접속되었는지를 검출하고, Setting the first and second signal line terminals to a GPIO port and reading the signal level to detect whether a UART or a USB is connected to the connector according to the read result; 만일 UART 접속신호가 검출된 경우 상기 UART 신호라인 단자(GPIO_TXD, GPIO_RXD) 단자를 UART 포트로 설정한 후 UART 통신을 수행하며, 만일 USB 접속신호가 검출된 경우 상기 USB 신호라인 단자(GPIO_USB_HD+, GPIO_USB_HD-)를 USB 포트로 설정한 후 USB 통신을 수행하도록 하는 시스템 제어부;If a UART connection signal is detected, the UART signal line terminal (GPIO_TXD, GPIO_RXD) terminal is set as a UART port and UART communication is performed. If a USB connection signal is detected, the USB signal line terminal (GPIO_USB_HD +, GPIO_USB_HD- System control unit to set USB) to a USB port and then perform USB communication; 를 포함하여 구성되는 USB/UART 공용 통신시스템.USB / UART common communication system configured to include. 제 4 항에 있어서,The method of claim 4, wherein 상기 컨넥터의 신호라인에 있어서 제2 신호라인 단자의 GPIO_RXD가 HIGH 이고 제1 신호라인 단자의 GPIO_TXD가 LOW 이면, 상기 컨넥터에 UART가 접속된 것으로 판단하는 것을 특징으로 하는 USB/UART 공용 통신시스템.And if GPIO_RXD of the second signal line terminal is HIGH and GPIO_TXD of the first signal line terminal is LOW in the signal line of the connector, determining that the UART is connected to the connector. 제 4 항 또는 제 5 항에 있어서,The method according to claim 4 or 5, 상기 컨넥터의 신호라인에 있어서 제1 신호라인 단자의 GPIO_TXD가 HIGH 이고 제2 신호라인 단자의 GPIO_RXD가 LOW 이면, 상기 컨넥터에 USB가 접속된 것으로 판단하는 것을 특징으로 하는 USB/UART 공용 통신시스템.And GPIO_TXD of the first signal line terminal is HIGH and GPIO_RXD of the second signal line terminal is LOW in the signal line of the connector, determining that the USB is connected to the connector. 외부장치에 대하여 인터페이스를 제공하고 신호라인 데이터(D+_RXD)와 데이터(D-_TXD)를 가지고 있는 컨넥터;A connector providing an interface to an external device and having signal line data (D + _RXD) and data (D-_TXD); 선택 제어신호에 따라 상기 컨넥터의 신호라인(D+_RXD, D-_TXD)에 대하여 GPIO 검출 신호라인(GPIO_A,GPIO_B), UART 데이터 신호라인(UART_TXD, UART_RXD), USB 데이터 신호라인(USB_HD+, USB_HD-) 중 어느 하나의 경로를 선택적으로 설정하 는 아날로그 스위치부; 및GPIO detection signal lines GPIO_A and GPIO_B, UART data signal lines UART_TXD and UART_RXD, and USB data signal lines USB_HD + and USB_HD- with respect to the signal lines D + _RXD and D-_TXD of the connector according to a selection control signal. Analog switch unit for selectively setting any one of the path; And 상기 컨넥터 신호라인의 신호레벨을 판독하여 그 판독 결과에 따라 상기 컨넥터에 UART가 접속되었는지 USB가 접속되었는지를 검출하고,Reading the signal level of the connector signal line and detecting whether UART or USB is connected to the connector according to the read result; 만일 UART 접속신호가 검출된 경우 상기 선택 제어신호를 통해 상기 UART 데이터 신호라인과 상기 컨넥터 신호라인의 경로가 연결되도록 설정한 후 UART 통신을 수행하며, 만일 USB 접속신호가 검출된 경우 상기 아날로그 스위치부를 통해 상기 USB 데이터 신호라인과 상기 컨넥터 신호라인의 경로가 연결되도록 설정한 후 USB 통신을 수행하도록 하는 시스템 제어부;If the UART connection signal is detected, the UART communication is performed after setting the path of the UART data signal line and the connector signal line through the selection control signal, and if the USB connection signal is detected, the analog switch unit. A system control unit configured to perform USB communication after setting the path of the USB data signal line and the connector signal line to be connected to each other; 를 포함하여 구성되는 USB/UART 공용 통신시스템.USB / UART common communication system configured to include. 제 7 항에 있어서,The method of claim 7, wherein 상기 컨넥터의 신호라인에 있어서 GPIO 검출(GPIO_B) 신호라인이 HIGH 이고 GPIO 검출(GPIO_A) 신호라인이 LOW 이면, 상기 컨넥터에 UART가 접속된 것으로 판단하는 것을 특징으로 하는 USB/UART 공용 통신시스템.And a GPIO detection (GPIO_B) signal line is HIGH and a GPIO detection (GPIO_A) signal line is LOW in the signal line of the connector, determining that the UART is connected to the connector. 제 7 항 또는 제 8 항에 있어서,The method according to claim 7 or 8, 상기 컨넥터의 신호라인에 있어서 GPIO 검출(GPIO_A) 신호라인이 HIGH 이고 GPIO 검출(GPIO_B) 신호라인이 LOW 이면 상기 컨넥터에 USB가 접속된 것으로 판단 하는 것을 특징으로 하는 USB/UART 공용 통신시스템.And a GPIO detection (GPIO_A) signal line is HIGH and a GPIO detection (GPIO_B) signal line is LOW in the signal line of the connector, determining that the USB is connected to the connector.
KR1020060014962A 2006-01-05 2006-02-16 Telecommunication system for common using USB and UART KR100758565B1 (en)

Priority Applications (15)

Application Number Priority Date Filing Date Title
KR1020060014962A KR100758565B1 (en) 2006-02-16 2006-02-16 Telecommunication system for common using USB and UART
SG200700045-8A SG134232A1 (en) 2006-01-05 2007-01-04 Audio system, and usb/uart common communication system for the same
TW096100608A TWI337710B (en) 2006-01-05 2007-01-04 Audio system
US11/619,802 US7743187B2 (en) 2006-01-05 2007-01-04 Audio system, and USB/UART common communication system for the same
EP07025222A EP1901175B1 (en) 2006-01-05 2007-01-05 Audio system, and USB/UART common communication system for the same
EP07000205A EP1806661B1 (en) 2006-01-05 2007-01-05 Audio system, and USB/UART common communication system for the same
CN2008101814340A CN101408870B (en) 2006-01-05 2007-01-05 Audio system, and USB/UART common communication system for the same
DE602007011547T DE602007011547D1 (en) 2006-01-05 2007-01-05 Audio system and common USB / UART communication system for it
DE602007000062T DE602007000062D1 (en) 2006-01-05 2007-01-05 Audio system and common USB / UART communication system for it
CN2008101814336A CN101408869B (en) 2006-01-05 2007-01-05 Audio system, and USB/UART common communication system for the same
EP07025223A EP1901176B1 (en) 2006-01-05 2007-01-05 Audio system, and USB/UART common communication system for the same
AT07025222T ATE493711T1 (en) 2006-01-05 2007-01-05 AUDIO SYSTEM AND COMMON USB/UART COMMUNICATION SYSTEM THEREOF
JP2007000431A JP4496228B2 (en) 2006-01-05 2007-01-05 Audio system, USB / UART shared communication system therefor
AT07000205T ATE404921T1 (en) 2006-01-05 2007-01-05 AUDIO SYSTEM AND COMMON USB/UART COMMUNICATION SYSTEM THEREOF
HK07109759.5A HK1104630A1 (en) 2006-01-05 2007-09-07 Audio system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020060014962A KR100758565B1 (en) 2006-02-16 2006-02-16 Telecommunication system for common using USB and UART

Publications (2)

Publication Number Publication Date
KR20070082302A true KR20070082302A (en) 2007-08-21
KR100758565B1 KR100758565B1 (en) 2007-09-13

Family

ID=38612006

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060014962A KR100758565B1 (en) 2006-01-05 2006-02-16 Telecommunication system for common using USB and UART

Country Status (1)

Country Link
KR (1) KR100758565B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020122274A1 (en) * 2018-12-11 2020-06-18 엘지전자 주식회사 Display device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4659175B2 (en) 2000-04-25 2011-03-30 富士通東芝モバイルコミュニケーションズ株式会社 Mobile communication terminal
KR100382932B1 (en) * 2001-04-12 2003-05-09 엘지전자 주식회사 Sharing interface apparatus for serial and usb port of mobile communication terminal
KR20040056384A (en) * 2002-12-23 2004-07-01 주식회사 팬택 Method for Assigning Port Automatically for Data Communication
KR200377353Y1 (en) 2004-12-14 2005-03-11 강길종 Data communication device having switching function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020122274A1 (en) * 2018-12-11 2020-06-18 엘지전자 주식회사 Display device

Also Published As

Publication number Publication date
KR100758565B1 (en) 2007-09-13

Similar Documents

Publication Publication Date Title
EP1901175B1 (en) Audio system, and USB/UART common communication system for the same
US7711870B2 (en) Interface detecting circuit and interface detecting method
EP1782224B1 (en) Apparatus and method for enabling digital and analog data communication over a data bus
CN100489822C (en) Audio system
US7673092B2 (en) PCI Express interface
CN1640083B (en) Accessory control interface
US20120290761A1 (en) USB Converter and Related Method
US20040230733A1 (en) Interface for peripheral device detection
US20070239924A1 (en) Electronic device transmitting audio-and-video signals with USB connector
CN203167074U (en) Mobile terminal configured with reuse interface
JP2005025405A (en) Usb interface system
JP2008097298A (en) Electronic equipment, connection equipment identification method for electronic equipment, and control system
CN109426638B (en) USB connecting device and terminal equipment comprising same
JP2002341982A (en) Universal serial bus circuit
US20190213159A1 (en) Universal serial bus type-c interface circuit and pin bypass method thereof
CN111723040A (en) USB interface switching device, switching method and terminal equipment
US20070047745A1 (en) Portable media player with common earphone transmission port and signal adaptor cable thereof
TWI621947B (en) Method for controlling audio device and system thereof
CN106549459B (en) Determination method of charging voltage and mobile terminal
US6886052B2 (en) Apparatus and method for automatically identifying between USB and PS/2 interface
KR100758565B1 (en) Telecommunication system for common using USB and UART
KR100655262B1 (en) Usb/uart common audio connector system
TWI394045B (en) Portable electronic device and method of identifying its accessories
CN217386348U (en) Hard disk type detection circuit, control system and control terminal
US8688888B1 (en) Computer peripheral device and operating method thereof

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
G170 Publication of correction
FPAY Annual fee payment

Payment date: 20120804

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20130808

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20150804

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20160824

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20170821

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20180813

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20190809

Year of fee payment: 13