KR100395664B1 - Universal serial bus device and initializing mehtod of the device - Google Patents

Universal serial bus device and initializing mehtod of the device Download PDF

Info

Publication number
KR100395664B1
KR100395664B1 KR10-2001-0049861A KR20010049861A KR100395664B1 KR 100395664 B1 KR100395664 B1 KR 100395664B1 KR 20010049861 A KR20010049861 A KR 20010049861A KR 100395664 B1 KR100395664 B1 KR 100395664B1
Authority
KR
South Korea
Prior art keywords
descriptor
initialization
host
signal
actual
Prior art date
Application number
KR10-2001-0049861A
Other languages
Korean (ko)
Other versions
KR20030015982A (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 KR10-2001-0049861A priority Critical patent/KR100395664B1/en
Priority to US10/054,289 priority patent/US6868456B2/en
Publication of KR20030015982A publication Critical patent/KR20030015982A/en
Application granted granted Critical
Publication of KR100395664B1 publication Critical patent/KR100395664B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

범용 직렬 버스 장치 및 그의 초기화 방법이 게시된다. 본 발명의 범용 직렬 버스 장치는 호스트로 기본 디스크립터를 전송하여 1차 초기화를 수행하며, 호스트로부터 제공되는 실제 디스크립터를 다운로드한 다음 2차 초기화를 수행하는 인터페이스; 디스크립터를 안내하기 위한 신호선; 및 신호선을 통신 가능 상태로 제어하는 전압 레귤레이터를 포함한다. 이와 같은 본 발명에 따른 장치의 초기화 방법은 제1초기화 신호를 발생시켜 신호선을 통신 가능 상태로 제어하는 단계; 메모리에 저장된 기본 디스크립터를 호스트로 전송하여 1차 초기화를 수행하는 단계; 기본 디스크립터를 인식한 호스트로부터 실제 디스크립터를 수신하여, 레지스터에 저장하는 단계; 저장단계가 완료된 후에, 호스트가 1차 초기화 동안에 인식한 기본 디스크립터를 무시하도록하는 단계; 제2초기화 신호를 발생시키는 단계; 및 레지스터에 저장된 실제 디스크립터를 호스트로 전송하여 2차 초기화를 수행하는 단계를 포함한다. 이에 따라, 전술한 본 발명의 범용 직렬 버스 장치 및 그의 초기화 방법에 의하면, 실제 디스크립터를 저장하고 있는 별도의 메모리가 불필요하므로, 제품의 크기 및 제조단가를 현저하게 감소시킬 수 있다.A general purpose serial bus device and its initialization method are disclosed. The general purpose serial bus apparatus of the present invention includes an interface for transmitting a primary descriptor to a host to perform primary initialization, downloading an actual descriptor provided from the host, and then performing secondary initialization; A signal line for guiding the descriptor; And a voltage regulator for controlling the signal line to a communicable state. Such a method of initializing an apparatus according to the present invention includes generating a first initialization signal to control a signal line to a communicable state; Performing a primary initialization by transmitting a basic descriptor stored in a memory to a host; Receiving an actual descriptor from a host recognizing the base descriptor and storing the actual descriptor in a register; After the storing step is completed, causing the host to ignore the default descriptor recognized during the primary initialization; Generating a second initialization signal; And performing the second initialization by transmitting the actual descriptor stored in the register to the host. Accordingly, according to the general-purpose serial bus device of the present invention and the initialization method thereof, the separate memory for storing the actual descriptor is unnecessary, so that the size and manufacturing cost of the product can be significantly reduced.

Description

범용 직렬 버스 장치 및 그의 초기화 방법{UNIVERSAL SERIAL BUS DEVICE AND INITIALIZING MEHTOD OF THE DEVICE}UNIVERSAL SERIAL BUS DEVICE AND INITIALIZING MEHTOD OF THE DEVICE}

본 발명은 호스트와 상기 호스트에 연결된 주변 기기의 통신을 인터페이싱하는 범용 직렬 버스 장치 및 그의 초기화 방법에 관한 것이다.The present invention relates to a general-purpose serial bus device for interfacing communication between a host and a peripheral device connected to the host, and a method for initializing the same.

일반적으로, 범용 직렬 버스(Universal Serial Bus; 이하, "USB"라 함) 장치는 키보드, 모니터, 마우스, 프린터, 모뎀, 디지털 카메라 등과 같은 주변 기기를 한번에 USB 호스트에 연결하여 사용할 수 있도록 지원하는 인터페이스이다. 이와 같은 USB 장치는 플러그 앤 플레이(Plug and Play)는 물론, 전원이 공급되는 상태에서도 주변 기기를 장착하거나 분리시킬 수 있는 핫플러깅(Hot-Plugging) 기능을 지원하므로, 다른 인터페이스 장치에 비해 널리 이용되고 있다. 이러한 USB 장치가 USB 호스트에 연결되는 경우, 상기 USB 장치는 USB 호스트와 통신할 수 있도록 초기화되어야 한다. 여기서, 상기 USB 호스트는, USB 장치의 초기화를 위하여, 소정의 디스크립터 및 디스크립터 인식 프로그램을 내장한다.Generally, Universal Serial Bus (“USB”) devices are interfaces that allow peripheral devices such as keyboards, monitors, mice, printers, modems, and digital cameras to be connected to a USB host at one time. to be. These USB devices support Plug and Play as well as Hot-Plugging, which allows you to attach or detach peripherals even when powered. It is becoming. When such a USB device is connected to a USB host, the USB device must be initialized to communicate with the USB host. Here, the USB host includes a predetermined descriptor and a descriptor recognition program for initializing the USB device.

그러면, 첨부한 도1을 참조하여 종래 기술의 USB 장치 및 그의 초기화 방법에 대하여 간략히 설명한다. 도1을 참조하면, 종래 기술의 USB 장치 및 그의 초기화 방법은, 외부로부터 전원이 공급되면, USB 인터페이스(10)의 디스크립터 읽기/쓰기부(12)가 외부 메모리(20)에 저장된 디스크립터를 읽어와 레지스터(14)에 저장한다. 여기서, 상기 레지스터(14)에 저장된 디스크립터는, 전원 공급이 중단되면, 삭제된다.Next, a USB device and a method of initialization thereof according to the prior art will be briefly described with reference to FIG. Referring to FIG. 1, in the conventional USB device and its initialization method, when power is supplied from the outside, the descriptor read / write unit 12 of the USB interface 10 reads the descriptor stored in the external memory 20. It is stored in the register 14. Here, the descriptor stored in the register 14 is deleted when the power supply is stopped.

그런 다음, USB 인터페이스(10)의 신호 발생부(18)가 초기화 신호를 발생시키고, 전압 레귤레이터(30)는 초기화 신호에 응답하여 신호선(40)을전원단자전압(VDD)으로 풀-업(Pull-up)하므로써, 상기 USB 인터페이스(10)가 신호선(40)을 통해 USB 호스트(1)와 통신할 수 있도록한다.Then, the signal generator 18 of the USB interface 10 generates an initialization signal, and the voltage regulator 30 pulls up the signal line 40 to the power supply terminal voltage V DD in response to the initialization signal. Pull-up) allows the USB interface 10 to communicate with the USB host 1 via the signal line 40.

그러면, 상기 디스크립터 읽기/쓰기부(12)는 레지스터(14)에 저장된 디스크립터를 읽어, USB 코어(16)를 통해, USB 호스트(1)로 제공한다. 이때, 상기 USB 호스트(1)의 디스크립터 인식 프로그램(1a)이 USB 인터페이스(10)로부터 제공되는 디스크립터를 인식하면, 상기 USB 장치의 초기화가 완료되는 것이다.Then, the descriptor read / write unit 12 reads the descriptor stored in the register 14 and provides it to the USB host 1 through the USB core 16. At this time, when the descriptor recognition program 1a of the USB host 1 recognizes the descriptor provided from the USB interface 10, the initialization of the USB device is completed.

그러나, 전술한 바와 같은 종래 기술의 USB 장치는, USB 인터페이스(10)의 외부에 디스크립터를 저장하고 있는 메모리(20)가 별도로 구비되어야 하므로, 장치의 크기 및 제조단가가 증가하는 문제점이 있다.However, the USB device of the prior art as described above has a problem in that the size of the device and the manufacturing cost increase because the memory 20 storing the descriptor must be separately provided outside the USB interface 10.

본 발명은 전술한 종래 기술의 문제점을 효과적으로 해결할 수 있는 USB 장치 및 그의 초기화 방법을 제공함에 그 목적이 있다.It is an object of the present invention to provide a USB device and an initialization method thereof that can effectively solve the above-mentioned problems of the prior art.

본 발명의 상세한 설명에서 사용되는 도면을 보다 충분히 이해하기 위하여, 각 도면의 간단한 설명이 제공된다.In order to more fully understand the drawings used in the detailed description of the invention, a brief description of each drawing is provided.

도1은 종래 기술의 범용 직렬 버스 장치의 구성을 나타내는 블럭도이다.1 is a block diagram showing the configuration of a general-purpose serial bus device of the prior art.

도2는 본 발명의 바람직한 일실시예에 따른 범용 직렬 버스 장치의 구성을 나타내는 블럭도이다.2 is a block diagram showing the configuration of a general-purpose serial bus device according to an embodiment of the present invention.

도3은 도2에 도시된 범용 직렬 버스 장치의 초기화 과정을 나타내는 순서도이다.FIG. 3 is a flowchart illustrating an initialization process of the general purpose serial bus device shown in FIG. 2.

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

100: USB 인터페이스 200: 전압 레귤레이터100: USB interface 200: Voltage regulator

300: 신호선300: signal line

상기와 같은 기술적 과제를 달성하기 위한 본 발명의 일면은 소정 디스크립터에 대한 인식 프로그램을 내장한 호스트에 연결되어, 상기 호스트와 통신할 수 있는 상태로 초기화되는 범용 직렬 버스 장치에 관한 것이다. 본 발명의 범용 직렬 버스 장치는 외부로부터 전원을 공급받아 제1초기화 신호를 발생시키고, 상기호스트로 기본 디스크립터를 전송하여 1차 초기화를 수행하며, 상기 호스트로부터 제공되는 실제 디스크립터 및 상기 실제 디스크립터에 대한 다운로드 명령에 응답하여, 상기 실제 디스크립터를 다운로드한 다음, 제2초기화 신호를 발생시키고 상기 다운로드된 실제 디스크립터를 상기 호스트로 전송하여 2차 초기화를 수행하는 인터페이스; 상기 호스트와 상기 인터페이스에서 송수신되는 상기 기본 디스크립터, 상기 실제 디스크립터 및 상기 다운로드 명령을 안내하기 위한 신호선; 및 상기 인터페이스로부터 발생되는 상기 제1초기화 신호 또는 상기 제2초기화 신호에 응답하여, 상기 신호선을 통신 가능 상태로 제어하는 전압 레귤레이터를 포함한다.One aspect of the present invention for achieving the above technical problem relates to a general-purpose serial bus device that is connected to a host containing a recognition program for a predetermined descriptor, initialized in a state capable of communicating with the host. The general-purpose serial bus apparatus of the present invention receives power from an external source to generate a first initialization signal, transmits a basic descriptor to the host to perform a first initialization, and provides a description of the actual descriptor and the actual descriptor provided from the host. An interface for downloading the actual descriptor in response to a download command, generating a second initialization signal, and transmitting the downloaded actual descriptor to the host to perform secondary initialization; A signal line for guiding the basic descriptor, the actual descriptor, and the download command transmitted and received at the host and the interface; And a voltage regulator configured to control the signal line to a communicable state in response to the first initialization signal or the second initialization signal generated from the interface.

상기와 같은 기술적 과제를 달성하기 위한 본 발명의 다른 일면은 소정 디스크립터에 대한 인식 프로그램을 내장한 호스트에 연결되어, 상기 호스트와 통신할 수 있는 상태로 초기화되는 범용 직렬 버스 장치의 초기화 방법에 관한 것이다. 본 발명의 다른 일면에 따른 범용 직렬 버스 장치의 초기화 방법은 외부로부터 전원을 공급받아 제1초기화 신호를 발생시키므로써, 상기 호스트에 연결된 신호선을 통신 가능 상태로 제어하는 A)단계; 메모리에 저장된 기본 디스크립터를 읽어 상기 호스트로 전송하므로써, 1차 초기화를 수행하는 B)단계; 상기 기본 디스크립터를 인식한 상기 호스트로부터 실제 디스크립터 및 상기 실제 디스크립터에 대한 다운로드 명령을 수신하여, 상기 실제 디스크립터를 레지스터에 저장하는 C)단계; 상기 저장단계가 완료된 후에, 상기 제1초기화 신호의 발생을 중지시켜, 상기 호스트가 1차 초기화 동안에 인식한 기본 디스크립터를 무시하도록하는 D)단계; 상기 D)단계 수행 후에, 제2초기화 신호를 발생시키는 E)단계; 및 상기 레지스터에 저장된 실제디스크립터를 읽어 상기 호스트로 전송하므로써, 2차 초기화를 수행하는 F)단계를 포함한다.Another aspect of the present invention for achieving the above technical problem relates to a method for initializing a general-purpose serial bus device that is connected to a host containing a recognition program for a predetermined descriptor and initialized in a state capable of communicating with the host. . According to another aspect of the present invention, there is provided a method of initializing a general-purpose serial bus device, the method comprising: A) controlling a signal line connected to the host to a communicable state by generating a first initialization signal from external power; B) performing primary initialization by reading a basic descriptor stored in a memory and transmitting it to the host; C) receiving a real descriptor and a download command for the real descriptor from the host recognizing the base descriptor, and storing the real descriptor in a register; After the storing step is completed, stopping the generation of the first initialization signal to cause the host to ignore the default descriptor recognized during the first initialization; E) generating a second initialization signal after performing step D); And F) performing secondary initialization by reading the actual descriptor stored in the register and transmitting it to the host.

본 발명과 본 발명의 동작상의 잇점 및 본 발명의 실시에 의하여 달성되는 목적을 충분히 이해하기 위해서는 본 발명의 바람직한 실시예를 예시하는 첨부 도면 및 첨부 도면에 기재된 내용을 참조하여야 한다.In order to fully understand the present invention, the operational advantages of the present invention, and the objects achieved by the practice of the present invention, reference should be made to the accompanying drawings which illustrate preferred embodiments of the present invention and the contents described in the accompanying drawings.

이하, 첨부한 도2 및 도3을 참조하여 본 발명의 바람직한 실시예에 따른 USB 장치 및 그의 초기화 방법에 대하여 상세히 설명한다.Hereinafter, a USB device and an initialization method thereof according to a preferred embodiment of the present invention will be described in detail with reference to FIGS. 2 and 3.

도2는 본 발명의 일실시예에 따른 USB 장치의 구성을 나타내는 블럭도이다. 도2를 참조하면, 본 발명에 따른 USB 장치는 USB 인터페이스(100), 전압 레귤레이터(200) 및 신호선(300)을 포함한다.2 is a block diagram showing a configuration of a USB device according to an embodiment of the present invention. Referring to FIG. 2, a USB device according to the present invention includes a USB interface 100, a voltage regulator 200, and a signal line 300.

상기 USB 인터페이스(100)는 기본 메모리(110), 디스크립터 읽기/쓰기부(120), 레지스터(130), 명령 해석부(140), 타이머(150), 신호 발생부(160) 및 USB 코어(170)를 구비하여, USB 프로토콜에 의거한 인터페이스를 관장한다.The USB interface 100 includes a basic memory 110, a descriptor read / write unit 120, a register 130, a command interpreter 140, a timer 150, a signal generator 160, and a USB core 170. ) To manage interfaces based on the USB protocol.

상기 기본 메모리(110)는 USB 장치의 제조시에 입력된 기본 디스크립터를 저장한다. 본 실시예에서, 상기 기본 메모리(110)는 소정형태의 롬(ROM: Read Only Memory)이며, 상기 기본 디스크립터는 USB 장치에 기본적으로 설정된 사용자 ID 및 제품 ID를 나타낸다.The basic memory 110 stores a basic descriptor input when the USB device is manufactured. In the present embodiment, the basic memory 110 is a read only memory (ROM) of a predetermined type, and the basic descriptor indicates a user ID and a product ID basically set in the USB device.

상기 디스크립터 읽기/쓰기부(120)는, 외부로부터 전원이 공급되면, 기본 메모리(110)에 저장된 기본 디스크립터를 읽어 USB 호스트(1)로 전송한다. 이러한경우, 상기 USB 호스트(1)는 디스크립터 인식 프로그램(1a)이 USB 장치로부터 전송되는 기본 디스크립터를 인식하면, 소정위치에 저장된 실제 디스크립터 및 상기 실제 디스크립터의 다운로드 명령을 출력한다. 또한, 상기 디스크립터 읽기/쓰기부(120)는, 후술되는 다운로드 시작신호에 응답하여, 명령 해석부(140)로부터 제공되는 실제 디스크립터를 다운받아 레지스터(130)에 저장한 다음, 다운로드 완료신호를 발생시킨다. 그리고, 소정시간이 경과한 후에, 상기 디스크립터 읽기/쓰기부(120)는 레지스터(130)에 저장된 실제 디스크립터를 읽어 USB 호스트(1)로 전송한다. 본 실시예에서, 상기 실제 디스크립터는 USB 호스트(1)의 실제 사용자 ID 및 제품 ID를 나타낸다.When power is supplied from the outside, the descriptor read / write unit 120 reads a basic descriptor stored in the basic memory 110 and transmits the basic descriptor to the USB host 1. In this case, when the descriptor recognition program 1a recognizes the basic descriptor transmitted from the USB device, the USB host 1 outputs the actual descriptor stored in the predetermined position and the download command of the actual descriptor. In addition, the descriptor read / write unit 120 downloads the actual descriptor provided from the command interpreter 140 and stores the register in the register 130 in response to the download start signal, which will be described later. Let's do it. After a predetermined time elapses, the descriptor read / write unit 120 reads the actual descriptor stored in the register 130 and transmits the actual descriptor to the USB host 1. In this embodiment, the actual descriptor represents the actual user ID and product ID of the USB host 1.

상기 레지스터(130)는 디스크립터 읽기/쓰기부(120)로부터 제공되는 실제 디스크립터를 저장한다. 여기서, 상기 레지스터(130)에 저장된 실제 디스크립터는, 전원 공급이 중단되면, 삭제된다.The register 130 stores the actual descriptor provided from the descriptor read / write unit 120. Here, the actual descriptor stored in the register 130 is deleted when the power supply is stopped.

상기 명령 해석부(140)는 USB 호스트(1)로부터 출력되는 실제 디스크립터 및 상기 실제 디스크립터에 대한 다운로드 명령을 수신하여, 다운로드 시작신호를 발생시키고, 상기 다운로드 시작신호 및 실제 디스크립터를 디스크립터 읽기/쓰기부(120)로 제공한다.The command interpreter 140 receives a real descriptor output from the USB host 1 and a download command for the real descriptor, generates a download start signal, and reads / writes the download start signal and the actual descriptor. Provided by 120.

상기 타이머(150)는 디스크립터 읽기/쓰기부(120)로부터 발생된 다운로드 완료신호에 응답하여, 제1제어신호를 발생시키고, 소정시간이 경과한 후에, 제2제어신호를 순차적으로 발생시켜, 신호 발생부(160)로 제공한다.The timer 150 generates a first control signal in response to the download completion signal generated from the descriptor read / write unit 120, and after a predetermined time elapses, sequentially generates a second control signal and outputs a signal. It is provided to the generator 160.

상기 신호 발생부(160)는, 외부로부터 전원이 공급되면, 소정의 제1초기화신호를 발생시켜, 전압 레귤레이터(200)로 제공한다. 그리고, 상기 신호 발생부(160)는 타이머(150)로부터 제공되는 제1제어신호에 응답하여, 제1초기화 신호의 발생을 중지하며, 타이머(150)로부터 발생되는 제2제어신호에 응답하여, 제2초기화 신호를 발생시킨다. 바람직하게는, 상기 제1초기화 신호 및 제2초기화 신호가 동일한 신호이다.When power is supplied from the outside, the signal generator 160 generates a predetermined first initialization signal and provides it to the voltage regulator 200. In addition, the signal generator 160 stops generation of the first initialization signal in response to the first control signal provided from the timer 150, and in response to the second control signal generated from the timer 150, Generate a second initialization signal. Preferably, the first initialization signal and the second initialization signal are the same signal.

상기 USB 코어(170)는, 신호선(300)을 통해, 디스크립터 읽기/쓰기부(120)로부터 전송되는 기본 디스크립터 및 실제 디스크립터를 USB 호스트(1)로 안내하고, USB 호스트(1)로부터 제공되는 명령 및 실제 디스크립터를 명령 해석부(140)로 안내한다.The USB core 170 guides the basic descriptor and the actual descriptor transmitted from the descriptor read / write unit 120 to the USB host 1 through the signal line 300, and provides a command provided from the USB host 1. And the actual descriptor to the command interpreter 140.

상기 전압 레귤레이터(200)는 전원단자전압(VDD)에 연결된 트랜지스터(210) 및 상기 트랜지스터(210)와 신호선(300)의 사이에 위치되는 저항(220)을 구비한다. 이와 같은 전압 레귤레이터(200)는 신호 발생부(160)로부터 제공되는 제1초기화 신호 또는 제2초기화 신호에 응답하여 트랜지스터(210)가 턴-온(Turn-on)되면, 신호선(300)에 전원단자전압(VDD)을 공급하여, 신호선(300)을 풀-업시킨다. 이때, 상기 전원단자전압(VDD)을 인가받은 신호선(300)은 통신 가능한 상태로 제어된다. 즉, 본 발명의 USB 장치와 USB 호스트(1)는 신호선(300)을 통해 디스크립터, 다운로드 명령 등을 송수신할 수 있다. 한편, 상기 전압 레귤레이터(200)는 제1초기화 신호 또는 제2초기화 신호가 발생되지 않으면, 신호선(300)로의 전원단자전압(VDD) 공급을 중단한다. 이러한 경우, 상기 신호선(300)은 통신 불가능 상태로 제어된다.The voltage regulator 200 includes a transistor 210 connected to a power supply terminal voltage V DD and a resistor 220 positioned between the transistor 210 and the signal line 300. The voltage regulator 200 supplies power to the signal line 300 when the transistor 210 is turned on in response to the first initialization signal or the second initialization signal provided from the signal generator 160. The terminal voltage V DD is supplied to pull up the signal line 300. In this case, the signal line 300 applied with the power terminal voltage V DD is controlled in a communicable state. That is, the USB device and the USB host 1 of the present invention may transmit and receive a descriptor, a download command, and the like through the signal line 300. Meanwhile, the voltage regulator 200 stops supplying the power terminal voltage V DD to the signal line 300 when the first initialization signal or the second initialization signal is not generated. In this case, the signal line 300 is controlled to a communication impossible state.

도3은 도2에 도시된 USB 장치의 초기화 과정을 나타내는 순서도이다. 도3을 참조하면, 본 발명에 따른 USB 장치의 초기화 방법은, USB 장치에 외부로부터 전원이 공급되면(S405), 신호 발생부(160)가 제1초기화 신호를 발생시킨다(S410). 이때, 상기 전압 레귤레이터의 트랜지스터(210)가 턴-온되어, 전원단자전압(VDD)이 신호선(300)으로 공급된다(S415). 이러한 경우, 상기 신호선(300)은 통신 가능한 상태로 제어된다.FIG. 3 is a flowchart illustrating an initialization process of the USB device shown in FIG. 2. Referring to FIG. 3, in the initialization method of the USB device according to the present invention, when power is supplied to the USB device from outside (S405), the signal generator 160 generates a first initialization signal (S410). At this time, the transistor 210 of the voltage regulator is turned on, and the power terminal voltage V DD is supplied to the signal line 300 (S415). In this case, the signal line 300 is controlled in a communicable state.

동시에, 상기 디스크립터 읽기/쓰기부(120)는 기본 메모리(110)에 저장된 기본 디스크립터를 읽어온 다음, USB 코어(170) 및 신호선(300)을 통해 USB 호스트(1)로 전송하여(S420), 1차 초기화를 수행한다. 이때, 상기 USB 호스트(1)에서는, 디스크립터 인식 프로그램(1a)이 전송되어온 기본 디스크립터를 인식하고, 신호선(300)을 통해 실제 디스크립터 및 상기 실제 디스크립터에 대한 다운로드 명령을 출력한다.At the same time, the descriptor read / write unit 120 reads the basic descriptor stored in the basic memory 110 and transmits the basic descriptor to the USB host 1 through the USB core 170 and the signal line 300 (S420). Perform primary initialization. At this time, the USB host 1 recognizes the basic descriptor to which the descriptor recognition program 1a has been transmitted, and outputs the actual descriptor and the download command for the actual descriptor through the signal line 300.

이러한 경우, 상기 명령 해석부(140)는 USB 코어(170)를 통해 실제 디스크립터 및 다운로드 명령을 수신하여(S425), 다운로드 시작신호를 발생시키고, 상기 실제 디스크립터를 디스크립터 읽기/쓰기부(120)로 제공한다. 이때, 상기 디스크립터 읽기/쓰기부(120)는 다운로드 시작신호에 응답하여 명령 해석부(140)로부터 제공되는 실제 디스크립터를 다운로드하고(S430), 레지스터(130)에 저장하며(S435), 다운로드 완료신호를 발생시킨다.In this case, the command interpreter 140 receives the actual descriptor and the download command through the USB core 170 (S425), generates a download start signal, and sends the actual descriptor to the descriptor read / write unit 120. to provide. In this case, the descriptor read / write unit 120 downloads the actual descriptor provided from the command interpreter 140 in response to the download start signal (S430), stores it in the register 130 (S435), and download completion signal. Generates.

그러면, 상기 타이머(150)가 다운로드 완료신호에 응답하여, 제1제어신호를발생시킨다. 이때, 상기 신호 발생부(160)는 제1제어신호에 응답하여 제1초기화 신호의 발생을 중지시킨다(S440). 이러한 경우, 상기 전압 레귤레이터의 트랜지스터(210)가 턴-오프(Turn-off)되어, 신호선(300)으로의 전원단자전압(VDD) 공급을 중단한다(S445). 즉, 상기 신호선(300)이 통신 불가능 상태로 제어된다. 이때, 상기 USB 호스트(1)는 USB 장치와의 통신이 단절되어, 1차 초기화시에 인식한 정보를 무시하게 된다.Then, the timer 150 generates a first control signal in response to the download completion signal. In this case, the signal generator 160 stops generation of the first initialization signal in response to the first control signal (S440). In this case, the transistor 210 of the voltage regulator is turned off to stop supplying the power terminal voltage V DD to the signal line 300 (S445). That is, the signal line 300 is controlled to the communication impossible state. At this time, the USB host 1 is disconnected from the communication with the USB device, and ignores the information recognized at the first initialization.

그리고, 소정의 시간이 경과한 후에, 상기 타이머(150)는 제2제어신호를 발생시킨다. 이때, 상기 신호 발생부(160)는 제2제어신호에 응답하여 제2초기화 신호를 발생시킨다(S450). 이때, 상기 전압 레귤레이터의 트랜지스터(210)가 다시 턴-온되어, 전원단자전압(VDD)이 신호선(300)으로 재공급된다(S455). 이러한 경우, 상기 신호선(300)은 다시 통신 가능한 상태로 제어된다.After a predetermined time elapses, the timer 150 generates a second control signal. In this case, the signal generator 160 generates a second initialization signal in response to the second control signal (S450). At this time, the transistor 210 of the voltage regulator is turned on again, and the power terminal voltage V DD is resupplied to the signal line 300 (S455). In this case, the signal line 300 is controlled to communicate again.

동시에, 상기 디스크립터 읽기/쓰기부(120)는 레지스터(130)에 저장된 실제 디스크립터를 읽어온 다음, USB 코어(170) 및 신호선(300)을 통해 USB 호스트(1)로 전송하여(S460), 2차 초기화를 수행한다. 이때, 상기 USB 호스트(1)에서, 디스크립터 인식 프로그램(1a)이 전송되어온 실제 디스크립터를 인식하면, 본 발명에 따른 USB 장치의 초기화가 완료된다.At the same time, the descriptor read / write unit 120 reads the actual descriptor stored in the register 130 and then transmits it to the USB host 1 through the USB core 170 and the signal line 300 (S460). Car initialization. At this time, when the USB host 1 recognizes the actual descriptor to which the descriptor recognition program 1a has been transmitted, initialization of the USB device according to the present invention is completed.

상기와 같은 본 발명의 USB 장치는 USB 호스트(1)로부터 실제 디스크립터를 제공받아 초기화를 수행하므로, 종래 기술에서의 외부 메모리가 불필요하게 되어, 크기 및 제조단가가 종래 기술에 비해 현저하게 감소될 수 있다.Since the USB device of the present invention as described above is initialized by receiving the actual descriptor from the USB host 1, the external memory in the prior art becomes unnecessary, and the size and manufacturing cost can be significantly reduced compared with the prior art. have.

본 발명은 도면에 도시된 일실시예를 참고로 설명되었으나 이는 예시적인 것에 불과하며, 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다.Although the present invention has been described with reference to one embodiment shown in the drawings, this is merely exemplary, and it will be understood by those skilled in the art that various modifications and equivalent other embodiments are possible. Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.

전술한 본 발명의 범용 직렬 버스 장치 및 그의 초기화 방법에 의하면, 실제 디스크립터를 저장하고 있는 별도의 메모리가 불필요하므로, 제품의 크기 및 제조단가를 현저하게 감소시킬 수 있다.According to the general-purpose serial bus device of the present invention and the initialization method thereof, the separate memory that stores the actual descriptor is unnecessary, so that the size and manufacturing cost of the product can be significantly reduced.

Claims (6)

소정 디스크립터에 대한 인식 프로그램을 내장한 호스트에 연결되어, 상기 호스트와 통신할 수 있는 상태로 초기화되는 범용 직렬 버스 장치에 있어서,A general-purpose serial bus device connected to a host having a built-in recognition program for a predetermined descriptor and initialized in a state capable of communicating with the host, 외부로부터 전원을 공급받아 제1초기화 신호를 발생시키고, 상기 호스트로 기본 디스크립터를 전송하여 1차 초기화를 수행하며, 상기 호스트로부터 제공되는 실제 디스크립터 및 상기 실제 디스크립터에 대한 다운로드 명령에 응답하여, 상기 실제 디스크립터를 다운로드한 다음, 제2초기화 신호를 발생시키고 상기 다운로드된 실제 디스크립터를 상기 호스트로 전송하여 2차 초기화를 수행하는 인터페이스;Generates a first initialization signal by receiving power from an external source, performs a primary initialization by transmitting a basic descriptor to the host, and in response to a real descriptor provided from the host and a download command for the real descriptor, An interface for downloading a descriptor, generating a second initialization signal, and transmitting the downloaded actual descriptor to the host to perform secondary initialization; 상기 호스트와 상기 인터페이스에서 송수신되는 상기 기본 디스크립터, 상기 실제 디스크립터 및 상기 다운로드 명령을 안내하기 위한 신호선; 및A signal line for guiding the basic descriptor, the actual descriptor, and the download command transmitted and received at the host and the interface; And 상기 인터페이스로부터 발생되는 상기 제1초기화 신호 또는 상기 제2초기화 신호에 응답하여, 상기 신호선을 통신 가능 상태로 제어하는 전압 레귤레이터A voltage regulator configured to control the signal line to a communicable state in response to the first initialization signal or the second initialization signal generated from the interface 를 포함하는 것을 특징으로 하는 범용 직렬 버스 장치.Universal serial bus device comprising a. 제1항에 있어서, 상기 인터페이스는The method of claim 1, wherein the interface 상기 기본 디스크립터를 저장하는 메모리;A memory for storing the basic descriptor; 상기 실제 디스크립터를 저장하기 위한 레지스터;A register for storing the actual descriptor; 상기 호스트로부터 상기 다운로드 명령 및 상기 실제 디스크립터를 제공받아, 다운로드 시작신호를 발생시키고, 상기 실제 디스크립터를 출력하는 명령 해석부;A command interpreter configured to receive the download command and the actual descriptor from the host, generate a download start signal, and output the actual descriptor; 상기 외부로부터 공급되는 전원을 공급받아 상기 메모리에 저장된 기본 디스크립터를 읽어 상기 호스트로 전송하며, 상기 다운로드 시작신호에 응답하여, 상기 명령 해석부로부터 출력되는 상기 실제 디스크립터를 상기 레지스터에 저장한 후에, 다운로드 완료신호를 발생시키고, 상기 레지스터에 저장된 실제 디스크립터를 읽어 상기 호스트로 제공하는 디스크립터 읽기/쓰기부;After receiving the power supplied from the outside, the basic descriptor stored in the memory is read and transmitted to the host, and in response to the download start signal, the actual descriptor outputted from the command interpreter is stored in the register. A descriptor read / write unit which generates a completion signal and reads the actual descriptor stored in the register and provides it to the host; 상기 다운로드 완료신호에 응답하여, 상기 제2초기화 신호를 발생시키기 위한 제어신호를 발생시키는 타이머; 및A timer for generating a control signal for generating the second initialization signal in response to the download completion signal; And 상기 외부로부터 공급되는 전원을 공급받아 상기 제1초기화 신호를 발생시키되, 상기 제어신호에 응답하여, 상기 제2초기화 신호를 발생시키는 신호 발생부A signal generator configured to generate the first initialization signal by receiving power supplied from the outside, and generate the second initialization signal in response to the control signal 를 포함하는 것을 특징으로 하는 범용 직렬 버스 장치.Universal serial bus device comprising a. 제1항 또는 제2항에 있어서,The method according to claim 1 or 2, 상기 제1초기화 신호 및 상기 제2초기화 신호가 동일한 신호인 것을 특징으로 하는 범용 직렬 버스 장치.And the first initialization signal and the second initialization signal are the same signal. 제3항에 있어서, 상기 타이머로부터 발생되는 제어신호는The method of claim 3, wherein the control signal generated from the timer is 상기 제1초기화 신호의 발생을 중지시키기 위한 제1제어신호; 및A first control signal for stopping generation of the first initialization signal; And 상기 제2초기화 신호를 발생시키기 위한 제2제어신호A second control signal for generating the second initialization signal 를 포함하는 것을 특징으로 하는 범용 직렬 버스 장치.Universal serial bus device comprising a. 소정 디스크립터에 대한 인식 프로그램을 내장한 호스트에 연결되어, 상기 호스트와 통신할 수 있는 상태로 초기화되는 범용 직렬 버스 장치의 초기화 방법에 있어서,In the initialization method of a general-purpose serial bus device connected to a host having a built-in recognition program for a predetermined descriptor and initialized in a state capable of communicating with the host, 외부로부터 전원을 공급받아 제1초기화 신호를 발생시키므로써, 상기 호스트에 연결된 신호선을 통신 가능 상태로 제어하는 A)단계;A) controlling the signal line connected to the host to a communicable state by generating a first initialization signal by receiving power from an external source; 메모리에 저장된 기본 디스크립터를 읽어 상기 호스트로 전송하므로써, 1차 초기화를 수행하는 B)단계;B) performing primary initialization by reading a basic descriptor stored in a memory and transmitting it to the host; 상기 기본 디스크립터를 인식한 상기 호스트로부터 실제 디스크립터 및 상기 실제 디스크립터에 대한 다운로드 명령을 수신하여, 상기 실제 디스크립터를 레지스터에 저장하는 C)단계;C) receiving a real descriptor and a download command for the real descriptor from the host recognizing the base descriptor, and storing the real descriptor in a register; 상기 저장단계가 완료된 후에, 상기 제1초기화 신호의 발생을 중지시켜, 상기 호스트가 1차 초기화 동안에 인식한 기본 디스크립터를 무시하도록하는 D)단계;After the storing step is completed, stopping the generation of the first initialization signal to cause the host to ignore the default descriptor recognized during the first initialization; 상기 D)단계 수행 후에, 제2초기화 신호를 발생시키는 E)단계; 및E) generating a second initialization signal after performing step D); And 상기 레지스터에 저장된 실제 디스크립터를 읽어 상기 호스트로 전송하므로써, 2차 초기화를 수행하는 F)단계F) performing secondary initialization by reading the actual descriptor stored in the register and transmitting it to the host. 를 포함하는 것을 특징으로 하는 범용 직렬 버스 장치의 초기화 방법.Initialization method of a general-purpose serial bus device comprising a. 제5항에 있어서,The method of claim 5, 상기 제1초기화 신호와 상기 제2초기화 신호는 동일한 신호인 것을 특징으로 하는 범용 직렬 버스 장치의 초기화 방법.And the first initialization signal and the second initialization signal are the same signal.
KR10-2001-0049861A 2001-08-20 2001-08-20 Universal serial bus device and initializing mehtod of the device KR100395664B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR10-2001-0049861A KR100395664B1 (en) 2001-08-20 2001-08-20 Universal serial bus device and initializing mehtod of the device
US10/054,289 US6868456B2 (en) 2001-08-20 2001-11-12 Universal serial bus device initialized with a real descriptor stored in host and method for initializing the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0049861A KR100395664B1 (en) 2001-08-20 2001-08-20 Universal serial bus device and initializing mehtod of the device

Publications (2)

Publication Number Publication Date
KR20030015982A KR20030015982A (en) 2003-02-26
KR100395664B1 true KR100395664B1 (en) 2003-08-25

Family

ID=19713337

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0049861A KR100395664B1 (en) 2001-08-20 2001-08-20 Universal serial bus device and initializing mehtod of the device

Country Status (2)

Country Link
US (1) US6868456B2 (en)
KR (1) KR100395664B1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704824B1 (en) * 1999-07-27 2004-03-09 Inline Connection Corporation Universal serial bus adapter with automatic installation
GB2374259B (en) * 2001-04-06 2004-04-21 Nokia Corp Universal serial bus circuit
US20030131167A1 (en) * 2001-12-20 2003-07-10 Rankin Linda J. Node ID discovery
KR20040025717A (en) * 2002-09-17 2004-03-25 주식회사 이라테크 Audio/video file player and method thereof through usb storage device
US8049904B2 (en) * 2003-01-13 2011-11-01 Samsung Electronics Co., Ltd. Printer having keyboard function, a printing system and printing method using the printing system
KR100822798B1 (en) * 2006-01-16 2008-04-17 삼성전자주식회사 Usb device and data processing system having usb device
CN100386751C (en) * 2006-05-30 2008-05-07 北京飞天诚信科技有限公司 USB device automatic initialization method and device
KR100898544B1 (en) * 2008-02-28 2009-05-20 주식회사 유비콘테크놀로지 Interface apparatus of ultra wide band wireless system
US20090234992A1 (en) * 2008-03-17 2009-09-17 Shehu Bankole-Hameed Geiser Device- A no hassle link
CN102202132B (en) * 2010-03-24 2013-06-05 中兴通讯股份有限公司 Method, system and equipment for initializing networking equipment
CN104484196B (en) * 2014-11-28 2018-01-02 上海动联信息技术股份有限公司 A kind of production system and method for being automatically performed the initialization of USBKEY equipment firmwares

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990067734A (en) * 1998-01-07 1999-08-25 클라크 3세 존 엠. An apparatus and method for initializing a universal serial bus device
KR19990071048A (en) * 1998-02-26 1999-09-15 윤종용 Initialization device of display device using UBS communication
KR19990086335A (en) * 1998-05-27 1999-12-15 김영환 Peripheral Initializer of Universal Serial Bus
KR20000066468A (en) * 1999-04-16 2000-11-15 김영환 Initialization method for usb apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6009480A (en) * 1997-09-12 1999-12-28 Telxon Corporation Integrated device driver wherein the peripheral downloads the device driver via an I/O device after it is determined that the I/O device has the resources to support the peripheral device
US6088785A (en) * 1998-04-15 2000-07-11 Diamond Multimedia Systems, Inc. Method of configuring a functionally redefinable signal processing system
US6490637B1 (en) * 1999-08-24 2002-12-03 Conexant Systems Inc. System and method for dynamic assignment of unique serial number to system device
US6523081B1 (en) * 1999-11-22 2003-02-18 Texas Instruments Incorporated Architecture using dedicated endpoints and protocol for creating a multi-application interface and improving bandwidth over universal serial bus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990067734A (en) * 1998-01-07 1999-08-25 클라크 3세 존 엠. An apparatus and method for initializing a universal serial bus device
KR19990071048A (en) * 1998-02-26 1999-09-15 윤종용 Initialization device of display device using UBS communication
KR19990086335A (en) * 1998-05-27 1999-12-15 김영환 Peripheral Initializer of Universal Serial Bus
KR20000066468A (en) * 1999-04-16 2000-11-15 김영환 Initialization method for usb apparatus

Also Published As

Publication number Publication date
US6868456B2 (en) 2005-03-15
KR20030015982A (en) 2003-02-26
US20030037197A1 (en) 2003-02-20

Similar Documents

Publication Publication Date Title
KR100395664B1 (en) Universal serial bus device and initializing mehtod of the device
US9965423B2 (en) Electronic device with card interface
JP2834330B2 (en) Memory device with data stream mode switching function
KR19990007295A (en) Multiple connection method of serial bus by multiple circuit boards
CN101980159B (en) Updating device and updating method for firmware of U disk
KR20020036717A (en) Microcomputer and method for controlling the same
JPH06149238A (en) Method for updating program of electronic musical instrument system
US6240520B1 (en) Power on/off control device for computer
US20090157908A1 (en) Software Driver Device
JP2002108518A (en) Peripheral device and method for controlling the same
TW297971B (en)
KR100456112B1 (en) Apparatus and method for software upgrade of mobile phone
JPH11288338A (en) Usb controller and device loading the same
KR20050006484A (en) Compatible usb connector and method for communicating data using it
US11593284B2 (en) Method for managing an operation for modifying the stored content of a memory device, and corresponding memory device
KR200268439Y1 (en) Remote inspection apparatus installed between host computer and meter
CN107102959B (en) Universal serial bus interface and circuit thereof, USB flash disk
KR100263178B1 (en) Data cable circuit for data communication between a portable radio equipment and a computer and communication method thereof
KR20030056464A (en) Board for using ordinary interface
JPH1021019A (en) Printer device
KR20220159529A (en) Protocol converting apparatus
KR200330224Y1 (en) USB drive generating sound
JPH07193860A (en) Portable terminal equipment having program memory
KR19990066206A (en) Remote power control circuit and method using modem and LAN
KR19990060768A (en) Portable computer system with external ID

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120710

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20130731

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20140728

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20150729

Year of fee payment: 13

FPAY Annual fee payment

Payment date: 20160801

Year of fee payment: 14