CN201219256Y - Input/output bidirectional port - Google Patents

Input/output bidirectional port Download PDF

Info

Publication number
CN201219256Y
CN201219256Y CNU2008201183921U CN200820118392U CN201219256Y CN 201219256 Y CN201219256 Y CN 201219256Y CN U2008201183921 U CNU2008201183921 U CN U2008201183921U CN 200820118392 U CN200820118392 U CN 200820118392U CN 201219256 Y CN201219256 Y CN 201219256Y
Authority
CN
China
Prior art keywords
input
output
data
reverser
signal
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNU2008201183921U
Other languages
Chinese (zh)
Inventor
江猛
贾力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Huaxin Microelectronics Co., Ltd.
Original Assignee
SUZHOU HUAXIN MICRO-ELECTRONICS Co Ltd
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 SUZHOU HUAXIN MICRO-ELECTRONICS Co Ltd filed Critical SUZHOU HUAXIN MICRO-ELECTRONICS Co Ltd
Priority to CNU2008201183921U priority Critical patent/CN201219256Y/en
Application granted granted Critical
Publication of CN201219256Y publication Critical patent/CN201219256Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Logic Circuits (AREA)

Abstract

An input/output two-way port, selects a direction of an I/O port setting 0 or 1 on the port, comprising a latch, a first reverser, a first control transistor, a second control transistor, a second reverser, a tristate reverser and a two-input NAND gate. When a data bus writes in 1, and port-reading signals are effective, through the second reverser and the tristate reverser arranged between the I/OPAD port and the data bus, the signal substantially having the same input signal with I/OPAD port is input to the data bus, realizing data input; when the data-writing signal is effectively, through the latch, the first reverser, the first control transistor and the second control transistor arranged between the data bus and the I/OPAD port, the signal substantially having the same signal with the data bus is output to the I/OPAD port, realizing data output. The input/output two-way port circuit has simple structure, convenient control, small circuit area, low cost, overcoming deficiency in the prior art.

Description

