KR100640913B1 - Apparatus of Storing/Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof - Google Patents

Apparatus of Storing/Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof Download PDF

Info

Publication number
KR100640913B1
KR100640913B1 KR1019990031572A KR19990031572A KR100640913B1 KR 100640913 B1 KR100640913 B1 KR 100640913B1 KR 1019990031572 A KR1019990031572 A KR 1019990031572A KR 19990031572 A KR19990031572 A KR 19990031572A KR 100640913 B1 KR100640913 B1 KR 100640913B1
Authority
KR
South Korea
Prior art keywords
data stream
transmission
data
storing
identification information
Prior art date
Application number
KR1019990031572A
Other languages
Korean (ko)
Other versions
KR20010011951A (en
Inventor
남차희
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1019990031572A priority Critical patent/KR100640913B1/en
Publication of KR20010011951A publication Critical patent/KR20010011951A/en
Application granted granted Critical
Publication of KR100640913B1 publication Critical patent/KR100640913B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42661Internal components of the client ; Characteristics thereof for reading from or writing on a magnetic storage medium, e.g. hard disk drive

Abstract

본 발명은 사용자가 원하는 데이터스트림만 저장 및 재생할 수 있는 데이터스트림 저장/재생 장치 및 방법에 관한 것이다.The present invention relates to a data stream storage / playback apparatus and method capable of storing and playing only data streams desired by a user.

본 발명에 따른 디지털 방송 수신기의 데이터스트림 저장/재생 장치는 입력되는 데이터스트림에서 사용자가 선택한 프로그램에 대한 식별정보를 검출하기 위한 프로그램 식별정보 검출기와, 상기 프로그램 식별정보를 가지는 유효패킷만 저장장치에 저장되게 함과 아울러 동시에 재생되게 제어하는 제어부를 구비하는 것을 특징으로 한다.A data stream storage / reproducing apparatus of a digital broadcasting receiver according to the present invention includes a program identification information detector for detecting identification information of a program selected by a user from an input data stream, and only a valid packet having the program identification information is stored in the storage apparatus. It is characterized in that it is provided with a control unit for controlling to be stored and reproduced at the same time.

본 발명에 의하면, 수신되는 데이터스트림 중 사용자가 원하는 PID를 가지는 프로그램만을 HDD에 저장하므로 시스템의 버스점유율을 낮출 수 있을 뿐만 아니라 HDD의 저장되는 데이터의 양이 줄어들게 되므로 저장시간을 늘일 수 있게 된다.According to the present invention, since only the program having the PID desired by the user among the received data streams is stored in the HDD, the bus occupancy ratio of the system can be lowered and the amount of data stored in the HDD is reduced, thereby increasing the storage time.

Description

디지털 방송 수신기의 수신 데이터스트림 저장/재생 장치 및 방법{Apparatus of Storing/Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof} Apparatus of Storing / Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof}             

도 1은 종래의 디지털 방송 수신기를 나타내는 블록도.1 is a block diagram showing a conventional digital broadcast receiver.

도 2는 도 1에 도시된 스트림제어기의 상세구성을 나타내는 블록도.FIG. 2 is a block diagram showing a detailed configuration of the stream controller shown in FIG.

도 3은 본 발명의 실시 예에 따른 디지털 방송 수신기의 스트림제어기에 대한 상세구성을 나타내는 블록도.3 is a block diagram showing a detailed configuration of a stream controller of a digital broadcast receiver according to an embodiment of the present invention.

도 4는 도 3의 스트림제어기에서 데이터를 저장하는 경우 해당 구성요소들의 구동 타이밍도.FIG. 4 is a driving timing diagram of corresponding elements when data is stored in the stream controller of FIG.

도 5는 도 3의 스트림제어기에서 데이터를 재생하는 경우 해당 구성요소들의 구동 타이밍도.FIG. 5 is a driving timing diagram of corresponding elements when data is reproduced by the stream controller of FIG.

도 6은 본 발명의 실시 예에 따른 수신 데이터스트림의 저장/재생 방법을 단계적으로 나타내는 흐름도.6 is a flowchart illustrating a method of storing / reproducing a received data stream according to an exemplary embodiment of the present invention.

도 7은 도 6에 포함된 저장동작을 구체적으로 나타내는 흐름도.7 is a flowchart specifically illustrating a storage operation included in FIG. 6.

도 8은 도 6에 포함된 재생동작을 구체적으로 나타내는 흐름도.8 is a flowchart specifically illustrating a reproducing operation included in FIG. 6.

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

2 : 튜너/디모듈레이터 4 : 스트림제어기2: Tuner / Demodulator 4: Stream Controller

6 : 디먹스/MPEG 디코더 8 : MPEG 메모리6: Demux / MPEG Decoder 8: MPEG Memory

10 : 시스템버스 12 : RAM10: system bus 12: RAM

14 : CPU 16 : ROM14: CPU 16: ROM

18 : 사용자 인터페이스 20 : HDD18: user interface 20: HDD

22, 30, 44 : 먹스 24 : 수신(RX) FIFO22, 30, 44: MUX 24: Receive (RX) FIFO

26, 58 : 호스트인터페이스 28 : 송신(TX) FIFO26, 58: host interface 28: transmit (TX) FIFO

32 : 프로그램 식별정보 검출기 34 : 제어로직부32: program identification information detector 34: control logic

36 : 수신 카운터 38 : 송신 카운터36: reception counter 38: transmission counter

40 : FIFO 42 : 카운터40: FIFO 42: Counter

46, 48 : 수신 버퍼 60, 62 : 송신 버퍼46, 48: Receive buffer 60, 62: Transmit buffer

50, 54, 64, 68, 72 : 데이터 디렉터50, 54, 64, 68, 72: data director

52, 56, 66, 70 : 어드레스 디렉터52, 56, 66, 70: address director

본 발명은 디지털 방송 수신기에 관한 것으로, 특히 입력되는 데이터 중 사용자가 원하는 데이터스트림만 저장 및 재생할 수 있는 데이터스트림 저장/재생 장치 및 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital broadcast receiver, and more particularly, to an apparatus and method for storing and reproducing a data stream capable of storing and playing only a desired data stream among input data.

디지털 방송 수신기는 통상 수신된 데이터스트림(Data stream)을 저장하였다가 다시 재생하거나 저장하면서 재생하는 경우 저장매체로 통상 HDD(Hard Disc Drive)를 사용하고 있다. 이를 실현하기 위하여 디지털 방송 수신기는 도 1에 도시된 바와 같이 전송 스트림의 경로를 조절하기 위한 스트림제어기를 구비하고 있다.Digital broadcast receivers generally use a hard disc drive (HDD) as a storage medium when the received data stream is stored and reproduced or reproduced. In order to realize this, the digital broadcast receiver includes a stream controller for controlling the path of the transport stream as shown in FIG.

도 1의 디지털 방송 수신기는 임의의 서비스매체로부터 방송신호를 수신하여 디지털데이터를 출력하기 위한 튜너(Tuner)/디모듈레이터(Demodulator)(2)와, 튜너/디모듈레이터(2)로부터의 데이터스트림의 전송경로를 조절하기 위한 스트림 제어기(4)와, 스트림제어기(4)의 출력단에 접속된 디먹스(DEMUX; Demultiplexer)/MPEG(Moving Picture Experts Group) 디코더(6)와, 디먹스/MPEG 디코더(6)에 접속된 MPEG 메모리(8)와, 시스템 버스(10)에 공통 접속된 RAM(12), CPU(14), ROM(16), 사용자 인터페이스(18), HDD(20)를 구비한다. 튜너/디모듈레이터(2)는 시스템버스(10)를 통한 CPU(14)의 제어하에 임의의 서비스매체로부터 입력라인(1)을 통해 입력되는 방송신호를 디지털 데이터스트림으로 변환하여 출력한다. 스트림제어기(4)는 시스템버스(10)를 통한 CPU(14)의 제어하에 튜너/디모듈레이터(2)로부터의 데이터스트림을 HDD(20)쪽으로 출력하여 저장되게 하거나 디먹스/MPEG디코더(6)쪽으로 출력하여 재생되게 한다. 또한, 스트림제어기(4)는 CPU(14)의 제어하에 HDD(20)로부터 시스템버스(10)를 통해 입력되는 데이터스트림을 디먹스/MPEG 디코더(6)쪽으로 출력하여 재생되게 한다. 이를 위하여, 스트림제어기(4)는 도 2에 도시된 바와 같은 상세구성을 가지게 된다.The digital broadcast receiver of FIG. 1 is a tuner / demodulator 2 for receiving a broadcast signal from an arbitrary service medium and outputs digital data, and a transmission path of a data stream from the tuner / demodulator 2. A stream controller (4) for controlling a signal, a demultiplexer (DEMUX) / moving picture expert group (MPEG) decoder (6) connected to an output terminal of the stream controller (4), and a demux / MPEG decoder (6). And an MPEG memory 8 connected to the system, a RAM 12, a CPU 14, a ROM 16, a user interface 18, and an HDD 20, which are commonly connected to the system bus 10. The tuner / demodulator 2 converts and outputs a broadcast signal input through an input line 1 from any service medium into a digital data stream under the control of the CPU 14 via the system bus 10. The stream controller 4 outputs and stores the data stream from the tuner / demodulator 2 to the HDD 20 under the control of the CPU 14 via the system bus 10 or to the demux / MPEG decoder 6. Output to play In addition, the stream controller 4 outputs and reproduces the data stream input from the HDD 20 through the system bus 10 to the demux / MPEG decoder 6 under the control of the CPU 14. To this end, the stream controller 4 has a detailed configuration as shown in FIG.

도 2의 스트림제어기(4)는 입력되는 데이터스트림(TP_datain)의 경로를 절환하기 위한 먹스(MUX; Multiplxer)(22)와, 먹스(22)로부터 입력되는 데이터스트림을 선입선출 방식으로 호스트인터페이스(26)로 출력하기 위한 수신(RX) FIFO(24)와, 호스트인터페이스(26)를 통해 입력되는 데이터스트림을 선입선출 방식으로 출력하기 위한 송신(TX) FIFO(28)와, CPU(16)와 인터페이스를 위한 호스트 인터페이스(26)를 구비한다. 먹스(22)는 튜너/디모듈레이터(2)로부터 입력되는 데이터스트림(TP_datain)을 호스트인터페이스(26)를 통한 CPU(14)의 제어에 따라 수신 FIFO(24)쪽으로 출력하거나 디먹스/MPEG디코더(6)쪽으로 출력하게 된다. 수신 FIFO(24)는 먹스(22)로부터 입력되는 데이터스트림을 선입선출 방식으로 호스트인터페이스(26)로 출력하여 시스템버스(10)를 통해 HDD(20)에 저장될 수 있게 한다. 송신 FIFO(28)는 호스트인터페이스(26)를 통해 HDD(20)로부터 입력되는 데이터스트림을 선입선출 방식으로 디먹스/MPEG디코더(6)쪽으로 출력하여 재생될 수 있게 한다. 이 경우, 호스트인터페이스(26)는 입력 클럭신호(TP_clkin) 또는 출력 클럭신호(TP_clkout)와 함께 데이터스트림을 전송하게 된다.The stream controller 4 of FIG. 2 has a MUX (Multiplxer) 22 for switching the path of the input data stream TP_datain and a host interface (first-in-first-out) for the data stream input from the MUX 22. A receive (RX) FIFO 24 for output to the 26), a transmit (TX) FIFO 28 for outputting the data stream input through the host interface 26 in a first-in first-out manner, the CPU 16, It has a host interface 26 for the interface. The mux 22 outputs the data stream TP_datain input from the tuner / demodulator 2 to the receiving FIFO 24 under the control of the CPU 14 through the host interface 26 or the demux / MPEG decoder 6. Will be printed on The reception FIFO 24 outputs the data stream input from the MUX 22 to the host interface 26 in a first-in first-out manner so that it can be stored in the HDD 20 through the system bus 10. The transmission FIFO 28 outputs the data stream input from the HDD 20 through the host interface 26 to the demux / MPEG decoder 6 in a first-in first-out manner so that it can be reproduced. In this case, the host interface 26 transmits the data stream together with the input clock signal TP_clkin or the output clock signal TP_clkout.

도 1에서 디먹스/MPEG디코더(6)는 CPU(14)의 제어하에 스트림제어기(4)로부터 입력되는 데이터스트림(TP_dataout) 선택하여 MPEG 메모리(8)에 저장함과 아울러 저장된 데이터스트림을 읽어들여 MPEG 방식으로 디코딩하고 출력라인(7)을 통해 출력하게 된다. CPU(14)는 시스템버스(10)를 경유하여 사용자 인터페이스(18)로부터 입력되는 사용자 명령에 해당되는 제어동작을 수행하게 된다. 예컨대, CPU(14)는 사용자 명령에 따라 튜너/디모듈레이터(2)에서 채널을 변환하게 되고, 스트림제 어기(4)에서의 데이터스트림 전송경로를 변환하게 된다. 또한, CPU(16)는 사용자 명령에 따라 디먹스/MPEG디코더(6)에서 입력 데이터스트림을 선택하도록 제어하게 된다. RAM(12)과 ROM(16)은 CPU(14)의 제어동작시 이용되어진다. In FIG. 1, the demux / MPEG decoder 6 selects a data stream TP_dataout input from the stream controller 4 under the control of the CPU 14, stores it in the MPEG memory 8, and reads the stored data stream. And decodes the data through the output line 7. The CPU 14 performs a control operation corresponding to a user command input from the user interface 18 via the system bus 10. For example, the CPU 14 converts a channel at the tuner / demodulator 2 according to a user command and converts a data stream transmission path at the stream controller 4. In addition, the CPU 16 controls the demux / MPEG decoder 6 to select an input data stream according to a user command. The RAM 12 and the ROM 16 are used during the control operation of the CPU 14.

이와 같이, 종래의 디지털 방송 수신기는 HDD(20)를 이용하여 수신된 데이터스트림을 저장하였다가 재생하거나 재생하면서 저장하게 된다. 이 경우, 수신되는 데이터스트림에는 통상 여러개의 방송 프로그램이 포함되지만 사용자는 수신된 여러개의 방송 프로그램을 동시에 보지 않고 원하는 방송 프로그램만을 선택하여 보게 된다. 여러 프로그램을 보고자하는 경우에는 그 프로그램 수만큼 MPEG 디코더가 내장되어야만 한다. 그런데, 사용자는 수신되는 여러개의 프로그램 중 원하는 프로그램만을 보게 되지만 디지털 방송 수신기는 수신되는 모든 데이터스트림을 HDD(20)에 저장하게 된다. 이 경우, 데이터스트림의 양이 방대하므로 데이터스트림을 손실없이 HDD(20)에 저장하여 재생하기 위해서는 CPU(14)의 성능 및 각 구성요소간의 버스속도가 문제가 될 수밖에 없다.As described above, the conventional digital broadcasting receiver stores the received data stream using the HDD 20 and reproduces or reproduces the data stream. In this case, the received data stream usually includes a plurality of broadcast programs, but the user selects only a desired broadcast program without seeing the received multiple broadcast programs at the same time. If you want to see more than one program, you need to have as many MPEG decoders as there are programs. By the way, the user sees only the desired program among a plurality of received programs, but the digital broadcast receiver stores all received data streams in the HDD 20. In this case, since the amount of data streams is enormous, the performance of the CPU 14 and the bus speed between components are inevitably problematic in order to store and reproduce the data streams on the HDD 20 without loss.

예를 들면, 지상파 8VSB 방송의 경우 데이터스트림은 19.4Mbps(2.425Mbytes/Sec)로 입력되며 이를 저장하면서 재생하기 위해서는 '수신(RX) FIFO(24)의 리드타임(Read time) + HDD(20)의 라이트타임(Write time) + HDD(20)의 리드타임 + 송신(TX) FIFO(28)의 라이트타임 + 기타 등등 = 30ns + 30ns + 3ns + 30ns + 기타 등등=120ns'의 처리시간이 필요하다. 이 경우, 데이터스트림의 입력시간은 1/2.425Mhz = 412ns로서 상기 120ns 보다 크므로 별 무리는 없다. 그러나, 이는 수신(RX) 및 송신(TX) FIFO(24, 28)의 용량이 충분히 크다고 가정하 고 모든 버스의 속도가 33Mhz이며 모두 DMA처리가 가능할 때의 처리시간이다. 이러한 조건들을 모두 만족하지 못하는 경우 처리시간은 상기 120ns보다 더 커지게 된다. 또한, 위성 및 케이블 등의 다른 서비스매체에서는 전송 데이터스트림의 입력이 40Mbps 가까이 올라가게 되며, 디지털 방송 수신기에서의 데이터스트림 처리시간으로는 약 200ns의 시간이 소요된다. 이 경우, CPU(14)는 다른 처리를 거의 수행하지 못하게 된다. For example, in the case of terrestrial 8VSB broadcasting, the data stream is input at 19.4Mbps (2.425Mbytes / Sec), and in order to store and play the data stream, 'Read time of the RX FIFO 24 + HDD 20' Write time + read time of HDD 20 + write time of TX FIFO 28 + etc. = 30ns + 30ns + 3ns + 30ns + etc. = 120ns' processing time is required . In this case, the input time of the data stream is 1 / 2.425 Mhz = 412 ns, which is larger than the 120 ns. However, this assumes that the capacity of the receive (RX) and transmit (TX) FIFOs 24, 28 is large enough, and the speed of all the buses is 33Mhz and all of them are processing time when DMA processing is possible. If all of these conditions are not satisfied, the processing time is greater than 120 ns. In addition, in other service media such as satellite and cable, the input of the transmission data stream goes up to 40 Mbps, and the processing time of the data stream in the digital broadcasting receiver takes about 200 ns. In this case, the CPU 14 hardly performs other processing.

또한, 종래의 디지털 방송 수신기에서는 수신되는 모든 방송 프로그램을 저장하게 되므로 HDD(20)의 용량이 문제가 된다. 예를 들어, 19.4Mbps(2.425Mbytes/Sec)로 입력되는 데이터스트림을 1시간 저장하는 경우 2.425×3600=8.73Gbytes의 용량이 필요하고, 40Mbps인 경우 18Gbytes의 용량이 필요하므로 HDD(20)의 용량이 부족한 실정이다.In addition, in the conventional digital broadcasting receiver, all the received broadcast programs are stored, so the capacity of the HDD 20 becomes a problem. For example, when storing a data stream input at 19.4 Mbps (2.425 Mbytes / Sec) for 1 hour, the capacity of 2.425 × 3600 = 8.73 Gbytes is required, and when the capacity is 40 Mbps, the capacity of the HDD 20 is required. This situation is lacking.

따라서, 본 발명의 목적은 프로그램 ID(Identification)를 검출하여 사용자가 원하는 프로그램만을 저장함으로써 버스 점유율 및 HDD의 용량을 줄일 수 있는 디지털 방송 수신기의 데이터스트림 저장/재생 장치 및 방법을 제공하는 것이다.
Accordingly, an object of the present invention is to provide an apparatus and method for data stream storage / reproduction of a digital broadcast receiver which can reduce a bus occupancy and HDD capacity by detecting a program ID and storing only a program desired by a user.

상기 목적들을 달성하기 위하여, 본 발명에 따른 디지털 방송 수신기의 데이터스트림 저장/재생 장치는 입력되는 데이터스트림에서 사용자가 선택한 프로그램 에 대한 식별정보를 검출하기 위한 프로그램 식별정보 검출기와, 상기 프로그램 식별정보를 가지는 유효패킷만 저장장치에 저장되게 함과 아울러 동시에 재생되게 제어하는 제어부를 구비하는 것을 특징으로 한다.In order to achieve the above objects, a data stream storage / reproducing apparatus of a digital broadcasting receiver according to the present invention includes a program identification information detector for detecting identification information of a program selected by a user from an input data stream, and the program identification information. The branch is characterized in that it comprises a control unit for controlling only the effective packet is stored in the storage device and reproduced at the same time.

본 발명에 따른 디지털 방송 수신기의 데이터스트림 저장/재생 방법은 프로그램 식별정보 검출기에 사용자가 선택한 프로그램에 해당하는 프로그램 식별정보를 세팅하는 단계와, 세팅된 프로그램 식별정보를 가지는 유효패킷만을 검출하여 상기 저장장치에 저장하는 단계와, 저장장치에 저장된 데이터스트림을 읽어들여 재생하는 단계를 포함하는 것을 특징으로 한다.A data stream storage / reproduction method of a digital broadcasting receiver according to the present invention comprises the steps of setting program identification information corresponding to a program selected by a user in a program identification information detector, and detecting and storing only an effective packet having the set program identification information. And storing and reproducing the data stream stored in the storage device.

상기 목적 외에 본 발명의 다른 목적 및 이점들은 첨부 도면을 참조한 본 발명의 바람직한 실시 예에 대한 설명을 통하여 명백하게 드러나게 될 것이다.Other objects and advantages of the present invention in addition to the above object will be apparent from the description of the preferred embodiment of the present invention with reference to the accompanying drawings.

이하, 본 발명의 바람직한 실시 예를 도 3 내지 도 8을 참조하여 상세하게 설명하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to FIGS. 3 to 8.

도 3은 본 발명의 실시 예에 따른 디지털 방송 수신기의 스트림제어기를 나타낸 것이다. 도 3의 스트림제어기(4)는 입력 데이터스트림(TP_datain)의 전송경로를 절환하기 위한 먹스(30)와, 먹스(30)에 접속되어 선택된 프로그램 ID(이하, PID라 한다)를 검출하기 위한 PID 검출기(32)와, PID 검출을 위한 FIFO(40), 불필요 PID 패킷 수를 계수하기 위한 카운터(42)와, FIFO(40) 및 카운터(42)의 출력을 절환하기 위한 제2 먹스(42)와, 제2 먹스(42)와 호스트 인터페이스(58) 사이에 접속되어 불필요 PID 패킷수량과 선택된 PID를 임시 저장하기 위한 제1 및 제2 수신(RX) 버퍼(46, 48)와, 호스트 인터페이스(58)에 접속되어 라이팅된 데이터스트 림을 임시 저장하기 위한 제1 및 제2 송신(TX) 버퍼(60, 62)와, CPU(14)와 인터페이스를 위한 호스트 인터페이스(58)를 구비한다. 도 4 및 도 5는 상기 각 구성요소의 입출력신호 타이밍을 나타낸 것이다.3 illustrates a stream controller of a digital broadcast receiver according to an embodiment of the present invention. The stream controller 4 of FIG. 3 includes a mux 30 for switching the transmission path of the input data stream TP_datain and a PID for detecting a selected program ID (hereinafter referred to as PID) connected to the mux 30. The detector 32, the FIFO 40 for PID detection, the counter 42 for counting the number of unnecessary PID packets, and the second mux 42 for switching the outputs of the FIFO 40 and the counter 42. And first and second receive (RX) buffers 46 and 48 connected between the second mux 42 and the host interface 58 to temporarily store the quantity of unnecessary PID packets and the selected PID, and the host interface ( And first and second transmit (TX) buffers 60 and 62 for temporary storage of the written data stream, and a host interface 58 for interfacing with the CPU 14. 4 and 5 show the input and output signal timing of each component.

도 3에서 제1 먹스(30)는 튜너/디모듈레이터(2)로부터 입력되는 데이터스트림(TP_datain)의 경로를 절환하게 된다. 이 경우, 제1 먹스(30)는 호스트 인터페이스(58)를 통한 CPU(14)의 제어에 따른 제어로직부(34)의 제어신호(TP_con)를 입력하여 데이터스트림(TP_datain)을 PID 검출기(32) 및 FIFO(40) 쪽으로 출력하거나 디먹스/MPEG 디코더(6)로 출력하게 된다. 데이터스트림은 도 4에 도시된 바와 같이 전송패킷(TP) 단위로 전송되는데, 이 전송패킷(TP)은 통상 PID와 그 PID에 해당되는 데이터스트림으로 구성된다. PID 검출기(32)는 도 4에 도시된 바와 같이 제1 먹스(30)를 통해 입력되는 데이터스트림(TP_datain)에서 동기신호(Sync)를 검출함과 아울러 제어로직부(34)에 세팅된 PID 정보(PID_d)에 응답하여 PID를 검출하게 된다. PID 검출기(32)는 원하는 PID가 검출되면 도 4에 도시된 바와 같이 PID 검출신호(PID_mch)를 제어로직부(34)로 출력한다. FIFO(40)는 제어로직부(34)의 제어하에 제1 먹스(30)로부터 출력되는 전송패킷(TP) 중 PID 검출기(32)에서 검출된 유효 PID를 가지는 전송패킷(TP)만을 저장하여 출력하게 된다. 구체적으로, FIFO(40)는 제어로직부(34)에서 PID 검출신호(PID_mch)에 의해 라이트신호(W_fifo)를 공급되면 유효 PID를 가지는 전송패킷(TP)을 저장하게 한다. 그리고, FIFO(40)는 도 4에 도시된 바와 같이 제어로직부(34)에서 리드신호(R_fifo)가 공급되면 저장된 전송패킷을 출력하게 된다. 카운터(42)는 도 4에 도시된 바와 같이 제어로직부(34)로부터 공급되는 클럭신호(CT_clk)에 따라 불필요한 전송패킷의 수를 카운트하게 된다. 또한, 카운터(42)는 제어로직부(34)로부터 공급되는 리셋신호(CT_rst)에 의해 카운트한 값을 출력하고 리셋된다. 제어로직부(34)는 도 4에 도시된 바와 같이 PID 검출기(32)에서 PID 검출신호(PID_mch)가 입력되면 카운터(42)의 리셋신호(CT_rst)를 발생하게 된다. 제2 먹스(44)는 도 4에 도시된 바와 같이 제어로직부(34)에서 PID 검출신호(PID_mch)와 동기되어 출력되는 제어신호(MUX_con)에 따라 FIFO(40)로부터의 전송패킷 또는 카운터(42)로부터의 불필요 전송패킷 카운트값을 출력하게 된다. 이 결과, 제2 먹스(44)의 출력데이터(RX_data)는 도 4에 도시된 바와 같이 불필요 전송패킷의 카운트값이 유효 전송패킷의 앞단에 부가된 형태를 가지게 된다. 제1 및 제2 수신(RX) 버퍼(46, 48)는 제2 먹스(44)의 출력데이터(RX_data)를 제어로직부(34)의 제어하에 저장하고 저장된 데이터를 호스트 인터페이스(10)로 출력하게 된다. 이 경우, 제어로직부(34)는 내장된 수신 카운터(36)를 이용하여 제1 및 제2 수신(RX) 버퍼(46, 48)의 데이터 억세스량을 체크하여 데이터의 입출력을 제어하게 된다. 제1 및 제2 수신(RX) 버퍼(46, 48)의 데이터 입출력 경로는 각각에 접속된 데이터 디렉터(Director)(50, 54)에 의해 절환되게 된다. 또한, 제1 및 제2 수신(RX) 버퍼(46, 48)의 어드레스 입출력 경로는 각각에 접속된 어드레스 디렉터(52, 56)에 의해 절환되게 된다. 제어로직부(34)는 도 4에 도시된 바와 같이 하이상태의 제1 수신 제어신호(RX_con1)를 제1 데이터 및 제1 어드레스 디렉터(50, 52)에 공급하여 제어로직부(34)에서 출력되는 어드레스신호(RX_addr)에 따라 제2 먹스(44)의 출력데이터(RX_data)가 제1 수신(RX) 버퍼(46)에 저장되게 한다. 이어서, 제어로직부(34)는 출력데이터(RX_data)가 제1 수신(RX) 버퍼(46)에 가득차게 되면 도 4에 도시된 바와 같이 호스트 인터페이스(58)를 통해 CPU(14)에 하이상태의 인터럽트 신호(HOST_con)(int)를 공급하게 된다. 동시에, 제어로직부(34)는 도 4에 도시된 바와 같이 하이상태의 제2 수신 제어신호(RX_con2)를 제2 데이터 및 어드레스 디렉터(54, 56)에 공급하여 제어로직부(34)에서 출력되는 어드레스신호(RX_addr)에 따라 제2 먹스(44)의 출력데이터(RX_data)가 제2 수신(RX) 버퍼(48)에 저장되게 한다. 그리고, 제어로직부(34)는 출력데이터(RX_data)가 제2 수신(RX) 버퍼(46)에 가득차게 되면 도 4에 도시된 바와 같이 하이상태의 CPU(14)에 인터럽트 신호(HOST_con)(int)를 공급하게 된다. 이 경우, 제어로직부(34)는 수신카운터(36)를 이용하여 제1 및 제2 수신(RX) 버퍼(46, 48) 각각에 저장되는 전송패킷 수를 카운트하게 된다. CPU(14)는 인터럽트 신호(HOST_con)(int)가 공급되면 제1 또는 제2 수신(RX) 버퍼(46, 48)에 저장된 데이터를 리드 어드레스(RD_addr)에 따라 읽어내어 HDD(20)에 저장하게 된다. 이 경우, CPU(14)는 수신카운터(36)의 카운트값을 읽어 그 수량만큼의 데이터(RD_data)를 읽어내게 된다. In FIG. 3, the first mux 30 switches the path of the data stream TP_datain input from the tuner / demodulator 2. In this case, the first mux 30 inputs the control signal TP_con of the control logic unit 34 according to the control of the CPU 14 through the host interface 58 to convert the data stream TP_datain into the PID detector 32. ) And FIFO 40 or to the demux / MPEG decoder 6. As shown in FIG. 4, the data stream is transmitted in units of a transmission packet (TP). The transmission packet TP is usually composed of a PID and a data stream corresponding to the PID. As illustrated in FIG. 4, the PID detector 32 detects the synchronization signal Sync from the data stream TP_datain input through the first mux 30 and sets PID information set in the control logic unit 34. PID is detected in response to (PID_d). When the desired PID is detected, the PID detector 32 outputs the PID detection signal PID_mch to the control logic unit 34 as shown in FIG. 4. The FIFO 40 stores and outputs only the transmission packet TP having the effective PID detected by the PID detector 32 among the transmission packets TP output from the first mux 30 under the control of the control logic unit 34. Done. Specifically, the FIFO 40 stores the transmission packet TP having an effective PID when the control logic unit 34 supplies the write signal W_fifo by the PID detection signal PID_mch. As shown in FIG. 4, the FIFO 40 outputs the stored transmission packet when the read signal R_fifo is supplied from the control logic unit 34. The counter 42 counts the number of unnecessary transmission packets according to the clock signal CT_clk supplied from the control logic unit 34 as shown in FIG. In addition, the counter 42 outputs the value counted by the reset signal CT_rst supplied from the control logic unit 34 and is reset. As illustrated in FIG. 4, the control logic unit 34 generates the reset signal CT_rst of the counter 42 when the PID detection signal PID_mch is input from the PID detector 32. As shown in FIG. 4, the second mux 44 transmits a packet or a counter from the FIFO 40 according to the control signal MUX_con outputted in synchronization with the PID detection signal PID_mch from the control logic unit 34. The unnecessary transfer packet count value from 42 is output. As a result, the output data RX_data of the second mux 44 has a form in which the count value of the unnecessary transmission packet is added to the front end of the valid transmission packet as shown in FIG. The first and second receive (RX) buffers 46 and 48 store the output data RX_data of the second mux 44 under the control of the control logic unit 34 and output the stored data to the host interface 10. Done. In this case, the control logic unit 34 checks the data access amounts of the first and second reception (RX) buffers 46 and 48 by using the built-in reception counter 36 to control input / output of data. The data input / output paths of the first and second receive (RX) buffers 46 and 48 are switched by the data directors 50 and 54 connected to each other. In addition, the address input / output paths of the first and second receive (RX) buffers 46 and 48 are switched by the address directors 52 and 56 connected to each other. As shown in FIG. 4, the control logic unit 34 supplies the first reception control signal RX_con1 in the high state to the first data and the first address directors 50 and 52 and outputs the control logic unit 34. The output data RX_data of the second mux 44 is stored in the first reception RX buffer 46 according to the address signal RX_addr. Subsequently, when the output logic RX_data fills the first reception buffer RX 46, the control logic unit 34 is in a high state to the CPU 14 through the host interface 58 as shown in FIG. 4. The interrupt signal (HOST_con) (int) is supplied. At the same time, the control logic section 34 supplies the second reception control signal RX_con2 in the high state to the second data and address directors 54 and 56 and outputs it from the control logic section 34 as shown in FIG. The output data RX_data of the second mux 44 is stored in the second reception RX buffer 48 according to the address signal RX_addr. When the output data RX_data fills the second reception RX buffer 46, the control logic unit 34 interrupts the host 14 with an interrupt signal HOST_con ( int). In this case, the control logic unit 34 counts the number of transmission packets stored in each of the first and second reception (RX) buffers 46 and 48 by using the reception counter 36. When the interrupt signal HOST_con (int) is supplied, the CPU 14 reads data stored in the first or second receive (RX) buffers 46 and 48 according to the read address RD_addr and stores the data in the HDD 20. Done. In this case, the CPU 14 reads the count value of the reception counter 36 and reads out data RD_data corresponding to the quantity.

그리고, 사용자가 HDD(20)에 저장된 데이터의 재생명령을 인가하는 경우 CPU(14)는 HDD(20)에 저장된 데이터를 읽어들여 호스트인터페이스(58)를 통해 제1 및 제2 송신(TX) 버퍼(60, 62)에 저장하게 된다. 제어로직부(34)는 제1 및 제2 송신(TX) 버퍼(60, 62)에 저장된 전송패킷을 읽어들여 디먹스/MPEG 디코더(6)로 출력되게 한다. 이 경우, 제1 및 제2 송신(TX) 버퍼(60, 62)의 데이터 입출력 경로는 각각에 접속된 데이터 디렉터(Director)(64, 68)에 의해 절환되게 된다. 또한, 제1 및 제2 송신(TX) 버퍼(60, 62)의 어드레스 입출력 경로는 각각에 접속된 어드레스 디렉터(66, 70)에 의해 절환되게 된다. 상세히 하면, CPU(14)는 먼저 도 5에 도시된 바와 같이 하이상태의 제1 라이트제어신호(W_con1)를 제3 데이터 및 제3 어드레스 디렉터(64, 66)와 제1 송신(TX) 버퍼(60)에 공급함으로써 HDD(20)에서 읽어들인 라이트데이터(W_data)를 라이트어드레스(W_addr)에 따라 제1 송신(TX) 버퍼(60)에 저장되게 한다. 이 경우, CPU(14)는 제어로직부(34)의 송신카운터에 제1 송신(TX) 버퍼에 라이트된 전송패킷의 수량을 세팅하게 된다. 그 다음, CPU(14)는 하이상태의 제2 라이트제어신호(W_con2)를 제4 데이터 및 어드레스 디렉터(68, 70)에 공급하여 어드레스신호(W_addr)에 따라 라이트데이터(W_data)가 제2 송신(TX) 버퍼(62)에 저장되게 한다. 이 경우, CPU(14)는 제어로직부(34)의 송신카운터(38)에 제1 및 제2 송신(TX) 버퍼(60, 62)에 라이트된 전송패킷의 수를 세팅하게 된다. 이에 따라, 송신카운터(38)에 0이상의 값이 세팅되면 제어로직부(34)는 제1 송신 버퍼(60)에 저장된 데이터를 송신 어드레스(TX_addr)에 따라 읽어내게 된다. 이때, 제어로직부(34)는 도 5에 도시된 바와 같이 D0_con 신호를 제5 데이터디렉터(72)에 공급하여 전송패킷의 첫 번째 바이트를 읽어들이게 된다. 그리고, 읽어들인 값이 '0'인 경우 도 5에 도시된 바와 같이 액티브(Active) 상태의 출력 클럭신호(TP_clkout)를 발생하여 그 출력 클럭신호(TP_clkout)에 따라 제1 송신 버퍼(60)로부터 읽어들인 송신데이터(TX_data)가 디먹스/MPEG 디코더(6)로 전송되게 한다. 반면에, 전송패킷의 첫 번째 바이트 값이 '0'보다 크면 도 5에 도시된 바와 같이 그 첫 번째 바이트 값만큼 출력 클럭신호(TP_clkout)를 넌-액티브(Non-active) 상태로 출력하게 된다. 이 경우, 출력 클럭신호(TP_clkout)는 입력 클럭신호(TP_clkout)와 같은 주파수를 갖게 된다. 제어로직부(34)의 송신카운터(38)의 값은 유효패킷이 출력데이터(TP_dataout)로 출력되는 경우 세팅된 값을 전송패킷당 다운 카운트하게 된다. 이에 따라, 카운트값이 '0'이 되면 제1 송신버퍼(60)가 비워짐을 의미하므로 호스트 인터페이스(58)에 도 5에 도시된 바와 같이 제1 송신버퍼(60) 인터럽트 신호(HOST_con)(int)를 전달함과 동시에 송신카운터(38)에 의해 제2 송신(TX) 버퍼(62)에 저장된 전송패킷이 상기와 같은 동작으로 출력 데이터(TP_dataout)로 출력되어 디먹스/MPEG디코더에 의해 재생되게 한다. CPU(14)는 호스트인터페이스(58)를 통해 제1 송신버퍼(60) 인터럽트 신호(HOST_con)(int)를 입력받으면 제1 송신버퍼(60)에, 제2 송신버퍼(62) 인터럽트 신호(HOST_con)(int)를 입력받으면 제2 송신버퍼(62)에 HDD(20)로부터 읽어들인 데이터를 라이트하게 된다. When the user applies a reproduction command of the data stored in the HDD 20, the CPU 14 reads the data stored in the HDD 20 and transmits the first and second transmit (TX) buffers through the host interface 58. Will be stored at (60, 62). The control logic unit 34 reads the transmission packets stored in the first and second transmission (TX) buffers 60 and 62 and outputs them to the demux / MPEG decoder 6. In this case, the data input / output paths of the first and second transmission (TX) buffers 60, 62 are switched by the data directors 64, 68 connected to each. In addition, the address input / output paths of the first and second transmission (TX) buffers 60 and 62 are switched by the address directors 66 and 70 connected to the respective ones. In detail, the CPU 14 first transmits the first write control signal W_con1 in the high state as shown in FIG. 5 to the third data, the third address directors 64 and 66, and the first transmit TX buffer. 60, the write data W_data read from the HDD 20 is stored in the first transmission TX buffer 60 according to the write address W_addr. In this case, the CPU 14 sets the number of transmission packets written to the first transmission TX buffer in the transmission counter of the control logic unit 34. Then, the CPU 14 supplies the second write control signal W_con2 in the high state to the fourth data and the address directors 68 and 70 so that the write data W_data is second transmitted in accordance with the address signal W_addr. (TX) to be stored in the buffer 62. In this case, the CPU 14 sets the number of transmission packets written to the first and second transmission (TX) buffers 60 and 62 in the transmission counter 38 of the control logic unit 34. Accordingly, when a value greater than or equal to 0 is set in the transmission counter 38, the control logic unit 34 reads data stored in the first transmission buffer 60 according to the transmission address TX_addr. At this time, the control logic unit 34 reads the first byte of the transmission packet by supplying the D0_con signal to the fifth data director 72 as shown in FIG. When the read value is '0', as shown in FIG. 5, an output clock signal TP_clkout in an active state is generated, and from the first transmission buffer 60 according to the output clock signal TP_clkout. The read transmission data TX_data is transmitted to the demux / MPEG decoder 6. On the other hand, if the first byte value of the transmission packet is greater than '0', as shown in FIG. 5, the output clock signal TP_clkout is output in the non-active state by the first byte value. In this case, the output clock signal TP_clkout has the same frequency as the input clock signal TP_clkout. The value of the transmission counter 38 of the control logic unit 34 is to count down the set value per transmission packet when the valid packet is output as the output data TP_dataout. Accordingly, since the first transmission buffer 60 is empty when the count value is '0', the interrupt signal HOST_con (int) of the first transmission buffer 60 is shown in the host interface 58 as shown in FIG. 5. At the same time, the transmission packet stored in the second transmission (TX) buffer 62 by the transmission counter 38 is outputted to the output data TP_dataout in the same manner as described above to be reproduced by the demux / MPEG decoder. do. The CPU 14 receives the first transmission buffer 60 interrupt signal HOST_con (int) through the host interface 58 to the first transmission buffer 60 and the second transmission buffer 62 interrupt signal HOST_con. (int), the data read from the HDD 20 is written to the second transmission buffer 62.

도 6은 본 발명의 실시 예에 따른 디지털 방송 수신기의 수신 데이터스트림 저장/재생 방법을 단계적으로 설명하는 흐름도이다.6 is a flowchart illustrating a step-by-step method of storing / reproducing a received data stream of a digital broadcast receiver according to an embodiment of the present invention.

단계 2(S2)에서 디먹스/MPEG디코더(6)를 통해 수신된 데이터스트림에 대한 정보를 얻게 된다. 다시 말하여, 초기동작시 스트림제어기의 제1 먹스(30)는 디먹스/MPEG디코더(6) 쪽으로 제어되며 디먹스/MPEG디코더(6)를 통해 현재 선택되어 수신되는 데이터스트림에 대한 시스템정보를 얻어 CPU(14)를 통해 RAM(12)에 저장하 게 된다. 단계 4(S4)에서 사용자가 사용자 인터페이스(18)를 통해 디지털방송수신기의 동작모드를 저장 및 재생모드로 선택하면 단계 8(S8)로 진행하고, 사용자가 재생모드를 선택하면 단계 10(S10)으로 진행하여 노멀(Normal) 동작, 재생동작하게 된다. 단계 8(S8)에서 사용자가 시스템정보를 보고 원하는 프로그램에 대한 데이터스트림(즉, 원하는 영화 등)을 선택하면 해당되는 PID가 호스트인터페이스(58)와 제어로직부(34)를 거쳐 PID 검출기(32)에 세팅되게 된다. 이 경우, PID 검출기(32)에 세팅되는 PID는 비디오 PID, 오디오 PID, 시스템 디코딩을 위한 PID 등 여러개가 된다. 그 다음, 단계 10(S10)에서 제1 먹스(30)는 제어로직부(34)의 제어신호에 의해 노멀모드에서 저장모드로 절체되게 된다. 이에 따라, PID검출기(32)에 세팅된 PID를 가지는 유효 전송패킷이 제1 또는 제2 수신 버퍼(46, 48)에 저장되게 된다. 이 경우, 유효 전송패킷은 그 앞단에 불필요 전송패킷수가 부가된 형태로 저장되게 된다. 단계 12(S12)에서 제1 또는 제2 수신 버퍼(46, 48)에 전송패킷이 가득 차게 되어 제어로직부(34)에서 수신 인터럽트 신호가 발생되면 단계 14(S14)로 진행하여 제1 또는 제2 수신 버퍼(46, 48)에 저장된 유효 전송패킷을 읽어들여 HDD(20)에 저장시키게 된다. 이 저장동작을 상세히 하면, 도 7에 도시된 바와 같다.In step 2 (S2), information about the data stream received through the demux / MPEG decoder 6 is obtained. In other words, during the initial operation, the first mux 30 of the stream controller is controlled toward the demux / MPEG decoder 6 and receives system information on the data stream currently selected and received through the demux / MPEG decoder 6. It is obtained and stored in the RAM 12 through the CPU (14). In step 4 (S4), if the user selects the operation mode of the digital broadcast receiver through the user interface 18 as the storage and playback mode, the process proceeds to step 8 (S8); when the user selects the playback mode, step 10 (S10) The process proceeds to the normal operation and the reproduction operation. In step 8 (S8), when the user views the system information and selects a data stream for the desired program (i.e., the desired movie, etc.), the corresponding PID passes through the host interface 58 and the control logic unit 34 and the PID detector 32. Will be set to). In this case, the PID set in the PID detector 32 may be a number such as a video PID, an audio PID, and a PID for system decoding. Next, in step 10 (S10), the first mux 30 is switched from the normal mode to the storage mode by the control signal of the control logic unit 34. Accordingly, an effective transmission packet having a PID set in the PID detector 32 is stored in the first or second reception buffers 46 and 48. In this case, the effective transmission packet is stored in a form in which the unnecessary transmission packet number is added to the front end thereof. In step 12 (S12), if the first or second receive buffers 46 and 48 become full, and the receive interrupt signal is generated in the control logic unit 34, the process proceeds to step 14 (S14) and the first or second 2 The valid transmission packets stored in the reception buffers 46 and 48 are read and stored in the HDD 20. This storage operation is described in detail as shown in FIG.

