KR100227308B1 - Device and method being capable of programming in mpu board - Google Patents

Device and method being capable of programming in mpu board Download PDF

Info

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
Application number
KR1019970029870A
Other languages
Korean (ko)
Other versions
KR19990005655A (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 KR1019970029870A priority Critical patent/KR100227308B1/en
Publication of KR19990005655A publication Critical patent/KR19990005655A/en
Application granted granted Critical
Publication of KR100227308B1 publication Critical patent/KR100227308B1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C8/00Arrangements for selecting an address in a digital store
    • G11C8/06Address interface arrangements, e.g. address buffers
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C8/00Arrangements for selecting an address in a digital store
    • G11C8/10Decoders

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

MPU 보드에서 프로그램 가능한 장치 및 방법Programmable Devices and Methods on the MPU Board

본 발명은 셋탑박스(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 oscillator 11 is applied to X1 and X2 to generate a clock, and the power supply (Vcc) is connected to the RST terminal to supply 5V power, and Tx / Rx is a transmission / reception terminal for transmitting and receiving data, ALE / PROG and EA. The / Vpp terminal is, for example, connected to a power supply selector 40 which controls 5V in the operation mode for normal operation and 12V in the program mode for inputting data.

그리고 데이터 버퍼부(20)는 상기 MPU(10)로부터 출력되는 8비트의 데이터를 입력받아, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 데이터의 출력을 해제 또는 접속한다.The data buffer unit 20 receives 8-bit data output from the MPU 10, and releases or connects the output of the data depending on whether the operation mode or the program mode is used.

또한, 어드레스 버퍼브(30)는 상기 MPU(10)로부터 출력되는 12비트의 어드레스를 입력받아, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 어드레스의 출력을 해제 또는 접속한다.In addition, the address buffer 30 receives the 12-bit address output from the MPU 10, and releases or connects the output of the address depending on whether the operation mode or the program mode is used.

어드레스 디코더(50)는 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 어드레스를 출력하여 상기 데이터 버퍼부(20) 및 어드레스 버퍼부(30)를 제어하여 상기 데이터 버퍼부(20) 및 어드레스 버퍼부(30)를 접속 또는 해제시키고, 오퍼레이트 모드 또는 프로그램 모드인가에 따라서 상기 MPU(10)에 인가하는 전원을 5V 또는 12V로 선택한다.The address decoder 50 controls the data buffer unit 20 and the address buffer unit 30 by outputting an address in accordance with the operation mode or the program mode to control the data buffer unit 20 and the address buffer unit 30. ) Is connected or disconnected, and the power applied to the MPU 10 is selected as 5V or 12V depending on whether the operation mode or the program mode is used.

메인 CPU(60)는 상기 MPU(10)의 8비트 데이터 및 12비트 어드레스와 연결되고, 외부의 모뎀(80) 또는 RS232C 드라이버(90)를 통해서 송수신하도록 상기 MPU(10)에 연결됨으로써 시스템 전체를 제어한다.The main CPU 60 is connected to the 8-bit data and 12-bit address of the MPU 10, and is connected to the MPU 10 to transmit and receive through an external modem 80 or RS232C driver 90 to thereby transmit the entire system. To control.

직렬 통신 제어기(70)는 상기 메인 CPU(60)의 Tx/Rx에 연결되어 상기 메인 CPU(60)로부터 전송되는 직렬 데이터를 제어한다.The serial communication controller 70 is connected to Tx / Rx of the main CPU 60 to control serial data transmitted from the main CPU 60.

외부로부터 입력되는 데이터는 상기 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 driver 90, If the CAS (CHARGING AND ACCOUNTING SUBSYSTEM) standard is applied to the set-top box, it can function as a PAY PER VIEW with a SMART CARD, where the modem 80 is connected from the serial communication controller 70. Modulates or demodulates the transmitted serial data to receive or transmit data from an external PSTN telephone network.

상기 RS232C 드라이버(90)는 위성 수신기인 셋탑박스에 데이터를 입출력 하기 위한 것으로, 특히 디버깅(DEBUGGING)시나 또는 애프터 서비스시에 셋탑박스가 동작하는 상태를 점검하기 위한 것이다.The RS232C driver 90 is for inputting and outputting data to the set-top box, which is a satellite receiver. In particular, the RS232C driver 90 checks the operating state of the set-top box during debugging or after-sales service.

제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 RS232C driver 90 or the modem 80, the MPU 10 determines whether such a command is the command intended by the MPU 10. If it is determined that the instruction is not the instruction intended by the MPU 10, the operation mode is immediately performed to perform a normal operation.

그런데, 모뎀(80) 및 RS232C 드라이버(90)을 통해서 입력된 명령어가 의도하던 명령어라면, 어드레스 디코더(50)의 제어에 의해서 상기 MPU(10)에 12V의 전원이 인가되고, 그리고 직렬 통신 제어기(70)에 의해 직렬데이터가 제어된다.By the way, if the command inputted through the modem 80 and the RS232C driver 90 is the intended command, 12V power is applied to the MPU 10 under the control of the address decoder 50, and a serial communication controller ( 70) serial data is controlled.

그러면 메인 CPU(60)의 데이터와 어드레스가 버퍼부(21)에 인가되어 있다가, 상기 어드레스 디코더(50)의 제어에 의해서 버퍼부(21)의 데이터 버퍼부(20) 및 어드레스 버퍼부(30)가 프로그램 모드에 의해 접속됨으로써 외부로부터 입력된 데이터가 상기 MPU(10)에 라이트되게 된다.Then, the data and address of the main CPU 60 are applied to the buffer unit 21, and under the control of the address decoder 50, the data buffer unit 20 and the address buffer unit 30 of the buffer unit 21 are controlled. ) Is connected by the program mode so that data input from the outside is written to the MPU 10.

제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 RS232C driver 90 or the modem 80, the MPU 10 determines whether the command is intended by the MPU 10, If the instruction is not the instruction intended by the MPU 10, the operation mode of the normal operation, which is the fifth step (S5), is immediately performed. In the second step (S2), the instruction is performed in the first step (S1). If it is determined that the instruction is correct, the buffer unit 21 is connected to the program mode under the control of the address decoder 50, and accordingly, 12 V power is applied to the MPU 10.

이에 따라서 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)

셋탑박스의 외부 프론트(FRONT)에 설치된 여러 기능에 대한 조작을 제어하기 위한 MPU와, 상기 MPU로부터 출력되는 데이터를 입력받아, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 데이터의 출력을 해제 또는 접속하는 버퍼부와, 오퍼레이트 모드인가 또는 프로그램 모드인가에 따라 데이터 버퍼부 및 어드레스 버퍼부를 제어하여 상기 데이터 버퍼부 및 어드레스 버퍼부를 접속 또는 해제하는 어드레스 디코더와, 시스템 전체를 제어하는 메인 CPU와, 상기 메인 CPU에 연결되어 상기 메인 CPU로부터 전송되는 직렬 데이터를 제어하는 직렬 통신 제어기와, 상기 직렬 통신 제어기로부터 전송된 직렬데이터를 변조 또는 복조하여 외부의 PSTN 전화망으로부터 데이터를 수신받거나 또는 PSTN 전화망으로 데이터를 전송하는 모뎀과, 데이터를 입출력하기 위한 RS232C 드라이버로 이루어져 있는 것을 특징으로 하는 MPU 보드에서 프로그램 가능한 장치.An MPU for controlling operations on various functions installed in the front of the set-top box, and receiving data output from the MPU, and releasing or connecting data output depending on whether it is operated mode or program mode. A buffer unit, an address decoder for connecting or releasing the data buffer unit and the address buffer unit by controlling the data buffer unit and the address buffer unit in accordance with the operation mode or the program mode, a main CPU for controlling the entire system, and the main unit A serial communication controller connected to a CPU to control serial data transmitted from the main CPU, and receiving or receiving data from an external PSTN telephone network by modulating or demodulating the serial data transmitted from the serial communication controller, or transmitting data to a PSTN telephone network. Modem to input / output data Programmable device MPU in the board, characterized in that consists of the RS232C drivers. 제1항에 있어서, 상기 버퍼부는 데이터를 버퍼링하는 데이터 버퍼부와, 어드레스를 버퍼링하는 어드레스 버퍼부로 구성되어 있는 것을 특징으로 하는 MPU 보드에서 프로그램 가능한 장치.The apparatus of claim 1, wherein the buffer unit comprises a data buffer unit for buffering data and an address buffer unit for buffering an address. 제1항에 있어서, 상기 버퍼부는 오퍼레이트 모드인 경우에 상기 데이터 버퍼부 및 어드레스 버퍼부를 해제하고, 프로그램 모드인 경우에 상기 데이터 버퍼부 및 어드레스 버퍼부를 접속하는 것을 특징으로 하는 MPU 보드에서 프로그램 가능한 장치.The MPU board of claim 1, wherein the buffer unit releases the data buffer unit and the address buffer unit in the operation mode, and connects the data buffer unit and the address buffer unit in the program mode. Device. 제1항에 있어서, 상기 어드레스 디코더는 오퍼레이트 모드인 경우 5V가 상기 MPU에 입력되고, 프로그램 모드인 경우에는 12V가 입력되도록 제어하는 것을 특징으로 하는 MPU 보드에서 프로그램 가능한 장치.The apparatus of claim 1, wherein the address decoder controls 5V to be input to the MPU in an operation mode and 12V to be input in a program mode. 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)로 이루어진 것을 특징으로 하는 MPU 보드에서 프로그램 가능한 방법.When a command to write a program is input through an RS232C driver or a modem, a first step of determining whether the instruction is the intended instruction in the MPU and performing an operation mode when the instruction is not the intended instruction in the MPU ( S1), the second step S2 of outputting a control signal from the address decoder when the command is determined to be correct in the first step S1 and the command decoder is determined, and the control signal output in the second step S2. By the third step (S3) is written one byte of data to the MPU and by the third step (S3) is determined whether there is a command or data that continues after the data is written in the second step (S3) If it is determined that there is no data and command that is continued in the fourth step S4 of performing the step S2 and the fourth step S4, the operation mode is executed to perform normal operation. The program for a possible MPU board, characterized in that comprising the step 5 (S5) to perform. 제5항에 있어서, 상기 제2단계(S2)는 라이트하라는 명령어인 경우, 상기 제1단계(S1)에서 모뎀 및 RS232C 드라이버로부터 입력되는 명령어를 판단하여, 명령어가 맞다고 판단되면 어드레스 디코더의 제어에 의해서 버퍼부가 프로그램 모드에 맞게 접속되고, 상기 MPU에 12V의 전원을 인가하는 것을 특징으로 하는 MPU 보드에서 프로그램 가능한 방법.The method of claim 5, wherein the second step (S2) is a command to write, the first step (S1) determines the command input from the modem and RS232C driver, and if it is determined that the command is correct to control the address decoder. And a buffer unit is connected in accordance with a program mode to apply a power of 12V to the MPU. 제5항에 있어서, 상기 제2단계(S2)에서 라이트하라는 명령어인 경우, MPU에서는 RST가 하이이고, /PSEN은 로우이며, EA/Vpp에는 12V가 입력되고, P2.6에는 로우, P2.7에는 하이, P3.6에는 하이, P3.7에는 하이가 입력되면, ALE/PROG에서 로우 에지 트리거 펄스가 출력되도록 수행하는 것을 특징으로 하는 MPU 보드에서 프로그램 가능한 방법.The method of claim 5, wherein when the command to write in the second step (S2), RST is high in the MPU, / PSEN is low, 12V is input in EA / Vpp, low in P2.6, P2. 7. A high edge trigger pulse is output from ALE / PROG when high is input to 7, high is input to P3.6 and high is input to P3.7.
KR1019970029870A 1997-06-30 1997-06-30 Device and method being capable of programming in mpu board KR100227308B1 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100464257B1 (en) * 2002-02-26 2005-01-03 엘지산전 주식회사 Three step communication buffer of communication unit

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