The I/O bidirectional port
Technical field
The utility model is specifically related to a kind of I/O bidirectional port in the integrated circuit fields.
Background technology
In various integrated circuits, especially in MCU (Micro Control Unit, i.e. microcontroller) circuit, I/O (Input/Output, i.e. I/O) mouthful is the indispensable important channel that circuit externally carries out information interchange.It is different from one way ports, as the input port, and perhaps delivery outlet, the function of these one way ports is single, it can only receive data or dateout; And the I/O mouth is the bidirectional port that possesses two functions of input and output, and it can carry out the reception and the transmission of data.
Among the MCU of traditional RISC (Reduced Instruction Set Computing, i.e. reduced instruction set computer) type, the I/O mouth is very complicated circuit, and it occupies 1/4 of entire circuit domain sometimes, sometimes even more.Because these I/O mouths all will be provided with the port direction register, by the value that changes the port direction register direction of I/O mouth is set, have in addition the direction that special instruction comes managing I/O mouth is set.These have all caused the complexity of I/O mouth circuit and huge.
Among the MCU of number of C ISC (Complex Instruction Set Computer, i.e. sophisticated vocabulary) type, though the port direction register is not set, there is the circuit complicated problems too in they.
Therefore, in some civilian consumer circuit, all seem unrealistic with these traditional I/O mouths, they not only control complexity, and area is big, the cost height.
The utility model content
The purpose of this utility model is to propose the I/O bidirectional port that a kind of circuit structure is simple, control is convenient, circuit area is little, cost is low, it need not to be provided with the port direction register, only, overcome deficiency of the prior art by port being put 0 or put 1 direction of selecting the I/O mouth.
For achieving the above object, the utility model has adopted following technical scheme:
A kind of I/O bidirectional port can be realized the reception and the transmission of data, comprising:
Latch, its data input pin links to each other with data/address bus, and clock signal terminal links to each other with write data signal;
First reverser, its input links to each other with the output of latch;
First oxide-semiconductor control transistors is arranged between the output and first constant potential of first reverser;
Second oxide-semiconductor control transistors is arranged between the output and second constant potential of first reverser;
The output of first oxide-semiconductor control transistors is connected with the output of second oxide-semiconductor control transistors, and its node place links to each other with I/O PAD mouth;
Second reverser, the output of its input and first oxide-semiconductor control transistors links to each other with node between the output of second oxide-semiconductor control transistors;
Tri-state inverter, its input links to each other with the output of second reverser, and Enable Pin links to each other with the read port signal, and output links to each other with the input of latch;
Two input nand gates, node between the output of one input end and latch and the input of first reverser links to each other, node between the output of another input and second reverser and the input of tri-state inverter links to each other, and its output is an input port level variable signal.
When data/address bus writes 1, and when the read port signal is effective, by being arranged on second reverser and the tri-state inverter between I/O PAD mouth and the data/address bus, identical with I/O PAD mouth input signal in fact signal is input to data/address bus, realize the input of data; When write data signal is effective, by being arranged on latch, first reverser, first oxide-semiconductor control transistors and second oxide-semiconductor control transistors between data/address bus and the I/O PAD mouth, identical with data bus signal in fact signal is outputed to I/O PAD mouth, realize the output of data.
Above-mentioned I/O bidirectional port, wherein first oxide-semiconductor control transistors is big breadth length ratio NMOS pipe, and second oxide-semiconductor control transistors is less breadth length ratio PMOS pipe, and each transistorized control end, output and input are respectively grid, drain electrode and source electrode.Above-mentioned first constant potential and second constant potential are respectively earth potential and power supply potential.Described input port level variable signal can be regarded input as and change interruption or waken system usefulness.
The beneficial effects of the utility model are that circuit structure is simple, control is convenient, circuit area is little, cost is low, need not to be provided with the port direction register, only by port being put 0 or put 1 direction of selecting the I/O mouth.
Description of drawings
Fig. 1 is the circuit diagram of the utility model I/O bidirectional port;
Fig. 2 is a preferred embodiment of the present utility model.
Embodiment
Below in conjunction with accompanying drawing the utility model is further described.
As shown in Figure 1, be the circuit diagram of the utility model I/O bidirectional port, comprise: data/address bus data, read port signal rd_port, write data signal wr_port, input port level variable signal INT, earth potential, power supply potential, I/O PAD mouth, latch 1, first reverser 2, first oxide-semiconductor control transistors 3, second oxide-semiconductor control transistors 4, second reverser 5, tri-state inverter 6 and two input nand gates 7.Wherein the data input pin D of latch 1 links to each other with data/address bus data, and clock signal terminal clk links to each other with write data signal wr_port, and output Q links to each other with the input of first reverser 2; The control end of first oxide-semiconductor control transistors 3 links to each other with the control end of second oxide-semiconductor control transistors 4, and link to each other with the output of first reverser 2, the output of first oxide-semiconductor control transistors 3 links to each other with the output of second oxide-semiconductor control transistors 4, and link to each other with I/O PAD mouth, the input of first oxide-semiconductor control transistors 3 and first constant potential, be that earth potential links to each other, the input of second oxide-semiconductor control transistors 4 and second constant potential, promptly power supply potential links to each other; The output of the input of second reverser 5 and the I/O PAD mouth and first oxide-semiconductor control transistors 3 links to each other with node between the output of second oxide-semiconductor control transistors 4, the output of second reverser 5 links to each other with the input of tri-state inverter 6, the Enable Pin of tri-state inverter 6 links to each other with read port signal rd_port, and the node between the data input pin D of output and data/address bus data and latch 1 links to each other; Two input nand gates 7, node between the output Q of one input end and latch 1 and the input of first reverser 2 links to each other, node between the output of another input and second reverser 5 and the input of tri-state inverter 6 links to each other, and its output is input port level variable signal INT.
Data writes 1 when data/address bus, and when read port signal rd_port is effective, by being arranged on second reverser 5 and tri-state inverter 6 between I/O PAD mouth and the data/address bus data, identical with I/O PAD mouth input signal in fact signal is input to data/address bus data, realizes the input of data.
When write data signal wr_port is effective, by being arranged on latch 1, first reverser 2, first oxide-semiconductor control transistors 3 and second oxide-semiconductor control transistors 4 between data/address bus data and the I/O PAD mouth, identical with data/address bus data signal in fact signal is outputed to I/O PAD mouth, realize the output of data.
When writing 0, (write during wr_port=1 by data/address bus data, also can write by wr_port=0, this will see the structure of latch 1), then first reverser 2 is output as 1,3 conductings of first oxide-semiconductor control transistors, second oxide-semiconductor control transistors 4 is closed, I/O PAD mouth is output as 0, because first oxide-semiconductor control transistors the last 3, external signal 1 (high level) is difficult to overturn it, when read port signal rd_port is effective, the data of reading on the data bus still are 0, and can regard it as delivery outlet this moment, because the data of reading are always 0, do not change, can not reflect the external signal that is added on the I/O PAD mouth.Owing to the output Q=0 of latch 1 this moment, by two input nand gates 7, input port level variable signal INT is always 1, and it is invalid that INT thinks.
When writing 1 by data/address bus data, first reverser 2 is output as 0, the first oxide-semiconductor control transistors 3 and cuts out, 4 conductings of second oxide-semiconductor control transistors, and I/O PAD mouth is output as 1.Because second oxide-semiconductor control transistors 4 relatively a little less than, if the signal that join I/O PAD mouth on from the outside this moment is strong by 0, then present 0 level on the I/O PAD mouth this moment, when read port signal rd_port was effective, the data of reading on the data bus still were 0, and can regard it as input port this moment, because during read data, the data of reading can reflect that the signal on exterior I/O PAD mouth changes, and being 0, what read in is exactly 0, are that 1 what read is exactly 1.At this moment, if the signal that is added on the I/OPAD mouth is 1, INT=1 then, if the signal that is added on the I/O PAD mouth is 0, INT=0 then.Therefore this signal can be regarded input variation interruption or waken system usefulness as.
Find out that thus the utility model need not to be provided with the port direction register, only, overcome deficiency of the prior art by port being put 0 or put 1 direction of selecting the I/O mouth.
Realize that optimal way of the present utility model is to be applied in the MCU circuit.With among four of risc architecture and eight the low and middle-grade MCU, be that the product of HS0227, HS0228 etc. is all used this I/O mouth as product type.As shown in Figure 2, be preferred embodiment of the present utility model.Wherein P10-P17 is the I/O mouth, after MCU carries out one section initialize routine, enters the power saving sleep state.If P10 ~ P13 is set in initialize routine is 1 entirely, and P14 ~ P17 is 0 entirely, and then in sleep state, as long as press in 16 buttons any one, system will be waken up.Because 0 level of P14 ~ P17 can be passed on P10 ~ P13, make P10 ~ P13 port present 0 level, thereby INT can change among Fig. 1, causes system to be waken up.Can carry out corresponding operation behind the system wake-up,, transmit etc. as keyboard scan.
Because each port can be provided with arbitrarily, so keyboard also can constitute arbitrarily.Pin can constitute keyboard in twos arbitrarily, has eliminated the limitation that specific pin constitutes keyboard like this.
Above-mentioned example only is a particular instance of the present utility model, must not be considered as restriction of the present utility model.

Claims (6)

1. an I/O bidirectional port is characterized in that, comprising:
Latch, its data input pin links to each other with data/address bus, and clock signal terminal links to each other with write data signal;
First reverser, its input links to each other with the output of latch;
First oxide-semiconductor control transistors is arranged between the output and first constant potential of first reverser;
Second oxide-semiconductor control transistors is arranged between the output and second constant potential of first reverser;
The output of first oxide-semiconductor control transistors is connected with the output of second oxide-semiconductor control transistors, and its node place links to each other with I/O PAD mouth;
Second reverser, its input links to each other with the output of first oxide-semiconductor control transistors, the output of second oxide-semiconductor control transistors and the node between the I/O PAD mouth;
Tri-state inverter, its input links to each other with the output of second reverser, and Enable Pin links to each other with the read port signal, and output links to each other with the input of latch;
Two input nand gates, node between the output of one input end and latch and the input of first reverser links to each other, node between the output of another input and second reverser and the input of tri-state inverter links to each other, and its output is an input port level variable signal.
2. I/O bidirectional port according to claim 1, it is characterized in that, when data/address bus writes 1, and when the read port signal is effective, by being arranged on second reverser and the tri-state inverter between I/O PAD mouth and the data/address bus, identical with I/O PAD mouth input signal in fact signal is input to data/address bus, realizes the input of data.
3. I/O bidirectional port according to claim 1, it is characterized in that, when write data signal is effective, by being arranged on latch, first reverser, first oxide-semiconductor control transistors and second oxide-semiconductor control transistors between data/address bus and the I/O PAD mouth, identical with data bus signal in fact signal is outputed to I/O PAD mouth, realize the output of data.
4. according to claim 1 or 3 described I/O bidirectional ports, it is characterized in that, described first oxide-semiconductor control transistors is big breadth length ratio NMOS pipe, second oxide-semiconductor control transistors is less breadth length ratio PMOS pipe, and each transistorized control end, output and input are respectively grid, drain electrode and source electrode.
5. I/O bidirectional port according to claim 1 is characterized in that, described first constant potential and second constant potential are respectively earth potential and power supply potential.
6. I/O bidirectional port according to claim 1 is characterized in that, described input port level variable signal can be regarded input as and change interruption or waken system usefulness.
CNU2008201183921U 2008-06-05 2008-06-05 Input/output bidirectional port Expired - Fee Related CN201219256Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2008201183921U CN201219256Y (en) 2008-06-05 2008-06-05 Input/output bidirectional port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2008201183921U CN201219256Y (en) 2008-06-05 2008-06-05 Input/output bidirectional port

Publications (1)

Publication Number Publication Date
CN201219256Y true CN201219256Y (en) 2009-04-08

Family

ID=40542090

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2008201183921U Expired - Fee Related CN201219256Y (en) 2008-06-05 2008-06-05 Input/output bidirectional port

Country Status (1)

Country Link
CN (1) CN201219256Y (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281069A (en) * 2013-06-14 2013-09-04 成都锐奕信息技术有限公司 IO multiplexing port
CN103955559A (en) * 2014-04-03 2014-07-30 北京工业大学 Bidirectional IO multiplexing method and circuit for multi-module chip
CN102103407B (en) * 2009-12-17 2014-12-17 深圳市齐创美科技有限公司 Input/output device and environment monitoring system with same
CN107925833A (en) * 2015-05-27 2018-04-17 Qsc公司 Audio processor with two directions' inputing/output port
CN113189882A (en) * 2021-07-01 2021-07-30 深圳合芯谷微电子有限公司 IO self-adaptive integrated control circuit and control method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103407B (en) * 2009-12-17 2014-12-17 深圳市齐创美科技有限公司 Input/output device and environment monitoring system with same
CN103281069A (en) * 2013-06-14 2013-09-04 成都锐奕信息技术有限公司 IO multiplexing port
CN103281069B (en) * 2013-06-14 2016-05-11 成都锐奕信息技术有限公司 A kind of IO multiplexing port
CN103955559A (en) * 2014-04-03 2014-07-30 北京工业大学 Bidirectional IO multiplexing method and circuit for multi-module chip
CN103955559B (en) * 2014-04-03 2017-06-16 北京工业大学 A kind of two-way I O multiplexing method and circuit for multimode chip
CN107925833A (en) * 2015-05-27 2018-04-17 Qsc公司 Audio processor with two directions' inputing/output port
CN107925833B (en) * 2015-05-27 2020-03-13 Qsc公司 Audio processor with bidirectional input/output port
CN113189882A (en) * 2021-07-01 2021-07-30 深圳合芯谷微电子有限公司 IO self-adaptive integrated control circuit and control method

Similar Documents

Publication Publication Date Title
CN201219256Y (en) Input/output bidirectional port
KR970006598B1 (en) Semiconductor memory
CN103219037B (en) The on-chip memory of multi-port read-write
US8933724B2 (en) State transitioning clock gating
KR910010315A (en) 2-way data transfer device
CN101329589B (en) Control system and method of low power consumption read-write register
EP0726577A3 (en) Synchronous dual port RAM
CN102610269B (en) Write-once read-many disc internal memory
CN103886887A (en) Dual-port static random access memory with single-port memory cells
CN102819418B (en) FIFO data storage method and device of ultrafine particle gated clock
CN101236776A (en) A serial interface flash memory and its design method
CN101689851A (en) Logic state catching circuits
US8368424B1 (en) Programmable logic device wakeup using a general purpose input/output port
JPS5955525A (en) Microprocessor
CN203799661U (en) Dual-port static RAM (random access memory) using single-port memory cell
CN201060393Y (en) 8 bit online debugging microcontroller
CN116009647A (en) Chip for reducing power consumption on clock tree and clock control method
Yuan et al. Optimized design of UART IP soft core based on DMA mode
CN204926076U (en) IO interface module suitable for FLASHMCU
CN109936359B (en) Low-power-consumption bidirectional digital level conversion circuit and chip
CN107731254A (en) It is a kind of to utilize word computing circuit and CNFET three value static memories
CN101916586A (en) Multiport register file circuit
CN103594110A (en) Memory structure replacing dual-port static memory
CN216625713U (en) Bidirectional level conversion circuit
Yu Research on the selection method of digital tube driving

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SUZHOU CHINA-CHIP MICROELECTRONICS CO., LTD.

Free format text: FORMER NAME: SUZHOU HUAXIN MICRO-ELECTRONICS CO., LTD.

CP03 Change of name, title or address

Address after: 215011 No. 198 Xiangyang Road, hi tech Zone, Jiangsu, Suzhou

Patentee after: Suzhou Huaxin Microelectronics Co., Ltd.

Address before: 215011 No. 625 Binhe Road, New District, Jiangsu, Suzhou

Patentee before: Suzhou HuaXin Micro-electronics Co., Ltd.

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090408

Termination date: 20120605