단계 22(S22)에서 제1 수신 버퍼(46)에 전송패킷이 가득차게 되어 제어로직부(34)를 통해 제1 수신버퍼 인터럽트가 발생되면 단계 24(S24)로 진행하여 수신카운터(36)의 제1 수신카운터 값을 리드하게 된다. 그 다음, 단계 26(S26)에서 상기 제1 수신카운터 값 만큼 제1 수신버퍼(46)에 저장된 전송패킷을 읽어내어 HDD(20) 에 저장시키게 된다. 단계 28(S28)에서 제1 수신카운터 값을 클리어시키게 된다. 그리고, 단계 30(S30)에서 제2 수신 버퍼(48)에 전송패킷이 가득차게 되어 제어로직부(34)를 통해 제2 수신버퍼 인터럽트가 발생되면 단계 32(S32)로 진행하여 수신카운터(36)의 제2 수신카운터 값을 리드하게 된다. 그 다음, 단계 32(S32)에서 상기 제2 수신카운터 값 만큼 제2 수신버퍼(48)에 저장된 전송패킷을 읽어내어 HDD(20)에 저장시키게 된다. 단계 34(S34)에서 제2 수신카운터 값을 클리어시키게 된다. In step 22 (S22), if the first receive buffer 46 becomes full and the first receive buffer interrupt is generated through the control logic unit 34, the process proceeds to step 24 (S24) and the receiving counter 36 The first reception counter value is read. Thereafter, in step 26 (S26), the transmission packet stored in the first reception buffer 46 is read out as much as the first reception counter value and stored in the HDD 20. In step 28 (S28), the first reception counter value is cleared. In operation 30 (S30), when the transmission packet becomes full in the second reception buffer 48 and a second reception buffer interrupt occurs through the control logic unit 34, the process proceeds to step 32 (S32) and the reception counter 36 Leads to a second receive counter value. Next, in step 32 (S32), the transmission packet stored in the second reception buffer 48 is read out as much as the second reception counter value and stored in the HDD 20. In operation 34 (S34), the second reception counter value is cleared.

이렇게, HDD(20)에 유효 전송패킷이 저장되면서 먼저 저장된 전송패킷을 읽어들여 재생하게 된다. 다시 말하여, 단계 14(S16)에서 제어로직부(34)에서 송신 인터럽트 신호가 발생되면 단계 18(S18)로 진행하여 HDD(34)에 저장된 전송패킷을 읽어들여 제1 또는 제2 송신 버퍼(60, 62)에 라이트하게 된다. 그리고 제1 또는 제2 송신 버퍼(60, 62)에 저장된 전송패킷이 리드하여 출력함으로써 재생되게 한다. 이 재생동작을 상세히 하면, 도 8에 도시된 바와 같다.In this way, while the effective transmission packet is stored in the HDD 20, the stored transmission packet is first read and reproduced. In other words, when the transmission interrupt signal is generated in the control logic unit 34 in step 14 (S16), the flow advances to step 18 (S18) to read the transmission packet stored in the HDD 34 to read the first or second transmission buffer ( 60, 62). Then, the transmission packets stored in the first or second transmission buffers 60, 62 are read out to be reproduced. This regeneration operation is described in detail as shown in FIG.

단계 40(S40)에서 제1 송신 버퍼 인터럽트가 발생되면 단계 42(S42)로 진행하여 HDD(20)에서 전송패킷을 읽어들여 제1 송신버퍼(60)에 라이트하게 된다. 단계 44(S44)에서 제어로직부(34)의 송신카운터(38)는 제1 송신버퍼(60)에 라이트되는 전송패킷 수를 카운트하면서 카운트값을 업데이트(Up date)하게 된다. 그리고, 제1 송신카운터 값을 다운 카운트하면서 제1 송신버퍼(60)에 저장된 전송패킷을 읽어들여 출력하게 된다. 단계 46(S46)에서 제2 송신 버퍼 인터럽트가 발생되면 단계 48(S48)로 진행하여 HDD(20)에서 전송패킷을 읽어들여 제2 송신버퍼(62)에 라이 트하게 된다. 단계 50(S50)에서 제어로직부(34)의 송신카운터(38)는 제2 송신버퍼(62)에 라이트되는 전송패킷 수를 카운트하면서 카운트값을 업데이트(Up date)하게 된다. 그리고, 제2 송신카운터 값을 다운 카운트하면서 제2 송신버퍼(62)에 저장된 전송패킷을 읽어들여 출력하게 된다. When the first transmission buffer interrupt is generated in step 40 (S40), the process proceeds to step 42 (S42), where the transmission packet is read from the HDD 20 and written to the first transmission buffer 60. In step 44 (S44), the transmission counter 38 of the control logic unit 34 updates the count value while counting the number of transmission packets written to the first transmission buffer 60 (Up date). The transmission packet stored in the first transmission buffer 60 is read and output while down counting the first transmission counter value. When the second transmit buffer interrupt is generated in step 46 (S46), the process proceeds to step 48 (S48) to read the transmission packet from the HDD 20 and write it to the second transmit buffer 62. In step 50 (S50), the transmission counter 38 of the control logic unit 34 updates the count value while counting the number of transmission packets written to the second transmission buffer 62 (Up date). Then, the transmission packet stored in the second transmission buffer 62 is read and output while down counting the second transmission counter value.

이와 같이, 상기 단계 12(S12) 내지 단계 18(S18)을 반복하여 사용자가 원하는 데이터스트림만 저장/재생하다가 단계 20(S20)에서 사용자로부터 종료명령이 인가되면 상기 저장/재생 동작을 종료하게 된다.As described above, while repeating steps 12 (S12) and 18 (S18), only the data stream desired by the user is stored / played back, and when the end command is received from the user in step 20 (S20), the storage / playback operation is terminated. .

상술한 바와 같이, 본 발명에 따른 디지털 방송 수신기의 수신 데이터스트림 저장/재생 장치 및 방법에 의하면 수신되는 데이터스트림 중 사용자가 원하는 PID를 가지는 프로그램만을 HDD에 저장하므로 시스템의 버스점유율을 낮출 수 있게 된다. 또한, 원하는 프로그램만 HDD에 저장하므로 HDD의 저장되는 데이터의 양이 줄어들게 되므로 저장시간을 늘일 수 있게 된다. 아울러, 불필요한 데이터를 쓰고 읽음으로 인한 HDD의 수명을 연장시킬 수 있게 된다. As described above, according to the apparatus and method for storing / reproducing a received data stream of a digital broadcast receiver according to the present invention, only a program having a PID desired by a user among the received data streams is stored in the HDD, thereby reducing the bus occupancy rate of the system. . In addition, since only the desired program is stored in the HDD, the amount of data stored in the HDD is reduced, thereby increasing the storage time. In addition, it is possible to extend the life of the HDD by writing and reading unnecessary data.

이상 설명한 내용을 통해 당업자라면 본 발명의 기술사상을 일탈하지 아니하는 범위에서 다양한 변경 및 수정이 가능함을 알 수 있을 것이다. 따라서, 본 발명의 기술적 범위는 명세서의 상세한 설명에 기재된 내용으로 한정되는 것이 아니라 특허 청구의 범위에 의해 정하여져야만 할 것이다.Those skilled in the art will appreciate that various changes and modifications can be made without departing from the technical spirit of the present invention. Therefore, the technical scope of the present invention should not be limited to the contents described in the detailed description of the specification but should be defined by the claims.

Claims (7)

입력되는 데이터스트림에서 사용자가 선택한 프로그램에 대한 식별정보를 검출하기 위한 프로그램 식별정보 검출기와,A program identification information detector for detecting identification information of a program selected by a user from an input data stream; 상기 프로그램 식별정보를 가지는 유효패킷에 불필요 패킷의 수량을 부가하여 저장되게 함과 아울러 재생되게 제어하는 제어부, 및A control unit for adding and storing a quantity of unnecessary packets to a valid packet having the program identification information, and controlling reproduction and reproduction; and 상기 불필요 패킷의 수량이 부가된 유효패킷을 저장하는 저장장치를 구비하는 것을 특징으로 하는 디지털 방송 수신기의 수신 데이터스트림 저장/재생 장치.And a storage device for storing an effective packet to which the quantity of unnecessary packets has been added. 제 1 항에 있어서,The method of claim 1, 상기 유효패킷 각각에 상기 유효패킷들 사이에 위치하는 불필요 패킷의 수량을 계수하여 부가시키기 위한 카운터를 더 구비하는 것을 특징으로 하는 디지털 방송 수신기의 수신 데이터스트림 저장/재생 장치.And a counter for counting and adding a quantity of unnecessary packets located between the valid packets to each of the valid packets. 제 2 항에 있어서,The method of claim 2, 상기 불필요 패킷의 수량이 부가된 유효패킷을 임시 저장하기 위한 수신 버퍼와,A reception buffer for temporarily storing a valid packet to which the quantity of unnecessary packets is added; 상기 저장장치에서 읽혀진 데이터를 임시 저장하기 위한 송신 버퍼를 더 구비하는 것을 특징으로 하는 디지털 방송 수신기의 수신 데이터스트림 저장/재생 장 치.And a transmission buffer for temporarily storing data read from the storage device. 제 1 항에 있어서,The method of claim 1, 상기 제어부는 The control unit 상기 송신 및 수신 버퍼의 데이터 억세스량을 검출하기 위한 카운터를 더 구비하여 상기 송신 및 수신 버퍼를 제어하는 것을 특징으로 하는 디지털 방송 수신기의 수신 데이터스트림 저장/재생 장치.And a counter for detecting data access amounts of the transmission and reception buffers to control the transmission and reception buffers. 디지털 방송 수신기에서 입력되는 데이터를 저장 장치에 저장함과 동시에 재생하는 방법에 있어서,In the method of simultaneously storing the data input from the digital broadcast receiver to the storage device, 프로그램 식별정보 검출기에 사용자가 선택한 프로그램에 해당하는 프로그램 식별정보를 세팅하는 단계와,Setting program identification information corresponding to a program selected by the user in the program identification information detector; 상기 세팅된 프로그램 식별정보를 가지는 유효패킷에 불필요 패킷의 수량을 부가하여 상기 저장장치에 저장하는 단계와,Adding a quantity of unnecessary packets to a valid packet having the set program identification information and storing the quantity of unnecessary packets in the storage device; 상기 저장장치에 저장된 데이터스트림을 읽어들여 재생하는 단계를 포함하는 것을 특징으로 하는 디지털 방송 수신기의 수신 데이터스트림 저장/재생 방법.Receiving and reproducing the data stream stored in the storage device. 제 5 항에 있어서,The method of claim 5, 상기 유효패킷을 저장하는 단계는 The storing of the valid packet is 상기 유효패킷들 사이에 위치하는 불필요 패킷 수량을 검출하여 상기 유효패 킷의 앞단에 부가하는 단계를 더 포함하는 것을 특징으로 하는 디지털 방송 수신기의 수신 데이터스트림 저장/재생 방법.And detecting a quantity of unnecessary packets located between the valid packets and adding the detected number of unnecessary packets to the front end of the valid packet. 제 5 항에 있어서,The method of claim 5, 상기 데이터스트림을 재생하는 단계는Reproducing the data stream 상기 저장장치에서 읽어들인 전송패킷의 앞단에 부가된 불필요 패킷 수량을 검출하는 단계와,Detecting a quantity of unnecessary packets added to the front end of the transmission packet read from the storage device; 상기 단계에서 검출된 불필요 패킷 수에 대응하여 클럭신호를 선택적으로 활성화시켜 상기 전송패킷을 출력함으로써 재생하는 단계를 포함하는 것을 특징으로 하는 디지털 방송 수신기의 수신 데이터스트림 저장/재생 방법.And selectively activating a clock signal in response to the number of unnecessary packets detected in the step and outputting the transmission packet to reproduce the received data stream.
KR1019990031572A 1999-07-31 1999-07-31 Apparatus of Storing/Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof KR100640913B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990031572A KR100640913B1 (en) 1999-07-31 1999-07-31 Apparatus of Storing/Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990031572A KR100640913B1 (en) 1999-07-31 1999-07-31 Apparatus of Storing/Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof

Publications (2)

Publication Number Publication Date
KR20010011951A KR20010011951A (en) 2001-02-15
KR100640913B1 true KR100640913B1 (en) 2006-11-02

Family

ID=19605938

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990031572A KR100640913B1 (en) 1999-07-31 1999-07-31 Apparatus of Storing/Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof

Country Status (1)

Country Link
KR (1) KR100640913B1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100640346B1 (en) * 1999-10-14 2006-10-31 삼성전자주식회사 Digital stream controller and a broadcast receiving system having the same
KR100710246B1 (en) * 2001-02-08 2007-04-20 엘지전자 주식회사 method for recording in digital TV with record device
KR100469266B1 (en) * 2002-01-23 2005-02-02 엘지전자 주식회사 apparatus for recording/playing of digital broadcast signal
KR100851002B1 (en) * 2002-01-30 2008-08-12 주식회사 엘지이아이 Repeat play apparatus and method for digital television

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991003127A1 (en) 1989-08-12 1991-03-07 Telefunken Fernseh Und Rundfunk Gmbh Process for transmission and automatic reception of data signals in a tv signal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991003127A1 (en) 1989-08-12 1991-03-07 Telefunken Fernseh Und Rundfunk Gmbh Process for transmission and automatic reception of data signals in a tv signal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1019990033450 *

Also Published As

Publication number Publication date
KR20010011951A (en) 2001-02-15

Similar Documents

Publication Publication Date Title
EP0751684B1 (en) Decoding information pages having header information and page data
KR100246070B1 (en) Method for the sequential transmission of compressed video information at varying data rates
KR100327853B1 (en) Digital Broadcasting Receiving System in Information Processing Equipment
US5873022A (en) Method of receiving compressed video signals using a latency buffer during pause and resume
US5323272A (en) Time delay control for serial digital video interface audio receiver buffer
US20060227967A1 (en) Data processing system and method
EP0825784A2 (en) Apparatus and method for transmitting data
EP0537397B1 (en) Adaptive FIFO memory controller
KR100640913B1 (en) Apparatus of Storing/Reproducing Data Stream Received at Digital Broadcasting Receiver and Method Thereof
KR100810288B1 (en) Device and method for processing information and recorded medium
JP2001134495A (en) Method and device for reading multi-media information and storage medium drive device and transmitting medium and information stream and electronics
US20020076196A1 (en) Digital broadcast recording/reproducing apparatus
KR100259295B1 (en) Memory controlling apparatus
KR100689109B1 (en) Digital video reception device, audio and video data recording device, and a process for recording audio and video data in a digital television receiver
US20050201728A1 (en) Writing/reading system of HD stream
KR100595155B1 (en) Apparatus and Method For Storing Digital Broadcasting Signal
JP2002269910A (en) Disk recording and reproducing device and method, disk recording device and method, and disk recording and reproducing device and method
JP3351217B2 (en) Digital signal processing device and digital signal processing method
JPH04255187A (en) Information recording device
KR100455946B1 (en) Broadcasting signal receiver having a descrambler
KR20010057911A (en) Broadcasting signal recording and playing apparatus using hard disk
US5768518A (en) Signal distribution apparatus for a directional signal transmission system
JP3706696B2 (en) Digital information receiving apparatus and digital information receiving method
KR100851002B1 (en) Repeat play apparatus and method for digital television
KR100705180B1 (en) Apparatus and Method for Transport Stream Recording Control in Discmedia

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20100929

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee