KR20030060529A - System And Control Method Of Recording and Reproducing Compressed Music Files - Google Patents

System And Control Method Of Recording and Reproducing Compressed Music Files Download PDF

Info

Publication number
KR20030060529A
KR20030060529A KR1020020001265A KR20020001265A KR20030060529A KR 20030060529 A KR20030060529 A KR 20030060529A KR 1020020001265 A KR1020020001265 A KR 1020020001265A KR 20020001265 A KR20020001265 A KR 20020001265A KR 20030060529 A KR20030060529 A KR 20030060529A
Authority
KR
South Korea
Prior art keywords
data
signal line
music
compressed file
block
Prior art date
Application number
KR1020020001265A
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 KR1020020001265A priority Critical patent/KR20030060529A/en
Publication of KR20030060529A publication Critical patent/KR20030060529A/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/02Analogue recording or reproducing
    • G11B20/04Direct recording or reproducing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10222Improvement or modification of read or write signals clock-related aspects, e.g. phase or frequency adjustment or bit synchronisation
    • G11B20/10231Improvement or modification of read or write signals clock-related aspects, e.g. phase or frequency adjustment or bit synchronisation wherein an asynchronous, free-running clock is used; Interpolation of sampled signals
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/00007Time or data compression or expansion
    • G11B2020/00014Time or data compression or expansion the compressed signal being an audio signal
    • G11B2020/00057MPEG-1 or MPEG-2 audio layer III [MP3]

Abstract

PURPOSE: A device and a method for recording/reproducing compressed music files and a method for controlling the same are provided to employ the extended serial peripheral interface for realizing the control in connection with various external devices simply. CONSTITUTION: A device for recording/reproducing compressed music files includes a 9-pin connector for the connection with external devices and a micro-control unit(MCU;102), a recording unit for recording compressed music files and information thereon, a reproducing unit for reproducing the compressed music files, an incorporated Li-Polymer battery(107), a display unit and a key input part(111). The MCU is connected to the 9-pin connector via device control signal lines(CS) for device control signals to control the devices, device state display signal lines(BUSY) for signals displaying the ready state of the devices, data clock signal lines(CLK) for data clock signals to control the clocks of received or transmitted data, and data signal lines for bidirectional data.

Description

음악 압축파일 저장/재생 장치 및 제어방법 {System And Control Method Of Recording and Reproducing Compressed Music Files}System and Control Method of Recording and Reproducing Compressed Music Files}

본 발명은 음악 압축파일 저장/재생장치에 관한 것으로, 보다 상세하게는 확장 동기식 직렬 통신 방식(Extended Serial Peripheral Interface)을 채용하여 음악 압축파일을 저장하고 재생할 수 있는 음악 압축파일 저장/재생장치 및 제어방법에 관한 것이다.The present invention relates to a music compressed file storage / playback apparatus, and more particularly, to a music compressed file storage / playback apparatus capable of storing and playing back a music compressed file by employing an extended serial peripheral interface (Extended Serial Peripheral Interface). It is about a method.

최근 멀티미디어 기술의 발달에 따라 디지털 파일로서 MP3(MPEG1 Layer 3)형태의 음악 압축파일을 컴퓨터를 통하여 재생할 수 있는 소프트웨어 플레이어들이개발되었다. MP3방식은 컴팩트 디스크에 가까운 음질을 유지하면서 일반 컴팩트 디스크 방식의 50배로 데이터를 압축할 수 있으므로 고음질 및 고압축으로 인터넷을 통하여 전송할 수 있다는 장점으로 인하여, MP3 음악에 대한 수요가 증가함에 따라 하드웨어 플레이어인 개인 휴대장치로서 MP3 플레이어가 개발되었다.Recently, with the development of multimedia technology, software players have been developed that can play MP3 (MPEG1 Layer 3) music compressed files as digital files through a computer. MP3 can compress data as much as 50 times that of general compact discs while maintaining sound quality close to compact discs. Therefore, the MP3 system can be used as a hardware player as demand for MP3 music increases. MP3 players have been developed as personal portable devices.

이러한 MP3 플레이어는 저장 매체인 메모리에 MP3 음악을 파일 형태로 관리하며 내부의 동작을 제어하는 제어유니트를 구비한다. 또, MP3 플레이어는 직렬 포토 또는 병렬 포트를 구비하고 MP3 음악 데이터의 공급원으로서 예를 들면 컴퓨터로부터 MP3 음악 데이터를 다운로드 받기 위하여 직렬 케이블 또는 병렬 케이블을 통하여 상호 통신하는 기능을 가지고 있다.The MP3 player manages MP3 music in the form of a file in a memory, which is a storage medium, and has a control unit for controlling internal operations. In addition, the MP3 player has a serial port or parallel port and has a function of communicating with each other via a serial cable or a parallel cable as a source of MP3 music data, for example, to download MP3 music data from a computer.

이러한 음악 압축파일 저장/재생장치는 이러한 음악 압축파일 저장/재생장치는 일반적으로 데이터 전송에 있어 복잡한 전송 방식과 각각의 다른 전송 방식들의 차이로 인한 호환성 부족 등의 문제를 가지고 있고, 기타의 외부 장치들과의 인터페이스가 고정되어 있어 다양한 기기 응용 및 접목이 어려운 문제점이 있다. 또한 메모리의 임의 착탈 및 복사 등에 의한 불법적 음원 복사 등의 저작권 문제가 제기되고 있다.The music compressed file storage / playback apparatus has such a problem that the music compressed file storage / playback apparatus has a problem such as lack of compatibility due to the difference between complicated transmission methods and different transmission methods in data transmission, and other external devices. Since the interface with them is fixed, it is difficult to apply and apply various devices. In addition, copyright issues such as illegal sound source copying due to random detachment and copying of memory have been raised.

본 발명은 상기한 종래의 문제점을 해결하기 위해 안출된 것으로, 확장 동기식 직렬 통신 방식을 적용하여, 기존의 방식보다 간편하게 다양한 외부 장치들과의 제어가 가능하도록 한 음악 압축파일 저장/재생장치 및 제어방법을 제공하고자 함에 그 주 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and by applying an extended synchronous serial communication method, a music compressed file storage / playback device and control which makes it possible to control various external devices more easily than the conventional method. The main purpose is to provide a method.

본 발명의 다른 목적은 저비용의 고속의 데이터 쓰기 구조를 가지고 있는 확장 동기식 직렬 통신 방식의 음악 압축파일 저장/재생장치 및 제어방법을 제공하고자 함에 있다.Another object of the present invention is to provide an apparatus and a control method of a music compressed file storage / playback in an extended synchronous serial communication method having a low-cost, high-speed data writing structure.

본 발명의 또 다른 목적은 2개의 내장 메모리를 사용하여 메모리를 조각들 없이 최적으로 사용할 수 있도록 하는 확장 동기식 직렬 통신 방식의 음악 압축파일 저장/재생장치 및 제어방법을 제공하고자 함에 있다.Another object of the present invention is to provide an apparatus and a control method for storing / reproducing music compressed files of an extended synchronous serial communication method using two internal memories to optimally use the memory without fragments.

본 발명의 또 다른 목적은 메모리와 각각 구성품들이 물리적으로 분리되지 않도록 하여 데이터의 보안을 향상시킨 확장 동기식 직렬 통신 방식의 음악 압축파일 저장/재생장치 및 제어방법을 제공하고자 함에 있다.Another object of the present invention is to provide an apparatus and a control method for storing / reproducing music compressed files of an extended synchronous serial communication method, which improves security of data by preventing physical separation between the memory and the components.

본 발명의 또 다른 목적은 제어장치(MCU)의 성능을 최적화하기 위한 파일 형태를 구성하여 생산원가의 절감 및 생산시의 부품의 수를 줄일 수 있는 확장 동기식 직렬 통신 방식의 음악 압축파일 저장/재생장치 및 제어방법을 제공하고자 함에 있다.Another object of the present invention is to configure the file type for optimizing the performance of the control unit (MCU) to save / play music compressed files of the extended synchronous serial communication method that can reduce the production cost and the number of parts during production An object of the present invention is to provide an apparatus and a control method.

상기와 같은 목적을 달성하기 위하여 본 발명의 바람직한 실시예에 따른 음악 압축파일 저장/재생장치는, 상기 외부 장치와의 접속을 위한 접속수단과; 상기 음악 압축파일 및 그 정보를 저장하기 위한 저장수단과; 상기 저장된 음악 압축 파일을 재생하기 위한 재생수단과; 장치를 제어하기 위한 장치 제어신호가 흐르는 장치제어신호선과; 장치가 동작할 준비가 되었음을 표시하기 위한 장치 준비상태 표시 신호가 흐르는 장치 준비상태 표시신호선과, 전송 및 수신되는 데이터의 클록을 맞추기 위한 데이터 클록신호가 흐르는 데이터 클록신호선 및, 양방향으로 데이터흐르는 데이터신호선을 통해서 상기 접속수단과 연결되어, 음악 압축파일을 저장 및 재생을 제어하는 제어수단을 포함하여 구성된다.In order to achieve the above object, a music compressed file storage / playback apparatus according to a preferred embodiment of the present invention includes: connection means for connection with the external device; Storage means for storing the music compressed file and its information; Reproducing means for reproducing the stored music compressed file; A device control signal line through which a device control signal for controlling the device flows; Device ready display signal line through which device ready status indication signal flows to indicate that the device is ready to operate, data clock signal line through which data clock signal flows to clock data transmitted and received, and data signal line flowing data in both directions Is connected to the connecting means through, and comprises a control means for controlling the storage and playback of the music compressed file.

상기와 같은 목적을 달성하기 위하여 본 발명의 바람직한 실시예에 따른 음악 압축파일 저장/재생장치에 있어서 음악 압축파일의 기록 및 재생을 위한 데이터 입출력 제어방법은, 장치를 제어하기 위한 장치 제어신호가 흐르는 장치제어신호선과, 장치가 동작할 준비가 되었음을 표시하기 위한 장치 준비상태 표시 신호가 흐르는 장치 준비상태 표시신호선과, 전송 및 수신되는 데이터의 클록을 맞추기 위한 데이터 클록신호가 흐르는 데이터 클록신호선과, 양방향으로 데이터 흐르는 데이터신호선을 구비하고서, 외부 장치와 데이터의 전송을 수행하여 상기 외부 장치로부터 디지털 음악 압축파일을 다운로드받아 저장하고 이 저장된 음악 압축파일을 재생하는 음악 압축파일 저장/재생장치에 있어서; 상기 장치 제어 신호선의 로우레벨 전환을 검출하는 제 1단계와; 상기 제 1단계에서 로우레벨 전환의 검출시 1바이트 클럭주기 동안 상기 장치 준비 상태 표시 신호선을 로우레벨로 만드는 제 2단계와; 상기 데이터 클록신호선이 로우레벨 상태로 진행할 때에 상기 데이터 신호선을 통해 데이터의 입출력을 수행하는 제 3단계와; 상기 장치 준비 상태 표시 신호선의 하이레벨로의 전환을 확인하는 제 4단계와; 상기 제 4단계에서 하이레벨 전환의 확인시 상기 장치 제어 신호선의 하이레벨 전환을 확인하는 제 5단계와; 상기 제 5단계에서 하이레벨의 전환이 확인되지 않은 경우, 상기 제 2단계 내지 제 5단계를 반복하는 제 6단계와; 상기 제 5단계에서 하이레벨의 전환이 확인된 경우, 상기 데이터 신호선을 통해 데이터의 입출력을 종료하는 단계를 포함하여 이루어진다.In order to achieve the above object, a data input / output control method for recording and reproducing a music compressed file in a music compressed file storage / playback apparatus according to a preferred embodiment of the present invention includes a device control signal for controlling the device. A device control signal line, a device ready state display signal line through which a device ready state indication signal flows to indicate that the device is ready for operation, a data clock signal line through which a data clock signal for clocking data to be transmitted and received flows, and bidirectional; A music compressed file storage / reproducing apparatus, comprising: a data signal line having data flowing therethrough, for transferring data with an external device, downloading and storing a digital music compressed file from the external device, and reproducing the stored music compressed file; Detecting a low level switching of the device control signal line; A second step of bringing the device ready state indication signal line to a low level during a one-byte clock period upon detecting a low level transition in the first step; A third step of performing input / output of data through the data signal line when the data clock signal line advances to a low level state; A fourth step of confirming switching of the device ready status indication signal line to a high level; A fifth step of confirming the high level switch of the device control signal line when the high level switch is confirmed in the fourth step; A sixth step of repeating the second to fifth steps when the switching of the high level is not confirmed in the fifth step; If the switching of the high level is confirmed in the fifth step, the step of ending the input and output of data through the data signal line.

도 1은 본 발명에 따른 음악 압축파일 저장/재생장치의 전체적인 구성 블록도,1 is a block diagram of an overall configuration of a music compressed file storage / playback apparatus according to the present invention;

도 2는 본 발명에 따른 음악 압축파일 저장/재생장치에서의 외부 접속부를 설명하기 위한 도면,2 is a view for explaining an external connection in the music compressed file storage / playback apparatus according to the present invention;

도 3은 본 발명에 따른 음악 압축파일 저장/재생장치에서의 제어장치의 구성을 도시한 블록도,3 is a block diagram showing the configuration of a control device in a music compressed file storage / playback apparatus according to the present invention;

도 4는 본 발명에 따른 음악 압축파일 저장/재생장치에서 메모리 주소 지정 방법을 설명하기 위한 도면,4 is a view for explaining a memory addressing method in a music compressed file storage / playback apparatus according to the present invention;

도 5 및 도 6은 본 발명에 따른 음악 압축파일 저장/재생장치에서 확장 동기식 직렬 전송방식에 의한 신호 타이밍도,5 and 6 are signal timing diagrams of an extended synchronous serial transmission method in a music compressed file storage / playback apparatus according to the present invention;

도 7은 본 발명에 따른 음악 압축파일 저장/재생장치에서 확장 동기식 직렬 전송의 시스템 흐름도,7 is a system flowchart of extended synchronous serial transmission in a music compressed file storage / playback apparatus according to the present invention;

도 8은 도 7의 직렬데이터 읽기 단계(A)의 상세 흐름도,8 is a detailed flowchart of the serial data reading step A of FIG.

도 9는 도 7의 직렬데이터 쓰기 단계(B)의 상세 흐름도,9 is a detailed flowchart of the serial data writing step (B) of FIG. 7;

도 10 내지 도 16은 본 발명에 따른 음악 압축파일 저장/재생장치에서의 메모리 구조 및 운영을 설명하기 위한 도면,10 to 16 is a view for explaining the memory structure and operation in the music compressed file storage / playback apparatus according to the present invention,

도 17 내지 도 21은 본 발명에 따른 음악 압축파일 저장/재생장치에서의 시스템 운영 흐름도.17 to 21 are flowcharts illustrating a system operation in a music compressed file storage / playback apparatus according to the present invention.

※ 도면의 주요부분에 대한 부호의 설명※ Explanation of code for main part of drawing

102 : 제어유니트 103,104 : 낸드형 플래시 메모리102: control unit 103,104: NAND flash memory

105 : 디코더 106 : 디지털/아날로그변환기105: decoder 106: digital / analog converter

107 : 배터리 108 : 액정디스플레이 구동기107: battery 108: liquid crystal display driver

109 : 액정 디스플레이 110 : 정보 저장부109: liquid crystal display 110: information storage unit

111 : 키입력부111: key input unit

이하, 본 발명의 실시예에 따른 음악 압축파일 저장/재생장치 및 제어방법에 대하여 첨부된 도면을 참조하여 설명하면 다음과 같다.Hereinafter, a music compression file storage / playback apparatus and a control method according to an embodiment of the present invention will be described with reference to the accompanying drawings.

먼저, 본 발명에 따른 음악 압축파일 저장/재생장치의 전체 시스템 구성에 대하여 도 1 및 도 2를 참조하여 설명한다.First, the overall system configuration of the music compressed file storage / playback apparatus according to the present invention will be described with reference to Figs.

도 1은 본 발명에 따른 음악 압축파일 저장/재생장치의 전체 구성 블록도이다. 본 발명의 음악 압축파일 저장/재생장치는 9핀 커넥터와 제어유니트(102), 저장유니트, 재생유니트, 내장형 리듐-폴리머(Li-Polymer) 배터리(107), 디스플레이 유니트 및 키입력부(111)로 구성된다.1 is a block diagram of an overall configuration of a music compressed file storage / playback apparatus according to the present invention. The music compressed file storage / playback apparatus of the present invention comprises a 9-pin connector, a control unit 102, a storage unit, a playback unit, a built-in lithium polymer (Li-Polymer) battery 107, a display unit, and a key input unit 111. It is composed.

상기 9핀 커넥터는 내부에 확장 동기식 직렬 전송 통신선(100)(CS,BUSY,CLK,DIO)과, 전원신호선(PWR), 배터리신호선(BAT), 2개의 오디오출력선[Audio output(R), Audio output(L)] 및 접지선(GND)을 포함하여 구성된다. 여기서, 상기 확장 동기식 직렬 전송 통신선(100)은 장치제어신호선(CS), 장치준비상태표시신호선(BUSY), 데이터클록신호선(CLK) 및 양방향 데이터신호선(DIO)으로 구성된다.The 9-pin connector has an extended synchronous serial transmission communication line 100 (CS, BUSY, CLK, DIO), a power signal line (PWR), a battery signal line (BAT), two audio output lines (Audio output (R), Audio output (L)] and ground line (GND). The extended synchronous serial transmission communication line 100 includes a device control signal line CS, a device ready state display signal line BUSY, a data clock signal line CLK, and a bidirectional data signal line DIO.

상기 제어유니트(Micro Control Unit; MCU)(102)는 장치의 전체적인 제어를 담당하는 것으로, 상기 9핀 커넥터와는 상기 확장 동기식 직렬 전송 통신선(100)을 통해서 연결되어 있다. 상기 저장유니트는 음악 압축파일이 저장되는 2개의 낸드형(NAND Type) 플래시 메모리(103)(104)와, 시스템의 상태 및 곡정보를 기억하는 정보 저장부(E2PROM)(110)로 구성된다.The control unit (Micro Control Unit (MCU)) 102 is responsible for the overall control of the device, and is connected to the 9-pin connector through the expansion synchronous serial transmission communication line 100. The storage unit is composed of two NAND type flash memories 103 and 104 in which a music compressed file is stored, and an information storage unit (E2PROM) 110 for storing state and song information of the system.

상기 재생유니트는 상기 제어유니트(102)의 제어에 따라 상기 메모리(103)(104)에 저장된 음악 압축파일을 디코딩하는 MP3(MEPG1 Layer 3) 디코더(105)와, 상기 MP3 디코더(105)에서 디코딩된 음악 디지털 데이터를 아날로그 데이터로 변환하여 출력하는 디지털/아날로그 변환기(DAC)(106)로 구성된다.The playback unit includes an MP3 (MEPG1 Layer 3) decoder 105 for decoding the music compressed file stored in the memory 103 and 104 under the control of the control unit 102, and the MP3 decoder 105. And digital to analog converter (DAC) 106 for converting the converted music digital data into analog data and outputting the same.

상기 디스플레이유니트는 액정디스플레이(LCD)(109)와, 상기 제어유니트(102)의 제어에 따라 상기 액정디스플레이(109)를 구동하는 구동 드라이버(108)로 구성된다.The display unit includes a liquid crystal display (LCD) 109 and a drive driver 108 for driving the liquid crystal display 109 according to the control of the control unit 102.

상기 9핀 일체형 커넥터는 도 2에 도시한 바와 같이 디지털/아날로그변환기(106)로부터 스테레오 출력 오디오 R, L의 오디오 신호선(Audio R, Audio L), 배터리(107)와 연결되는 배터리 신호선(BAT), 전체 시스템에 전원으로 공급하는 LDO(Low Drop Regulator)(300)에 연결되는 전원신호선(PWR), 그리고 제어유니트(MCU)(102)의 인터페이스(MCU Interface)(301)와 연결되는 신호선들(BUSY, DIO, CLK, CS)을 외부 장치와 연결시키는 역할을 담당한다. 상기 신호선들(BUSY, DIO, CLK, CS)은 확장형 동기식 직렬 전송 방식으로 구현되다. 배터리신호선(BAT)과 전원신호선(PWR)을 연결함으로써 시스템에 전력을 공급하는 구조를 구성한다.As shown in FIG. 2, the 9-pin integrated connector has a battery signal line BAT connected to the audio signal lines Audio R and Audio L of the stereo output audio R and L and the battery 107 from the digital / analog converter 106. , A power signal line (PWR) connected to a low drop regulator (LDO) 300 that supplies power to the entire system, and signal lines connected to an interface (MCU Interface) 301 of a control unit (MCU) 102 ( It is responsible for connecting BUSY, DIO, CLK, CS) with external devices. The signal lines BUSY, DIO, CLK, and CS are implemented by an extended synchronous serial transmission scheme. The battery signal line BAT and the power signal line PWR are connected to form a structure for supplying power to the system.

다음으로, 본 발명에 따른 압축파일 저장/재생장치의 시스템 운영 요부인 제어장치에 대하여 도 3을 참조하여 설명한다.Next, a control device which is a system operation essential part of the compressed file storage / reproducing apparatus according to the present invention will be described with reference to FIG.

본 장치의 제어유니트(MCU)(102)는 소프트웨어 방식으로 구현되는 동기식 직렬 전송 제어장치(200)와, 하드웨어적으로 구성되는 직렬 전송 제어장치(201)를 포함하고 있다. 장치(200)(201)는 신호선(CLK)(DIO)에 의하여 직접 연결되어 있고, 이 신호선(CLK)(DIO)을 통해 직렬 전송이 가능한다. 시스템 비지 제어부(202)는 시스템의 준비상태(Ready state)를 신호선(BUSY)을 통해 출력한다. ISR 초기화 제어부(204)는 ISR(Interrupt Service Routine)부로 구성되어, 신호선(CS)이 로우레벨(Low)상태로 변경되면, 제어부(200,201, 그리고 202)를 통해 직렬 전송 장치를 작동하는 역할을 한다. 디코더 DAC 인터페이스 제어부(203)는 DAC(디지털/아날로그변환기) 제어신호(D_READY)와 뮤트(MUTE) 신호선을 통하여 디코더(105)를 제어하는데, DAC 제어신호(D_READY)는 디코더(105)에서 디코딩할 데이터를 요청하는 신호이고, 뮤트(MUTE)신호선은 DAC(106)로부터 출력되는 출력을 끊는 역할을 한다. 본 장치의 제어유니트(102)는 명령어 해독기(205)를 통해, 소프트웨어 직렬 전송장치(200)에서 들어오는 데이터를 해독하는 역할을 수행한다. 이 해독에 따라 데이터 버퍼(207)와 메모리 주소지정 제어부(206), 그리고 I2C 통신을 수행하는 I2C 인터페이스 제어부(209)를 각각 제어할 수 있다. 또한 본 장치의 제어유니트는 내부 제어 시스템(207)과 LCD 구동인터페이스(208)를 포함하여 구성된다.The control unit (MCU) 102 of the apparatus includes a synchronous serial transmission control apparatus 200 implemented in a software manner and a serial transmission control apparatus 201 configured in hardware. The apparatus 200, 201 is directly connected by the signal line CLK (DIO), and serial transmission is possible through the signal line CLK (DIO). The system busy control unit 202 outputs a ready state of the system through the signal line BUSY. The ISR initialization control unit 204 is configured as an interrupt service routine (ISR) unit, and when the signal line CS is changed to a low level state, the ISR initialization control unit 204 serves to operate the serial transmission device through the control units 200, 201, and 202. . The decoder DAC interface control unit 203 controls the decoder 105 through a DAC (digital / analog converter) control signal D_READY and a mute signal line. The DAC control signal D_READY is decoded by the decoder 105. The signal requesting data, and the MUTE signal line serves to cut off the output from the DAC 106. The control unit 102 of the device decrypts data coming from the software serial transmission device 200 via the command decoder 205. According to this decryption, the data buffer 207, the memory addressing control unit 206, and the I2C interface control unit 209 performing I2C communication can be controlled. The control unit of the apparatus also includes an internal control system 207 and an LCD drive interface 208.

다음으로, 본 발명에 따른 압축파일 저장/재생장치에서 메모리 주소 지정에 대하여 도 4를 참조하여 설명한다.Next, a memory address designation in the compressed file storage / playback apparatus according to the present invention will be described with reference to FIG.

본 장치는 NAND형 플래시 메모리를 2개까지 내장할 수 있다. 낸드형 플래시메모리에서 페이지(Page) 변수 300은 0~527 오프셋(offset)으로 1페이지를 구성하고, 32개의 페이지는 1블록(301)을 구성한다. 이 구성에서 페이지 변수 300로서 2바이트를 사용하면 최대 가능한 페이지 300은 65536*528=34603008Byte이므로 32Mbyte 이상의 낸드형 플래시 메모리를 2Byte의 페이지 변수 300만으로 표현할 수 없다. 2Byte의 블록변수 301은 1107279360Byte를 지정할 수 있다. 페이지=블록*32의 관계를 통해 페이지 변수 300으로 0~34603008Byte의 하위 주소 302를 지정하고, 블록변수 301을 통해 나머지 34603008Byte~1107279360Byte의 상위 주소 303을 지정한다. 이 방식은 2Byte의 변수 연산만으로 최대 1107279360Byte 크기의 논리적 주소를 지정할 수 있고, 4Byte 연산이 불가능한 부분의 저가의 8Bit급 MCU에 논리적으로 대용량 메모리를 지정할 수 있다.The device can contain up to two NAND-type flash memories. In the NAND flash memory, the page variable 300 constitutes one page with an offset of 0 to 527, and 32 pages constitute one block 301. In this configuration, if two bytes are used as the page variable 300, the maximum possible page 300 is 65536 * 528 = 34603008Byte. Therefore, NAND flash memory of 32 Mbytes or more cannot be represented with only the page variable 300 of 2 bytes. The block variable 301 of 2 bytes can specify 1107279360Byte. The lower address 302 of 0 ~ 34603008Byte is designated as the page variable 300 through the relationship of page = block * 32, and the upper address 303 of the remaining 34603008Byte ~ 1107279360Byte is designated through the block variable 301. This method can assign a logical address of up to 1107279360Byte size by only 2Byte variable operation, and logically designate large memory to low-cost 8Bit MCU where 4Byte operation is impossible.

따라서, 본 장치는 각각의 페이지 인덱스로 32Mbyte를 지정하며, 블록 인덱스로 논리적으로 1.1Gbyte까지 지정할 수 있어, 두 개의 메모리는 각각 550Mbyte 크기의 메모리를 사용할 수 있다.Accordingly, the apparatus designates 32 Mbytes as each page index and logically up to 1.1 Gbytes as the block index, so that two memories may each use 550 Mbytes of memory.

다음으로, 본 발명에 따른 압축파일 저장/재생장치의 확장 동기식 직렬 전송 방식에 대하여 도 5 ~ 도 9를 참조하여 설명한다.Next, the extended synchronous serial transmission method of the compressed file storage / playback apparatus according to the present invention will be described with reference to FIGS.

본 장치에 적용한 확장 직렬 전송 방식은 도 5에 도시한 바와 같이 장치 제어 신호선(CS), 장치 준비 상태 표시 신호선(BUSY), 전송 및 수신 데이터 클록신호선(CLK), 양방향 데이터 신호선(DIO)으로 구성된다. 장치 제어신호선(CS)이 T100에서 로우(Low)레벨 상태로 진행하면, 본 장치는 제어장치(102; MCU)에 의해서 장치준비 상태 신호선(BUSY)을 T101에서 로우(Low)레벨 상태로 만든다. T102에서 데이터 클록신호선(CLK)이 로우레벨 상태로 진행하면, T103 지점에서 양방향 데이터 신호선(DIO)을 통해 데이타 출력시 및 입력시 해당 데이터의 최상위비트(Most Significant Bit; MSB) 데이터를 T104에서 출력 또는 입력한다. T105에서 T106까지의 순서는 1 바이트 데이터의 최상위비트(MSB)에서 최하위비트(Least Significant Bit; LSB)로 순차적으로 입출력한다. 모든 데이터가 출력된 후 T107 시점에서 데이터 클록신호선(CLK)은 하이(High)레벨 상태로 진행하여 로우 액티브(Low active) 상태로 지정되어 있고, 입력이 완료되면 T108지점에서 장치 준비 상태 표시 신호선(BUSY)은 하이(High)레벨 상태로 진행하여 더 이상의 데이터 입력을 중지한다. T109시점에서 장치 제어 신호선(CS)이 하이레벨이면 더 이상의 데이터 송수신은 중단된다.The extended serial transmission method applied to this apparatus is composed of a device control signal line CS, a device ready state display signal line BUSY, a transmit and receive data clock signal line CLK, and a bidirectional data signal line DIO as shown in FIG. do. When the device control signal line CS proceeds to a low level state at T100, the device brings the device ready state signal line BUSY to a low level state at T101 by the controller 102 (MCU). When the data clock signal line CLK proceeds to the low level state at T102, the most significant bit (MSB) data of the corresponding data is output at T104 at the point of time T103 through the bidirectional data signal line DIO. Or enter The order of T105 to T106 is input / output sequentially from the most significant bit (MSB) of the 1 byte data to the least significant bit (Least Significant Bit). After all data is output, the data clock signal line CLK proceeds to the high level state at the time T107 and is designated as the low active state. BUSY goes to the high level and stops further data input. If the device control signal line CS is at the high level at time T109, further data transmission and reception are stopped.

기본 1Byte 송수신 방법으로 도 6에 도시한 바와 같이 T200에서 장치 준비 상태 신호선(CS)이 로우레벨이면 일련의 데이터 송수신이 진행되는데, T201은 기본 명령어 데이터로 본 장치로 수신되는 첫번째 1바이트 데이터로, 명령어 해독기(205; 도3 참조)로 해석된 후 명령어에 따라 T202부터 데이터 송수신이 이루어진다. 데이터 송수신은 T203지점에서 완료되며, 각각의 바이트가 전송 구간에서 T204의 장치 준비 상태 표시 신호선(BUSY)이 로우레벨이면 다음 바이트의 송수신을 진행한다.As a basic 1 byte transmission and reception method, as shown in FIG. 6, when the device ready state signal line CS is at a low level, a series of data transmission and reception proceeds. T201 is the first 1 byte data received by the device as basic command data. After the data is interpreted by the command decoder 205 (see FIG. 3), data transmission and reception is performed from T202 according to the command. Data transmission and reception is completed at the point T203, and if each byte is the low-level device ready status indication signal line BUSY in the transmission interval, the next byte is transmitted and received.

본 발명에 따른 장치에 있어서 확장 동기식 직렬 전송의 시스템 흐름을 도 7을 참조하여 설명하면 다음과 같다. 먼저, 장치 제어 신호선(CS)의 로우레벨 전환이 검출되면 단계 S200에서 제어유니트(102)는 장치 준비 상태 표시 신호선(BUSY)을 로우레벨로 만든다. 제어유니트(102)는 단계 S201에서 전송 및 수신 데이터 클록신호선(CLK)과 양방향 데이터 신호선(DIO)으로부터 데이터를 읽어 들인 후, 단계 S202에서 장치 준비 상태 표시 신호선(BUSY)을 하이레벨로 만든다. 제어유니트(102)는 단계 S203에서 상기 읽어들인 데이터가 명령어인지를 판단하고, 단계 S204에서 해당 명령어를 해독한다. 명령어에 따라 정의된 방법으로 단계 S205에서 다음 데이터가 필요한지를 판단한다. 제어유니트(102)는 단계 S206에서 데이터 쓰기 및 읽기를 결정한 후, 데이터 읽기로 선택되면 단계 S207에서 장치 준비 상태 표시 신호선(BUSY)을 로우레벨로 만든 후 전송 및 수신 데이터 클록신호선(CLK)과 양방향 데이터 신호선(DIO)으로부터 데이터를 수신하고, 그후 장치 준비 상태 표시 신호선(BUSY)을 하이레벨로 만든 후 단계 S210에서 다음 데이터의 읽기 쓰기를 결정한다. 단계 S206에서 다음 데이터의 쓰기이면 제어유니트(102)는 장치 준비 상태 표시 신호선(BUSY)을 로우레벨로 만든 후, 단계 S212에서 전송 및 수신 데이터 클록신호선(CLK)과 양방향 데이터 신호선(DIO)을 이용하여 데이터 쓰기를 실행하고, 이 실행이 완료되면 단계 S123에서 장치 준비 상태 표시 신호선(BUSY)을 하이레벨로 만든다. 다음으로 제어유니트(102)는 단계 S214에서 다음 읽기 및 쓰기 상태가 더 필요한지를 판단한 후, 단계 S204를 반복적으로 수행한다. 상기한 단계 S210과 S214에서 제어유니트(102)는 장치 제어 신호선(CS)이 로우레벨인지를 판단하고, 장치 제어 신호선(CS)이 하이레벨이면, 더이상의 데이터 송수신이 없음을 의미한다.The system flow of the extended synchronous serial transmission in the apparatus according to the present invention will be described with reference to FIG. First, when the low level change of the device control signal line CS is detected, the control unit 102 makes the device ready state display signal line BUSY low level in step S200. The control unit 102 reads data from the transmit and receive data clock signal line CLK and the bidirectional data signal line DIO in step S201, and then sets the device ready state display signal line BUSY to high level in step S202. The control unit 102 determines whether the read data is an instruction in step S203, and decodes the instruction in step S204. In step S205, it is determined whether the next data is required by the method defined according to the instruction. The control unit 102 decides to write and read data in step S206, and if it is selected to read data, makes the device ready status indication signal line BUSY low in step S207 and then bidirectionally with the transmit and receive data clock signal lines CLK. Data is received from the data signal line DIO, and then the device ready state display signal line BUSY is made high, and then in step S210 a read / write of the next data is determined. If the next data is written in step S206, the control unit 102 makes the device ready state display signal line BUSY low, and then in step S212, the transmit and receive data clock signal lines CLK and the bidirectional data signal lines DIO are used. Then, data writing is executed, and when this execution is completed, the device ready state display signal line BUSY is made high in step S123. Next, the control unit 102 determines whether further read and write states are necessary in step S214, and then repeatedly performs step S204. In the above-described steps S210 and S214, the control unit 102 determines whether the device control signal line CS is at a low level, and if the device control signal line CS is at a high level, it means that there is no further data transmission or reception.

도 7의 단계 S201(A)의 직렬 데이터 읽기는 도 8과 같은 흐름에 의하여 수행된다. 먼저, 제어유니트(102)는 단계 SA100에서 데이터와 카운트 변수를 초기화하고, 단계 SA101에서 장치 준비 상태 표시 신호선(BUSY)을 로우레벨로 만든 후, 단계 SA102에서 장치 제어 신호선(CS)이 로우레벨인지를 판단한다. 장치 제어 신호선(CS)이 하이레벨이면 더 이상의 수신이 중단되며, 단계 S202로 이동하여 장치 준비 상태 표시 신호선(BUSY)을 하이레벨로 만든 후에 직렬 데이터 읽기를 종료한다.The serial data read in step S201 (A) of FIG. 7 is performed by the flow as shown in FIG. First, the control unit 102 initializes the data and count variables in step SA100, makes the device ready status indication signal line BUSY low in step SA101, and then in step SA102 whether the device control signal line CS is low level. Judge. If the device control signal line CS is at the high level, further reception is stopped, and the flow proceeds to step S202 to make the device ready state display signal line BUSY high, and then the serial data reading is finished.

상기 단계 SA102에서 장치 제어 신호선(CS)이 로우레벨이면 제어유니트(102)는 상기 단계 SA103에서 전송 및 수신 데이터 클록 신호선(CLK)이 로우레벨인지를 판단한다. 데이터 클록 신호선(CLK)이 하이레벨이면, 단계 S202로 진행하고, 로우레벨이면 양방향 데이터 신호선(DIO)으로부터 데이터를 읽기 위해 단계 SA104로 이동하여 양방향 데이터 신호선(DIO)의 비트(bit)를 읽어들인다. 그후 제어유니트(102)는 단계 SA105에서 양방향 데이터 신호선(DIO)의 비트가 하이레벨인지 로우레벨인지를 판단한 후, 로우레벨이면 단계 SA107로 이동하여 데이터 변수의 최하위 비트(LSB bit)를 0으로 만들고, 하이레벨이면 단계 SA106으로 이동하여 데이터 변수의 최하위 비트를 1로 만든다. 단계 SA108에서 제어유니트(102)는 데이터 변수의 비트(Bit)들을 왼쪽 방향으로 이동시키고 카운트(Count) 변수에 1을 더한다. 그후, 제어유니트(102)는 단계 S109에서 카운트 변수가 8인지를 판단하고, 8보다 작으면 단계 SA101로 이동한 후, 다음 비트 데이터를 수신한다. 카운트 변수가 8이면, 장치 준비 상태 표시 신호선(BUSY)을 하이레벨로 만든 후에 다음의 단계 S203으로 진행한다.If the device control signal line CS is at the low level in step SA102, the control unit 102 determines whether the transmit and receive data clock signal line CLK is at the low level in step SA103. If the data clock signal line CLK is high level, the process proceeds to step S202. If the data clock signal line CLK is high level, the process goes to step SA104 to read data from the bidirectional data signal line DIO and reads the bit of the bidirectional data signal line DIO. . Then, the control unit 102 determines whether the bit of the bidirectional data signal line DIO is high level or low level in step SA105, and if it is low level, the control unit 102 moves to step SA107 to zero the least significant bit (LSB bit) of the data variable. If it is a high level, the process moves to step SA106 to make the least significant bit of the data variable one. In step SA108 the control unit 102 moves the bits of the data variable to the left and adds 1 to the count variable. The control unit 102 then determines in step S109 whether the count variable is 8, if less than 8, moves to step SA101 and receives the next bit data. If the count variable is 8, the device ready state display signal line BUSY is made high and then the process proceeds to the next step S203.

도 7의 단계 S212(B)의 직렬 데이터 쓰기는 도 9와 같은 흐름에 의하여 수행된다. 먼저, 제어유니트(102)는 단계 SB100에서 카운트(Count) 변수를 0으로 초기화하고, 단계 SB101에서 장치 준비 상태 표시 신호선(BUSY)을 로우레벨로 만든다. 단계 SB102에서 제어유니트(102)는 장치 제어 신호선(CS)이 로우레벨인지를 확인하고, 하이레벨이면 단계 S213으로 진행하여 장치 준비 상태 표시 신호선(BUSY)을 하이레벨로 만들고 다음의 단계 S214로 진행한다. 상기 단계 SB102에서 장치 제어 신호선(CS)이 로우레벨이면, 제어유니트(102)는 단계 SB103으로 이동하여 전송 및 수신 데이터 클록 신호선(CLK)을 로우레벨로 만든다. 그후, SB104단계에서 전송 데이터 값(Data)과 1을 논리곱(AND) 로직으로 연산한 후에 연산값이 1이면 단계 SB105로 이동하여 양방향 데이터 신호선(DIO)을 하이레벨로 만들고, 상기 연산값이 0이면 단계 SB106으로 이동하여 양방향 데이터 신호선(DIO)을 로우레벨로 만든다. 이어서, 제어유니트(102)는 단계 SB107에서 데이터(Data) 값의 비트(Bit)들을 오른 쪽으로 각각 이동시키고, 카운트(Count) 변수에 1을 더한다. 그후, 제어유니트(102)는 단계 뉴108에서 데이터 클록 신호선(CLK)을 하이레벨로 만들고, 단계 뉴109에서 카운트 변수가 8인지를 확인한다. 상기 단계 SB109에서 카운트 변수가 8이 아니면, 제어유니트(102)는 상기한 단계 SB101로 이동하여 다음 비트를출력한다. 상기 카운트(Count) 변수가 8이면 제어유니트(102)는 단계 S213으로 진행하여 장치 준비 상태 표시 신호선(BUSY)을 하이레벨로 만들고, 다음의 단계 S214로 이동한다.Writing of serial data in step S212 (B) of FIG. 7 is performed by the flow as shown in FIG. First, the control unit 102 initializes the count variable to zero in step SB100, and makes the device ready status indication signal line BUSY low in step SB101. In step SB102, the control unit 102 checks whether the device control signal line CS is at a low level. If it is high level, the control unit 102 proceeds to step S213 to make the device ready status indication signal line BUSY high and to proceed to the next step S214. do. If the device control signal line CS is at low level in step SB102, the control unit 102 moves to step SB103 to bring the transmit and receive data clock signal line CLK to low level. Subsequently, in operation SB104, the operation data value 1 and the logic value 1 are calculated using AND logic, and if the operation value is 1, the process moves to step SB105 to bring the bidirectional data signal line DIO to a high level. If zero, the process moves to step SB106 to bring the bidirectional data signal line DIO to a low level. Subsequently, the control unit 102 moves each bit Bit of the data value to the right in step SB107, and adds 1 to the count variable. Thereafter, the control unit 102 sets the data clock signal line CLK to high level in step New 108 and checks whether the count variable is 8 in step New 109. If the count variable in step SB109 is not 8, the control unit 102 moves to step SB101 described above and outputs the next bit. If the count variable is 8, the control unit 102 proceeds to step S213 to make the device ready status indication signal line BUSY high, and then to step S214.

다음으로, 본 발명에 따른 압축파일 저장/재생장치의 메모리 형태(Format) 구조 및 운영에 대하여 도 10 ~ 도 16을 참조하여 설명한다.Next, a memory format structure and operation of the compressed file storage / reproducing apparatus according to the present invention will be described with reference to FIGS. 10 to 16.

도 10을 참조하면, 본 장치의 메모리 구조에서 총 메모리 크기 L100은 각각의 블록(Block)들로 구분되며, 메모리의 구조에서 최상위부터 블록(Block) 번지 L101은 음악파일의 헤더를 기록하고, 최하위 블록(Block) 번지 L103부터 연속되는 데이터를 구성한다. 각각의 헤더 블록(Block)의 오프셋(Offset)(최대 블록-현재 블록)은 정보 저장부(110; E2PROM)에 기억한다. L104의 정보 저장부(110)의 위치에서 음악 파일의 오프셋(Offset)은 256 정보저장부(E2PROM) 주소지 이후에 기억된다. L100은 두개의 낸드(NAND)형 플래시 메모리의 최대 크기까지 할당할 수 있다. L102는 파일 삭제 후에 생성되는 블록 메모리 조각이다.Referring to FIG. 10, the total memory size L100 in the memory structure of the apparatus is divided into blocks, and the block address L101 records the header of the music file from the top to the bottom of the memory structure. Data consecutive from the block address L103 is constructed. The offset (maximum block-current block) of each header block is stored in the information storage unit 110 (E2PROM). The offset of the music file at the position of the information storage unit 110 of L104 is stored after the address of the 256 information storage unit E2PROM. The L100 can allocate up to the maximum size of two NAND-type flash memories. L102 is a block memory fragment created after file deletion.

도 11을 참조하면, 하나의 논리적인 파일은 정보저장부(E2PROM) L201에 의해서 기억되는 오프셋(offset)으로부터 얻어진 블록 L200부터 시작된다. 각각의 블록은 데이터가 쓰여진 후에 0번 페이지(Page)에 다음으로 연결되는 블록의 위치를 기억한다. 그러므로, L200의 블록은 L202 블록의 위치를 기억하고, L202는 L103의 블록 위치를 기억하며, L103은 파일의 마지막 블록 L104를 기억한다. 마지막 블록 L104는 파일 끝(End of file)임을 표시(Mark)한다. 이 같은 기법은 특정한 위치 기억 데이터를 사용하지 않고, 임의의 랜덤(Random) 데이터의 쓰기가 가능한 구조이다.Referring to Fig. 11, one logical file starts from block L200 obtained from an offset stored by information storage unit E2PROM L201. Each block stores the location of the next block on page 0 after the data is written. Therefore, the block of L200 stores the position of the L202 block, L202 stores the block position of L103, and L103 stores the last block L104 of the file. The last block L104 marks the end of file. This technique is a structure in which arbitrary random data can be written without using specific positional data.

도 12를 참조하면, 각각의 블록은 16896Byte로 구성되고 블록은 32개의 페이지(Page)로 구성되며, 528Byte는 하나의 페이지(Page)를 구성한다. 그러므로 각 블록 TA101의 페이지(Page)가 0번지인 TA102는 블록의 특성을 기록하는 역할을 할 수 있도록 TA100=528Byte만큼 공간을 할당한다.Referring to FIG. 12, each block is composed of 16896 bytes, a block is composed of 32 pages, and 528 bytes constitutes one page. Therefore, TA102, where the page of each block TA101 is 0, allocates space as much as TA100 = 528Byte to record the characteristics of the block.

도 13을 참조하면, 헤더 정보 페이지(Page) TA200은 다음과 같이 각각의 정보를 기록한다. TA201과 TA202는 각각 1Byte를 할당하며, 랜드(NAND)형 플래시 메모리에서 해당 블록이 데이터 손실이 있는 불량(BAD) 블록인지 일반 정상 블록인지를 표시한다. TA203은 데이터가 쓰여진 블록이 아닌지를 판단하는 마크로 사용하고 1Byte를 할당한다. TA204는 현재의 블록이 음원이 시작하는 헤더(현재 블록의 1페이지를 사용)를 포함하는 블록인지 아니면 데이터들만 기록된 블록인지를 표시한다. TA205는 쓰여진 현재의 블록이 음악의 헤더 블록인지 연속되는 데이터 블록인지를 표시하고, 1Byte를 할당한다. TA206과 TA207은 각각 1Byte를 할당하며, 이 둘을 사용하여 2Byte의 다음 연결 블록의 블록 번호를 표시한다. 2Byte를 할당하므로 최대 1.1Gbyte의 메모리를 연결할 수 있다. TA207은 파일이 끝임을 표시한다. 나머지 데이터 TA208은 더미 코드(Dummy code)이다.Referring to FIG. 13, the header information page TA200 records each information as follows. Each TA201 and TA202 allocates 1 byte, and indicates whether the block is a bad block or a normal block with data loss in a NAND flash memory. TA203 is used as a mark to determine whether data is a written block and allocates 1 byte. TA204 indicates whether the current block is a block including a header starting from a sound source (using one page of the current block) or a block in which only data is recorded. TA205 indicates whether the current block written is a music header block or a continuous data block, and allocates 1 byte. TA206 and TA207 allocate 1 byte each, and use both to indicate the block number of the next connecting block of 2 bytes. Since 2 bytes are allocated, up to 1.1 Gbytes of memory can be connected. TA207 indicates that the file is ending. The remaining data TA208 is a dummy code.

도 14를 참조하면 음악 파일 헤더 블록은 TA303의 블록 표시 페이지(Page)의 다음에 1페이지(Page) TA300의 크기만큼 할당한다. 그러므로 0번 페이지(Page)는 헤더 블록과 데이터 블록에서 모두 존재하지만, TA302의 헤더 정보는 헤더 블록에서만 존재한다.Referring to FIG. 14, the music file header block is allocated by the size of one page TA300 after the block display page of the TA303. Therefore, page 0 exists in both the header block and the data block, but the header information of TA302 exists only in the header block.

헤더 페이지(Page) TA303은 다음과 같이 할당된다. 도 15를 참조하면, TA400은 더미 코드(Dummy code)로서 임의의 값을 할당할 수 있고 1Byte를 할당한다. TA401과 TA402는 2Byte크기로 음악 파일이 사용한 블록의 개수를 표시한다. TA403은 1Byte를 할당하고, 사용한 이퀄라이저(Equalizer)의 번호를 표시하고 1Byte를 할당한다. TA404는 음악의 종류를 표시하여 음악의 연주 금지 등을 표시하고 1Byte를 할당한다. TA405와 TA406과 TA407은 3 밴드 이퀄라이저(Band Equalizer)의 값을 할당하고 3Byte를 할당한다. TA408은 현재 파일의 실제 크기를 기록하고, 4Byte를 할당한다. TA409는 현재 파일의 파일명을 표시하고, 150Byte를 할당한다. TA410은 파일 기록 시간을 표시하며, 14Byte를 할당한다. TA411은 음악 파일의 정보(MPEG Header)를 저장하며, 26Byte를 할당한다. TA412는 기타 음악 정보를 표시한다.The header page TA303 is allocated as follows. Referring to FIG. 15, the TA400 may allocate an arbitrary value as a dummy code and allocate 1 byte. The TA401 and TA402 display the number of blocks used by the music file in 2 bytes. TA403 allocates 1 byte, displays the number of equalizer used, and allocates 1 byte. TA404 indicates the type of music, prohibits the performance of music, and allocates 1 byte. The TA405, TA406, and TA407 allocate 3-band equalizers and allocate 3 bytes. TA408 records the actual size of the current file and allocates 4 bytes. TA409 displays the file name of the current file and allocates 150 bytes. TA410 indicates the file recording time and allocates 14 bytes. TA411 stores music file information (MPEG Header) and allocates 26 bytes. TA412 displays guitar music information.

도 16을 참조하면 음악 헤더 정보 기억 및 시스템 정보 및 사용자 정보들을 기록하는 정보저장부(110; E2PROM)의 구조 TA500은 다음과 같다. TA501은 시스템 초기화의 상태를 표시하고, 1Byte를 할당한다. TA502는 현재 연주하는 음악의 볼륨정보를 기록하고, 1Byte를 사용한다. TA503은 사용자 정보 및 사용자에 의해서 읽기 쓰기가 가능하도록 한다. TA504는 음악 파일의 헤더의 오프셋(Offset)(총블 럭 - 헤더 블록 위치)를 표시한다. TA505는 256Byte를 할당하고, TA506은 정보 저장부(110; E2PROM)의 크기에서 256Byte를 뺀 크기를 사용한다. TA505의 구조는 TA506의 1Byte씩 할당된 일련의 메모리로 구성한다. TA506은 1번 음악의 헤더 오프셋(Offset)을 기억한다. 2번 음악은 TA505 다음의 메모리 위치에 기억한다. 블록 오프셋(Offset)은 낸드(NAND)형 플래시 메모리 TA507의 상위 메모리 TA508에서 현재 헤더의 위치 TA509에서 뺀 값을 기억한다. 즉, 오프셋(Offset)=TA508-TA509이다.Referring to FIG. 16, a structure TA500 of an information storage unit 110 (E2PROM) for storing music header information storage and system information and user information is as follows. TA501 displays the status of system initialization and allocates 1 byte. The TA502 records the volume information of the music currently playing and uses 1 byte. TA503 enables read and write by user information and user. TA504 indicates the offset (total block-header block position) of the header of the music file. The TA505 allocates 256 bytes, and the TA506 uses a size obtained by subtracting 256 bytes from the size of the information storage unit 110 (E2PROM). The structure of the TA505 consists of a series of memories allocated for each byte of TA506. The TA506 stores the header offset of the first music. Music number 2 is stored in the memory location after TA505. The block offset stores a value obtained by subtracting the position TA509 of the current header from the upper memory TA508 of the NAND flash memory TA507. That is, Offset = TA508-TA509.

다음으로, 본 발명에 따른 압축파일 저장/재생장치의 시스템 운영 흐름에 대하여 도 17 ~ 도 21을 참조하여 설명한다.Next, a system operation flow of the compressed file storage / playback apparatus according to the present invention will be described with reference to FIGS. 17 to 21.

본 발명에 따른 압축파일 저장/재생장치에서 음악 파일 연주는 도 17과 같은 흐름으로 구현된다.Music file performance in the compressed file storage / playback apparatus according to the present invention is implemented in the flow as shown in FIG.

먼저, 단계 S101에서 제어유니트(102)는 연주하고자 하는 음악파일에 대한 음악 헤더 정보를 읽어들이고, 단계 S102에서 음악 파일이 사용한 블록의 개수를 읽어온다. 그후, 제어유니트(102)는 S103단계에서 외부의 키 등에 의해서 다음 연주를 위해 현재 연주를 중단할 것인지를 판단하여, 중단하면 단계 S111로 이동하여 연주 음악의 번호를 확인한 후에 단계 S101로 이동한다. 상기 단계 S103에서 연주 중단이 없으면 단계 S104단계로 이동하여 블록의 0페이지(Page)를 읽어 다음에 연결된 블록의 번지수를 읽는다. 그후 단계 S105에서 현재 블록이 파일의 끝(End of File; EOF) 표시가 있는지를 판단하고, EOF 표시가 있으면 단계 S112로 이동하여 연주 음악 번호를 확인한 다음에 단계 S101로 이동한다. 현재 블록에 EOF표시가 없으면 단계 S106으로 이동하여 현재 주소지를 지정을 위해 현재 블록에 32를 곱하여 실제 페이지(Page)를 계산한다. 그리고, 카운트(Count) 변수를 0으로 초기화한다.이어서, 단계 S107에서 페이지(Page) 변수를 기준으로 주소지를 설정한 후에 단계 S108로부터 낸드(NAND)형 플래시 메모리로부터 1Byte데이터를 읽어온다. 단계 S109에서 디코더(105)의 신호선(D_READY)을 검사하고, 단계 S110에서 데이터 요구(D_REQ)가 있는지를 판단하여 데이터 요구가 없으면 S109단계로 이동한다. 상기 단계 S110에서 데이터의 요구가 있으면 단계 S112로 이동하여 디코더(105)에 1Byte를 전송한다. 전송 후에 단계 S113으로 이동하여 카운트(Count) 변수에 1을 더하고 단계 S114에서 카운트(Count)가 528인지를 판단하는데, 카운트 값이 528이면 단계 S115로 이동하여 페이지(Page) 변수에 1을 더하고, 그렇지 않으면 단계 S116으로 이동한다. 단계 S116에서 연주를 중단할 것인지를 판단하여, 중단 요청이 있으면 단계 S101로 이동한다.First, in step S101 the control unit 102 reads the music header information for the music file to be played, and in step S102 the number of blocks used by the music file is read. Thereafter, the control unit 102 determines whether to stop the current performance for the next performance by an external key or the like in step S103. If the control unit 102 stops, the control unit 102 moves to step S111 after confirming the number of music to be played. If there is no play interruption in step S103, the process moves to step S104 to read page 0 of the block and read the address of the next linked block. Thereafter, in step S105, it is determined whether the current block has an End of File (EOF) mark. If there is an EOF mark, the flow moves to step S112 to confirm the music number to be played, and then the flow goes to step S101. If there is no EOF mark in the current block, the flow advances to step S106 to calculate the actual page by multiplying the current block by 32 to specify the current address. Then, the count variable is initialized to 0. Then, in step S107, after setting the address based on the page variable, 1 byte data is read from the NAND type flash memory from step S108. In step S109, the signal line D_READY of the decoder 105 is inspected, and in step S110 it is determined whether there is a data request D_REQ, and if there is no data request, the flow moves to step S109. If there is a request for data in step S110, the process moves to step S112 and 1 byte is transmitted to the decoder 105. After the transfer, go to step S113 to add 1 to the count variable, and determine whether the count is 528 in step S114. If the count value is 528, go to step S115 and add 1 to the Page variable, Otherwise go to step S116. In step S116, it is determined whether to stop playing, and if there is a stop request, the flow advances to step S101.

상기 단계 S116에서 중단요청이 없는 것으로 판단되면, 단계 S117로 진행하여 현재 페이지(Page) 변수를 32로 나누어서 그 나머지가 0이 아니면 단계 S108로 이동하고, 0이면 단계 S118로 이동한 후에 다음 연결된 블록을 현재 블록으로 설정하고 단계 S103으로 이동한다. 이와 같은 흐름은 연결된 블록에 따라 자동으로 음악 파일을 디코더(105)에 전달하여 음악 파일을 재생하는 기능을 제공한다.If it is determined in step S116 that there is no interruption request, the flow proceeds to step S117 by dividing the current page variable by 32 and moving to step S108 if the remainder is not 0, and moving to step S118 if the remaining block is 0, and then connecting blocks. Is set to the current block, and the flow proceeds to step S103. This flow provides a function of automatically delivering the music file to the decoder 105 in accordance with the connected block.

다음으로, 본 발명에 따른 압축파일 저장/재생장치에 있어서 확장 동기식 직렬 전송 방식에 의해서 데이터 쓰기의 흐름은 도 18과 같다.Next, in the compressed file storage / playback apparatus according to the present invention, the flow of data writing by the extended synchronous serial transmission method is shown in FIG.

먼저, 단계 S300에서 직렬 데이터를 읽어들인 후, 단계 S301에서 이 명령이 데이터 쓰기인지 판단하고, 이 명령이 데이터 쓰기이면, 단계 S302로 이동하여 페이지(Page)를 32로 나누어서 그 나머지가 0인지를 판단한다. 상기 단계 S302에서 0이 아닌 것으로 판단되면 단계 S310으로 이동한다. 상기 단계 S302에서 0인 것으로 판단되면 단계 S303으로 이동하여 현재 블록 위치에서부터 다음의 사용하지 않은 블록의 위치를 읽어온다. 그후, 단계 S304에서 현재의 블록 주소로부터 페이지(Page) 변수를 설정한 후, 단계 S305에서 현재의 주소지를 설정한다. 이어서, 단계 S306에서 현재의 블록 주소로서 다음의 사용하지 않는 블록의 주소를 지정한다. 다음에, 단계 S307에서 현재 블록이 음악 헤더인지 데이터 블록인지를 판단하는데, 헤더 블록이면 단계 S308로 이동하여 블록의 0페이지(Page)에 헤더 포맷을 기록하고, 데이터 블록이면 단계 S309로 이동하여 블록의 0페이지(Page)에 데이터 포맷을 기록한다.First, after reading the serial data in step S300, it is determined in step S301 whether this command is a data write, and if this command is a data write, it moves to step S302 to divide the page by 32 to determine whether the remainder is zero. To judge. If it is determined in step S302 that it is not 0, the process moves to step S310. If it is determined in step S302 that it is 0, the process moves to step S303 to read the next unused block position from the current block position. Then, after setting the page variable from the current block address in step S304, the current address is set in step S305. Next, in step S306, the address of the next unused block is designated as the current block address. Next, in step S307, it is determined whether the current block is a music header or a data block. If it is a header block, go to step S308 to record the header format on page 0 of the block, and if it is a data block, go to step S309. Record the data format on page 0 of the page.

이어서, 단계 310에서 i페이지(Page) 변수를 0으로 초기화하고, 단계 S311에서 현재의 페이지(Page) 주소를 설정한다. 단계 S311에서 장치 준비 상태 표시 신호선(BUSY)을 로우레벨로 만든 후, 단계 S312에서 직렬 데이터를 읽어 들인다. 단계 S315에서 읽어들인 데이터 변수(Data)를 낸드(NAND)형 플래시 메모리 버퍼에 쓰고, 단계 S316에서 i페이지(Page) 변수에 1을 더한다. 단계 S317에서 i페이지(Page)가 528인지를 판단하는데, 528이 아니면 단계 S312로 이동한다.Subsequently, the iPage variable is initialized to 0 in step 310, and the current page address is set in step S311. After the device ready state display signal line BUSY is made low in step S311, serial data is read in step S312. The data variable Data read in step S315 is written to the NAND flash memory buffer, and in step S316, 1 is added to the iPage variable. In step S317, it is determined whether the i page is 528, and if not, it moves to step S312.

상기 단계 S317에서 528이 아닌 것으로 판단되면 단계 S318로 이동하여 장치 제어 신호선(CS)이 로우레벨인지 아닌지를 판단하는데, 장치 제어 신호선(CS)이 하이레벨이면 단계 S321로 이동하여 현재 블록에 EOF(End of File)를 표시하고, 쓰기를 종료한다. 상기 단계 S318에서 장치 제어 신호선(CS)이 로우레벨인 것으로 판단되면 단계 S319로 이동하여 현재 버퍼에 들어 있는 데이터의 페이지 쓰기(Page write)를 실시한다. 단계 S320에서 페이지(Page) 변수에 1을 더하고 단계 S302로 이동한다. 이와 같은 일련의 작업으로 통해 확장 동기식 직렬 전송 방식으로 음악 파일의 쓰기를 실시하여 규정된 포맷(Format)에 의해 자동으로 파일 쓰기가 이루어지도록 한다.If it is determined in step S317 that it is not 528, the flow advances to step S318 to determine whether the device control signal line CS is at a low level. If the device control signal line CS is at a high level, the flow goes to step S321 and EOF ( End of File) and finish writing. If it is determined in step S318 that the device control signal line CS is at a low level, the process moves to step S319 to perform a page write of data currently in the buffer. In step S320, 1 is added to the page variable, and the flow advances to step S302. Through such a series of operations, music files are written in an extended synchronous serial transmission method so that file writing is automatically performed according to a prescribed format.

다음으로, 본 발명에 따른 압축파일 저장/재생장치에 있어서 저장할 데이터가 음악 헤더인지 데이터인지를 판단하여 저장 공간을 할당하는 공간 할당기법은 도 19의 흐름에 의해서 이루어진다.Next, in the compressed file storage / playback apparatus according to the present invention, a space allocation technique for allocating a storage space by determining whether data to be stored is a music header or data is performed by the flow of FIG.

먼저, 단계 SC100에서 사용하지 않은 블록이 음악 헤더를 쓰기 위한 블록인지 데이터를 쓰기 위한 블록인지 판단한다. 쓰기를 실시할 블록이 데이터 블록이면, 단계 SC101로 이동하여 현재 페이지는 현재 블록의 위치에 32를 곱하여 얻어지고 단계 SC102에서 페이지(Page) 기준으로 주소지를 설정한다. 단계 SC103에서 현재 블록이 유효 데이터 블록인지를 판단하여 유효 데이터블록이 아니면 단계 SC106으로 이동하여 블록(Block)변수에 1을 더한 후에 단계 S101로 이동한다.First, it is determined whether the block not used in step SC100 is a block for writing a music header or a block for writing data. If the block to be written is a data block, the process moves to step SC101, where the current page is obtained by multiplying the position of the current block by 32, and in step SC102, an address is set on a page basis. In step SC103, it is determined whether the current block is a valid data block. If the current block is not a valid data block, the process moves to step SC106, adds 1 to the block variable, and then moves to step S101.

상기 단계 SC103에서 현재의 블록이 유효 블록으로 판단되면 단계 SC104에서 현재 블록이 사용하지 않은 블록인지를 판단한다. 단계 SC104에서 사용한 블록으로 판단되면 단계 SC105로 이동하여 전체 블록 수 t블록(Block)변수와 현재 블록이 같은지를 판단한다. 단계 SC105에서 같은 것으로 판단되면 더 이상 쓰기가 가능한 블록이 없는 것으로 판단하여 단계 SC107로 이동하고 쓰기 메모리가 없음을 표시한다. 상기 단계 SC105에서 같지 않은 것으로 판단되면 단계 SC106으로 진행하여 현재 블록 수에 1을 더한 다음에 상기한 단계 SC101로 이동한다.If it is determined in step SC103 that the current block is a valid block, it is determined in step SC104 whether the current block is an unused block. If it is determined that the block used in step SC104 is moved to step SC105, it is determined whether the total number of blocks t blocks (Block) variable is equal to the current block. If it is determined to be the same in step SC105, it is determined that there are no more writeable blocks, and the process moves to step SC107 to indicate that there is no write memory. If it is determined that it is not the same in step SC105, the process proceeds to step SC106, where 1 is added to the current number of blocks, and then the process goes to step SC101.

상기 단계 104에서 사용하지 않은 블록으로 판단되면 단계 SC115로 이동하고 현재 블록을 쓰기 가능 블록으로 지정하고 데이터 헤더를 쓰기 가능하게 한다.If it is determined in step 104 that the block is not used, the process moves to step SC115, the current block is designated as a writable block, and the data header is writable.

한편, 상기한 단계 SC100에서 쓰기를 실시할 블록이 헤더 블록이면 단계 SC108로 이동하여 현재 블록수 변수(Block)를 전체 블록수 변수 t블록(Block)으로 설정하고, 단계 SC109에서 현재 블록의 위치에 32를 곱하여 그 결과 값을 현재 페이지(Page) 변수로 설정한다. 그후, 단계 SC110에서 페이지(Page)를 기준으로 주소지를 설정한다. 단계 SC111에서 현재 블록이 유효 블록인지를 판단하여 유효 블록이 아니면 단계 SC114로 이동하여 블록(Block)변수에 1을 감산한 후에 단계 S109로 이동한다.On the other hand, if the block to be written in the above step SC100 is a header block, go to step SC108 to set the current block number variable (Block) to the total block number variable t block (Block), and to the position of the current block in step SC109 Multiply by 32 and set the result to the current Page variable. Thereafter, in step SC110, the address is set based on the page. In step SC111, it is determined whether the current block is a valid block. If it is not a valid block, the process moves to step SC114, subtracts 1 from the block variable, and then moves to step S109.

상기 단계 SC111에서 현재의 블록이 유효 블록으로 판단되면 단계 SC112에서 현재 블록이 사용하지 않은 블록인지를 판단한다. 상기 단계 SC112에서 사용한 블록으로 판단되면 단계 SC113으로 이동하여 블록변수가 0인지를 판단하고, 블록변수가 0인 것으로 판단되면 더 이상 쓰기가 가능한 블록이 없는 것으로 판단하여 단계 SC116으로 이동하고 쓰기 메모리가 없음을 표시한다. 상기 단계 SC113에서 블록이 0이 아닌 것으로 판단되면 단계 SC114에서 블록(Block)변수에 1을 감산한 후에 단계 S109로 이동한다.If the current block is determined to be a valid block in step SC111, it is determined whether the current block is an unused block in step SC112. If it is determined that the block used in step SC112 is determined to go to step SC113, it is determined whether the block variable is 0. If it is determined that the block variable is 0, it is determined that there are no more writeable blocks. Indicates none. If it is determined in step SC113 that the block is not 0, step 1 is performed after subtracting 1 from the block variable in step SC114.

상기 단계 112에서 사용하지 않은 블록으로 판단되면 단계 SC115로 이동하고 현재 블록을 쓰기 가능 블록으로 지정하고 헤더를 쓰기 가능하게 한다.If it is determined that the block is not used in step 112, the process moves to step SC115, the current block is designated as a writable block, and the header is writable.

이상 설명한 바와 같이 상기한 도 19의 흐름에서는 데이터를 하위 블록에서부터 쓰기 가능하게 하고, 헤더를 상위 블록부터 쓰기 가능하게 한다.As described above, in the flow of FIG. 19, data can be written from a lower block, and a header can be written from an upper block.

본 발명의 장치는 2개의 물리적인 낸드(NAND)형 플래시 메모리를 연속으로 사용할 수 있도록 한다. 이 구조를 위해 제어유니트(102)는 도 20의 흐름과 같이 가상 메모리 주소를 사용하여 두개의 칩을 사용할 수 있게 하면 된다.The device of the present invention makes it possible to use two physical NAND flash memories in succession. For this structure, the control unit 102 may use two chips using a virtual memory address as shown in the flow of FIG. 20.

즉, 단계 S600에서 첫번째 낸드형 플래시 메모리 칩을 온(ON)하고 논리 블록수 vBlock과 첫번째 낸드형 플래시 메모리의 블록 크기를 단계 S601에서 비교한다. vBlock의 변수가 tBlock1보다 작으면 단계 S607로 이동하고 현재 물리적인 페이지(Page) 변수는 이 블록 값에 32를 곱하여 얻는다. 단계 S608에서 현재 주소지를 지정하고 흐름을 종료한다. 그러나 vBlock 변수가 tBlock 변수 보다 크면, 단계 S602에서 두번째 낸드형 플래시 메모리를 선택하고, 단계 S603에서 현재 논리적 블록수 vBlock에서 tBlock1을 빼고 그 결과를 상대적 블록 rBlock으로 설정한다. 단계 S605에서 상대적 블록 rBlock에 32를 곱하여 현재의 페이지를 설정하고, 단계 S606에서 이 주소지를 설정한다.That is, in step S600, the first NAND flash memory chip is turned on and the block size of the logical block number vBlock and the first NAND flash memory are compared in step S601. If the variable of vBlock is smaller than tBlock1, go to step S607 and the current physical page variable is obtained by multiplying this block value by 32. In step S608 the current address is specified and the flow ends. However, if the vBlock variable is larger than the tBlock variable, the second NAND flash memory is selected in step S602, and in step S603 the tBlock1 is subtracted from the current logical block number vBlock and the result is set to the relative block rBlock. In step S605, the relative block rBlock is multiplied by 32 to set the current page, and in step S606 this address is set.

다음으로, 본 발명에 따른 압축파일 저장/재생장치에 있어서 음악 파일의 삭제 동작에 대하여 도 21을 참조하여 설명한다.Next, the operation of deleting a music file in the compressed file storage / playback apparatus according to the present invention will be described with reference to FIG.

음악 파일의 삭제는 단계 S701에서 삭제하고자 하는 음악 파일 번호 iHeader에 대한 음악 파일 정보를 읽는다. 단계 S702에서 음악 파일이 사용한 총 블럭수를읽고, 단계 S703에서 이 블록과 연결된 다음 블럭의 블록 수를 읽어 온다. 단계 S703에서 현재의 블록수에 32를 곱한 값을 페이지(Page) 값으로 설정하고, 단계 S705에서 주소지를 설정한다. 그후, 단계 S706에서 현재 블록을 삭제하고, 단계 S707에서 현재 블록이 EOF(End of File)의 표시가 있는지를 확인한다. 표시가 없으면 단계 S708에서 연결된 다음 블록을 현재 블록으로 대입하고, 단계 S709에서 삭제시 낸드형 플래시 메모리 오류가 있었는지를 판단하여, 오류가 있으면 단계 S710 으로부터 더 이상의 쓰기가 불가능하도록 블록 헤더 TA200과 TA201에 불량(BAD) 블록 표시를 하고, 단계 S703으로 이동한다. 오류가 없어도 S703단계로 이동한다.The deletion of the music file reads the music file information for the music file number iHeader to be deleted in step S701. In step S702, the total number of blocks used by the music file is read. In step S703, the number of blocks of the next block associated with this block is read. In step S703, a value obtained by multiplying the current number of blocks by 32 is set as a page value, and in step S705, an address is set. Thereafter, the current block is deleted in step S706, and it is checked in step S707 whether the current block has an indication of End of File (EOF). If there is no indication, the next block connected in step S708 is substituted into the current block, and in step S709 it is determined whether there is a NAND type flash memory error, and if there is an error, block headers TA200 and TA201 cannot be written further from step S710. A bad BAD block is displayed, and the flow advances to step S703. If there is no error, go to step S703.

상기 단계 S707에서 EOF(End of File)의 표시가 있으면, 현재 음악 파일의 모든 블록은 삭제되었음을 의미하므로 단계 S711로 이동한다. 이 단계 S711에서 정보 저장부(110; E2PROM)의 주소지 변수 Addr를 현재의 음악 파일 번호로 할당하고, 단계 S712에서 Addr변수에 1을 더한다. 그후, 단계 S713에서 음악 헤더 위치 데이터 변수(data)로 값을 읽어 들리고 단계 S714에서 상기 주소지 변수 Addr에서 1을 뺀다. 이어서, 단계 S715에서 그 주소 값에 데이터 변수 Date를 기록하고, 단계 S716으로 이동한 후 정보 저장부(110; E2PROM) 주소지 변수 Addr에 1을 더한다. 그후, 단계 S717에서 읽은 Data의 값이 최대 값[블록의 오프셋(offset)이 255이면 최대 값은 255임]이면 삭제 흐름을 종료한다.If there is an indication of End of File (EOF) in step S707, it means that all blocks of the current music file have been deleted, and the flow moves to step S711. In step S711, the address variable Addr of the information storage unit 110 (E2PROM) is assigned to the current music file number, and in step S712, 1 is added to the Addr variable. Then, the value is read into the music header position data variable data in step S713 and 1 is subtracted from the address variable Addr in step S714. Subsequently, in step S715, the data variable Date is recorded in the address value, and after going to step S716, 1 is added to the address variable Addr of the information storage unit 110 (E2PROM). Then, if the value of Data read in step S717 is the maximum value (the maximum value is 255 if the offset of the block is 255), the deletion flow ends.

한편, 본 발명은 상술한 실시예로만 한정되는 것이 아니라 본 발명의 요지를 벗어나지 않는 범위내에서 수정 및 변형하여 실시할 수 있고, 그러한 수정 및 변형이 가해진 기술사상 역시 이하의 특허청구범위에 속하는 것으로 보아야 한다.On the other hand, the present invention is not limited only to the above-described embodiment, but can be modified and modified within the scope not departing from the gist of the present invention, the technical idea to which such modifications and variations are also applied to the claims Must see

이상 상세히 설명한 바와 같이 본 발명에 따르면, 확장 동기식 직렬 통신 방식을 적용하여, 기존의 방식보다 간편하게 다양한 외부 장치들과의 제어가 가능하도록 하였다. 저비용의 고속의 데이터 쓰기 구조를 가지고 있고, 2개의 내장 메모리를 사용하여 메모리를 조각들 없이 최적으로 사용할 수 있다. 메모리와 각각 구성품들이 물리적으로 분리되지 않도록 하여 데이터의 보안을 향상시킬 수 있으며, 제어유니트의 성능을 최적화하기 위한 파일 형태를 구성하여 생산원가의 절감 및 생산시의 부품의 수를 줄일 수 있는 우수한 효과가 있다.As described in detail above, according to the present invention, the extended synchronous serial communication method is applied to enable the control with various external devices more easily than the conventional method. It has a low-cost, high-speed data write structure, and uses two internal memories to optimally use the memory without fragments. It is possible to improve the security of the data by not physically separating the memory and each component, and to form a file type for optimizing the performance of the control unit, and to reduce the production cost and the number of parts in the production. There is.

Claims (17)

외부 장치로부터 디지털 음악 압축파일을 다운로드받아 저장하고 이 저장된 음악 압축파일을 재생하는 음악 압축파일 저장/재생장치에 있어서,A music compressed file storage / playback apparatus for downloading and storing a digital music compressed file from an external device and playing the stored music compressed file, 장치를 제어하기 위한 장치 제어신호가 흐르는 장치제어신호선과, 장치가 동작할 준비가 되었음을 표시하기 위한 장치 준비상태 표시 신호가 흐르는 장치 준비상태 표시신호선과, 전송 및 수신되는 데이터의 클록을 맞추기 위한 데이터 클록신호가 흐르는 데이터 클록신호선과, 양방향으로 데이터 흐르는 데이터신호선을 구비하고서, 상기 외부 장치와 데이터의 송수신을 수행하는 것을 특징으로 하는 음악 압축파일 저장/재생장치.The device control signal line through which the device control signal for controlling the device flows, the device ready state display signal line through which the device readiness indication signal flows to indicate that the device is ready for operation, and the data for clocking data transmitted and received. And a data clock signal line through which a clock signal flows, and a data signal line through which data flows in both directions, wherein data transmission / reception with the external device is performed. 제 1항에 있어서,The method of claim 1, 상기 데이터의 전송은 동기식 직렬 전송방식을 이용하는 것을 특징으로 하는 음악 압축파일 저장/재생장치.And the data is transmitted using a synchronous serial transmission method. 외부 장치로부터 디지털 음악 압축파일을 다운로드받아 저장하고 이 저장된 음악 압축파일을 재생하는 음악 압축파일 저장/재생장치에 있어서,A music compressed file storage / playback apparatus for downloading and storing a digital music compressed file from an external device and playing the stored music compressed file, 상기 외부 장치와의 접속을 위한 접속수단과,Connecting means for connecting to the external device; 상기 음악 압축파일 및 그 정보를 저장하기 위한 저장수단과,Storage means for storing the music compressed file and its information; 상기 저장된 음악 압축 파일을 재생하기 위한 재생수단과,Reproducing means for reproducing the stored music compressed file; 장치를 제어하기 위한 장치 제어신호가 흐르는 장치제어신호선과, 장치가 동작할 준비가 되었음을 표시하기 위한 장치 준비상태 표시 신호가 흐르는 장치 준비상태 표시신호선과, 전송 및 수신되는 데이터의 클록을 맞추기 위한 데이터 클록신호가 흐르는 데이터 클록신호선 및, 양방향으로 데이터 흐르는 데이터신호선을 통해서 상기 접속수단과 연결되어, 음악 압축파일을 저장 및 재생을 제어하는 제어수단을 포함하여 구성된 것을 특징으로 하는 음악 압축파일 저장/재생장치.The device control signal line through which the device control signal for controlling the device flows, the device ready state display signal line through which the device readiness indication signal flows to indicate that the device is ready for operation, and the data for clocking data transmitted and received. And a control means connected to said connection means via a data clock signal line through which a clock signal flows and a data signal line flowing in both directions, and controlling means for controlling the storage and reproduction of the music compressed file. Device. 제 3항에 있어서,The method of claim 3, wherein 배터리를 더 포함하여 구성되고,Further comprises a battery, 상기 접속수단은, 상기 장치제어신호선과 상기 장치 준비상태 표시 신호선, 데이터 클록신호선 및 데이터신호선을 포함하여, 전원을 공급하는 전원신호선과, 상기 배터리로부터의 배터리전원을 공급하는 배터리신호선, 2개의 오디오출력선 및, 접지선을 상기 외부 장치와 연결시키기 위한 9핀 커넥터로 구성된 것을 특징으로 하는 음악 압축파일 저장/재생장치.The connecting means includes the device control signal line, the device ready state display signal line, a data clock signal line and a data signal line, a power signal line for supplying power, a battery signal line for supplying battery power from the battery, and two audios. And a 9-pin connector for connecting an output line and a ground line to the external device. 제 3항에 있어서,The method of claim 3, wherein 상기 저장수단은 음악 압축파일이 저장되는 적어도 1개의 낸드형 플래시 메모리와, 장치의 상태 및 곡정보를 기억하는 정보 저장부로 구성되는 것을 특징으로 하는 음악 압축파일 저장/재생장치.And the storage means comprises at least one NAND flash memory for storing the compressed music file, and an information storage for storing state and song information of the device. 제 3항에 있어서,The method of claim 3, wherein 상기 재생수단은 상기 제어수단의 제어에 따라 저장수단에 저장된 음악 압축파일을 디코딩하는 디코더와, 상기 디코더에서 디코딩된 음악 디지털 데이터를 아날로그 데이터로 변환하여 출력하는 디지털/아날로그 변환기를 포함하여 구성된 것을 특징으로 하는 음악 압축파일 저장/재생장치.The reproducing means comprises a decoder for decoding a music compressed file stored in the storage means under control of the control means, and a digital / analog converter for converting the digital music data decoded by the decoder into analog data and outputting the analog data. Music compressed file storage / playback device. 제 1항 내지 제 6항중 어느 한 항에 있어서,The method according to any one of claims 1 to 6, 상기 음악 압축파일은 MPEG1 Layer 3 형태인 것을 특징으로 하는 음악 압축파일 저장/재생장치.The music compressed file storage and playback device, characterized in that the MPEG1 Layer 3 form. 외부 장치로부터 디지털 음악 압축파일을 다운로드받아 저장하고 이 저장된 음악 압축파일을 재생하는 음악 압축파일 저장/재생장치에 있어서,A music compressed file storage / playback apparatus for downloading and storing a digital music compressed file from an external device and playing the stored music compressed file, 상기 외부 장치와의 접속을 위한 접속수단과,Connecting means for connecting to the external device; 상기 음악 압축파일을 저장하기 위한 적어도 2개의 낸드형 플래시 메모리와,At least two NAND flash memories for storing the music compressed file; 상기 저장된 음악 압축 파일을 재생하기 위한 재생수단과,Reproducing means for reproducing the stored music compressed file; 음악 압축파일을 저장 및 재생을 제어하는 제어수단을 포함하여 구성되고,It comprises a control means for controlling the storage and playback of the music compressed file, 상기 낸드형 플래시 메모리는 페이지 변수로 상기 메모리의 하위주소를 지정하고 블록변수로 상기 메모리의 상위 주소를 지정하도록 된 것을 특징으로 하는 음악 압축파일 저장/재생장치.And the NAND flash memory designates a lower address of the memory as a page variable and an upper address of the memory as a block variable. 제 8항에 있어서,The method of claim 8, 장치의 상태 및 곡정보를 기억하는 정보 메모리를 더 포함하여 구성되고,It further comprises an information memory for storing the state and song information of the device, 상기 낸드형 플래시 메모리에는 최상위 블록 번지부터는 음악파일의 헤더를 기록하고 최하위 블록부터는 연속되는 데이터를 기록하며,In the NAND flash memory, the header of the music file is recorded from the highest block address, and continuous data is recorded from the lowest block. 각각의 헤더 블록의 오프셋(최대 블록-현재 블록) 및 음악파일의 오프셋은 상기 정보 메모리에 기록하는 것을 특징으로 하는 음악 압축파일 저장/재생장치.An offset (maximum block-current block) of each header block and an offset of a music file are recorded in the information memory. 제 9항에 있어서,The method of claim 9, 하나의 논리적인 파일은 상기 정보 메모리에 의해서 기억되는 오프셋으로부터 얻어진 블록부터 시작되고, 각각의 블록은 데이터가 쓰여진 후에 0번 페이지에 다음으로 연결되는 블록의 위치를 기억하도록 되어 있는 것을 특징으로 하는 음악 압축파일 저장/재생장치.One logical file starts with a block obtained from an offset stored by the information memory, and each block is configured to store the position of a block next to page 0 after data is written. Compressed file storage / playback device. 제 9항에 있어서,The method of claim 9, 상기 낸드형 플래시 메모리의 헤더 정보 페이지에는, 해당 블록의 불량 여부를 표시하는 정보와, 데이터의 기록 여부를 표시하는 정보와, 해당 블록에 기록된 데이터 속성을 표시하는 정보와, 다음의 연결 블록의 블록 번호를 표시하는 정보를 포함하여 기록되는 것을 특징으로 하는 음악 압축파일 저장/재생장치.The header information page of the NAND flash memory includes information indicating whether a corresponding block is defective, information indicating whether data is written, information indicating a data attribute recorded in the block, and A music compressed file storage / playback apparatus, characterized by being recorded including information indicating a block number. 제 9항에 있어서,The method of claim 9, 상기 낸드형 플래시 메모리의 음악 헤더 페이지에는, 음악 파일이 사용한 블록의 개수와, 사용한 이퀄라이저의 번호, 현재 파일의 실제 크기, 현재 파일의 파일명, 파일 기록 시간, 음악 파일의 MPEG 헤더를 포함하여 기록되는 것을 특징으로 하는 음악 압축파일 저장/재생장치.The music header page of the NAND flash memory includes a number of blocks used by a music file, a number of used equalizers, an actual size of a current file, a file name of a current file, a file recording time, and an MPEG header of a music file. Music compressed file storage / playback device, characterized in that. 장치를 제어하기 위한 장치 제어신호가 흐르는 장치제어신호선과, 장치가 동작할 준비가 되었음을 표시하기 위한 장치 준비상태 표시 신호가 흐르는 장치 준비상태 표시신호선과, 전송 및 수신되는 데이터의 클록을 맞추기 위한 데이터 클록신호가 흐르는 데이터 클록신호선과, 양방향으로 데이터 흐르는 데이터신호선을 구비하고서, 외부 장치와 데이터의 전송을 수행하여 상기 외부 장치로부터 디지털 음악 압축파일을 다운로드받아 저장하고 이 저장된 음악 압축파일을 재생하는 음악 압축파일 저장/재생장치에 있어서,The device control signal line through which the device control signal for controlling the device flows, the device ready state display signal line through which the device readiness indication signal flows to indicate that the device is ready for operation, and the data for clocking data transmitted and received. A data clock signal line through which the clock signal flows and a data signal line flowing through the data in both directions, and perform data transfer with an external device to download and store the digital music compressed file from the external device, and to reproduce the stored music compressed file. In the compressed file storage / playback device, 상기 장치 제어 신호선의 로우레벨 전환을 검출하는 제 1단계와;Detecting a low level switching of the device control signal line; 상기 제 1단계에서 로우레벨 전환의 검출시 1바이트 클럭주기 동안 상기 장치 준비 상태 표시 신호선을 로우레벨로 만드는 제 2단계와;A second step of bringing the device ready state indication signal line to a low level during a one-byte clock period upon detecting a low level transition in the first step; 상기 데이터 클록신호선이 로우레벨 상태로 진행할 때에 상기 데이터 신호선을 통해 데이터의 입출력을 수행하는 제 3단계와;A third step of performing input / output of data through the data signal line when the data clock signal line advances to a low level state; 상기 장치 준비 상태 표시 신호선의 하이레벨로의 전환을 확인하는 제 4단계와;A fourth step of confirming switching of the device ready status indication signal line to a high level; 상기 제 4단계에서 하이레벨 전환의 확인시 상기 장치 제어 신호선의 하이레벨 전환을 확인하는 제 5단계와;A fifth step of confirming the high level switch of the device control signal line when the high level switch is confirmed in the fourth step; 상기 제 5단계에서 하이레벨의 전환이 확인되지 않은 경우, 상기 제 2단계 내지 제 5단계를 반복하는 제 6단계와;A sixth step of repeating the second to fifth steps when the switching of the high level is not confirmed in the fifth step; 상기 제 5단계에서 하이레벨의 전환이 확인된 경우, 상기 데이터 신호선을 통해 데이터의 입출력을 종료하는 단계를 포함하여 이루어진 것을 특징으로 하는 음악 압축파일의 기록 및 재생을 위한 데이터 입출력 제어방법.And terminating the input / output of the data through the data signal line when the switching of the high level is confirmed in the fifth step. 장치를 제어하기 위한 장치 제어신호가 흐르는 장치제어신호선과, 장치가 동작할 준비가 되었음을 표시하기 위한 장치 준비상태 표시 신호가 흐르는 장치 준비상태 표시신호선과, 전송 및 수신되는 데이터의 클록을 맞추기 위한 데이터 클록신호가 흐르는 데이터 클록신호선과, 양방향으로 데이터 흐르는 데이터신호선을 구비하고서, 외부 장치와 데이터의 전송을 수행하여 상기 외부 장치로부터 디지털 음악 압축파일을 다운로드받아 저장하고 이 저장된 음악 압축파일을 재생하는 음악 압축파일 저장/재생장치에 있어서,The device control signal line through which the device control signal for controlling the device flows, the device ready state display signal line through which the device readiness indication signal flows to indicate that the device is ready for operation, and the data for clocking data transmitted and received. A data clock signal line through which the clock signal flows and a data signal line flowing through the data in both directions, and perform data transfer with an external device to download and store the digital music compressed file from the external device, and to reproduce the stored music compressed file. In the compressed file storage / playback device, 상기 장치 제어 신호선의 로우레벨 전환이 검출되면 장치 준비 상태 표시신호선을 로우레벨로 전환하는 제 1단계와;A first step of switching a device ready state display signal line to a low level when a low level change of the device control signal line is detected; 상기 데이터 클록신호선과 상기 데이터 신호선으로부터 1바이트 데이터를 읽어 들이고 상기 장치 준비 상태 표시 신호선을 하이레벨로 만드는 제 2단계와;A second step of reading one byte of data from the data clock signal line and the data signal line and bringing the device ready state indication signal line to a high level; 상기 읽어들인 데이터가 명령어인지를 판단하고 해당 명령어를 해독하는 제 3단계와;Determining whether the read data is an instruction and deciphering the instruction; 상기 명령어에 따라 데이터 쓰기 및 읽기를 결정하고 데이터 쓰기 및 읽기를 상기 장치 제어 신호선의 하이레벨 전환시까지 반복하는 제 4단계를 포함하여 이루어진 것을 특징으로 하는 음악 압축파일의 기록 및 재생을 위한 데이터 읽기 및 쓰기 제어방법.And a fourth step of determining data writing and reading according to the command and repeating data writing and reading until high level switching of the device control signal line. And write control method. 제 14항에 있어서,The method of claim 14, 상기 제 4단계에서 데이터 읽기로 결정되면, 상기 장치 준비 상태 표시 신호선을 로우레벨로 만든 후 상기 데이터 신호선으로부터 데이터를 수신하는 것을 특징으로 하는 음악 압축파일의 기록 및 재생을 위한 데이터 읽기 및 쓰기 제어방법.If it is determined in step 4 that the data is read, the data read and write control method for recording and reproducing the music compressed file comprises receiving data from the data signal line after making the device ready state signal line low. . 제 14항에 있어서,The method of claim 14, 상기 제 4단계에서 데이터 읽기로 결정되면, 상기 장치 준비 상태 표시 신호선을 로우레벨로 만든 후, 상기 데이터 신호선으로 데이터 쓰기를 실행하는 것을 특징으로 하는 데이터 읽기 및 쓰기 제어방법.And if it is determined in the fourth step that the data is read, the device ready state display signal line is set at a low level, and then data writing is performed to the data signal line. 제 13항 내지 제 16항중 어느 한 항에 있어서,The method according to any one of claims 13 to 16, 상기 음악 압축파일은 MPEG1 Layer 3 형태인 것을 특징으로 하는 제어방법.The music compressed file is a control method characterized in that the MPEG1 Layer 3 form.
KR1020020001265A 2002-01-09 2002-01-09 System And Control Method Of Recording and Reproducing Compressed Music Files KR20030060529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020001265A KR20030060529A (en) 2002-01-09 2002-01-09 System And Control Method Of Recording and Reproducing Compressed Music Files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020001265A KR20030060529A (en) 2002-01-09 2002-01-09 System And Control Method Of Recording and Reproducing Compressed Music Files

Publications (1)

Publication Number Publication Date
KR20030060529A true KR20030060529A (en) 2003-07-16

Family

ID=32217476

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020001265A KR20030060529A (en) 2002-01-09 2002-01-09 System And Control Method Of Recording and Reproducing Compressed Music Files

Country Status (1)

Country Link
KR (1) KR20030060529A (en)

Similar Documents

Publication Publication Date Title
KR100655034B1 (en) Semiconductor memory card, playback apparatus, recording apparatus, playback method and recording method
EP1189139B1 (en) Recording system, data recording device, memory device, and data recording method
CN100557577C (en) Data storage device, date storage method and recording/reproducing system
CN100492524C (en) Method and apparatus for creating an indexed playlist in a digital audio data player
US6388961B1 (en) Recording apparatus, playback apparatus, recording method, and playback method
US6865431B1 (en) Semiconductor memory card, playback apparatus, recording apparatus, playback method, recording method, and computer-readable recording medium
EP1383127A2 (en) Host processing device using external storage medium
WO1999044202A1 (en) Recording/reproducing device and recording/reproducing method
CN101078972B (en) Data storing device and data access method
KR20020079899A (en) Data copying managing method and Device, and Copy managing system
JP2001118328A (en) Recording and/or reproducing device and recording and/ or reproducing method
JP2001202094A (en) Reproducing device, method, and system
US7213112B2 (en) Media processing device using an external storage device
KR100659915B1 (en) Method and apparatus for transferring data
KR20030060529A (en) System And Control Method Of Recording and Reproducing Compressed Music Files
US6493787B1 (en) Device, system and method for accessing plate-shaped memory
JP4655545B2 (en) Memory card and playback device
US6523105B1 (en) Recording medium control device and method
US9159370B2 (en) Distributing media using a portable digital device compatible with optical drive devices
JP2006065505A (en) Memory card and reproducing apparatus
RU2255382C2 (en) Semiconductor memory board, reproduction device, recording device, reproduction method, recording method and data carrier read by a computer
JP4655547B2 (en) Memory card and method for making the same
JPH07200181A (en) Information transfer device and information recording device
KR20110048780A (en) Optical disc drive and driving method thereof
JPH09106341A (en) Method for controlling buffer memory and device therefor

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application