KR20020058419A - Smart media controller optimized on writing stream data - Google Patents

Smart media controller optimized on writing stream data Download PDF

Info

Publication number
KR20020058419A
KR20020058419A KR1020000086524A KR20000086524A KR20020058419A KR 20020058419 A KR20020058419 A KR 20020058419A KR 1020000086524 A KR1020000086524 A KR 1020000086524A KR 20000086524 A KR20000086524 A KR 20000086524A KR 20020058419 A KR20020058419 A KR 20020058419A
Authority
KR
South Korea
Prior art keywords
smart media
data
controller
media controller
media card
Prior art date
Application number
KR1020000086524A
Other languages
Korean (ko)
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 KR1020000086524A priority Critical patent/KR20020058419A/en
Publication of KR20020058419A publication Critical patent/KR20020058419A/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
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • 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/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1673Details of memory controller using buffers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/08Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers from or to individual record carriers, e.g. punched card, memory card, integrated circuit [IC] card or smart card

Abstract

PURPOSE: A smart media controller optimized in a stream data recording is provided to shorten a time desired for recording data by decreasing the generating number of control signals desired for recording data in a smart media card. CONSTITUTION: A register(511) responds to an instruction of an asynchronous response mode host controller, instructs a command for recording data in a smart media card, and stores the number of a continuous data records. A smart media controller unit(500) repeats a data recording process until a value set in the register(511) becomes '0' without generating an additional interrupt, controls a data buffer, and records data to the smart media card. A data buffer(520) responds to a command of the smart media controller(510) and transmits data from a main memory to the smart media card through a direct memory access block. Interface units(530,540) are provided for making the media controller(510) perform an interactive response with the asynchronous response mode host controller or a direct memory access controller.

Description

스트림 데이터 기록에 최적화된 스마트 미디어 컨트롤러{Smart media controller optimized on writing stream data}Smart media controller optimized on writing stream data}

본 발명은 스마트 미디어의 데이터를 기록하는 컨트롤러에 관한 것으로, 특히 스마트 미디어가 스마트 미디어 카드로 데이터를 기록하는 시간을 단축하기 위한 컨트롤러에 관한 것이다.The present invention relates to a controller for recording data of smart media, and more particularly, to a controller for shortening the time for recording data to a smart media card.

일반적으로, 스마트 미디어 카드는 플레쉬 메모리의 일종으로서, 상기 스마트 미디어 카드를 재생하는 스마트 미디어로 데이터를 전송하거나 매체로 부터 입력받은 데이터를 저장하는 기능을 가진 것을 말하며, 스마트 미디어는 상기 스마트 미디어 카드의 데이터를 읽거나 기록하는 장치를 말한다.In general, a smart media card is a kind of flash memory, and has a function of transmitting data to or storing data received from a smart media card for playing the smart media card. A device that reads or writes data.

상기 스마트 미디어는 상기 스마트 미디어 카드에서 인가된 데이터를 처리하는 CPU와 주메모리 그리고 스마트 미디어 카드로 데이터를 보내거나 읽어오는데 있어서, 데이터를 CPU를 거치지 않고 처리하는 DMA블럭과 상기 DMA블럭을 컨트롤 하는 DMA컨트롤 블럭으로 이루어 진다.The smart media is a CPU for processing data applied from the smart media card, a main memory, and a DMA block for processing data without passing through the CPU, and a DMA for controlling the DMA block. It consists of control blocks.

상기 스마트 미디어의 버스(bus)구조를 도 1을 참조하여 설명하면, 스마트 미디어내의 버스(bus)구조는 AMBA(Advanced microcontroller bus architecture)라고 불리는 버스 시스템을 사용하며, 고속으로 동작하는 중앙처리장치나 호스트 컨트롤러, 주메모리 컨트롤러, 직접 메모리 억세스 컨트롤러는 ASB라고 불리는 고속의 시스템 버스에 연결되고, 저속의 주변장치, 즉 상기의 스마트 미디어 컨트롤러와 같은 것은 APB라고 불리는 주변장치 버스에 연결되며 상기 고속으로 동작하는 버스와 저속으로 동작하는 버스는 ASB-TO-APB 브릿지로 연결되어 고속의 버스와 저속의 버스가 상호 데이터를 주고받을 수 있도록 구성되어 있다.Referring to FIG. 1, the bus structure of the smart media uses a bus system called an advanced microcontroller bus architecture (AMBA) and operates at a high speed. The controller, main memory controller, and direct memory access controller are connected to a high speed system bus called ASB, and a low speed peripheral, such as the smart media controller, is connected to a peripheral bus called APB and operated at high speed. Buses running at low speeds are connected by ASB-TO-APB bridges, allowing high-speed buses and low-speed buses to exchange data with each other.

구체적으로 설명하면, 도 1에 도시된 바와 같이 ASP 버스를 중심으로 ARMCPU(100)와 주메모리(200)가 연결되어 있고, 스마트 미디어 카드로 부터 입력 및 출력되는 데이터를 CPU를 통하지 않고 처리하는 DMA 블럭(300)과, 상기 DMA 블럭(300)과 스마트 미디어 컨트롤러부(500)간에 신호를 주고받을수 있도록 하는 DMA-컨트롤러 인터페이스(540)와, ARM 호스트 컨트롤러(400)와 스마트 미디어 컨트롤러부(500)간의 인터페이스를 담당하는 호스트-컨트롤러 인터페이스(530)와 상기 호스트 버스와 주변장치 버스를 연결하는 ASB-APB 브릿지(600)로 구성되어 있다.Specifically, as shown in FIG. 1, the ARMCPU 100 and the main memory 200 are connected around the ASP bus, and the DMA processes data input and output from the smart media card without using the CPU. Block 300, the DMA controller interface 540 for transmitting and receiving signals between the DMA block 300 and the smart media controller unit 500, the ARM host controller 400 and the smart media controller unit 500 It consists of a host-controller interface 530 that is responsible for the interface between the ASB-APB bridge 600 connecting the host bus and the peripheral bus.

AMBA버스 시스템으로 구성된 스마트 미디어와 스마트 미디어 카드에 있어서, 상기 스마트 미디어 카드는 휴대용 저장장치로서 개발되었으므로 데이터의 저장속도가 그다지 빠르지 못하며, 상기 AMBA버스 시스템은 상기 속도가 느린 주변장치와의 인터페이스를 위하여 개발된 것이므로, 스마트 미디어 카드와 스마트 미디어간에 있어서, 상기 스마트 미디어 카드로 부터 스마트 미디어로 데이터가 이동하는것, 즉 읽기 동작은 일반적인 스태틱(STATIC)램과 비슷한 속도를 가지나, 스마트 미디어가 스마트 미디어 카드로 데이터를 기록하는데 걸리는 시간은 상기 읽기 동작에 걸리는 시간보다 몇배나 많이 걸리는 단점이 있었다.In the smart media and smart media card composed of AMBA bus system, since the smart media card was developed as a portable storage device, the data storage speed is not very fast, and the AMBA bus system is designed to interface with the slow peripheral device. Since it was developed, the movement of data from the smart media card to the smart media between the smart media card and the smart media, that is, the reading operation has a speed similar to that of a general static RAM, but the smart media is connected to the smart media card. The time required to write data has a disadvantage that it takes several times more than the time required for the read operation.

상기한 종래의 스마트 미디어 컨트롤러의 문제점을 도 1과 도 2를 참조하여 자세히 설명하도록 한다.The problem of the conventional smart media controller will be described in detail with reference to FIGS. 1 and 2.

도 2는 종래의 스마트 미디어에 내장된 컨트롤러의 구성을 나타낸 것으로, 상기 스마트 미디어 컨트롤러는 ARM 호스트 컨트롤러의 지시에 응답하여, 스마트 카드에 데이터 기록을 하기위한 명령을 내리고, 데이터 버퍼를 컨트롤 하여 데이터를 기록하는 스마트 미디어 컨트롤러(510); 상기 스마트 컨트롤러(510)의 명령에응답하여 주메모리(200)로 부터 DMA 컨트롤러 블럭(300)을 거쳐 스마트 미디어 카드로 데이터를 전송하는 데이터 버퍼(520); 및 ARM 호스트 컨트롤러 또는 DMA 컨트롤러와 상호 응답하기 위한 인터페이스부(530, 540)로 이루어진다.2 illustrates a configuration of a controller embedded in a conventional smart media. The smart media controller in response to an instruction of an ARM host controller, issues a command to write data to a smart card, and controls a data buffer to control data. A smart media controller 510 for recording; A data buffer 520 for transmitting data from the main memory 200 to the smart media card via the DMA controller block 300 in response to a command of the smart controller 510; And interface units 530 and 540 for mutual response with the ARM host controller or the DMA controller.

도 1과 도 2를 참조하여 상기 스마트 미디어 컨트롤러의 동작을 상세히 살펴보도록 한다.The operation of the smart media controller will be described in detail with reference to FIGS. 1 and 2.

상기 스마트 미디어 컨트롤러에 의한 쓰기 과정을 살펴보면, 먼저 스마트 미디어 카드로 528 바이트 단위로된 데이터를 기록하기 위해서, AMR 호스트 컨트롤러(400)는 주메모리(200)로 부터 데이터를 받아올 시작 어드레스를 지정한 다음 상기 스마트 미디어 컨트롤러(510)로 상기 어드레스 값을 넘겨주고, 쓰기명령을 내린다.Looking at the writing process by the smart media controller, first, in order to write data in units of 528 bytes to the smart media card, the AMR host controller 400 designates a start address to receive data from the main memory 200. The address is passed to the smart media controller 510 and a write command is issued.

다음으로, 스마트 미디어 컨트롤러(510)는 상기 ARM 호스트 컨트롤러(100)로 부터 받은 어드레스와 쓰기명령에 따라, 스마트 미디어 카드를 향해 데이터를 기록하겠다는 신호를 보낸다.Next, the smart media controller 510 sends a signal to write data toward the smart media card according to the address and the write command received from the ARM host controller 100.

다음으로, 스마트 미디어 컨트롤러(510)는 DMA 컨트롤러 블럭(300)을 향하여 DMA 리퀘스트를 요청하여 데이터를 인가받아 스마트 미디어 카드로 보내는데, 스마트 미디어 내부의 컨트롤을 위해 일반적으로 사용되는 ARM7202 집적회로를 사용하는 경우, 약 82,000ns가 걸리며, 4바이트 단위의 데이터를 요구하여, 주메모리로 부터 DMA 블럭을 거쳐 여러번에 걸쳐 528 바이트의 데이터를 스마트 미디어 카드에 기록한다.Next, the smart media controller 510 requests a DMA request to the DMA controller block 300, receives the data, and sends the data to the smart media card, which uses an ARM7202 integrated circuit that is generally used for control of smart media. In this case, it takes about 82,000ns and requires 4 bytes of data, and writes 528 bytes of data to the smart media card several times from the main memory through the DMA block.

마지막으로, 스마트 미디어 카드에 기록이 끝나면 스마트 미디어 카드로 부터 데이터 기록이 끝났다는 신호인 READY신호가 스마트 미디어 컨트롤러(510)로 보내지며, 상기 스마트 미디어 컨트롤러(510)는 상기 ARM호스트 컨트롤러(400)로 데이터 기록이 끝났음을 알리는 인터럽트를 보내게 된다.Finally, when the recording is completed on the smart media card, a READY signal, which indicates that the data recording is completed, is sent from the smart media card to the smart media controller 510, and the smart media controller 510 is the ARM host controller 400. This will send an interrupt indicating that the data recording is complete.

상기 인터럽트 신호를 받은 ARM 호스트 컨트롤러(400)는 상기 쓰기 과정의 처음으로 되돌아가 데이터를 모두 기록할때 까지 반복하는데, 스마트 미디어 내부의 컨트롤을 위해 일반적으로 사용되는 ARM7202 집적회로를 사용하는 경우, 상기 발생된 인터럽트가 상기 ARM 호스트 컨트롤러(400)를 거쳐 처리되는데 컨트롤러 칩에따라 다소의 차이는 있으나 약 490,000ns가 걸리게 되며, 만약 8,000 바이트의 데이터를 스마트 미디어 카드로 기록한다고 할경우, 528바이트 단위로 기록하므로 15번의 DMA 리퀘스트와, 528 바이트 단위의 기록이 끝났다는 것을 알리는 14번의 인터럽트 발생이 있으므로, 상기 8,000 바이트를 기록하는데 걸리는 시간은 15 ×82,000 + 14 ×490,000 가 된다.The ARM host controller 400 receiving the interrupt signal repeats the process until it returns to the beginning of the writing process and writes all the data. When using the ARM7202 integrated circuit which is generally used for control in the smart media, The generated interrupt is processed through the ARM host controller 400, but it takes about 490,000 ns depending on the controller chip, and if 8,000 bytes of data are written to the smart media card, the unit is 528 bytes. Since there are 15 DMA requests for recording and 14 interrupts for notifying that the recording in 528 bytes has been completed, the time taken to record the 8,000 bytes becomes 15 x 82,000 + 14 x 490,000.

본 발명은 상기와 같은 종래 기술의 문제점을 해결하기 위하여 스마트 미디어 카드에 데이터가 기록되는데 소요되는 제어신호의 발생횟수를 줄이면서 데이터 기록에 드는 시간을 단축시키는 스마트 미디어 컨트롤러를 구현 하고자 한다.The present invention is to implement a smart media controller to reduce the time required for data recording while reducing the number of times the control signal is required to write data to the smart media card to solve the problems of the prior art as described above.

도 1은 일반적인 스마트 미디어의 버스 시스템 구조를 도시한 블럭 다이어 그램.1 is a block diagram showing a bus system structure of a general smart media.

도 2는 종래의 스마트 미디어 컨트롤러의 블럭 다이어 그램.2 is a block diagram of a conventional smart media controller.

도 3은 본 발명에 따른 스마트 미디어 컨트롤러의 블럭 다이어 그램.3 is a block diagram of a smart media controller in accordance with the present invention.

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

500 : 스마트 미디어 컨트롤러부 510 : 스마트 미디어 컨트롤러500: smart media controller 510: smart media controller

511 : 레지스터 512 : 기록완료 신호 입력부511: Register 512: Write completion signal input unit

520 : 데이터 버퍼 500 : 인터페이스부520: data buffer 500: interface unit

530 : 호스트-컨트롤러 인터페이스 540 : DMA-컨트롤러 인터페이스530: host-controller interface 540: DMA-controller interface

상기의 목적을 달성하기 위해서 본 발명에 의한 스마트 미디어 컨트롤러는비동기 응답모드 호스트 컨트롤러의 지시에 응답하여 스마트 카드에 데이터 기록을 하기위한 명령을 내리고, 데이터를 연속적으로 기록하는 횟수를 저장하는 레지스터를 구비하여, 상기 레지스터에 셋팅된 값이 0이 될때까지 인터럽트 없이 데이터 기록과정을 반복하고, 데이터 버퍼를 컨트롤 하여 스마트 미디어 카드로 데이터를 기록하는 스마트 미디어 컨트롤러부; 상기 스마트 미디어 컨트롤러의 명령에 응답하여 주메모리로 부터 직접 메모리 억세스 컨트롤러 블럭을 거쳐 스마트 미디어 카드로 데이터를 전송하는 데이터 버퍼; 및 상기 스마트 미디어 컨트롤러가 비동기 응답모드 호스트 컨트롤러 또는 직접 메모리 엑세스 컨트롤러와 상호 응답하기 위한 인터페이스부를 포함하여 이루어진다.In order to achieve the above object, the smart media controller according to the present invention is provided with a register for giving a command to write data to the smart card in response to an instruction of the asynchronous response mode host controller, and storing the number of times of continuous data recording. A smart media controller unit repeating the data writing process without interruption until the value set in the register becomes 0, and controlling the data buffer to write data to the smart media card; A data buffer for transmitting data from a main memory to a smart media card via a memory access controller block directly in response to a command of the smart media controller; And an interface unit for the smart media controller to respond to the asynchronous response mode host controller or the direct memory access controller.

이하 본 발명이 속하는 기술분야에서 통상의 지식을 가진자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 정도로 상세히 설명하기 위하여, 본 발명의 가장 바람직한 실시예를 첨부된 도면을 참조하여 설명하기로 한다.DETAILED DESCRIPTION Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings so that those skilled in the art can easily implement the technical idea of the present invention. .

도 3은 본 발명의 바람직한 실시예에 따른 스마트 미디어 컨트롤러의 블럭 다이어 그램으로, 본 발명의 스트림 데이터 쓰기 최적화된 스마트 미디어 컨트롤러는, 비동기 응답모드 호스트 컨트롤러(100)의 지시에 응답하여 스마트 미디어 카드에 데이터 기록을 하기위한 명령을 내리고, 데이터를 연속적으로 기록하는 횟수를 저장하는 레지스터(511)를 구비하여, 상기 레지스터(511)에 셋팅된 값이 0이 될때까지 별도의 인터럽트를 발생시키지 않으면서 데이터 기록과정을 반복하고, 데이터 버퍼를 컨트롤 하여 스마트 미디어 카드로 데이터를 기록하는 스마트 미디어 컨트롤러부(500); 상기 스마트 미디어 컨트롤러의 명령에 응답하여 주메모리(200)로 부터 직접 메모리 억세스 블럭(300)을 거쳐 스마트 미디어 카드로 데이터를 전송하는 데이터 버퍼(520); 및 상기 스마트 미디어 컨트롤러가(510) 비동기 응답모드 호스트 컨트롤러(400) 또는 직접 메모리 엑세스 컨트롤러와(300) 상호 응답하기 위한 인터페이스부(530, 540)를 포함하여 이루어진다.3 is a block diagram of a smart media controller according to a preferred embodiment of the present invention, in which the stream data write optimized smart media controller of the present invention is directed to the smart media card in response to an instruction of the asynchronous response mode host controller 100. It is provided with a register 511 which gives a command to write data and stores the number of times data is continuously written, so that data is not generated without generating an interrupt until the value set in the register 511 becomes 0. A smart media controller 500 for repeating the recording process and controlling the data buffer to record data to the smart media card; A data buffer 520 for transmitting data from the main memory 200 directly to the smart media card via the memory access block 300 in response to a command of the smart media controller; And an interface unit 530 or 540 for the smart media controller 510 to respond to the asynchronous response mode host controller 400 or the direct memory access controller 300.

구체적으로, 스마트 미디어 컨트롤러부(500)는, 호스트 컨트롤러 인터페이스(530)와 상호 응답하고, DMA컨트롤러 인터페이스(540)와 상호 응답하며, 스마트 미디어 카드와 8비트의 데이터 버스로 연결되고, 기록완료(READY) 신호를 인가받는 1비트의 제어선과, 읽기, 쓰기 명령을 스마트 미디어 카드로 전달하는 7비트의 제어버스를 구비하여 연결구성되어 있다.Specifically, the smart media controller unit 500 mutually responds to the host controller interface 530, mutually responds to the DMA controller interface 540, is connected to the smart media card by an 8-bit data bus, and is completed. A 1-bit control line for receiving a READY) signal and a 7-bit control bus for transmitting read and write commands to the smart media card are connected to each other.

데이터 버퍼는 4바이트로 구성되어, 상기 8비트의 데이터 버스를 통하여 스마트 미디어 카드와 상호 연결되며, 상기 스마트 미디어 컨트롤러로 부터 제어신호를 인가받도록 연결 구성되어 있다.The data buffer is composed of 4 bytes, interconnected with a smart media card through the 8-bit data bus, and connected to receive a control signal from the smart media controller.

외부 인터페이스부는 호스트-컨트롤러 인터페이스(530)를 통하여 상기 ARM CPU와 상호 응답하고, DMA-컨트롤러 인터페이스(540)를 통하여 DMA 컨트롤러(300)와 상호 응답하도록 연결구성되어 있다.The external interface unit is configured to mutually respond to the ARM CPU through the host-controller interface 530 and to mutually respond to the DMA controller 300 through the DMA-controller interface 540.

상기에 기술된 스마트 미디어 컨트롤러부의 동작을 도 1과 도 3을 통하여 상세히 설명하도록 한다.The operation of the smart media controller described above will be described in detail with reference to FIGS. 1 and 3.

상기 스트림 데이터 기록에 최적화된 스마트 미디어 컨트롤러에 의한 쓰기 과정을 살펴보면, 먼저 스마트 미디어 카드로 528 바이트 단위로된 데이터를 기록하기 위해서, AMR 호스트 컨트롤러(400)는 주메모리(200)로 부터 데이터를 받아올 시작 어드레스를 지정한 다음 상기 스마트 미디어 컨트롤러(510)로 상기 어드레스 값을 넘겨주고, 쓰기명령을 내리게 되며, 전체 데이터 크기에 따라 528 바이트를 단위로 하는 페이지를 상기 스마트 미디어 컨트롤러의 레지스터에 셋팅한다.Looking at the writing process by the smart media controller optimized for recording the stream data, in order to first write data in units of 528 bytes to the smart media card, the AMR host controller 400 receives data from the main memory 200. After specifying an all start address, the address is passed to the smart media controller 510, a write command is issued, and a page of 528 bytes is set in the register of the smart media controller according to the total data size.

만약 상기 스마트 미디어 컨트롤러(510)를 스마트 미디어 내부의 컨트롤을 위해 일반적으로 사용되는 ARM7202 집적회로를 사용하는 경우, 8,000 바이트의 데이터를 스마트 미디어 카드로 전송한다고 한다면 8,000 / 528 = 15 페이지가 되어 4비트 레지스터에 이진수 "1111"이 기록되게 된다.If the smart media controller 510 uses an ARM7202 integrated circuit, which is generally used for control inside the smart media, and transfers 8,000 bytes of data to the smart media card, 8,000 / 528 = 15 pages is 4 bits. The binary "1111" is written to the register.

여기서 528바이트의 데이터를 전송 할때마다, DMA 리퀘스트를 하게 된다.Whenever 528 bytes of data are sent, a DMA request is made.

다음으로, 스마트 미디어 컨트롤러(510)는 상기 ARM 호스트 컨트롤러(100)로 부터 받은 어드레스와 쓰기명령에 따라, 스마트 미디어 카드를 향해 데이터를 기록하겠다는 신호를 보낸다.Next, the smart media controller 510 sends a signal to write data toward the smart media card according to the address and the write command received from the ARM host controller 100.

다음으로, 스마트 미디어 컨트롤러(510)는 DMA 컨트롤러 블럭(300)을 향하여 DMA 리퀘스트를 요청하여 응답을 받는데 만약 ARM7202 컨트롤러를 쓰면, 약 82,000ns가 걸리며, 4바이트 단위의 데이터를 요구하여, 주메모리로 부터 DMA 블럭을 거쳐 여러번에 걸쳐 528 바이트의 데이터를 스마트 미디어 카드에 기록한다.Next, the smart media controller 510 requests a DMA request to the DMA controller block 300 and receives a response. If an ARM7202 controller is used, it takes about 82,000 ns and requests data of 4 bytes to the main memory. Writes 528 bytes of data to the smart media card several times through the DMA block.

다음으로 스마트 미디어 컨트롤러는 스마트 미디어 카드로부터의 기록 완료신호인 "READY"신호를 받아, 상기 스마트 미디어 컨트롤러(500)에 내장된 4비트 레지스터(511)의 값이 0인지 아닌지를 비교하여, 0이 아니면 레지스터 값에서 1을 빼고 다시 처음의 데이터 기록 과정을 수행한다.Next, the smart media controller receives the " READY " signal from the smart media card and compares whether or not the value of the 4-bit register 511 built in the smart media controller 500 is 0 or not. Otherwise, subtract 1 from the register value and perform the first data write process again.

마지막으로, 4비트 레지스터의 값이 0이되면 데이터의 기록이 끝났다는 인터럽트를 생성하게 된다.Finally, if the value of the 4-bit register reaches 0, it generates an interrupt indicating that the writing of data is complete.

상기에서 보듯이 동일한 8,000 바이트의 데이터를 기록하는데, 만약 ARM 7202 컨트롤러를 쓸 경우, 종래의 컨트롤러는 15 ×82,000 + 14 ×490,000ns(약 8ms)의 시간이 소요되었으나, 본 발명은 상기 데이터의 기록횟수를 저장한 레지스터를 씀으로서 15번의 DMA처리와 단 한번의 인터럽트만을 발생시키게 되므로, 15 ×82,000 + 490,000ns(약 1.7ms)의 시간이 소요되어, 스마트 미디어에서 스마트 미디어 카드로 데이터를 기록하는데 있어서 현저하게 시간이 감소함을 알수있다.As shown above, the same 8,000 bytes of data are recorded. If an ARM 7202 controller is used, the conventional controller took 15 x 82,000 + 14 x 490,000 ns (about 8 ms), but the present invention records the data. By writing the register that saves the number of times, it generates 15 DMA processing and only one interrupt, so it takes 15 × 82,000 + 490,000ns (about 1.7ms) to write data from smart media to smart media card. It can be seen that the time is significantly reduced.

이상에서 설명한 바와 같이 본 발명은 전술한 실시예 및 첨부된 도면에 의해 한정되는 것이 아니고, 본 발명이 기술적 사상을 벗어나지 않는 범위 내에서 여러 가지 치환, 변형 및 변경이 가능함이 본 발명이 속하는 기술분야에서 통상의 지식을 가진자에게 있어 명백할 것이다.As described above, the present invention is not limited to the above-described embodiments and the accompanying drawings, and the present invention may be variously substituted, modified, and changed without departing from the spirit of the present invention. It will be apparent to those of ordinary skill in the art.

본 발명은 스마트 미디어 컨트롤러에서 스마트 미디어 카드로 데이터를 기록하는데 있어서, 528바이트 마다 발생하던 제어신호의 횟수를 줄임으로서, 스트림 데이터를 기록하는데 소요되는 시간을 단축하였으며, 종래의 비동기 응답모드 시스템에 응용하여 데이터의 입출력 속도를 증가시킬수 있다.The present invention reduces the time required for recording stream data by reducing the number of control signals generated every 528 bytes in recording data from the smart media controller to the smart media card, and applied to a conventional asynchronous response mode system. This can increase the input / output speed of data.

Claims (3)

비동기 응답모드 호스트 컨트롤러의 지시에 응답하여 스마트 카드에 데이터 기록을 하기위한 명령을 내리고, 데이터를 연속적으로 기록하는 횟수를 기억하는 레지스터를 구비하여, 상기 레지스터에 셋팅된 값이 0이 될때까지 인터럽트 없이 데이터 기록과정을 반복하고, 데이터 버퍼를 컨트롤 하여 스마트 미디어 카드로 데이터를 기록하는 스마트 미디어 컨트롤러부;Asynchronous response mode In response to a command from the host controller, a command for writing data to the smart card is provided, and a register for storing the number of times data is continuously written is provided, without interruption until the value set in the register becomes 0. A smart media controller unit which repeats the data recording process and controls the data buffer to record data to the smart media card; 상기 스마트 미디어 컨트롤러의 명령에 응답하여 주메모리로 부터 직접 메모리 억세스 컨트롤러 블럭을 거쳐 스마트 미디어 카드로 데이터를 전송하는 데이터데이터 및Data data for transmitting data from the main memory to the smart media card via a memory access controller block in response to a command of the smart media controller; 상기 스마트 미디어 컨트롤러가 비동기 응답모드 호스트 컨트롤러 또는 직접 메모리 엑세스 컨트롤러와 상호 응답하기 위한 인터페이스부를 포함하여 이루어진 것을 특징으로 하는 쓰기 최적화된 스마트 미디어 컨트롤러.And the smart media controller comprises an interface unit for mutually responding with an asynchronous response mode host controller or a direct memory access controller. 제 1 항에 있어서,The method of claim 1, 상기 레지스터는,The register is, 직접 메모리 엑세스-컨트롤러 인터페이스의 제어와 스마트 미디어 카드로 기록이 완료되었음을 알리는 제어신호에 응답하고, 스마트 미디어 컨트롤러로 제어신호를 보내도록 연결 구성된 것을 특징으로 하는 쓰기 최적화된 스마트 미디어 컨트롤러.Write-optimized smart media controller, characterized in that it is configured to respond directly to the control of the memory access-controller interface and a control signal informing that the recording is completed by the smart media card, and to send a control signal to the smart media controller. 제 1 항의 쓰기 최적화된 스마트 미디어 컨트롤러부를 채용한 비동기 응답 시스템.An asynchronous response system employing the write optimized smart media controller of claim 1.
KR1020000086524A 2000-12-30 2000-12-30 Smart media controller optimized on writing stream data KR20020058419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000086524A KR20020058419A (en) 2000-12-30 2000-12-30 Smart media controller optimized on writing stream data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000086524A KR20020058419A (en) 2000-12-30 2000-12-30 Smart media controller optimized on writing stream data

Publications (1)

Publication Number Publication Date
KR20020058419A true KR20020058419A (en) 2002-07-12

Family

ID=27689517

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000086524A KR20020058419A (en) 2000-12-30 2000-12-30 Smart media controller optimized on writing stream data

Country Status (1)

Country Link
KR (1) KR20020058419A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100974914B1 (en) * 2008-10-06 2010-08-09 에스케이씨앤씨 주식회사 USB Data Transmission Method Using DMA Suitable for SMART Card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100974914B1 (en) * 2008-10-06 2010-08-09 에스케이씨앤씨 주식회사 USB Data Transmission Method Using DMA Suitable for SMART Card

Similar Documents

Publication Publication Date Title
US5640349A (en) Flash memory system
US5465338A (en) Disk drive system interface architecture employing state machines
US7640375B2 (en) DMA controller, method, information processing system, and program for transferring information blocks comprising data and descriptors
JP4373255B2 (en) Direct memory access control apparatus and method
KR20050083063A (en) Serial flash memory controller having reduced possession time of memory bus
US6584512B1 (en) Communication DMA device for freeing the data bus from the CPU and outputting divided data
US20030217218A1 (en) Interface for devices having different data bus widths and data transfer method using the interface
KR100222908B1 (en) Flash memory system
KR20020058419A (en) Smart media controller optimized on writing stream data
JPH0353363A (en) Bus architecture converting circuit
JPH02113488A (en) Magnetic bubble memory device
JPH01140276A (en) Portable recording medium processor
JPH0222748A (en) Non-volatile memory control circuit
KR100606698B1 (en) Interfacing apparatus
JPS61127026A (en) Optical disk controller
KR100259585B1 (en) Dma controller
JPH0937000A (en) Printer
JP3442099B2 (en) Data transfer storage device
JPH10254781A (en) Auxiliary storage device
JPS63292356A (en) Dma controller
JPS6194167A (en) Peripheral controller
JPH01177151A (en) Information processing system
JPH01169691A (en) Ic card
JPS61127025A (en) Optical disk controller
JPH02133854A (en) Dma controller capable of access to transfer enable/ unable memory

Legal Events

Date Code Title Description
N231 Notification of change of applicant
WITN Withdrawal due to no request for examination