KR20000072323A - Digital Signal Processing Apparatus and it's Interfacing Method for Automatic Control - Google Patents

Digital Signal Processing Apparatus and it's Interfacing Method for Automatic Control Download PDF

Info

Publication number
KR20000072323A
KR20000072323A KR1020000050517A KR20000050517A KR20000072323A KR 20000072323 A KR20000072323 A KR 20000072323A KR 1020000050517 A KR1020000050517 A KR 1020000050517A KR 20000050517 A KR20000050517 A KR 20000050517A KR 20000072323 A KR20000072323 A KR 20000072323A
Authority
KR
South Korea
Prior art keywords
bus
digital signal
signal processing
host computer
data
Prior art date
Application number
KR1020000050517A
Other languages
Korean (ko)
Other versions
KR100394246B1 (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-2000-0050517A priority Critical patent/KR100394246B1/en
Publication of KR20000072323A publication Critical patent/KR20000072323A/en
Application granted granted Critical
Publication of KR100394246B1 publication Critical patent/KR100394246B1/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/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
    • G06F13/366Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control using a centralised polling arbiter
    • 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/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4208Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a system bus, e.g. VME bus, Futurebus, Multibus
    • 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/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34047Dsp digital signal processor

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)
  • Bus Control (AREA)

Abstract

PURPOSE: A digital signal processing apparatus for automatic control and an interface method thereof are provided, in which the digital signal processing apparatus can be easily interfaced with a host computer without changing of user application programs according to the bus type of the host computer. CONSTITUTION: A digital signal processing apparatus includes a bus controller(120) and a system controller(140). The bus controller interfaced with a host computer(100) to perform transmission of data or control command between the bus of the host computer and the inner system bus(160) of the digital signal processor based on the bus type of the host computer. The system controller processes a control signal from the digital signal processor to generate a control signal for controlling external input/output devices interfaced to an analog circuit processor and the digital signal processor.

Description

자동제어용 디지탈 신호처리장치 및 그 인터페이스 방법 {Digital Signal Processing Apparatus and it's Interfacing Method for Automatic Control}Digital Signal Processing Apparatus and Interface Method for Automatic Control {Digital Signal Processing Apparatus and it's Interfacing Method for Automatic Control}

본 발명은 자동제어용 디지탈 신호처리장치 및 그 인터페이스 방법에 관한 것으로, 외부 입력장치로부터 입력된 신호를 디지탈 신호처리하여 외부 출력장치로 제어신호를 출력하는 디지탈 신호처리용 프로세서(DSP)를 내장한 자동제어용 디지탈 신호처리장치 및 그 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital signal processing device for automatic control and an interface method thereof. The present invention relates to a digital signal processing processor (DSP) for digitally processing a signal input from an external input device and outputting a control signal to an external output device. The present invention relates to a digital signal processing apparatus for control and a method thereof.

종래 각종 센서로부터 입력된 정보에 기초하여 모터 등과 같은 액추에이터로 구성된 출력장치를 실시간으로 제어하기 위한 제어 시스템으로 디지털 신호처리용 프로세서(DSP)를 내장한 제어용 보드가 많이 사용되고 있다.Background Art Conventionally, a control board incorporating a digital signal processing processor (DSP) has been widely used as a control system for controlling an output device including an actuator such as a motor in real time based on information input from various sensors.

또한, 음성 및 화상 데이타 등과 같이 방대한 양의 디지탈 데이타를 처리하기 위해서는 디지탈 신호처리용 프로세서(DSP)를 내장한 제어용 보드를 필수적으로 사용하여야 한다.In addition, in order to process a large amount of digital data such as audio and image data, a control board having a digital signal processing processor (DSP) must be used.

이러한 자동제어용 디지털 신호처리장치는 전용 하드웨어에 의한 컨트롤러에 비하여 소프트웨어의 변경에 의하여 다양한 응용분야로 적응될 수 있고 호스트 컴퓨터와의 인터페이스에 의하여 시스템의 변경이나 모니터링이 용이한 등의 장점이 있어 널리 채용되고 있다.The digital signal processing device for automatic control is widely adopted because it can be adapted to various application fields by changing the software, and the system can be easily changed or monitored by the interface with the host computer. It is becoming.

또한, 자동제어용 디지털 신호처리장치는 최근들어 디지털 신호처리용 프로세서 기술의 발전에 따라 처리능력이 극대화되고, 메모리 기술의 발전에 따라 액세스 속도가 빨라져 이들 범용 제어 장치에 의해서도 실시간으로 제어가 가능한 응용분야가 갈수록 넓어지는 추세에 있다.In addition, the digital signal processing device for automatic control has recently been maximized in accordance with the development of processor technology for digital signal processing, and the access speed is increased according to the development of memory technology. The trend is getting wider.

그러나, 기존의 자동제어용 디지탈 신호처리장치는 응용 분야나 호스트 컴퓨터의 버스 타입에 따라 상이하게 설계되고 있다. 즉, 입출력되는 아날로그 신호의 특성에 따라서 부가적인 하드웨어를 별도로 구비하거나 전체적인 설계변경이 이루어져야 했고, 또 호스트 컴퓨터의 버스 타입에 따라 사용되는 자동제어용 디지털 신호처리장치가 별도로 구성되어야 했다.However, the existing digital signal processing apparatus for automatic control is designed differently depending on the application field or the bus type of the host computer. In other words, according to the characteristics of the analog signal input and output, additional hardware had to be provided separately or the overall design change had to be made, and the digital signal processing apparatus for automatic control used according to the bus type of the host computer had to be separately configured.

이에 따라, 이를 제어하는 펌웨어(Firmware) 또는 사용자 응용 프로그램을 입출력되는 아날로그 신호의 특성 및 호스트 컴퓨터의 버스 타입에 따라 별도로 설계하거나 변경해야 했으므로 설계 비용이나 시간이 과다하게 소요되는 문제점이 있었다.Accordingly, since the firmware or user application controlling the same has to be separately designed or changed according to the characteristics of the input / output analog signal and the bus type of the host computer, there is a problem that excessive design cost or time is required.

본 발명은 본인의 선출원인 특허출원 제 2000-25441 호(2000. 05. 12)에서 제시한 발명의 버스제어부 및 제어부를 더욱 구체화하고, 호스트 컴퓨터의 입,출력 슬롯(I/O Slot)을 통해 인터페이스하기 용이하지 않은 제어분야에서 사용자 응용 프로그램의 설계 변경없이 간편하게 인터페이스를 지원할 수 있도록 직렬 및 병렬포트 제어부를 추가하여 구성한 것이다.The present invention further embodies the bus control unit and the control unit of the invention, which is proposed in the patent application No. 2000-25441 (May 12, 2000), which is a prior application of the applicant, and is provided through an input / output slot of a host computer. In the control area that is not easy to interface, serial and parallel port controllers are added to easily support the interface without changing the design of the user application program.

본 발명은 상기와 같은 문제점을 해결하기 위한 것으로서, 호스트 컴퓨터의 버스 타입과 무관하게 인터페이스할 수 있는 자동제어용 디지털 신호처리장치 및 그 인터페이스 방법을 제공함을 그 목적으로 한다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object thereof is to provide an automatic control digital signal processing apparatus and an interface method thereof that can interface with a bus type of a host computer.

또한, 본 발명의 다른 목적은 호스트 컴퓨터의 입,출력 슬롯(I/O Slot)을 통해 인터페이스하기 용이하지 않은 제어분야에서 사용자 응용 프로그램의 설계 변경없이 간편하게 인터페이스를 지원할 수 있는 자동제어용 디지털 신호처리장치 및 그 인터페이스 방법을 제공하는 것이다.In addition, another object of the present invention is a digital signal processing apparatus for automatic control that can easily support the interface without changing the design of the user application in the control field that is not easy to interface through the input and output slots (I / O Slot) of the host computer And an interface method thereof.

도 1 은 본 발명 장치의 전체 구성을 나타낸 블럭도1 is a block diagram showing the overall configuration of the apparatus of the present invention;

도 2 는 도 1 중 버스제어부의 구성을 나타낸 블럭도FIG. 2 is a block diagram illustrating a configuration of a bus controller in FIG. 1. FIG.

도 3 은 도 1 중 시스템 제어부의 구성을 나타낸 블럭도3 is a block diagram illustrating a configuration of a system controller of FIG. 1;

도 4 는 도 1 중 직렬 및 병렬포트 제어부의 구성을 나타낸 블럭도4 is a block diagram showing the configuration of the serial and parallel port control unit of FIG.

도 5 는 본 발명 중 버스제어부의 동작 순서도5 is a flowchart illustrating an operation of a bus control unit according to the present invention.

도 6a 는 직렬 및 병렬포트 제어부에 의해 호스트 컴퓨터에서 전송되는 데이타를 디지탈 신호처리장치로 직렬 전송하는 순서도6A is a flowchart for serially transmitting data transmitted from a host computer by serial and parallel port controllers to a digital signal processing apparatus.

도 6b 는 직렬 및 병렬포트 제어부에 의해 디지탈 신호처리장치에서 전송되는 데이타를 호스트 컴퓨터로 직렬 전송하는 순서도Figure 6b is a flow chart for serial transmission of data transmitted from the digital signal processing apparatus by the serial and parallel port control unit to the host computer

도 7a 는 직렬 및 병렬포트 제어부에 의해 호스트 컴퓨터에서 전송되는 데이타를 디지탈 신호처리장치로 병렬 전송하는 순서도7A is a flow chart for parallel transmission of data transmitted from a host computer by serial and parallel port controllers to a digital signal processing apparatus.

도 7b 는 직렬 및 병렬포트 제어부에 의해 디지탈 신호처리장치에서 전송되는 데이타를 호스트 컴퓨터로 병렬 전송하는 순서도7B is a flowchart for parallel transmission of data transmitted from a digital signal processing apparatus by a serial and parallel port controller to a host computer.

도 8 은 도 5 에서의 제어신호의 일람표FIG. 8 is a list of control signals in FIG.

도 9 는 도 3 에서의 제어신호 일람표9 is a list of control signals in FIG.

도 10 은 도 6a 내지 도 7b 에서의 제어신호 일람표FIG. 10 is a list of control signals in FIGS. 6A to 7B.

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

100 : 호스트 컴퓨터 110 : 호스트 컴퓨터 버스100: host computer 110: host computer bus

120 : 버스제어부 121 : 버스래치부120: bus control unit 121: bus latch unit

122 : 호스트 버스 디코더부 123 : 시스템 버스 디코더부122: host bus decoder unit 123: system bus decoder unit

124 : 인터럽트 발생부 130 : DSP CPU124: interrupt generator 130: DSP CPU

140 : 시스템 제어부 141 : 클럭발생부140: system control unit 141: clock generation unit

142 : 아날로그 제어부 143 : 시스템 인터럽트 신호 발생부142: analog controller 143: system interrupt signal generator

144 : 시스템 디코더부 150 : 아날로그 회로처리부144: system decoder unit 150: analog circuit processing unit

160 : 디지탈 신호처리장치의 내부 시스템 버스160: internal system bus of the digital signal processing device

170 : 직렬 및 병렬포트 제어부 171 : 포트제어부170: serial and parallel port control unit 171: port control unit

172 : 직렬포트 제어부 173 : 병렬포트 제어부172: serial port control unit 173: parallel port control unit

상기와 같은 목적을 달성하기 위한 해결 수단으로서, 본 발명은 호스트 컴퓨터(Host Computer)에 인터페이스(Interface)되어 상기 호스트 컴퓨터의 버스 타입(Bus Type)에 따라 호스트 컴퓨터 버스와 디지탈 신호처리장치의 내부 시스템 버스(System Bus)간의 데이타 또는 제어 명령의 전송을 수행하는 버스제어부와; 디지탈 신호처리용 프로세서(DSP)로부터의 제어신호를 처리하여 상기 아날로그 회로처리부 및 디지탈 신호처리장치에 인터페이스된 외부 입,출력장치를 제어하는 제어신호를 출력하는 시스템 제어부를 포함하므로써 호스트 컴퓨터의 버스 타입과 무관하게 인터페이스할 수 있도록 한 것에 그 특징이 있다.As a solution for achieving the above object, the present invention is interfaced to a host computer (Interface), the internal system of the host computer bus and the digital signal processing apparatus according to the bus type (Bus Type) of the host computer A bus controller for transmitting data or control commands between system buses; A bus type of a host computer by including a system controller for processing a control signal from a digital signal processor (DSP) and outputting a control signal for controlling an external input / output device interfaced to the analog circuit processor and the digital signal processor. Its feature is that it can be interfaced independently of it.

또한 본 발명의 부가적인 양상으로 상기 디지탈 신호처리장치의 내부 시스템 버스로부터 제어신호를 입력받아 직렬포트 및 병렬포트를 초기화 하고 그 동작 상태를 검출하는 포트제어부와, 직렬포트를 통하여 데이타를 송·수신하도록 직렬포트의 동작을 제어하는 직렬포트 제어부와, 병렬포트를 통하여 데이타를 송·수신하도록 병렬포트의 동작을 제어하는 병렬포트 제어부를 구비한 직렬 및 병렬포트 제어부를 더 포함하므로써 호스트 컴퓨터와 인터페이스가 용이하지 않은 분야에서 사용자 응용 프로그램의 설계 변경없이 구동할 수 있도록 한 것을 특징으로 하고 있다.In addition, as an additional aspect of the present invention, a port control unit which receives a control signal from the internal system bus of the digital signal processing device, initializes a serial port and a parallel port, and detects an operation state thereof, and transmits and receives data through the serial port. The host computer and interface are further included by including a serial port controller for controlling the operation of the serial port, and a parallel port controller for controlling the operation of the parallel port to transmit and receive data through the parallel port. It is characterized in that it can be run without changing the design of the user application in the field that is not easy.

이하, 첨부 도면을 참조하여 본 발명의 구성 및 동작관계를 당업자가 이해하고 용이하게 실시할 수 있도록 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail to enable those skilled in the art to understand and easily implement the configuration and operation of the present invention.

도 1 은 본 발명 장치의 전체 구성을 나타낸 블럭도로서, 본 발명은 ISA 혹은 PCI 타입의 호스트 컴퓨터 버스(110)를 구비한 호스트 컴퓨터(100)에 인터페이스되어 상기 호스트 컴퓨터 버스(110)의 타입(Bus Type)에 따라 호스트 컴퓨터 버스와 디지탈 신호처리장치의 내부 시스템 버스(System Bus)간의 데이타 또는 제어 명령의 전송을 수행하는 버스제어부(120)와; 장치 전반을 제어하고, 처리된 데이터를 상기 버스 제어부(120)에 의해서 호스트 컴퓨터(100)로 전송하며 또한 호스트 컴퓨터(100)에서 처리된 데이터를 상기 버스 제어부(120)를 통하여 전송받도록 제어하는 DSP CPU(130)와; 디지탈 신호처리용 프로세서(DSP)로부터의 제어신호를 처리하여 아날로그 회로처리부(150) 및 디지탈 신호처리장치에 인터페이스된 외부 입,출력장치(도면 도시 생략)를 제어하는 제어신호를 출력하는 시스템 제어부(140)와; 외부 입력장치(도면 도시 생략)로부터 입력된 아날로그 신호를 입력받고, 디지털 처리된 신호를 아날로그 신호로 변환하여 외부 출력장치(도면 도시 생략)로 출력하는 아날로그 회로 처리부(150)와; 호스트 컴퓨터(100)와 인터페이스가 용이하지 않은 분야에서 사용자 응용 프로그램의 설계 변경없이 구동할 수 있도록 하는 직렬 및 병렬포트 제어부(170)를 포함하여 구성된다Figure 1 is a block diagram showing the overall configuration of the apparatus of the present invention, the present invention is interfaced to a host computer 100 having a host computer bus 110 of ISA or PCI type, the type of the host computer bus 110 ( A bus controller 120 for transmitting data or control commands between the host computer bus and the internal system bus of the digital signal processing apparatus according to the bus type; DSP which controls the whole device, transmits the processed data to the host computer 100 by the bus control unit 120, and controls to receive the data processed by the host computer 100 through the bus control unit 120. CPU 130; A system controller which processes a control signal from a digital signal processor (DSP) and outputs a control signal for controlling an external input / output device (not shown) interfaced to the analog circuit processor 150 and the digital signal processor ( 140); An analog circuit processor 150 for receiving an analog signal input from an external input device (not shown), converting the digitally processed signal into an analog signal, and outputting the analog signal to an external output device (not shown); It is configured to include a serial and parallel port control unit 170 to drive without changing the design of the user application in the field where the interface with the host computer 100 is not easy

도 2 는 도 1 중 버스제어부의 구성을 나타낸 블럭도로서, 본 발명의 버스제어부(120)는 호스트 컴퓨터 버스(110)와 인터페이스되어 호스트 컴퓨터(100)에서 전송되는 데이타 또는 명령어를 디지탈 신호처리장치의 내부 시스템 버스(160)에 전송하거나, 또는 디지탈 신호처리장치의 내부 시스템 버스(160)에서 전송되는 데이타를 호스트 컴퓨터(100)로 전송하는 버스래치(Bus Latch)(121)부와, 상기 호스트 컴퓨터(100)로부터 제어신호를 받아 호스트 컴퓨터(100)의 버스 타입에 따라 호스트 컴퓨터(100)에서 전송되는 데이타 또는 명령어를 디지탈 신호처리장치의 내부 시스템 버스(160)에 전송하도록 상기 버스래치부(121)를 제어하는 소정의 제어신호를 생성하는 호스트 버스 디코더(Host Bus Decoder)(122)부와, 상기 디지탈 신호처리장치로부터 제어신호를 받아 호스트 컴퓨터(100)의 버스 타입에 따라 디지탈 신호처리장치의 내부 시스템 버스(160)에서 전송되는 데이타를 호스트 컴퓨터(100)로 전송하도록 상기 버스래치부(121)를 제어하는 소정의 제어신호를 생성하는 시스템 버스 디코더(System Bus Decoder)(123)부와, 상기 호스트 컴퓨터(100)로부터 디지탈 신호처리장치의 제어를 수행하는 일련의 명령어 비트(Bit)를 입력받아 이 명령어를 실행하기 위한 인터럽트(Interrupt) 신호를 발생시키는 인터럽트 발생부(124)를 구비하여 이루어진다.FIG. 2 is a block diagram showing the configuration of the bus controller of FIG. 1. The bus controller 120 of the present invention interfaces with the host computer bus 110 and transmits data or commands transmitted from the host computer 100 to the digital signal processing apparatus. A bus latch 121 for transmitting data transmitted from the internal system bus 160 of the digital signal processing apparatus or the data transmitted from the internal system bus 160 of the digital signal processor to the host computer 100; The bus latch unit may receive a control signal from the computer 100 and transmit data or commands transmitted from the host computer 100 to the internal system bus 160 of the digital signal processing apparatus according to the bus type of the host computer 100. A host bus decoder 122 for generating a predetermined control signal for controlling 121; and a host computer receiving a control signal from the digital signal processing apparatus. A system for generating a predetermined control signal for controlling the bus latch unit 121 to transmit data transmitted from the internal system bus 160 of the digital signal processing apparatus to the host computer 100 according to the bus type of 100. Interrupt signal for executing this command by receiving a system bus decoder 123 and a series of command bits for controlling the digital signal processing apparatus from the host computer 100 It comprises a interrupt generator 124 for generating a.

도 5 는 본 발명 중 버스제어부의 동작 순서도, 도 8 은 도 5 에서의 제어신호의 일람표로서, 도 5 및 도 8 을 참조하여 버스제어부(120)의 동작 단계 및 흐름을 설명한다.FIG. 5 is a flowchart illustrating an operation of the bus control unit according to the present invention, and FIG. 8 is a list of control signals in FIG. 5. The operation steps and flow of the bus control unit 120 will be described with reference to FIGS. 5 and 8.

버스제어부(120)는 호스트 컴퓨터(Host Computer)의 버스 타입(Bus Type) 신호를 검출하는 단계(S100)와, 상기 단계(S100)에서 검출된 버스 타입이 PCI 버스인 경우 버스 타입 변수를 '1'로 세팅(Setting)한 후 호스트 데이타 버스(Host Data Bus)의 길이를 32 비트(Bit)로 설정하는 단계(S110a)와, 상기 단계(S100)에서 검출된 버스 타입이 ISA 버스인 경우 버스 타입 변수를 '0'으로 세팅한 후 호스트 데이타 버스의 길이를 16 비트로 설정하는 단계(S110b)를 포함하는 호스트 컴퓨터의 버스 타입을 결정하는 버스타입 결정루틴과; 상기 호스트 컴퓨터에서 전송된 명령어 비트를 검출하여 디지탈 신호처리장치에서 수행하고자하는 동작상태를 결정하는 단계(S200)와, 상기 단계(S200)에서 검출된 명령어 비트가 '00'일 경우 디지탈 신호처리장치에서 수행되는 명령어를 상기 호스트 컴퓨터로부터 전송하여 버스래치부에 저장하는 단계(S210a)와, 상기 단계(S200)에서 검출된 명령어 비트가 '01'일 경우 디지탈 신호처리장치에서 수행되는 연산에 필요한 데이타를 상기 호스트 컴퓨터로부터 전송하여 버스래치부에 저장하는 단계(S210b)와, 상기 단계(S200)에서 검출된 명령어 비트가 '10'일 경우 디지탈 신호처리장치에서 연산이 완료된 데이타를 호스트 컴퓨터로 전송하여 백업하기위해 디지탈 신호처리장치로부터 전송하여 버스래치부에 저장하는 단계(S210c)를 포함하여 이루어지는 명령어 비트 해석 루틴과; 상기 명령어 비트 해석루틴에서 처리된 명령어 비트에 따라 디지탈 신호처리장치에 저장된 명령어 및 데이타를 처리하기 위한 시스템 인터럽트(Interrupt)를 발생시키는 단계(S300)와, 상기 단계(S300)에서 발생된 인터럽트 변수가 '0'일 경우 상기 단계(S210a)에서 저장된 명령어를 디지탈 신호처리장치에서 수행하기 위하여 명령어 수행 인터럽트를 발생시킨 후 상기 버스래치부에 저장된 명령어를 디지탈 신호처리장치의 메모리 블럭에 저장하는 단계(S310a)와, 상기 단계(S300)에서 발생된 인터럽트 변수가 '1'일 경우 상기 단계(S210b)에서 저장된 데이타를 디지탈 신호처리장치에서 수행하기 위하여 데이타 읽기 인터럽트(Data Read Interrupt)를 발생시킨 후 상기 버스래치부에 저장된 데이타를 디지탈 신호처리장치의 메모리 블럭에 저장하는 단계(S310b)와, 상기 단계(S300)에서 발생된 인터럽트 변수가 '2'일 경우 상기 단계(S210c)에서 저장된 디지탈 신호처리장치에서 처리된 데이타를 호스트 컴퓨터로 전송하기 위하여 데이타 쓰기 인터럽트(Data Write Interrupt)를 발생시킨 후 이 데이타를 호스트 컴퓨터에 전송하는 단계(S310c)와, 상기 단계(S310a)(S310b)에서 시스템 버스 비지 플래그(System Bus Busy Flag)가 비지(Busy) 상태이면 각각 단계(S310a)(S310b)를 반복하고, 아이들(Idle) 상태이면 종료하는 단계(S320a)와, 상기 단계(S310c)에서 호스트 버스 비지 플래그(Host Bus Busy Flag)가 비지(Busy) 상태이면 단계(S310c)를 반복하고, 아이들(Idle) 상태이면 종료하는 단계(S320c)를 포함하여 이루어지는 데이타 처리루틴을 가진다.The bus controller 120 detects a bus type signal of the host computer (S100), and when the bus type detected in the step S100 is a PCI bus, sets the bus type variable to '1'. Step S110a of setting the length of the host data bus to 32 bits after setting to &quot;, &quot; the bus type if the bus type detected in the step S100 is an ISA bus. A bus type determination routine for determining a bus type of the host computer including setting a variable to '0' and setting the length of the host data bus to 16 bits (S110b); Determining an operation state to be performed in the digital signal processing apparatus by detecting the command bit transmitted from the host computer (S200), and if the command bit detected in the step (S200) is '00' Digital signal processing apparatus Transmitting the command from the host computer to a bus latch unit (S210a) and storing the data necessary for the operation performed in the digital signal processing apparatus when the command bit detected in the step S200 is '01'. Transmitting the data from the host computer to a bus latch unit (S210b) and if the command bit detected in the step (S200) is '10', the digital signal processing apparatus transmits the completed data to the host computer. Instruction bits that comprise the step of transmitting from the digital signal processor for backup and storing in the bus latch unit (S210c) An analysis routine; Generating a system interrupt for processing a command and data stored in the digital signal processing device according to the command bit processed in the command bit interpreting routine (S300), and the interrupt variable generated in the step (S300) In case of '0', generating an instruction execution interrupt to execute the instruction stored in the step S210a in the digital signal processing apparatus, and then storing the instruction stored in the bus latch unit in a memory block of the digital signal processing apparatus (S310a). And, if the interrupt variable generated in the step (S300) is '1' and the bus after generating a data read interrupt (Data Read Interrupt) to perform the data stored in the step (S210b) in the digital signal processing device Storing the data stored in the latch unit in a memory block of the digital signal processing apparatus (S310b); If the interrupt variable generated in S300 is '2', the data write interrupt is generated after the data write interrupt is generated to transfer the data processed by the digital signal processing apparatus stored in the step S210c to the host computer. If the system bus busy flag is busy at step S310c and step S310a and step S310b, step S310a and step S310b are repeated. If the Idle state ends (S320a), and if the host bus busy flag is busy in step S310c, step S310c is repeated, and if the idle state is idle, It has a data processing routine comprising the step S320c of terminating.

즉, 버스제어부(120)는 먼저 호스트 컴퓨터(Host Computer)의 버스 타입(Bus Type)을 결정하기 위하여 버스 신호를 검출하여 버스 타입의 형태를 결정한다.That is, the bus controller 120 first determines the type of the bus type by detecting a bus signal in order to determine the bus type of the host computer.

만약, 검출된 버스 타입이 PCI 버스인 경우에는 버스 타입 변수 #BUS_TYPE을 '1'로 세팅(Setting)한 후 디지탈 신호처리장치에서 호스트 데이타 버스(Host Data Bus)의 길이를 32 비트(Bit)로 설정하고, 검출된 버스 타입이 ISA 버스인 경우 버스 타입 변수 #BUS_TYPE을 '0'으로 세팅한 후 디지탈 신호처리장치에서 호스트 데이타 버스의 길이를 16 비트로 설정한다.If the detected bus type is a PCI bus, set the bus type variable #BUS_TYPE to '1' and set the length of the host data bus to 32 bits in the digital signal processor. If the detected bus type is an ISA bus, set the bus type variable #BUS_TYPE to '0' and set the length of the host data bus to 16 bits in the digital signal processor.

이후, 상기 호스트 컴퓨터에서 전송된 명령어 비트 CMD_BIT를 검출하여 디지탈 신호처리장치에서 수행하고자하는 동작상태를 결정한다.Thereafter, the command bit CMD_BIT transmitted from the host computer is detected to determine an operation state to be performed in the digital signal processing apparatus.

이때, 검출된 명령어 비트 CMD_BIT가 '00'일 경우에는 디지탈 신호처리장치에서 수행되는 명령어를 상기 호스트 컴퓨터로부터 전송하여 버스래치부에 저장하고, 검출된 명령어 비트 CMD_BIT가 '01'일 경우 디지탈 신호처리장치에서 수행되는 연산에 필요한 데이타를 상기 호스트 컴퓨터로부터 전송하여 버스래치부에 저장하며, 검출된 명령어 비트 CMD_BIT가 '10'일 경우 디지탈 신호처리장치에서 연산이 완료된 데이타를 호스트 컴퓨터로 전송하여 백업하기위해 디지탈 신호처리장치로부터 전송하여 버스래치부에 저장한다.In this case, when the detected command bit CMD_BIT is '00', the command executed in the digital signal processing apparatus is transmitted from the host computer and stored in the bus latch unit. When the detected command bit CMD_BIT is '01', the digital signal processing is performed. Transfer the data necessary for the operation performed in the device from the host computer and store it in the bus latch unit.When the detected command bit CMD_BIT is '10', the digital signal processing device backs up the operation completed data to the host computer. The data is transmitted from the digital signal processor and stored in the bus latch unit.

상기와 같이 호스트 컴퓨터에서 전송된 명령어 또는 데이타가 버스래치부에 저장되거나 또는 디지탈 신호처리장치에서 처리된 데이타가 버스래치부에 저장된 후, 시스템 버스 디코더부에서 처리된 명령어 비트에 따라 디지탈 신호처리장치에 저장된 명령어 및 데이타를 처리하기 위한 시스템 인터럽트(System Interrupt) SINTR을 발생시킨다.After the instruction or data transmitted from the host computer is stored in the bus latch unit or the data processed by the digital signal processing unit is stored in the bus latch unit, the digital signal processing apparatus according to the command bit processed in the system bus decoder unit as described above. Generates a system interrupt SINTR to process commands and data stored in the system.

이때, 발생된 인터럽트 변수 SINTR이 '0'일 경우 버스래치부에 래치된 호스트 컴퓨터로부터 전송된 명령어를 디지탈 신호처리장치에서 수행하기 위하여 명령어 수행 인터럽트 INSTR을 발생시킨 후, 상기 버스래치부에 저장된 명령어를 디지탈 신호처리장치의 메모리 블럭에 저장한다.In this case, when the generated interrupt variable SINTR is '0', the instruction execution interrupt INSTR is generated to execute an instruction transmitted from the host computer latched in the bus latch unit in the digital signal processing apparatus, and then the instruction stored in the bus latch unit. Is stored in the memory block of the digital signal processing apparatus.

한편, 발생된 인터럽트 변수 SINTR이 '1'일 경우 버스래치부에 저장된 호스트 컴퓨터로부터 전송된 데이타를 디지탈 신호처리장치에서 수행하기 위하여 데이타 읽기 인터럽트(Data Read Interrupt) DATAR을 발생시킨 후, 상기 버스래치부에 저장된 데이타를 디지탈 신호처리장치의 메모리 블럭(도면 도시 생략)에 저장한다.Meanwhile, when the generated interrupt variable SINTR is '1', a data read interrupt DATAR is generated in order to perform data transmitted from the host computer stored in the bus latch unit in the digital signal processing apparatus, and then the bus latch is executed. The data stored in the unit is stored in a memory block (not shown) of the digital signal processing apparatus.

위에 설명한 발생된 인터럽트 변수 SINTR이 '0' 또는 '1'일 경우의 동작은 시스템 버스 비지 플래그(System Bus Busy Flag) SBF가 비지(Busy) 상태이면 계속 반복 수행하고, 아이들(Idle) 상태이면 종료한다.If the above-mentioned interrupt variable SINTR is '0' or '1', the operation is repeated if the System Bus Busy Flag SBF is busy, and ends if it is idle. do.

한편, 발생된 인터럽트 변수 SINTR이 '2'일 경우 버스래치부에 저장된 디지탈 신호처리장치에서 처리된 데이타를 호스트 컴퓨터로 전송하기 위하여 데이타 쓰기 인터럽트(Data Write Interrupt) DATAW를 발생시킨 후, 이 데이타를 호스트 컴퓨터에 전송한다.On the other hand, when the generated interrupt variable SINTR is '2', a data write interrupt DATAW is generated to transfer the data processed by the digital signal processing apparatus stored in the bus latch unit to the host computer, and then the data is generated. Transfer to the host computer.

발생된 인터럽트 변수 SINTR이 '2'일 경우의 동작은 호스트 버스 비지 플래그(Host Bus Busy Flag) HBF가 비지(Busy) 상태이면 동작을 반복하고, 아이들(Idle) 상태이면 종료한다.When the generated interrupt variable SINTR is '2', the operation is repeated when the host bus busy flag HBF is busy, and ends when the idle state is idle.

도 3 은 도 1 중 시스템 제어부의 구성을 나타낸 블럭도, 도 9 는 도 3 에서의 제어신호 일람표로서, 본 발명의 시스템 제어부(140)는 본 발명 디지탈 신호처리장치에서 사용되는 클럭주파수를 생성하는 클럭발생부(141)와; 외부 입력장치(도면 도시 생략)로부터 입력되는 아날로그 신호를 처리하기 위한 아날로그 제어부(142)와; 상기 클럭발생부(141) 및 아날로그 제어부(142)의 동작사태를 감시하고, 이들의 동작 흐름을 제어하는 인터럽트 신호를 발생하는 시스템 인터럽트 신호 발생부(143)와; 본 발명 디지탈 신호처리장치에서 사용되는 입,출력 디바이스(도면 도시 생략)를 디코딩하는 시스템 디코더부(144)를 구비하여 이루어진다.3 is a block diagram showing the configuration of the system control unit in FIG. 1, and FIG. 9 is a control signal list in FIG. 3, wherein the system control unit 140 of the present invention generates a clock frequency used in the digital signal processing apparatus of the present invention. A clock generator 141; An analog controller 142 for processing an analog signal input from an external input device (not shown); A system interrupt signal generator 143 for monitoring the operation of the clock generator 141 and the analog controller 142 and generating an interrupt signal for controlling the operation flow thereof; And a system decoder 144 for decoding input and output devices (not shown) used in the digital signal processing apparatus of the present invention.

구체적으로 설명하면 상기의 클럭발생부(141)는 디지탈 신호처리장치의 DSP CPU(130)로부터 클럭(CLKIN)을 입력 받아 직렬포트를 통해 전송되는 직렬 데이타의 전송속도를 결정하기 위한 직렬포트에서 사용되는 클럭신호(COMCLK)와 아날로그 제어부(142)에서 사용되는 클럭신호(CLKOUT)를 생성하고, 상기 아날로그 회로처리부(150)의 아날로그-디지탈 변환기(도면 도시 생략) 및 디지탈-아날로그 변환기(도면 도시 생략)의 변환시간 및 샘플링(Sampling) 주파수를 결정하기 위한 클럭을 생성한다.Specifically, the clock generation unit 141 receives the clock CLKIN from the DSP CPU 130 of the digital signal processor and uses the serial port for determining the transmission speed of the serial data transmitted through the serial port. Generates a clock signal (COMCLK) and a clock signal (CLKOUT) used in the analog controller 142, and the analog-to-digital converter (not shown) and the digital-to-analog converter (not shown) of the analog circuit processing unit 150. Generate a clock to determine a conversion time and a sampling frequency of

상기 아날로그 제어부(142)는 상기 클럭발생부(141)에서 생성된 변환 시간 및 샘플링 주파수를 위한 클럭을 입력받아 상기 아날로그 회로처리부(150)의 아날로그-디지탈 변환기의 변환 시작 및 변환 종료 시간을 결정하고, 디지탈 신호처리장치내의 DSP CPU(130)에서 시스템 주소를 입력받아 각 변환기의 채널을 결정하기 위한 선택신호를 출력한다.The analog controller 142 receives a clock for the conversion time and the sampling frequency generated by the clock generator 141 and determines the conversion start time and the conversion end time of the analog-digital converter of the analog circuit processor 150. Then, the DSP CPU 130 in the digital signal processing apparatus receives the system address and outputs a selection signal for determining the channel of each converter.

상기 시스템 인터럽트(System Interrupt) 신호 발생부(143)는 상기 아날로그 제어부(142)에서 발생된 변환 시작 및 변환 종료 시간과 사용자 인터럽트 요구 신호(USR_INT)를 입력받아 DSP CPU(130)에서의 인터럽트 요구 신호(SYS_INT)를 발생시킨다.The system interrupt signal generator 143 receives a conversion start and conversion end time and a user interrupt request signal USR_INT generated by the analog controller 142 and receives an interrupt request signal from the DSP CPU 130. Generates (SYS_INT).

상기 시스템 디코더(Systen Decoder)부(144)는 디지탈 신호처리장치의 시스템 주소(System Address)를 입력받아 디지탈 신호처리장치에 인터페이스된 디바이스 장치(도면 도시 생략)를 제어하도록 시스템 디바이스(System Device) 선택 신호(SYS_CS)를 생성한다.The system decoder (Systen Decoder) unit 144 receives a system address of the digital signal processing apparatus and selects a system device to control a device device (not shown) interfaced to the digital signal processing apparatus. Generate the signal SYS_CS.

도 4 는 도 1 중 직렬 및 병렬포트 제어부의 구성을 나타낸 블럭도로서, 본 발명의 직렬 및 병렬포트 제어부(170)는 상기 디지탈 신호처리장치의 내부 시스템 버스로(110)부터 제어신호를 입력받아 직렬포트 및 병렬포트를 초기화 하고 그 동작 상태를 검출하는 포트제어부(171)와, 직렬포트를 통하여 데이타를 송·수신하도록 직렬포트의 동작을 제어하는 직렬포트 제어부(172)와, 병렬포트를 통하여 데이타를 송·수신하도록 병렬포트의 동작을 제어하는 병렬포트 제어부(173)를 구비하여 이루어진다.FIG. 4 is a block diagram showing the configuration of the serial and parallel port controllers of FIG. 1. The serial and parallel port controllers 170 of the present invention receive a control signal from an internal system bus 110 of the digital signal processing apparatus. A port control unit 171 for initializing the serial port and the parallel port and detecting an operation state thereof, a serial port control unit 172 for controlling the operation of the serial port to transmit and receive data through the serial port, and a parallel port through the parallel port. And a parallel port controller 173 for controlling the operation of the parallel port to transmit and receive data.

상기 직렬 및 병렬포트 제어부의 동작을 도 6a 내지 7b 및 도 10 을 참조하여 설명한다.The operation of the serial and parallel port controllers will be described with reference to FIGS. 6A to 7B and 10.

도 6a 는 직렬 및 병렬포트 제어부에 의해 호스트 컴퓨터에서 전송되는 데이타를 디지탈 신호처리장치로 직렬 전송하는 순서도로서, 이 경우의 동작은 상기 포트제어부(171)에서 전송 속도, 전송 방법 등을 포함하는 직렬포트의 상태를 초기화 하는 단계(S500)와; 전송하고자 하는 호스트 컴퓨터에서 직렬포트의 활성화 제어신호 COM_RDY를 검출하여 COM_RDY 신호가 비활성화 되었을 경우 즉, 호스트 컴퓨터에서 데이타 송신 준비가 되어 있지 않을 경우 COM_RDY 신호가 활성화 될 때까지 디지탈 신호처리장치가 다른 일을 수행하거나 대기토록 하는 단계(S510)와; COM_RDY 신호가 활성화 되었을 경우 디지탈 신호처리장치의 포트제어부(171)에서 전송을 수행한다는 직렬데이타 전송 활성화 제어신호 COM_STB 를 호스트 컴퓨터에 전송하는 단계(S520)와; 호스트 컴퓨터에서 사용자 응용 프로그램의 호환성을 유지하기 위한 직렬포트의 호환성 결정제어신호 COM_INT 를 검출하여, 이 신호가 비화성화 되었을 경우 사용자의 응용 프로그램을 수행 할 수 없다는 오류 메시지를 출력하고, 모든 제어신호를 클리어(Clear)한 후 종료하는 단계(S530)와; COM_INT 신호가 활성화 되었을 경우 필요한 데이타를 호스트 컴퓨터에서 수신하고자하는 데이타의 종료시까지(직렬데이타 전송 종료 제어신호 SER_END 가 활성화 될때까지) 수신받아 처리하고, 이 후 수신하고자하는 데이타의 종료가 검출되면, 즉 SER_END 신호가 활성화되면 모든 제어신호를 클리어(Clear)시킨 후 종료하는 단계(S540)에 따라 동작한다.FIG. 6A is a flowchart for serially transmitting data transmitted from a host computer by serial and parallel port controllers to a digital signal processing apparatus. In this case, the operation in this case includes a serial including a transmission speed, a transmission method, and the like. Initializing the state of the port (S500); When the host computer to be transmitted detects the COM_RDY control signal COM_RDY on the serial port and the COM_RDY signal is deactivated, that is, when the host computer is not ready to transmit data, the digital signal processing unit performs other tasks until the COM_RDY signal is activated. Performing or waiting (S510); Transmitting a serial data transmission activation control signal COM_STB to the host computer indicating that the port control unit 171 of the digital signal processing apparatus performs a transmission when the COM_RDY signal is activated (S520); The host computer detects the serial port compatibility decision control signal COM_INT to maintain the compatibility of the user application program. If this signal is disabled, the host computer outputs an error message indicating that the user application program cannot be executed. Clearing and then ending (S530); When the COM_INT signal is activated, it receives and processes the necessary data from the host computer until the end of the data to be received (until the serial data transmission end control signal SER_END is activated). Then, if the end of the data to be received is detected, that is, When the SER_END signal is activated, the control unit operates according to the step S540 of clearing and terminating all control signals.

도 6b 는 직렬 및 병렬포트 제어부에 의해 디지탈 신호처리장치에서 전송되는 데이타를 호스트 컴퓨터로 직렬 전송하는 순서도로서, 이 경우의 동작은 상기 포트제어부(171)에서 전송 속도, 전송 방법 등을 포함하는 직렬포트의 상태를 초기화 하는 단계(S600)와; 디지탈 신호처리장치의 포트제어부(171)에서 전송을 수행한다는 직렬데이타 전송 활성화 제어신호 COM_STB 를 호스트 컴퓨터에 전송하는 단계(S610)와; 전송하고자 하는 호스트 컴퓨터에서 직렬포트의 활성화 제어신호 COM_RDY를 검출하여 COM_RDY 신호가 비활성화 되었을 경우 즉, 호스트 컴퓨터에서 데이타 송신 준비가 되어 있지 않을 경우 COM_RDY 신호가 활성화 될 때까지 디지탈 신호처리장치가 다른 일을 수행하거나 대기토록 하는 단계(S620)와; COM_RDY 신호가 활성화 되었을 경우 호스트 컴퓨터에서 사용자 응용 프로그램의 호환성을 유지하기 위한 직렬포트의 호환성 결정제어신호 COM_INT 를 검출하여, 이 신호가 비화성화 되었을 경우 사용자의 응용 프로그램을 수행 할 수 없다는 오류 메시지를 출력하고, 모든 제어신호를 클리어(Clear)한 후 종료하는 단계(S630)와; COM_INT 신호가 활성화 되었을 경우 필요한 데이타를 호스트 컴퓨터에서 수신하고자하는 데이타의 종료시까지(직렬데이타 전송 종료 제어신호 SER_END 가 활성화 될때까지) 수신받아 처리하고, 이 후 수신하고자하는 데이타의 종료가 검출되면, 즉 SER_END 신호가 활성화되면 모든 제어신호를 클리어(Clear)시킨 후 종료하는 단계(S640)에 따라 동작한다.FIG. 6B is a flowchart for serially transmitting data transmitted from the digital signal processing apparatus by the serial and parallel port controllers to the host computer. The operation in this case includes a serial including a transmission speed, a transmission method, and the like in the port controller 171. Initializing the state of the port (S600); Transmitting the serial data transmission activation control signal COM_STB to the host computer to perform transmission by the port controller 171 of the digital signal processing apparatus (S610); When the host computer to be transmitted detects the COM_RDY control signal COM_RDY on the serial port and the COM_RDY signal is deactivated, that is, when the host computer is not ready to transmit data, the digital signal processing unit performs other tasks until the COM_RDY signal is activated. Performing or waiting (S620); When the COM_RDY signal is enabled, the host computer detects the serial port compatibility decision control signal COM_INT to maintain the compatibility of the user application program, and outputs an error message that the user application cannot be executed when this signal is disabled. And terminating after clearing all control signals (Clear); When the COM_INT signal is activated, it receives and processes the necessary data from the host computer until the end of the data to be received (until the serial data transmission end control signal SER_END is activated), and when the end of the data to be received is detected, that is, When the SER_END signal is activated, the control unit operates according to the step S640 of clearing and terminating all control signals.

도 7a 는 직렬 및 병렬포트 제어부에 의해 호스트 컴퓨터에서 전송되는 데이타를 디지탈 신호처리장치로 병렬 전송하는 순서도로서, 이 경우의 동작은 상기 포트제어부(171)에서 전송 속도, 전송 방법 등을 포함하는 병렬포트의 상태를 초기화 하는 단계(S700)와; 전송하고자 하는 호스트 컴퓨터에서 병렬포트의 활성화 제어신호 CEN_ACK를 검출하여 CEN_ACK 신호가 비활성화 되었을 경우 즉, 호스트 컴퓨터에서 데이타 송신 준비가 되어 있지 않을 경우 CEN_ACK 신호가 활성화 될 때까지 디지탈 신호처리장치가 다른 일을 수행하거나 대기토록 하는 단계(S710)와; CEN_ACK 신호가 활성화 되었을 경우 디지탈 신호처리장치의 포트제어부(171)에서 전송을 수행한다는 병렬데이타 전송 활성화 제어신호 CEN_STRB 를 호스트 컴퓨터에 전송하는 단계(S720)와; 호스트 컴퓨터에서 사용자 응용 프로그램의 호환성을 유지하기 위한 병렬포트의 호환성 결정제어신호 CEN_ERR 을 검출하여, 이 신호가 비화성화 되었을 경우 사용자의 응용 프로그램을 수행 할 수 없다는 오류 메시지를 출력하고, 모든 제어신호를 클리어(Clear)한 후 종료하는 단계(S730)와; CEN_ERR 신호가 활성화 되었을 경우 필요한 데이타를 호스트 컴퓨터에서 수신하고자하는 데이타의 종료시까지(병렬데이타 전송 종료 제어신호 SEN_BF 가 활성화 될때까지) 수신받아 처리하고, 이 후 수신하고자하는 데이타의 종료가 검출되면, 즉 SEN_BF 신호가 활성화되면 모든 제어신호를 클리어(Clear)시킨 후 종료하는 단계(S740)에 따라 동작한다.FIG. 7A is a flowchart in which data transmitted from a host computer by serial and parallel port controllers is transmitted in parallel to a digital signal processing apparatus. In this case, the operation of the port controller 171 includes parallel transmission speeds, transmission methods, and the like. Initializing the state of the port (S700); When the host computer to be transmitted detects the activation control signal CEN_ACK of the parallel port and the CEN_ACK signal is deactivated, that is, when the host computer is not ready to transmit data, the digital signal processing device performs other tasks until the CEN_ACK signal is activated. Performing or waiting (S710); When the CEN_ACK signal is activated, transmitting the parallel data transmission activation control signal CEN_STRB to the host computer indicating that the port control unit 171 of the digital signal processing apparatus performs transmission (S720); When the host computer detects the compatibility decision control signal CEN_ERR of the parallel port to maintain the compatibility of the user application program, it outputs an error message that the user application cannot be executed when this signal is deactivated, and outputs all control signals. Clearing and then ending (S730); When the CEN_ERR signal is activated, the received data is received and processed until the end of the data to be received by the host computer (until the parallel data transmission end control signal SEN_BF is activated), and when the end of the data to be received is detected, that is, When the SEN_BF signal is activated, the control unit operates according to the step S740 of clearing and terminating all control signals.

도 7b 는 직렬 및 병렬포트 제어부에 의해 디지탈 신호처리장치에서 전송되는 데이타를 호스트 컴퓨터로 병렬 전송하는 순서도로서, 이 경우의 동작은 상기 포트제어부(171)에서 전송 속도, 전송 방법 등을 포함하는 병렬포트의 상태를 초기화 하는 단계(S800)와; 디지탈 신호처리장치의 포트제어부(171)에서 전송을 수행한다는 병렬데이타 전송 활성화 제어신호 CEN_STRB 를 호스트 컴퓨터에 전송하는 단계(S810)와; 전송하고자 하는 호스트 컴퓨터에서 병렬포트의 활성화 제어신호 CEN_ACK를 검출하여 COM_RDY 신호가 비활성화 되었을 경우 즉, 호스트 컴퓨터에서 데이타 송신 준비가 되어 있지 않을 경우 CEN_ACK 신호가 활성화 될 때까지 디지탈 신호처리장치가 다른 일을 수행하거나 대기토록 하는 단계(S820)와; CEN_ACK 신호가 활성화 되었을 경우 호스트 컴퓨터에서 사용자 응용 프로그램의 호환성을 유지하기 위한 병렬포트의 호환성 결정제어신호 CEN_ERR 을 검출하여, 이 신호가 비화성화 되었을 경우 사용자의 응용 프로그램을 수행 할 수 없다는 오류 메시지를 출력하고, 모든 제어신호를 클리어(Clear)한 후 종료하는 단계(S830)와; CEN_ERR 신호가 활성화 되었을 경우 필요한 데이타를 호스트 컴퓨터에서 수신하고자하는 데이타의 종료시까지(병렬데이타 전송 종료 제어신호 SEN_BF 가 활성화 될때까지) 수신받아 처리하고, 이 후 수신하고자하는 데이타의 종료가 검출되면, 즉 SEN_BF 신호가 활성화되면 모든 제어신호를 클리어(Clear)시킨 후 종료하는 단계(S840)에 따라 동작한다.7B is a flowchart in which data transmitted from the digital signal processing apparatus by the serial and parallel port controllers are transmitted in parallel to the host computer. In this case, the operation of the port controller 171 includes the transmission speed, the transmission method, and the like. Initializing the state of the port (S800); Transmitting the parallel data transmission activation control signal CEN_STRB to the host computer indicating that the port controller 171 of the digital signal processing apparatus performs transmission (S810); When the COM_RDY signal is deactivated by detecting the activation control signal CEN_ACK of the parallel port at the host computer to be transmitted, that is, when the host computer is not ready to transmit data, the digital signal processing device performs other tasks until the CEN_ACK signal is activated. Performing or waiting (S820); When the CEN_ACK signal is activated, the host computer detects the parallel port compatibility decision control signal CEN_ERR to maintain the compatibility of the user application program, and outputs an error message that the user application cannot be executed when this signal is deactivated. And terminating after clearing all control signals (Clear); When the CEN_ERR signal is activated, the received data is received and processed until the end of the data to be received by the host computer (until the parallel data transmission end control signal SEN_BF is activated), and when the end of the data to be received is detected, that is, When the SEN_BF signal is activated, the control unit operates according to the step S840 of clearing and terminating all control signals.

상기에서 사용자의 응용 프로그램의 호환성을 유지한다는 말은 호스트 컴퓨터에서 설계되어 ISA 또는 PCI 버스와 인터페이스되는 디지탈 신호처리장치로 다운로드(Download)되어 수행되는 응용 프로그램을 수정없이 그대로 직렬포트 또는 병렬포트를 통해 다운로드 받아서 수행할 수 있다는 것을 의미한다.Maintaining the compatibility of the user's application in the above means that the application, which is designed on the host computer and downloaded to the digital signal processing device interfaced with the ISA or PCI bus, is executed without modification through the serial port or the parallel port. It means you can download and run it.

따라서, 상기와 같이 함에 의해 본 발명에서 제시한 본 발명의 목적을 달성할 수 있게 된다.Thus, by the above it can be achieved the object of the present invention presented in the present invention.

이상에서 설명한 바와 같은 구성 및 동작관계를 갖는 본 발명에 의해 얻을 수 있는 효과는 호스트 컴퓨터의 버스 타입과 무관하게 인터페이스할 수 있고, 호스트 컴퓨터의 입,출력 슬롯(I/O Slot)을 통해 인터페이스하기 용이하지 않은 제어분야에서 사용자 응용 프로그램의 설계 변경없이 간편하게 인터페이스를 지원할 수 있는 등의 매우 유용한 효과를 가진다.Effects obtained by the present invention having the configuration and operation relationship as described above can be interfaced regardless of the bus type of the host computer, and interface through the I / O slot of the host computer It has a very useful effect such as being able to easily support the interface without changing the design of the user application program in the difficult control field.

Claims (5)

외부 입력장치로부터 입력된 신호를 아날로그 회로처리부를 통해 처리하여 외부 출력장치로 제어신호를 출력하는 디지탈 신호처리용 프로세서(DSP)를 내장한 자동제어용 디지탈 신호처리장치에 있어서,In the digital signal processing device for automatic control incorporating a digital signal processing processor (DSP) for processing a signal input from an external input device through an analog circuit processing unit to output a control signal to an external output device, 호스트 컴퓨터(Host Computer)에 인터페이스(Interface)되어 상기 호스트 컴퓨터의 버스 타입(Bus Type)에 따라 호스트 컴퓨터 버스와 디지탈 신호처리장치의 내부 시스템 버스(System Bus)간의 데이타 또는 제어 명령의 전송을 수행하는 버스제어부와;Interfaced to a host computer to transfer data or control commands between the host computer bus and the internal system bus of the digital signal processing device according to the bus type of the host computer. A bus controller; 디지탈 신호처리용 프로세서(DSP)로부터의 제어신호를 처리하여 상기 아날로그 회로처리부 및 디지탈 신호처리장치에 인터페이스된 외부 입,출력장치를 제어하는 제어신호를 출력하는 시스템 제어부를 포함하여 이루어지는 것을 특징으로 하는 자동제어용 디지탈 신호처리장치.And a system controller for processing a control signal from a digital signal processor (DSP) and outputting a control signal for controlling an external input / output device interfaced to the analog circuit processing unit and the digital signal processing device. Digital signal processing device for automatic control. 제 1 항에 있어서,The method of claim 1, 상기 버스제어부는:The bus control unit: 호스트 컴퓨터 버스와 인터페이스되어 호스트 컴퓨터에서 전송되는 데이타 또는 명령어를 디지탈 신호처리장치의 내부 시스템 버스에 전송하거나, 또는 디지탈 신호처리장치의 내부 시스템 버스에서 전송되는 데이타를 호스트 컴퓨터로 전송하는 버스래치(Bus Latch)부와,Bus Latch (Bus), which interfaces with the host computer bus to transfer data or instructions from the host computer to the internal system bus of the digital signal processor, or to the host computer for data transmitted from the internal system bus of the digital signal processor. Latch), 상기 호스트 컴퓨터로부터 제어신호를 받아 호스트 컴퓨터의 버스 타입에 따라 호스트 컴퓨터에서 전송되는 데이타 또는 명령어를 디지탈 신호처리장치의 내부 시스템 버스에 전송하도록 상기 버스래치부를 제어하는 소정의 제어신호를 생성하는 호스트 버스 디코더(Host Bus Decoder)부와,A host bus that receives a control signal from the host computer and generates a predetermined control signal for controlling the bus latch unit to transmit data or instructions transmitted from the host computer to the internal system bus of the digital signal processing apparatus according to the bus type of the host computer Decoder (Host Bus Decoder) section, 상기 디지탈 신호처리장치로부터 제어신호를 받아 호스트 컴퓨터의 버스 타입에 따라 디지탈 신호처리장치의 내부 시스템 버스에서 전송되는 데이타를 호스트 컴퓨터로 전송하도록 상기 버스래치부를 제어하는 소정의 제어신호를 생성하는 시스템 버스 디코더(System Bus Decoder)부와,A system bus that receives a control signal from the digital signal processing apparatus and generates a predetermined control signal for controlling the bus latch to transfer data transmitted from the internal system bus of the digital signal processing apparatus to the host computer according to the bus type of the host computer. Decoder (System Bus Decoder) section, 상기 호스트 컴퓨터로부터 디지탈 신호처리장치의 제어를 수행하는 일련의 명령어 비트(Bit)를 입력받아 이 명령어를 실행하기 위한 인터럽트(Interrupt) 신호를 발생시키는 인터럽트 발생부를 구비하여 이루어지는 것을 특징으로 하는 자동제어용 디지탈 신호처리장치.And an interrupt generator for receiving a series of command bits for controlling the digital signal processing apparatus from the host computer and generating an interrupt signal for executing the command. Signal processing device. 제 1 항에 있어서,The method of claim 1, 상기 시스템 제어부는:The system control unit: 디지탈 신호처리장치의 DSP CPU로부터 클럭(CLKIN)을 입력 받아 직렬포트를 통해 전송되는 직렬 데이타의 전송속도를 결정하기 위한 직렬포트에서 사용되는 클럭신호(COMCLK)와 아날로그 제어부에서 사용되는 클럭신호(CLKOUT)를 생성하고, 상기 아날로그 회로처리부의 아날로그-디지탈 변환기 및 디지탈-아날로그 변환기의 변환시간 및 샘플링(Sampling) 주파수를 결정하기 위한 클럭을 생성하는 클럭발생부와,The clock signal (CLKOUT) used in the serial port and the clock signal used in the analog controller to determine the transfer rate of serial data transmitted through the serial port by receiving the clock (CLKIN) from the DSP CPU of the digital signal processor. A clock generator for generating a clock for determining a conversion time and sampling frequency of the analog-digital converter and the digital-analog converter of the analog circuit processor; 상기 클럭발생부에서 생성된 변환 시간 및 샘플링 주파수를 위한 클럭을 입력받아 상기 아날로그 회로처리부의 아날로그-디지탈 변환기의 변환 시작 및 변환 종료 시간을 결정하고, 디지탈 신호처리장치내의 DSP CPU에서 시스템 주소를 입력받아 각 변환기의 채널을 결정하기 위한 선택신호를 출력하는 아날로그 제어부와,The conversion start time and the conversion end time of the analog-to-digital converter of the analog circuit processing unit are determined by receiving the clock for the conversion time and the sampling frequency generated by the clock generation unit, and the system address is input from the DSP CPU in the digital signal processing device. An analog controller for receiving and outputting a selection signal for determining a channel of each converter; 상기 아날로그 제어부에서 발생된 변환 시작 및 변환 종료 시간과 사용자 인터럽트 요구 신호(USR_INT)를 입력받아 DSP CPU에서의 인터럽트 요구 신호(SYS_INT)를 발생시키는 시스템 인터럽트(System Interrupt) 신호 발생부와,A system interrupt signal generator for receiving a conversion start and conversion end time and a user interrupt request signal USR_INT generated by the analog controller to generate an interrupt request signal SYS_INT from a DSP CPU; 디지탈 신호처리장치의 시스템 주소(System Address)를 입력받아 디지탈 신호처리장치에 인터페이스된 디바이스 장치를 제어하도록 시스템 디바이스(System Device) 선택 신호(SYS_CS)를 생성하는 시스템 디코더(Systen Decoder)부를 구비하여 이루어지는 것을 특징으로 하는 자동제어용 디지탈 신호처리 장치.And a system decoder (Systen Decoder) for generating a system device selection signal SYS_CS to receive a system address of the digital signal processing device and to control a device device interfaced to the digital signal processing device. Digital signal processing device for automatic control, characterized in that. 제 1 항 또는 제 2 항 또는 제 3 항 중 어느 한 항에 있어서,The method according to claim 1 or 2 or 3, 상기 디지탈 신호처리장치의 내부 시스템 버스로부터 제어신호를 입력받아 직렬포트 및 병렬포트를 초기화 하고 그 동작 상태를 검출하는 포트제어부와,A port controller which receives a control signal from an internal system bus of the digital signal processor and initializes a serial port and a parallel port and detects an operation state thereof; 직렬포트를 통하여 데이타를 송·수신하도록 직렬포트의 동작을 제어하는 직렬포트 제어부와,A serial port controller for controlling the operation of the serial port to transmit and receive data through the serial port; 병렬포트를 통하여 데이타를 송·수신하도록 병렬포트의 동작을 제어하는 병렬포트 제어부를 구비한 직렬 및 병렬포트 제어부를 더 포함하여 이루어지는 것을 특징으로 하는 자동제어용 디지탈 신호처리장치.And a serial and parallel port control unit having a parallel port control unit for controlling the operation of the parallel port to transmit and receive data through the parallel port. 호스트 컴퓨터(Host Computer)의 버스 타입(Bus Type) 신호를 검출하는 단계(S100)와, 상기 단계(S100)에서 검출된 버스 타입이 PCI 버스인 경우 버스 타입 변수를 '1'로 세팅(Setting)한 후 호스트 데이타 버스(Host Data Bus)의 길이를 32 비트(Bit)로 설정하는 단계(S110a)와, 상기 단계(S100)에서 검출된 버스 타입이 ISA 버스인 경우 버스 타입 변수를 '0'으로 세팅한 후 호스트 데이타 버스의 길이를 16 비트로 설정하는 단계(S110b)를 포함하는 호스트 컴퓨터의 버스 타입을 결정하는 버스타입 결정루틴과;Detecting a bus type signal of a host computer (S100); and setting the bus type variable to '1' when the bus type detected in the step S100 is a PCI bus. And setting the length of the host data bus to 32 bits (S110a), and setting the bus type variable to '0' when the bus type detected in the step S100 is an ISA bus. A bus type determination routine for determining the bus type of the host computer including setting (S110b) the length of the host data bus to 16 bits after setting; 상기 호스트 컴퓨터에서 전송된 명령어 비트를 검출하여 디지탈 신호처리장치에서 수행하고자하는 동작상태를 결정하는 단계(S200)와, 상기 단계(S200)에서 검출된 명령어 비트가 '00'일 경우 디지탈 신호처리장치에서 수행되는 명령어를 상기 호스트 컴퓨터로부터 전송하여 버스래치부에 저장하는 단계(S210a)와, 상기 단계(S200)에서 검출된 명령어 비트가 '01'일 경우 디지탈 신호처리장치에서 수행되는 연산에 필요한 데이타를 상기 호스트 컴퓨터로부터 전송하여 버스래치부에 저장하는 단계(S210b)와, 상기 단계(S200)에서 검출된 명령어 비트가 '10'일 경우 디지탈 신호처리장치에서 연산이 완료된 데이타를 호스트 컴퓨터로 전송하여 백업하기위해 디지탈 신호처리장치로부터 전송하여 버스래치부에 저장하는 단계(S210c)를 포함하여 이루어지는 명령어 비트 해석 루틴과;Determining an operation state to be performed in the digital signal processing apparatus by detecting the command bit transmitted from the host computer (S200), and if the command bit detected in the step (S200) is '00' Digital signal processing apparatus Transmitting the command from the host computer to a bus latch unit (S210a) and storing the data necessary for the operation performed in the digital signal processing apparatus when the command bit detected in the step S200 is '01'. Transmitting the data from the host computer to a bus latch unit (S210b) and if the command bit detected in the step (S200) is '10', the digital signal processing apparatus transmits the completed data to the host computer. Instruction bits that comprise the step of transmitting from the digital signal processor for backup and storing in the bus latch unit (S210c) An analysis routine; 상기 명령어 비트 해석루틴에서 처리된 명령어 비트에 따라 디지탈 신호처리장치에 저장된 명령어 및 데이타를 처리하기 위한 시스템 인터럽트(Interrupt)를 발생시키는 단계(S300)와, 상기 단계(S300)에서 발생된 인터럽트 변수가 '0'일 경우 상기 단계(S210a)에서 저장된 명령어를 디지탈 신호처리장치에서 수행하기 위하여 명령어 수행 인터럽트를 발생시킨 후 상기 버스래치부에 저장된 명령어를 디지탈 신호처리장치의 메모리 블럭에 저장하는 단계(S310a)와, 상기 단계(S300)에서 발생된 인터럽트 변수가 '1'일 경우 상기 단계(S210b)에서 저장된 데이타를 디지탈 신호처리장치에서 수행하기 위하여 데이타 읽기 인터럽트(Data Read Interrupt)를 발생시킨 후 상기 버스래치부에 저장된 데이타를 디지탈 신호처리장치의 메모리 블럭에 저장하는 단계(S310b)와, 상기 단계(S300)에서 발생된 인터럽트 변수가 '2'일 경우 상기 단계(S210c)에서 저장된 디지탈 신호처리장치에서 처리된 데이타를 호스트 컴퓨터로 전송하기 위하여 데이타 쓰기 인터럽트(Data Write Interrupt)를 발생시킨 후 이 데이타를 호스트 컴퓨터에 전송하는 단계(S310c)와, 상기 단계(S310a)(S310b)에서 시스템 버스 비지 플래그(System Bus Busy Flag)가 비지(Busy) 상태이면 각각 단계(S310a)(S310b)를 반복하고, 아이들(Idle) 상태이면 종료하는 단계(S320a)와, 상기 단계(S310c)에서 호스트 버스 비지 플래그(Host Bus Busy Flag)가 비지(Busy) 상태이면 단계(S310c)를 반복하고, 아이들(Idle) 상태이면 종료하는 단계(S320c)를 포함하여 이루어지는 데이타 처리루틴을 구비하여 이루어지는 것을 특징으로 하는 자동제어용 디지탈 신호처리장치의 인터페이스 방법.Generating a system interrupt for processing a command and data stored in the digital signal processing device according to the command bit processed in the command bit interpreting routine (S300), and the interrupt variable generated in the step (S300) In case of '0', generating an instruction execution interrupt to execute the instruction stored in the step S210a in the digital signal processing apparatus, and then storing the instruction stored in the bus latch unit in a memory block of the digital signal processing apparatus (S310a). And, if the interrupt variable generated in the step (S300) is '1' and the bus after generating a data read interrupt (Data Read Interrupt) to perform the data stored in the step (S210b) in the digital signal processing device Storing the data stored in the latch unit in a memory block of the digital signal processing apparatus (S310b); If the interrupt variable generated in S300 is '2', the data write interrupt is generated after the data write interrupt is generated to transfer the data processed by the digital signal processing apparatus stored in the step S210c to the host computer. If the system bus busy flag is busy at step S310c and step S310a and step S310b, step S310a and step S310b are repeated. If the Idle state ends (S320a), and if the host bus busy flag is busy in step S310c, step S310c is repeated, and if the idle state is idle, An interface method of an automatic control digital signal processing apparatus, comprising: a data processing routine including a terminating step (S320c).
KR10-2000-0050517A 2000-08-29 2000-08-29 Digital Signal Processing Apparatus and it's Interfacing Method for Automatic Control KR100394246B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2000-0050517A KR100394246B1 (en) 2000-08-29 2000-08-29 Digital Signal Processing Apparatus and it's Interfacing Method for Automatic Control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2000-0050517A KR100394246B1 (en) 2000-08-29 2000-08-29 Digital Signal Processing Apparatus and it's Interfacing Method for Automatic Control

Publications (2)

Publication Number Publication Date
KR20000072323A true KR20000072323A (en) 2000-12-05
KR100394246B1 KR100394246B1 (en) 2003-08-09

Family

ID=19685936

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2000-0050517A KR100394246B1 (en) 2000-08-29 2000-08-29 Digital Signal Processing Apparatus and it's Interfacing Method for Automatic Control

Country Status (1)

Country Link
KR (1) KR100394246B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020010558A (en) * 2001-11-22 2002-02-04 (주)동명전자 DSP Based Data Acquisition System
KR20030021568A (en) * 2001-09-06 2003-03-15 (주) 아이브이콤 PCI Bus Controller for Parallel DSP Based on PCI Bus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2648588A1 (en) * 1989-06-20 1990-12-21 Commissariat Energie Atomique COUPLING SYSTEM WITH AN INTERFACE BETWEEN AT LEAST TWO ELECTRONIC DEVICES HAVING ACCESS BUSES OF DIFFERENT FORMAT
JP3105103B2 (en) * 1993-03-31 2000-10-30 マツダ株式会社 Adjustment device for electronic control unit
KR970011888B1 (en) * 1993-05-28 1997-07-18 인터내셔널 비지네스 머신즈 코포레이션 Bus-to-bus bridge for optimising data transfers between a system bus and a peripheral bus
US6079022A (en) * 1996-10-11 2000-06-20 Intel Corporation Method and apparatus for dynamically adjusting the clock speed of a bus depending on bus activity
KR20000065450A (en) * 1999-04-03 2000-11-15 구자홍 Bus Interface System and Bus Interface Method using the system
KR100367837B1 (en) * 2000-05-12 2003-01-10 바이코시스템 주식회사 Digital Signal Processing Apparatus for Automatic Control

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030021568A (en) * 2001-09-06 2003-03-15 (주) 아이브이콤 PCI Bus Controller for Parallel DSP Based on PCI Bus
KR20020010558A (en) * 2001-11-22 2002-02-04 (주)동명전자 DSP Based Data Acquisition System

Also Published As

Publication number Publication date
KR100394246B1 (en) 2003-08-09

Similar Documents

Publication Publication Date Title
JP4346853B2 (en) Electronic device and control method thereof
EP1389760B1 (en) Data transfer control system, program and data transfer control method
JP2516317B2 (en) Data processing system and method for loading digital signal processor.
US20060190238A1 (en) Methods and systems for managing a device
JP2012215861A (en) Audio data input device and output device
US5796705A (en) Enhanced parallel port adaptor for interfacing a PC to a CD-ROM driver
KR100394246B1 (en) Digital Signal Processing Apparatus and it&#39;s Interfacing Method for Automatic Control
KR20010062770A (en) Data transfer apparatus
US6289402B1 (en) Bidirectional data transfer protocol primarily controlled by a peripheral device
US6477177B1 (en) Multiple device access to serial data stream
US7424580B2 (en) Data transfer control device, electronic instrument, program and method of fabricating electronic instrument
US6883043B2 (en) Information processing apparatus incorporated in a control unit storing an authentication information and transmitting a command to request an access right when a first mode is set
JP2002176456A (en) Electronic device and information update method
JP2988879B2 (en) Bus converter
KR20010051352A (en) The isochronous transfer mode on a universal serial bus with error correction algorithms
KR100922812B1 (en) Method and system for controlling of peripherals
KR20050063939A (en) Direct memory access controller for updating data transmission size automatically from peripheral, and control method thereof
JPH09305532A (en) Method and device for transferring data
JP4485064B2 (en) Computer system bus architecture and related methods
JP2000112878A (en) Device and method for controlling timing of transfer request in data processor
KR930001925B1 (en) Interface circuit and its method between pc and compact disk player
KR100316738B1 (en) User interface device of remote controller in pc
KR0166876B1 (en) Device and method for converting interface of a cd-rom drive
JPS6230648B2 (en)
JPH02110632A (en) Interruption control device for microprocessor

Legal Events

Date Code Title Description
A201 Request for examination
G15R Request for early opening
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee