Claims (5)
외부장치와 연결되는 마이크로 콘트롤러의 입출력 제어회로에 있어서, 외부 장치와 연결되는 패드와, 상기 패드와 전원단 사이에 연결되고 모드제어데이터를 수신하며 상기 모드제어데이터의 논리에 따라 상기 패드의 풀업을 온/오프하는 풀업수단과, 스위칭수단을 구비하며 상기 패드와 마이크로 콘트롤러의 출력단 사이에 연결되고 출력 모드시 스위칭되어 상기 마이크로 콘트롤러로부터 출력되는 신호를 패드로 인가하는 출력수단과, 스위칭수단을 구비하며 상기 패드와 마이크로 콘트롤러의 입력단 사이에 연결되고 입력 모드시 스위칭 되어 상기 패드로부터 수신되는 신호를 상기 마이크로 콘트롤러로 인가하는 입력수단으로 구성됨을 특징으로 하는 마이크로콘트롤러의 입출력 제어회로.An input / output control circuit of a microcontroller connected to an external device, comprising: a pad connected to an external device and a pad connected between the pad and a power supply terminal to receive mode control data and to pull up the pad according to the logic of the mode control data. A pull-up means for switching on / off, an output means connected between the pad and the output terminal of the microcontroller and switched in an output mode to apply a signal output from the microcontroller to the pad; And input means connected between the pad and an input terminal of the microcontroller and switched in an input mode to apply a signal received from the pad to the microcontroller.
제1항에 있어서, 풀업수단이 사용자의 의해 발생되는 상기패드의 풀업 온/오프 설정용 모드제어데이타를 수신하여 저장하는 모드레지스터와, 상기 모드레지스터의 출력을 수신하고 모드제어신호를 수신하며 모드제어신호 수신시 스위칭되어 상기 모드레지스터의 출력 통로를 형성하는 제1스위치와, 상기 스위치의 출력단과 연결되어 출력되는 상기 모드제어데이터의 상태를 유지시키는 래치수단과, 전원단과 상기패드 사이에 연결되고 상기래치수단의 출력을 제어신호로 수신하며 상기 모드제어데이터의 논리에 따라 상기 패드를 풀업 및 플로팅시키는 제2스위치로 구성된 것을 특징으로 마이크로 콘트롤러의 입출력 제어회로.The mode register according to claim 1, wherein the pull-up means receives and stores mode control data for setting the pull-up on / off of the pad generated by a user, receives an output of the mode register, receives a mode control signal, and receives a mode. A first switch which is switched when receiving a control signal to form an output passage of the mode register, latch means connected to an output terminal of the switch to maintain the state of the mode control data outputted between the power source terminal and the pad; And a second switch configured to receive the output of the latch means as a control signal and to pull up and float the pad according to the logic of the mode control data.
제2항에 있어서, 상기 제2스위치가 모오스 트랜지스터인 것을 특징으로 하는 마이크로 콘트롤러의 입출력제어회로.3. The input / output control circuit of the microcontroller according to claim 2, wherein the second switch is a MOS transistor.
제2항에 있어서, 상기 출력수단이, 데이터 버스와 연결되고 출력제어신호를 제어신호로 수신하며 상기 출력제어신호 수신시 스위칭되어 출력데이타의 통로를 형성하는 출력스위치와, 상기 출력스위치와 패드 사이에 연결되며 상기 출력데이터를 래치하여 상기패드로 출력하는 래치수단으로 구성된 것을 특징으로 하는 마이크로 콘트롤러의 입출력 제어회로.3. An output switch according to claim 2, wherein said output means is connected to a data bus, receives an output control signal as a control signal, and switches upon receiving said output control signal to form a passage for output data, between said output switch and a pad. And latch means for latching the output data and outputting the output data to the pad.
제4항에 있어서, 상기 입력수단이, 상기 패드와 연결되며 상기패드를 통해 수신되는 입력데이터를 버퍼링하는 수단과, 상기 버퍼수단과 데이터버스 사이에 연결되고 입력제어신호를 제어신호로 수신하며 상기 입력제어신호 수신시 스위칭되어 상기 입력데이터를 데이터버스로 인가하는 입력스위치로 구성된 것을 특징으로 하는 마이크로 콘트롤러의 입출력제어회로.5. The apparatus of claim 4, wherein the input means is connected to the pad and buffers input data received through the pad, and is connected between the buffer means and the data bus and receives an input control signal as a control signal. And an input switch which switches when receiving an input control signal and applies the input data to the data bus.
※참고사항: 최초출원 내용에 의하여 공개하는 것임.※ Note: This is to be disclosed based on the initial application.