KR100227308B1 - Device and method being capable of programming in mpu board - Google Patents
Device and method being capable of programming in mpu board Download PDFInfo
- Publication number
- KR100227308B1 KR100227308B1 KR1019970029870A KR19970029870A KR100227308B1 KR 100227308 B1 KR100227308 B1 KR 100227308B1 KR 1019970029870 A KR1019970029870 A KR 1019970029870A KR 19970029870 A KR19970029870 A KR 19970029870A KR 100227308 B1 KR100227308 B1 KR 100227308B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- mpu
- buffer unit
- command
- input
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C8/00—Arrangements for selecting an address in a digital store
- G11C8/06—Address interface arrangements, e.g. address buffers
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C8/00—Arrangements for selecting an address in a digital store
- G11C8/10—Decoders
Abstract
본 발명은 프로그램을 변경하거나 디버깅하도록 MPU 보드에서 프로그램 가능한 장치 및 방법에 관한 것으로, 셋탑박스의 외부 프론트(FRONT)에 설치된 여러 기능에 대한 조작을 제어하기 위한 MPU와, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 데이터의 출력을 해제 또는 접속하는 버퍼부와, 데이터 버퍼부 및 어드레스 버퍼부를 접속 또는 해제하는 어드레스 디코더와, 시스템 전체를 제어하는 메인 CPU와, 상기 메인 CPU로부터 전송되는 직렬 데이터를 제어하는 직렬 통신 제어기와, 변복조하는 모뎀과, RS232C 드라이버로 이루어져서 별도의 장치없이도 용이하게 프로그램을 라이트 할 수 있는 발명이다.The present invention relates to an apparatus and method that can be programmed in an MPU board to change or debug a program. The present invention relates to an MPU for controlling operations on various functions installed in an external front of a set-top box, an operation mode or a program mode. A buffer unit for releasing or connecting the output of data upon application, an address decoder for connecting or releasing the data buffer unit and the address buffer unit, a main CPU for controlling the entire system, and serial data transmitted from the main CPU. It consists of a serial communication controller, a modem to demodulate and demodulate, and an RS232C driver so that the program can be easily written without a separate device.
Description
본 발명은 셋탑박스(SET TOP BOX)에 사용되는 MPU(MAIN PROCESSOR UNIT) 보드에 관한 것으로서, 특히 모뎀 또는 RS232C 드라이버를 통해서 프로그램을 변경하거나 디버깅(DEBUGGING)할 경우 별도의 추가장치 없이도 용이하게 리드/라이트 할 수 있는 MPU 보드에서 프로그램 가능한 장치 및 방법에 관한 것이다.The present invention relates to an MPU (MAIN PROCESSOR UNIT) board used in a set top box, and in particular, when changing or debugging a program through a modem or an RS232C driver, it is easy to read / decode without additional devices. The present invention relates to a programmable device and a method for writing to an MPU board.
종래에는 시스템을 응용한 멀티미디어 제품 개발시 MPU에 프로그램 데이터를 라이팅(WRITING)시킨 후, 사용중 프로그램의 내용이 버전-업(VERSION-UP)되어 이미 라이트된 데이터를 소거할 경우 일정하게 정해진 툴(TOOL) 즉, 롬 라이터(ROM WRITER)라는 것을 사용하기 때문에, 제품의 카바(COVER)를 벗겨서 MPU을 바꾸어 주어야 하는 불편함이 있었다.Conventionally, if program data is written to the MPU during the development of a multimedia product applied to the system, and the contents of the program are used in the version-up (VERSION-UP) to erase the already written data, a predetermined tool In other words, the use of a ROM writer (ROM WRITER), so there was an inconvenience to take off the cover of the product to change the MPU.
그리고 원거리에서 셋탑박스(SET TOP BOX) 내부에 있는 프로그램 데이터를 변경할 수 없기 때문에 데이터를 용이하게 디버깅할 수 없는 문제점이 있었다.In addition, there is a problem in that data cannot be easily debugged because the program data inside the set top box cannot be changed at a long distance.
본 발명의 목적은, 상기와 같은 종래의 문제점을 해소하기 위한 것으로, 본 발명은 외부 터미널 또는 호스트 컴퓨터로부터 데이터를 다운 로딩시켜 MPU 내부에 저장되어 있는 프로그램 코드를 직접 라이팅하거나 또는 지울 수 있으며, 외부의 PSTN(PUBLIC SWITCHED TELEPHONE NETWORK) 망을 이용하여 원거리에서도 데이터를 다운로딩 할 수 있는 MPU 보드에서 프로그램 가능한 장치 및 방법을 제공하는데 있다.An object of the present invention is to solve the above-mentioned conventional problems, the present invention can download the data from an external terminal or host computer directly to write or erase the program code stored in the MPU, the external The purpose of the present invention is to provide a programmable device and method in an MPU board that can download data from a long distance by using a PSTN (PUBLIC SWITCHED TELEPHONE NETWORK) network.
상기와 같은 목적을 달성하기 위한 본 발명의 MPU 보드에서 프로그램 가능한 장치는, 셋탑박스의 외부 프론트(FRONT)에 설치된 여러 기능에 대한 조작을 제어하기 위한 MPU과, 상기 MPU로부터 출력되는 데이터를 입력받아, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 데이터의 출력을 해제 또는 접속하는 버퍼부와, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 데이터 버퍼부 및 어드레스 버퍼부를 제어하여 상기 데이터 버퍼부 및 어드레스 버퍼부를 접속 또는 해제하는 어드레스 디코더와, 시스템 전체를 제어하는 메인 CPU과, 상기 메인 CPU에 연결되어 상기 메인 CPU로부터 전송되는 직렬 데이터를 제어하는 직렬 통신 제어기와, 사익 직렬 통신 제어기로부터 전송된 직렬데이터를 변조 또는 복조하여 외부의 PSTN 전화망으로부터 데이터를 수신받거나 또는 PSTN 전화망으로 데이터를 전송하는 모뎀과, 데이터를 입출력하기 위한 RS232C 드라이버로 이루어져 있다.Programmable device in the MPU board of the present invention for achieving the above object, the MPU for controlling the operation of the various functions installed in the front (FRONT) of the set-top box, and receives the data output from the MPU And a buffer unit for releasing or connecting the output of the data according to the operation mode or the program mode, and controlling the data buffer unit and the address buffer unit according to the operation mode or the program mode to control the data buffer unit and the address buffer unit. An address decoder to connect or disconnect, a main CPU to control the entire system, a serial communication controller connected to the main CPU to control serial data transmitted from the main CPU, and a serial data transmitted from a Sykes serial communication controller. Or demodulate data from an external PSTN telephone network. Seen to receive or transmit data to the PSTN telephone network and modem, consist of RS232C driver for inputting and outputting data.
또한, 본 발명의 MPU 보드에서 프로그램 가능한 방법은, RS232C 드라이버 또는 모뎀을 통해서 프로그램을 라이트하라는 명령어가 입력되면, 상기 MPU에서 명령어가 의도하던 명령어 인지를 판단하여 명령어가 상기 MPU에서 의도하던 명령어가 아닌 경우에는 오퍼레이트 모드를 수행하는 제1단계(S1)와, 상기 제1단계(S1)에서 명령어를 판단하여, 명령어가 맞다고 판단되면 제어신호를 출력하는 제2단계(S2)와, 상기 제2단계(S2)에서 출력되는 제어 신호에 의해 1byte의 데이터가 MPU에 라이트되는 제3단계(S3)와, 상기 제3단계(S3)에서 데이터가 라이트된 후 계속되는 명령어 또는 데이터가 있는지를 판단하여 계속되는 데이터가 있다고 판단되면 제2단계(S2)를 수행하는 제4단계(S4)와, 상기 제4단계(S4)에서 계속되는 데이터 및 명령어가 없다고 판단되면 오퍼레이트 모드를 실행하여 정상적인 동작을 수행하는 제5단계(S5)로 이루어진 것을 특징으로 한다.In addition, the programmable method in the MPU board of the present invention, when a command to write a program through the RS232C driver or modem is input, it is determined whether the instruction is intended by the MPU command is not the instruction intended by the MPU In this case, a first step S1 of performing an operation mode, a second step S2 of determining a command in the first step S1, and outputting a control signal if it is determined that the command is correct, and the second step. The third step S3 in which 1 byte of data is written to the MPU by the control signal output in step S2, and whether the instruction or data continues after the data is written in the third step S3 is continued. If it is determined that there is data, the fourth step (S4) to perform the second step (S2), and if it is determined that there is no data and instructions continued in the fourth step (S4) operation mode Execute it characterized by comprising a fifth step (S5) of performing a normal operation.
제1도는 본 발명을 개략적으로 도시한 블록도이며,1 is a block diagram schematically showing the present invention,
제2도는 본 발명의 MPU에 대한 프로그램 모드인 경우의 상태이며,2 is a state in the program mode for the MPU of the present invention,
제3도는 프로그램 모드인 경우를 도시한 순서도이다.3 is a flowchart showing a case in the program mode.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
10 : MPU 20 : 데이터 버퍼부10: MPU 20: data buffer unit
21 : 버퍼부 30 : 어드레스 버퍼부21: buffer section 30: address buffer section
40 : 전원 선택부 50 : 어드레스 디코더40: power supply selection section 50: address decoder
60 : 메인 CPU 70 : 직렬 통신 제어기60: main CPU 70: serial communication controller
80 : 모뎀 90 : RS232C 드라이버80: modem 90: RS232C driver
이하, 본 발명 "MPU 보드에서 프로그램 가능한 장치 및 방법"의 기술적 사상에 따른 실시예를 들어 그 구성 및 동작을 첨부된 도면에 의거 상세히 설명하면 다음과 같다.Hereinafter, with reference to the accompanying drawings, the configuration and operation of the embodiment according to the technical idea of the present invention "apparatus and method programmable in the MCU board" in detail as follows.
제1도에 도시된 바와 같이, MPU(10)는 셋탑박스의 외부 프론트(FRONT)에 설치된 여러 기능에 대한 조작을 제어하기 위한 8비트 단일칩으로, 종래에는 한번 쓴 후에는 다시 지우고 쓸 수 없는 EPROM을 사용하였으나, 본 발명에서는 여러번 쓰고 지울 수 있는 플래시 롬(FLASH ROM)을 사용하였다. 그리고 P0.0 내지 P0.7포트에서는 8비트의 데이터가 입출력되고, P2.0 내지 P2.7 및 P1.0 내지 P1.3포트에서는 12비트 어드레스가 출력된다.As shown in FIG. 1, the MPU 10 is an 8-bit single chip for controlling operations on various functions installed in an external front of a set-top box. In the related art, the MPU 10 cannot be erased and written again once written. EPROM was used, but in the present invention, a flash ROM that can be written and erased many times was used. 8 bits of data are inputted and outputted at the P0.0 to P0.7 ports, and 12-bit addresses are outputted at the P2.0 to P2.7 and P1.0 to P1.3 ports.
그리고 발진기(11)는 X1 및 X2에 인가되어 클럭을 발생시키고, 전원(Vcc)은 RST단자에 연결되어 5V 전원을 공급하며, Tx/Rx는 데이터를 송수신 하는 송수신 단자이며, ALE/PROG과 EA/Vpp단자는 예를 들면, 정상적인 동작을 하는 오퍼레이트 모드인 경우에는 5V가 인가되고, 데이터를 입력시키기 위한 프로그램 모드인 경우에는 12V가 인가 되도록 제어하는 전원 선택부(40)에 연결되어 있다.The
그리고 데이터 버퍼부(20)는 상기 MPU(10)로부터 출력되는 8비트의 데이터를 입력받아, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 데이터의 출력을 해제 또는 접속한다.The
또한, 어드레스 버퍼브(30)는 상기 MPU(10)로부터 출력되는 12비트의 어드레스를 입력받아, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 어드레스의 출력을 해제 또는 접속한다.In addition, the
어드레스 디코더(50)는 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 어드레스를 출력하여 상기 데이터 버퍼부(20) 및 어드레스 버퍼부(30)를 제어하여 상기 데이터 버퍼부(20) 및 어드레스 버퍼부(30)를 접속 또는 해제시키고, 오퍼레이트 모드 또는 프로그램 모드인가에 따라서 상기 MPU(10)에 인가하는 전원을 5V 또는 12V로 선택한다.The
메인 CPU(60)는 상기 MPU(10)의 8비트 데이터 및 12비트 어드레스와 연결되고, 외부의 모뎀(80) 또는 RS232C 드라이버(90)를 통해서 송수신하도록 상기 MPU(10)에 연결됨으로써 시스템 전체를 제어한다.The
직렬 통신 제어기(70)는 상기 메인 CPU(60)의 Tx/Rx에 연결되어 상기 메인 CPU(60)로부터 전송되는 직렬 데이터를 제어한다.The
외부로부터 입력되는 데이터는 상기 PSTN 전화선을 통해서 각 사용자의 댁내에 있는 셋탑박스에 MPU(10)의 프로그램을 다운 로딩(DOWN LOADING)할 수 있으며, 그리고 RS232C 드라이버(90)를 통해서 입력할 수도 있는데, 만약 CAS(CHARGING AND ACCOUNTING SUBSYSTEM) 규격이 셋탑박스에 적용되면 스마트 카드(SMART CARD)로 페이퍼뷰(PAY PER VIEW)의 기능을 할 수 있는데, 여기서 모뎀(80)은 상기 직렬 통신 제어기(70)로부터 전송된 직렬데이터를 변조 또는 복조하여 외부의 PSTN 전화망으로부터 데이터를 수신받거나 전송한다.Data input from the outside can be downloaded (DOWN LOADING) the program of the MPU 10 to the set-top box of each user through the PSTN telephone line, and can also be input through the
상기 RS232C 드라이버(90)는 위성 수신기인 셋탑박스에 데이터를 입출력 하기 위한 것으로, 특히 디버깅(DEBUGGING)시나 또는 애프터 서비스시에 셋탑박스가 동작하는 상태를 점검하기 위한 것이다.The
제2도는 본 발명의 MPU(10)에 대한 프로그램 모드시의 상태를 도시한 표로서, 예를 들어 상기 MPU(10)가 라이트 코드 데이터(WRITE CODE DATA)인 경우를 설명하면, RST가 하이이고, /PSTN은 로우이며, 파워 공급인 EA/Vpp는 12V가 입력되고, P2.6에는 로우, P2.7에는 하이, P3.6에는 하이, 그리고 P3.7에는 하이가 입력되면, ALE/PROG에서 로우 에지 트리거 펄스가 출력된다. 그후 약 10msec 정도 지나면 1byte의 데이터가 MPU(10)에 라이트 된다.FIG. 2 is a table showing states in the program mode for the MPU 10 of the present invention. For example, when the MPU 10 is write code data, RST is high. If / PSTN is low and the power supply EA / Vpp is input 12V, low for P2.6, high for P2.7, high for P3.6, and high for P3.7, ALE / PROG The low edge trigger pulse is output at. After about 10 msec, 1 byte of data is written to the MPU 10.
상기와 같이 구성된 본 발명의 작용, 효과를 설명하면 다음과 같다.Referring to the operation, effects of the present invention configured as described above are as follows.
먼저, RS232C 드라이버(90) 또는 모뎀(80)을 통해서 예를 들면, 프로그램을 라이트하라는 명령어가 MPU(10)에 입력되면, 상기 MPU(10)에서는 이러한 명령어가 MPU(10)에서 의도하던 명령어 인지를 판단하고, 명령어가 상기 MPU(10)에서 의도하던 명령어가 아닌 경우에는 바로 오퍼레이트 모드를 수행하여 정상적인 동작을 수행한다.First, if, for example, a command to write a program is input to the MPU 10 through the
그런데, 모뎀(80) 및 RS232C 드라이버(90)을 통해서 입력된 명령어가 의도하던 명령어라면, 어드레스 디코더(50)의 제어에 의해서 상기 MPU(10)에 12V의 전원이 인가되고, 그리고 직렬 통신 제어기(70)에 의해 직렬데이터가 제어된다.By the way, if the command inputted through the
그러면 메인 CPU(60)의 데이터와 어드레스가 버퍼부(21)에 인가되어 있다가, 상기 어드레스 디코더(50)의 제어에 의해서 버퍼부(21)의 데이터 버퍼부(20) 및 어드레스 버퍼부(30)가 프로그램 모드에 의해 접속됨으로써 외부로부터 입력된 데이터가 상기 MPU(10)에 라이트되게 된다.Then, the data and address of the
제3도에 도시한 본 발명의 순서도를 참고로 프로그램 모드인 경우를 도시하면 다음과 같다.Referring to the case of the program mode with reference to the flowchart of the present invention shown in Figure 3 as follows.
먼저, 제1단계(S1)에서는 RS232C 드라이버(90) 또는 모뎀(80)을 통해서 프로그램 라이트하라는 명령어가 입력되면, 상기 MPU(10)에서는 이러한 명령어가 MPU(10)에서 의도하던 명령어 인지 판단하고, 명령어가 상기 MPU(10)에서 의도하던 명령어가 아닌 경우에는 바로 제 5단계(S5)인 정상 동작의 오퍼레이트 모드를 수행하며, 제2단계(S2)에서는 상기 제1단계(S1)에서 이러한 명령어를 판단하여, 명령어가 맞다고 생각되면 어드레스 디코더(50)의 제어에 의해서 버퍼부(21)가 프로그램 모드에 맞게 접속되고, 이에 따라서 상기 MPU(10)에는 12V의 전원이 인가된다.First, in the first step S1, when a command to write a program is input through the
이에 따라서 MPU(10)에서는 RST가 하이(HIGH)이고, PSEN은 로우(LOW)이며, EA/Vpp에는 12V가 입력되고, P2.6에는 로우, P2.7에는 하이, P3.6에는 하이, P3.7에는 하이가 입력되면, ALE/PROG에서 로우 에지 트리거 펄스가 출력된다. 다만 여기서는 라이트인 경우만을 예를 들어 기술하였으나 리드인 경우도 상기 라이트인 경우와 동일한 원리로 동작한다.Accordingly, in the MPU 10, RST is HIGH, PSEN is LOW, 12V is input for EA / Vpp, low for P2.6, high for P2.7, high for P3.6, When P3.7 is input high, a low edge trigger pulse is output from ALE / PROG. Here, only the case of the light is described as an example, but the case of the lead operates in the same principle as the case of the light.
상기 제2단계의 ALE/PROG에서 로우 에지가 출력되면, 제3단계(S3)에서는 그후 약 10msec 정도 지나서 1byte의 데이터가 MPU(10)에 라이트되고, 제3단계(S3)에서 일정시간 지연되어 데이터가 출력되면 제4단계(S4)에서는 계속되는 명령어 또는 데이터가 있는지를 판단하여 계속되는 데이터가 있다고 판단되면, 제2단계(S2)를 수행하고, 계속되는 데이터 및 명령어가 없다고 판단되면 제5단계(S5)의 오퍼레이트 모드를 실행하여 정상적인 동작을 수행한다.When the low edge is outputted in the second step ALE / PROG, in the third step S3, after about 10 msec, 1 byte of data is written to the MPU 10 and delayed for a predetermined time in the third step S3. When the data is output, it is determined whether there is a command or data that is continued in the fourth step (S4), and when it is determined that there is data that is continued, the second step (S2) is performed. Execute the operation mode of) to perform normal operation.
본 발명은 상기와 같이 구성된 MPU 보드에서 프로그램 가능한 장치 및 방법에 관한 것으로서, MPU 내부에 플래시 롬을 설치하여 외부의 모뎀 또는 RS232C 드라이버를 통해서 프로그램을 변경하거나 디버깅할 경우 별도의 추가장치 없이 신속하고도 용이하게 리드/라이트 할 수 있는 것이다.The present invention relates to a programmable device and method in the MPU board configured as described above, when installing a flash ROM inside the MPU to change or debug the program through an external modem or RS232C driver and without additional devices It is easy to read / write.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970029870A KR100227308B1 (en) | 1997-06-30 | 1997-06-30 | Device and method being capable of programming in mpu board |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970029870A KR100227308B1 (en) | 1997-06-30 | 1997-06-30 | Device and method being capable of programming in mpu board |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19990005655A KR19990005655A (en) | 1999-01-25 |
KR100227308B1 true KR100227308B1 (en) | 1999-11-01 |
Family
ID=19512776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970029870A KR100227308B1 (en) | 1997-06-30 | 1997-06-30 | Device and method being capable of programming in mpu board |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100227308B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100464257B1 (en) * | 2002-02-26 | 2005-01-03 | 엘지산전 주식회사 | Three step communication buffer of communication unit |
-
1997
- 1997-06-30 KR KR1019970029870A patent/KR100227308B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR19990005655A (en) | 1999-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6009496A (en) | Microcontroller with programmable embedded flash memory | |
US5778234A (en) | Method for downloading programs | |
US5901330A (en) | In-circuit programming architecture with ROM and flash memory | |
US7708195B2 (en) | Memory card | |
JPH05327582A (en) | Program memory rewrite system for portable telephone set | |
US6708289B1 (en) | Microcomputer, electronic equipment and debugging system | |
KR100286915B1 (en) | Microcomputers with Flash Ipyrome inside | |
EP1205845B1 (en) | Microcomputer and method of controlling the same | |
KR0172001B1 (en) | Re-programming apparatus of bios memory | |
KR100227308B1 (en) | Device and method being capable of programming in mpu board | |
CN112925569A (en) | Firmware data processing method, device, equipment and storage medium | |
JP4663210B2 (en) | Semiconductor integrated circuit and method for writing into non-volatile memory incorporated therein | |
JPH08249016A (en) | Programmable controller | |
US20020137501A1 (en) | Systems and methods for wireless memory programming | |
USRE47206E1 (en) | Display controller device and method for reprogramming the function of a display system | |
KR100623279B1 (en) | Embedded system debugging device and method thereof | |
US20030189562A1 (en) | Device and method for repeatedly updating the function of a LCD monitor | |
US7028148B2 (en) | Program executing device and method for executing programs | |
US20040268023A1 (en) | Microcontroller | |
JPH07193860A (en) | Portable terminal equipment having program memory | |
KR100290280B1 (en) | Microcontroller with Programmable Flash Memory | |
KR100651869B1 (en) | Apparatus for downloading data of video device | |
JP2000259448A (en) | Program debugging device | |
GB2108735A (en) | Electronic control means | |
JPH0869346A (en) | Memory rewrite device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20020716 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |