KR20010055156A - Operation mode selecting circuit for use in microcontroller - Google Patents

Operation mode selecting circuit for use in microcontroller Download PDF

Info

Publication number
KR20010055156A
KR20010055156A KR1019990056251A KR19990056251A KR20010055156A KR 20010055156 A KR20010055156 A KR 20010055156A KR 1019990056251 A KR1019990056251 A KR 1019990056251A KR 19990056251 A KR19990056251 A KR 19990056251A KR 20010055156 A KR20010055156 A KR 20010055156A
Authority
KR
South Korea
Prior art keywords
signal
output
mode selection
response
flipflop
Prior art date
Application number
KR1019990056251A
Other languages
Korean (ko)
Inventor
김상곤
이정수
Original Assignee
윤종용
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤종용, 삼성전자 주식회사 filed Critical 윤종용
Priority to KR1019990056251A priority Critical patent/KR20010055156A/en
Publication of KR20010055156A publication Critical patent/KR20010055156A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30181Instruction operation extension or modification

Abstract

PURPOSE: An operating mode select circuit is provided to be capable of receiving a control signal via a single pin and selecting an operating mode corresponding to the control signal in order to accomplish miniaturization of a microcontroller integrated circuit. CONSTITUTION: An operating mode select circuit includes a buffer(10) for delaying a control signal(RESET) inputted via a reset terminal to produce a clock signal(CLK). The first D-flipflop(20) latches the power supply voltage(VDD) in response to the clock signal(CLK). The second D-flipflop(30) latches an output signal(Q) of the first D-flipflop(20) in response to the clock signal(CLK). The third D-flipflop(40) latches the output signal(Q) of the second D-flipflop(30) in response to the clock signal(CLK). A NAND gate(50) NANDs the output signal(Q) of the second D-flipflop(30) and an inverted output signal(QB) of the third D-flipflop(40). A clear signal generator(60) consists of a delay element(62) and an OR gate(64). The delay element(62) delays the control signal(RESET) for a given time. The OR gate(64) ORs a signal from the delay element(62) and the control signal(RESET).

Description

마이크로 컨트롤러의 동작 모드 선택 회로{OPERATION MODE SELECTING CIRCUIT FOR USE IN MICROCONTROLLER}Operation mode selection circuit of a microcontroller {OPERATION MODE SELECTING CIRCUIT FOR USE IN MICROCONTROLLER}

본 발명은 마이크로 컨트롤러에 관한 것으로, 좀 더 구체적으로는 외부로부터 제어되는 신호에 응답하여 마이크로 컨트롤러의 동작 모드를 선택하기 위한 회로에 관한 것이다.The present invention relates to a microcontroller, and more particularly to a circuit for selecting an operation mode of the microcontroller in response to a signal controlled from the outside.

마이크로 컨트롤러의 동작 모드는 크게 런(run) 모드, 테스트(test) 모드 그리고 진단(diagnostic) 모드로 나눌 수 있다.The microcontroller's operating modes can be broadly divided into run mode, test mode, and diagnostic mode.

상기 마이크로 컨트롤러는 외부로부터 입력되는 제어 신호들 예컨대, 런 모드 제어 신호, 테스트 모드 제어 신호 그리고 진단 모드 제어 신호에 응답하여 그에 대응하는 동작을 수행한다. 이러한 마이크로 컨트롤러는 상기 제어 신호들을 받아들이기 위한 핀들을 별도로 구비하고 있다.The microcontroller performs a corresponding operation in response to control signals input from an external device, for example, a run mode control signal, a test mode control signal, and a diagnostic mode control signal. This microcontroller has separate pins for receiving the control signals.

최근 반도체 기술은 고집적화 및 소형화를 달성하기 위한 방향으로 발전되고 있다. 핀 수를 줄이는 것은 반도체 집적 회로의 소형화를 달성하는데 매우 중요한 요소 가운데 하나이다.Recently, semiconductor technology has been developed in order to achieve high integration and miniaturization. Reducing pin count is one of the most important factors in achieving miniaturization of semiconductor integrated circuits.

따라서, 본 발명의 목적은 마이크로 컨트롤러 집적 회로의 소형화를 달성하기 위하여 하나의 핀을 통해 제어 신호를 받아들이고, 이 제어 신호에 대응하는 동작 모드를 선택하는 회로를 제공하 는데 있다.Accordingly, an object of the present invention is to provide a circuit which receives a control signal through one pin and selects an operation mode corresponding to the control signal in order to achieve miniaturization of the microcontroller integrated circuit.

도 1은 본 발명의 바람직한 실시예에 따른 동작 모드 선택 회로의 구성을 보여주는 회로도;1 is a circuit diagram showing the configuration of an operation mode selection circuit according to a preferred embodiment of the present invention;

도 2는 마이크로 컨트롤러가 런 모드로 진입할 때의 타이밍도;2 is a timing diagram when the microcontroller enters a run mode;

도 3은 마이크로 컨트롤러가 테스트 모드로 진입할 때의 타이밍도; 그리고3 is a timing diagram when the microcontroller enters a test mode; And

도 4는 마이크로 컨트롤러가 진단 모드로 진입할 때의 타이밍도이다.4 is a timing diagram when the microcontroller enters the diagnostic mode.

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

10 : 버퍼 20, 30, 40 : D-플립플롭10: buffer 20, 30, 40: D-flip-flop

50 : 앤드 게이트 60 : 클리어 신호 발생부50: end gate 60: clear signal generation unit

62 : 지연부 64 : 오아 게이트62: delay unit 64: ora gate

상술한 바와 같은 본 발명의 목적을 달성하기 위한 본 발명의 특징에 의하면, 마이크로 컨트롤러 내에 구비되는 동작 모드 선택 회로는: 외부로부터 입력되는 모드 선택 신호를 소정 시간 지연시킨 클럭 신호를 발생하는 지연 수단과; 상기 클럭 신호에 응답하여 전원 전압을 래치하는 제 1 래치 수단과; 상기 클럭 신호에 응답하여 상기 제 1 래치 수단의 출력 신호를 래치하는 제 2 래치 수단과; 상기 클럭 신호에 응답하여 상기 제 2 래치 수단의 출력 신호를 래치하는 제 3 래치 수단과; 상기 제 2 래치 수단으로부터 출력되는 신호와 상기 제 3 래치 수단으로부터 출력되는 신호의 반전된 신호를 로직 연산하는 로직 회로; 그리고 상기 모드 선택 신호에 응답하여 상기 제 1 , 제 2 그리고 제 3 래치 수단들에 래치된 신호들을 클리어시키기 위한 신호를 발생하는 클리어 신호 발생 수단을 포함한다. 단, 상기 제 1 래치 수단으로부터 출력되는 신호는 제 1 모드 선택 신호이고, 상기 로직 회로로부터 출력되는 신호는 제 2 모드 선택 신호이다. 그리고, 상기 제 3 래치 수단으로부터 출력되는 신호는 제 3 모드 선택 신호이다.According to a feature of the present invention for achieving the object of the present invention as described above, the operation mode selection circuit provided in the microcontroller includes: delay means for generating a clock signal obtained by delaying a mode selection signal input from the outside for a predetermined time; ; First latch means for latching a power supply voltage in response to the clock signal; Second latch means for latching an output signal of the first latch means in response to the clock signal; Third latching means for latching an output signal of said second latching means in response to said clock signal; A logic circuit for logic operation of the inverted signal of the signal output from the second latch means and the signal output from the third latch means; And clear signal generating means for generating a signal for clearing the signals latched in the first, second and third latch means in response to the mode selection signal. The signal output from the first latch means is a first mode selection signal, and the signal output from the logic circuit is a second mode selection signal. The signal output from the third latching means is a third mode selection signal.

바람직한 실시예에 있어서, 상기 제 1 내지 제 3 래치 수단들은 각각 D-플립플롭으로 구성된다.In a preferred embodiment, the first to third latch means each consist of a D-flip flop.

바람직한 실시예에 있어서, 상기 클리어 신호 발생 수단은, 상기 모드 선택 신호를 소정 시간 지연시키는 지연 회로 및 상기 모드 선택 신호와 상기 제 2 지연 수단에서 지연된 신호를 오아 연산하여 상기 클리어 신호를 출력하는 오아 게이트를 포함한다.In a preferred embodiment, the clear signal generating means comprises: a delay circuit for delaying the mode selection signal for a predetermined time and an OR gate for outputting the clear signal by calculating and calculating the mode selection signal and the signal delayed by the second delay means. It includes.

(작용)(Action)

이와 같은 장치에 의해서, 마이크로 컨트롤러의 소형화가 달성될 수 있다.By such an apparatus, miniaturization of the microcontroller can be achieved.

(실시예)(Example)

이하 본 발명에 따른 실시예를 첨부된 도면 도 1 내지 도 4를 참조하여 상세히 설명한다. 이후의 설명에서 도면들 중 동일하거나 유사한 참조 번호 및 부호는 가능한 한 동일하거나 유사한 구성 요소를 나타낸다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to FIGS. 1 to 4. In the following description, the same or similar reference numerals and signs in the drawings represent the same or similar components as much as possible.

도 1은 본 발명의 바람직한 실시예에 따른 동작 모드 선택 회로의 구성을 보여주는 회로도이다.1 is a circuit diagram showing the configuration of an operation mode selection circuit according to a preferred embodiment of the present invention.

도 1을 참조하면, 마이크로 컨트롤러 내에 구성되는 상기 동작 모드 선택 회로는 리셋 단자를 통해 입력되는 제어 신호(RESET)에 응답하여 동작한다. 구체적으로, 상기 동작 모드 선택 회로는 버퍼(10), 제 1 내지 제 3 D-플립플롭들(20, 30, 40), 앤드(AND) 게이트(50), 그리고 클리어 신호 발생부(60)를 포함한다.Referring to FIG. 1, the operation mode selection circuit configured in the microcontroller operates in response to a control signal RESET input through a reset terminal. Specifically, the operation mode selection circuit may include the buffer 10, the first to third D-flip flops 20, 30, and 40, the AND gate 50, and the clear signal generator 60. Include.

상기 버퍼(10)는 상기 리셋 단자를 통해 입력되는 제어 신호(RESET)를 소정 시간 지연시켜 클럭 신호(CLK)로 출력한다. 상기 버퍼(10)로부터 출력되는 클럭 신호(CLK)는 상기 D-플립플롭들(20, 30, 40)의 클럭 신호로 제공된다.The buffer 10 delays a control signal RESET input through the reset terminal for a predetermined time and outputs the clock signal CLK. The clock signal CLK output from the buffer 10 is provided as a clock signal of the D-flip flops 20, 30, and 40.

상기 제 1 D-플립플롭(20)은 상기 클럭 신호(CLK)에 응답하여 전원 전압(VDD)을 래치한다. 상기 제 1 D-플립플롭(20)으로부터 출력되는 신호(Q)는 마이크로 컨트롤러의 런 모드 선택 신호(RESET_IN)로 제공된다. 상기 마이크로 컨트롤러는 상기 리셋 신호(RESET_IN)에 응답하여 런(RUN) 모드를 수행한다.The first D flip-flop 20 latches a power supply voltage VDD in response to the clock signal CLK. The signal Q output from the first D flip-flop 20 is provided as a run mode selection signal RESET_IN of the microcontroller. The microcontroller performs a RUN mode in response to the reset signal RESET_IN.

상기 제 2 D-플립플롭(30)은 상기 클럭 신호(CLK)에 응답하여 상기 제 1 D-플립플롭(20)의 출력 신호(Q)를 래치한다. 상기 제 3 D-플립플롭(40)은 상기 클럭 신호(CLK)에 응답하여 상기 제 2 D-플립플롭(30)의 출력 신호(Q)를 래치한다.The second D flip-flop 30 latches the output signal Q of the first D flip-flop 20 in response to the clock signal CLK. The third D flip-flop 40 latches the output signal Q of the second D flip-flop 30 in response to the clock signal CLK.

상기 앤드 게이트(50)는 상기 제 2 D-플립플롭(30)의 출력 신호(Q)와 상기 제 3 D-플립플롭(40)의 반전 출력 신호(QB)를 받아들여 앤드 연산한다. 상기 앤드 게이트(50)로부터 출력되는 신호는 상기 마이크로 컨트롤러의 테스트 모드 선택 신호(TEST)로 제공된다. 그리고, 상기 제 3 D-플립플롭(40)으로부터 출력되는 신호(Q)는 상기 마이크로 컨트롤러의 진단 모드 선택 신호(DIAG)로 제공된다.The AND gate 50 receives and outputs the output signal Q of the second D flip-flop 30 and the inverted output signal QB of the third D flip-flop 40. The signal output from the AND gate 50 is provided as a test mode selection signal TEST of the microcontroller. The signal Q output from the third D flip-flop 40 is provided as a diagnostic mode selection signal DIAG of the microcontroller.

상기 클리어 신호 발생부(60)는 지연부(62)와 오아 게이트(64)로 구성된다. 상기 지연부(62)는 상기 리셋 단자를 통해 입력되는 제어 신호(RESET)를 소정시간 지연시켜 출력한다. 상기 오아 게이트(64)는 상기 지연부(72)로부터 출력되는 신호와 상기 제어 신호(RESET)를 받아들여 오아 연산한다. 상기 오아 게이트(64)로부터 출력되는 신호(Clear)는 상기 D-플립플롭들(20, 30, 40)에 래치된 신호들을 클리어하기 위한 신호이다.The clear signal generator 60 includes a delay unit 62 and an OR gate 64. The delay unit 62 delays and outputs a control signal RESET input through the reset terminal for a predetermined time. The OR gate 64 receives and computes a signal output from the delay unit 72 and the control signal RESET. The signal Clear output from the OR gate 64 is a signal for clearing the signals latched in the D-flip flops 20, 30, and 40.

계속해서, 첨부된 도면들 제 2 내지 제 4 도를 참조하여 도 1에 도시된 동작 모드 선택 회로의 동작이 설명된다.Subsequently, an operation of the operation mode selection circuit shown in FIG. 1 will be described with reference to FIGS. 2 through 4.

도 2는 마이크로 컨트롤러가 런 모드로 진입할 때의 타이밍도이고, 도 3은 마이크로 컨트롤러가 테스트 모드로 진입할 때의 타이밍도, 그리고 도 4는 마이크로 컨트롤러가 진단 모드로 진입할 때의 타이밍도이다.2 is a timing diagram when the microcontroller enters the run mode, FIG. 3 is a timing diagram when the microcontroller enters the test mode, and FIG. 4 is a timing diagram when the microcontroller enters the diagnostic mode. .

먼저, 도 2를 참조하면, 런 모드를 선택하기 위해 상기 리셋 단자를 통해 입력되는 제어 신호(RESET)는 로우 레벨(논리 '0')에서 하이 레벨(논리 '1')로 천이한다. 상기 제어 신호(RESET)는 상기 버퍼(10)에 의해 소정 시간만큼 지연된 후 클럭 신호(CLK)로 출력된다. 상기 클럭 신호(CLK)가 로우 레벨에서 하이 레벨로 천이될 때 상기 제 1 D-플립플롭(20)은 상기 전원 전압(VDD)을 출력 신호(Q)로 출력한다. 따라서, 상기 런 모드 선택 신호(RESET_IN)가 하이 레벨로 활성화된다. 이 때, 상기 제 2 및 제 3 D-플립플롭들(30, 40)은 로우 레벨을 그대로 유지한다.First, referring to FIG. 2, the control signal RESET input through the reset terminal in order to select a run mode transitions from a low level (logical '0') to a high level (logical '1'). The control signal RESET is delayed by the buffer 10 by a predetermined time and then output as a clock signal CLK. When the clock signal CLK transitions from a low level to a high level, the first D-flip-flop 20 outputs the power supply voltage VDD as an output signal Q. Thus, the run mode selection signal RESET_IN is activated to a high level. At this time, the second and third D-flip flops 30 and 40 maintain the low level.

계속해서 도 3을 참조하면, 테스트 모드를 선택하기 위해 상기 제어 신호(RESET)는 로우 레벨에서 하이 레벨로 그리고 다시 로우 레벨로 천이했다가 하이 레벨로 천이한다. 상기 버퍼(10)로부터 출력되는 클럭 신호(CLK)에 응답하여 상기 제 1 D-플립플롭(20)은 상기 전원 전압(VDD)을 출력 신호(Q)로 출력한다. 따라서, 상기 런 모드 선택 신호(RESET_IN)가 로우 레벨에서 하이 레벨로 활성화된다. 이 때, 상기 클리어 신호 발생부(60)는 하이 레벨의 클리어 신호(Clear)를 출력하여 상기 D-플립플롭들(20, 30, 40)에 래치된 데이터들은 클리어되지 않는다. 상기 제어 신호(RESET)가 하이 레벨에서 로우 레벨로 천이하더라도, 상기 지연부(62)로부터 출력되는 신호는 하이 레벨이므로 상기 오아 게이트(64)로부터 출력되는 신호(Clear)는 하이 레벨을 유지한다. 단, 상기 제어 신호(RESET)의 로우 레벨 구간은 상기 지연부(62)에서 지연되는 시간보다 충분히 짧아야 한다.With continued reference to FIG. 3, the control signal RESET transitions from low level to high level and back to low level and then to high level to select a test mode. In response to the clock signal CLK output from the buffer 10, the first D-flip-flop 20 outputs the power supply voltage VDD as an output signal Q. Therefore, the run mode selection signal RESET_IN is activated from the low level to the high level. At this time, the clear signal generator 60 outputs a high level clear signal Clear so that the data latched to the D-flip flops 20, 30, and 40 are not cleared. Even when the control signal RESET transitions from the high level to the low level, since the signal output from the delay unit 62 is a high level, the signal Clear output from the OR gate 64 maintains a high level. However, the low level section of the control signal RESET should be shorter than the time delayed by the delay unit 62.

상기 제어 신호(RESET)가 로우 레벨에서 다시 하이 레벨로 천이함에 따라 상기 클럭 신호(CLK)는 소정 시간 지연된 후 로우 레벨에서 하이 레벨로 천이한다. 이에 상기 제 1 D-플립플롭(20)은 상기 전원 전압(VDD)을 출력 신호(Q)로 출력하고, 상기 제 2 D-플립플롭(30)은 상기 제 1 D-플립플롭(20)의 출력 신호를 받아들여 출력한다. 이 때, 상기 제 3 D-플립플롭(30)으로부터 출력되는 신호(Q)는 여전히 로우 레벨을 유지한다. 따라서, 상기 제 2 D-플립플롭(30)의 출력 신호(Q)와 상기 제 3 D-플립플롭(40)의 반전 출력 신호(QB)를 앤드 연산하는 상기 앤드 게이트(50)의 출력 신호는 하이 레벨이 된다.As the control signal RESET transitions from the low level to the high level again, the clock signal CLK transitions from the low level to the high level after a predetermined time delay. Accordingly, the first D-flip flop 20 outputs the power supply voltage VDD as an output signal Q, and the second D-flip flop 30 is connected to the first D-flip flop 20. Accept the output signal and output it. At this time, the signal Q output from the third D flip-flop 30 is still at a low level. Accordingly, the output signal of the AND gate 50 that performs an AND operation on the output signal Q of the second D flip-flop 30 and the inverted output signal QB of the third D flip-flop 40 is High level.

즉, 상기 런 모드 선택 신호(RESET_IN)는 하이 레벨 상태를 유지하고, 상기 테스트 모드 선택 신호(TEST)는 로우 레벨에서 하이 레벨로 활성화된다. 상기 진단 모드 선택 신호(DIAG)는 여전히 로우 레벨 상태를 유지한다.That is, the run mode selection signal RESET_IN is maintained at a high level, and the test mode selection signal TEST is activated from a low level to a high level. The diagnostic mode selection signal DIAG remains at a low level.

마지막으로 도 4를 참조하면, 진단 모드를 선택하기 위해 상기 제어 신호(RESET)는 로우 레벨 -> 하이 레벨 -> 로우 레벨 -> 하이 레벨 -> 로우 레벨 -> 하이 레벨로 순차적으로 천이한다. 상기 클럭 신호(CLK)는 상기 버퍼(10)에 의해 상기 제어 신호(RESET)보다 소정 시간 지연되어 동일하게 천이된다. 상기 클리어 신호 발생부(60)는 상술한 바와 동일하게 상기 제어 신호(RESET)가 처음 로우 레벨에서 하이 레벨로 천이할 때에만 로우 레벨에서 하이 레벨로 천이한다.Finally, referring to FIG. 4, the control signal RESET sequentially transitions from low level-> high level-> low level-> high level-> low level-> high level to select a diagnostic mode. The clock signal CLK is equally delayed by the buffer 10 by a predetermined time delay than the control signal RESET. As described above, the clear signal generator 60 transitions from the low level to the high level only when the control signal RESET first transitions from the low level to the high level.

상기 클럭 신호(CLK)가 로우 레벨에서 하이 레벨로 처음 천이하는 시점에, 상기 제 1 D-플립플롭(20)은 상기 전원 전압(VDD)을 출력 신호(Q)로 출력한다. 따라서, 상기 런 모드 선택 신호(RESET_IN)는 하이 레벨로 활성화된다. 상기 클럭 신호(CLK)가 로우 레벨에서 하이 레벨로 두 번째 천이하는 시점에, 상기 제 1 D-플립플롭(20)은 상기 전원 전압(VDD)을 출력 신호(Q)로 출력하고, 상기 제 2 D-플립플롭(30)은 상기 제 1 D-플립플롭(20)의 출력 신호를 받아들여 출력한다. 이 때, 이 때, 상기 제 3 D-플립플롭(30)으로부터 출력되는 신호(Q)는 여전히 로우 레벨을 유지하므로, 상기 앤드 게이트(50)로부터 출력되는 신호는 하이 레벨로 된다. 따라서, 상기 테스트 모드 선택 신호(TEST)는 하이 레벨로 활성화된다. 계속해서, 상기 클럭 신호(CLK)가 로우 레벨에서 하이 레벨로 세 번째 천이하는 시점에, 상기 제 1 D-플립플롭(20)은 상기 전원 전압(VDD)을 출력 신호(Q)로 출력하고, 상기 제 2 D-플립플롭(30)은 상기 제 1 D-플립플롭(20)의 출력 신호를 받아들여 출력하고, 그리고 상기 제 3 D-플립플롭(40)은 상기 제 2 D-플립플롭(30)의 출력 신호를 받아들여 출력한다. 따라서, 상기 앤드 게이트(50)로부터 출력되는 상기 테스트 모드선택 신호(TEST)는 하이 레벨에서 로우 레벨로 천이하고, 상기 진단 모드 선택 신호(DIAG)는 로우 레벨에서 하이 레벨로 활성화된다.When the clock signal CLK first transitions from the low level to the high level, the first D-flip-flop 20 outputs the power supply voltage VDD as an output signal Q. Accordingly, the run mode selection signal RESET_IN is activated to a high level. At the time when the clock signal CLK transitions from the low level to the high level for the second time, the first D-flip-flop 20 outputs the power supply voltage VDD as an output signal Q and the second signal. The D-flip flop 30 receives and outputs an output signal of the first D-flip flop 20. At this time, since the signal Q output from the third D flip-flop 30 is still at a low level, the signal output from the AND gate 50 is at a high level. Therefore, the test mode selection signal TEST is activated to a high level. Subsequently, at the time when the clock signal CLK transitions from the low level to the high level for the third time, the first D-flip-flop 20 outputs the power supply voltage VDD as an output signal Q, The second D flip-flop 30 receives and outputs an output signal of the first D flip-flop 20, and the third D flip-flop 40 receives the second D flip-flop ( The output signal of 30) is received and output. Accordingly, the test mode selection signal TEST output from the AND gate 50 transitions from the high level to the low level, and the diagnostic mode selection signal DIAG is activated from the low level to the high level.

상기 마이크로 컨트롤러는 외부로부터 제어 신호(RESET)가 인가되고 나서 소정 시간이 지난 후 상기 런 모드 선택 신호(RESET_IN), 테스트 모드 선택 신호(TEST), 그리고 진단 모드 선택 신호(DIAG)의 상태에 따라 동작 모드에 진입한다. 이러한 내용은 표 1에 도시되어 있다.The microcontroller operates according to the states of the run mode selection signal RESET_IN, the test mode selection signal TEST, and the diagnostic mode selection signal DIAG after a predetermined time after the control signal RESET is applied from the outside. Enter the mode. This is shown in Table 1.

[표 1]TABLE 1

이상에서, 본 발명에 따른 회로의 구성 및 동작을 상기한 설명 및 도면에 따라 도시하였지만 이는 예를 들어 설명한 것에 불과하며 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 다양한 변화 및 변경이 가능함은 물론이다.In the above, the configuration and operation of the circuit according to the present invention are shown in accordance with the above description and drawings, but this is merely described, for example, and various changes and modifications are possible without departing from the spirit of the present invention. .

이상과 같은 본 발명에 의하면, 하나의 핀을 통해 입력되는 제어 신호로 마이크로 컨트롤러의 동작 모드를 결정할 수 있다. 따라서, 마이크로 컨트롤러 집적 회로의 소형화를 달성할 수 있다.According to the present invention as described above, it is possible to determine the operation mode of the microcontroller by the control signal input through one pin. Therefore, miniaturization of the microcontroller integrated circuit can be achieved.

Claims (3)

외부로부터 입력되는 모드 선택 신호를 소정 시간 지연시킨 클럭 신호를 발생하는 지연 수단과;Delay means for generating a clock signal obtained by delaying a mode selection signal input from the outside for a predetermined time; 상기 클럭 신호에 응답하여 전원 전압을 래치하는 제 1 래치 수단과;First latch means for latching a power supply voltage in response to the clock signal; 상기 제 1 래치 수단으로부터 출력되는 신호는 제 1 모드 선택 신호이고;The signal output from the first latching means is a first mode selection signal; 상기 클럭 신호에 응답하여 상기 제 1 래치 수단의 출력 신호를 래치하는 제 2 래치 수단과;Second latch means for latching an output signal of the first latch means in response to the clock signal; 상기 클럭 신호에 응답하여 상기 제 2 래치 수단의 출력 신호를 래치하는 제 3 래치 수단과;Third latching means for latching an output signal of said second latching means in response to said clock signal; 상기 제 3 래치 수단으로부터 출력되는 신호는 제 3 모드 선택 신호이고;The signal output from the third latching means is a third mode selection signal; 상기 제 2 래치 수단으로부터 출력되는 신호와 상기 제 3 래치 수단으로부터 출력되는 신호의 반전된 신호를 로직 연산하여 제 2 모드 선택 신호를 출력하는 로직 회로; 그리고A logic circuit for logic operation of an inverted signal of the signal output from the second latch means and the signal output from the third latch means to output a second mode selection signal; And 상기 모드 선택 신호에 응답하여 상기 제 1 , 제 2 그리고 제 3 래치 수단들에 래치된 신호들을 클리어시키기 위한 신호를 발생하는 클리어 신호 발생 수단을 포함하는 마이크로 컨트롤러의 모드 선택 회로.And clear signal generating means for generating a signal for clearing signals latched in said first, second and third latch means in response to said mode selection signal. 제 1 항에 있어서,The method of claim 1, 상기 제 1 내지 제 3 래치 수단들은 각각 D-플립플롭으로 구성되는 마이크로컨트롤러의 모드 선택 회로.And the first to third latching means are each configured as a D-flip-flop. 제 1 항에 있어서,The method of claim 1, 상기 클리어 신호 발생 수단은,The clear signal generating means, 상기 모드 선택 신호를 소정 시간 지연시키는 지연 회로 및;A delay circuit for delaying the mode selection signal by a predetermined time; 상기 모드 선택 신호와 상기 제 2 지연 수단에서 지연된 신호를 오아 연산하여 상기 클리어 신호를 출력하는 오아 게이트를 포함하는 마이크로 컨트롤러의 모드 선택 회로.And an OR gate for performing an OR operation on the mode selection signal and the signal delayed by the second delay means, and outputting the clear signal.
KR1019990056251A 1999-12-09 1999-12-09 Operation mode selecting circuit for use in microcontroller KR20010055156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990056251A KR20010055156A (en) 1999-12-09 1999-12-09 Operation mode selecting circuit for use in microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990056251A KR20010055156A (en) 1999-12-09 1999-12-09 Operation mode selecting circuit for use in microcontroller

Publications (1)

Publication Number Publication Date
KR20010055156A true KR20010055156A (en) 2001-07-04

Family

ID=19624625

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990056251A KR20010055156A (en) 1999-12-09 1999-12-09 Operation mode selecting circuit for use in microcontroller

Country Status (1)

Country Link
KR (1) KR20010055156A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101294852B1 (en) * 2010-10-13 2013-08-08 엘지디스플레이 주식회사 Micro Controller, Driving Method thereof and Display Device using the same
CN112448705A (en) * 2019-08-28 2021-03-05 上海顺久电子科技有限公司 Mode selection circuit, integrated circuit, and electronic device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101294852B1 (en) * 2010-10-13 2013-08-08 엘지디스플레이 주식회사 Micro Controller, Driving Method thereof and Display Device using the same
US8707115B2 (en) 2010-10-13 2014-04-22 Lg Display Co., Ltd. Micro controller, driving method thereof and display device using the same
CN112448705A (en) * 2019-08-28 2021-03-05 上海顺久电子科技有限公司 Mode selection circuit, integrated circuit, and electronic device
CN112448705B (en) * 2019-08-28 2024-05-03 上海顺久电子科技有限公司 Mode selection circuit, integrated circuit and electronic device

Similar Documents

Publication Publication Date Title
US6753714B2 (en) Reducing power and area consumption of gated clock enabled flip flops
US5623223A (en) Glitchless clock switching circuit
EP3465911B1 (en) Low clock power data-gated flip-flop
US6927604B2 (en) Clock signal selector circuit with reduced probability of erroneous output due to metastability
US6720813B1 (en) Dual edge-triggered flip-flop design with asynchronous programmable reset
KR100394841B1 (en) Data latch circuit and driving method thereof
US6107841A (en) Synchronous clock switching circuit for multiple asynchronous clock source
US20090300448A1 (en) Scan flip-flop device
US6429698B1 (en) Clock multiplexer circuit with glitchless switching
US9059687B2 (en) Flip-flop having shared feedback and method of operation
KR20120005469A (en) Low-power dual-edge-triggered storage cell with scan test support and clock gating circuit therefor
JP2005534249A (en) Switchable electronic circuit for random number generation
US7873896B2 (en) High performance pulsed storage circuit
US6911845B2 (en) Pulse triggered static flip-flop having scan test
KR20050120305A (en) Scan flip-flop circuit to reduce redundant power consumption
JP6577366B2 (en) Scan chains in integrated circuits
JP2005303464A (en) Flip-flop
TW437169B (en) Reset circuit for flip-flop
US6986089B2 (en) Power reduction in scannable D-flip-flop with synchronous preset or clear
KR20010055156A (en) Operation mode selecting circuit for use in microcontroller
US20080030250A1 (en) Flip-flop circuit
US10454457B1 (en) Self-gating flip-flop
US6859070B2 (en) Semiconductor integrated circuit device having flip-flops that can be reset easily
US20080215941A1 (en) Double-edge triggered scannable pulsed flip-flop for high frequency and/or low power applications
US20080082882A1 (en) Double-edge triggered scannable pulsed flip-flop for high frequency and/or low power applications

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination