Summary of the invention
The invention provides a kind of input/output interface device, can carry out by identical input and output weld pad the transmission action of digital signal or analog signal.
The present invention proposes a kind of input/output interface device, comprises digital IO control circuit, logical operation circuit, analog core circuit, switch and voltage offset circuits.The input and output weld pad of digital IO control circuit coupling chip receives digital output enable signal to transmit or to receive signal transmission by the input and output weld pad.Logical operation circuit couples the digital IO control circuit, in order to produce digital output enable signal and analog input output enable signal.Switch series is connected between input and output weld pad and analog core circuit, switch receive and according to control signal with conducting or disconnection.Voltage offset circuits couples logical operation circuit, and the voltage that receives and shift analog input output enable signal produces control signal.
In one embodiment of this invention, above-mentioned voltage offset circuits is heightened the voltage of analog input output enable signal to produce control signal.
In one embodiment of this invention, when above-mentioned switch disconnected, the digital IO control circuit transmitted signal transmission by the input and output weld pad.
In one embodiment of this invention, above-mentioned digital IO control circuit also couples digital core circuitry and logical operation circuit, and digital core circuitry transmits or receive signal transmission by the digital IO control circuit.
In one embodiment of this invention, above-mentioned input/output interface device also comprises correction resistance, be serially connected between this input and output weld pad and reference voltage, and the analog core circuit comprises reference current generator, current supply and reference current correcting circuit.Reference current generator is adjusted the reference current that reference current generator produces according to control voltage.Current supply couples reference current generator, and produce at least one for induced current and correcting current according to reference current, wherein, in order at least analog core electronic circuit to the analog core circuit to be provided, and provide correcting current by proofreading and correct resistance for induced current.The reference current correcting circuit couples proofreaies and correct resistance and reference current generator, makes reference current generator adjustment control voltage according to relatively controlling voltage and proofreading and correct ohmically voltage.
Based on above-mentioned, the present invention combines the weld pad that digital core circuitry and analog core circuit carry out the signal transmission inside and outside the System on Chip/SoC, effectively reduces the weld pad sum of System on Chip/SoC.In an embodiment of the present invention, then also propose a kind of correcting circuit of analog core circuit, come by shared input and output weld pad the reference current of analog core circuit is proofreaied and correct the accuracy of analog core circuit in the elevator system chip.
For above-mentioned feature and advantage of the present invention can be become apparent, embodiment cited below particularly, and cooperate accompanying drawing to be described in detail below.
Description of drawings
Fig. 1 is the pin configuration figure of existing System on Chip/SoC 100;
Fig. 2 is the schematic diagram of the input/output interface device 200 of one embodiment of the invention;
Fig. 3 is another execution mode of the input/output interface device 200 of the embodiment of the invention;
Fig. 4 is an execution mode of logical operation circuit 220;
Fig. 5 is the partial circuit figure of an again execution mode of the input/output interface device 200 of the embodiment of the invention.
Description of reference numerals:
100: System on Chip/SoC;
110: digital core circuitry;
120: the analog core circuit;
111: the digital IO weld pad;
112: analog input output weld pad;
200: input/output interface device;
210: the digital IO control circuit;
220: logical operation circuit;
230: the analog core circuit;
240: voltage offset circuits;
270: the input and output weld pad;
290: the logic core circuit;
231: reference current generator;
232: current supply;
233: the reference current correcting circuit;
2321~232P: analog core electronic circuit;
2331: correcting logic circuit;
OEN: digital output enable signal;
SW1: switch;
SIN, SOU, AIO: signal transmission;
AEN: simulation output enable signal;
CTR: control signal;
VDD, VDDIO: supply voltage;
AND: with door;
INV: not gate;
OEN_d: numeral output control signal;
REXT: proofread and correct resistance;
VREF: reference voltage;
V1: control voltage;
V2: voltage;
I1: reference current;
2311: the band gap voltage generator;
OPAMP: operational amplifier;
M1~M4: transistor;
RT: reference resistance;
I3~In: for induced current;
IC: correcting current;
VF: fixed voltage;
CR: resistance is adjusted signal;
CMP: comparator.
Embodiment
Please refer to Fig. 2, Fig. 2 is the schematic diagram of the input/output interface device 200 of one embodiment of the invention.Input/output interface device 200 comprises digital IO control circuit 210, logical operation circuit 220, analog core circuit 230, voltage offset circuits 240 and interrupteur SW 1.The input and output weld pad 270 of digital IO control circuit 210 coupling chips and logic core circuit 290, digital IO control circuit 210 receives digital output enable signal OEN to transmit or to receive signal transmission by input and output weld pad 270.More carefully illustrate, when digital output enable signal OEN is enabled state (for example being logic level " 0 "), the signal transmission SOU that digital IO control circuit 210 can spread out of logic core circuit 290 is to input and output weld pad 270, and by this signal transmission SOU spread out of to chip exterior.Certainly, under this state, digital IO control circuit 210 also can reach chip exterior the signal transmission SIN of input and output weld pad 270, turns to reach logic core circuit 290.
Certainly, above-mentioned digital output enable signal OEN is that enabled state is that logic level " 0 " is an example only, and the designer can set up the logic level of the digital output enable signal OEN of enabled state on their own.
In the present embodiment, numeral output enable signal OEN is provided by logical operation circuit 220, and, when chip will be sent out the signal transmission SOU that logic core circuit 290 produces by input and output weld pad 270, logical operation circuit 220 can produce the digital output enable signal OEN of enabled state.Relative, when signal transmission AIO that chip will produce by input and output weld pad 270 transportation simulator core circuits 230, logical operation circuit 220 can produce the digital output enable signal OEN of disabled state.That is to say that when chip for example will carry out the test of exploitation, chip of firmware (firmware) and/or chip misarrangement, logical operation circuit 220 can produce the digital output enable signal OEN of state.
Voltage offset circuits 240 is coupled to logical operation circuit 220.The voltage that voltage offset circuits 240 received and shifted analog input output enable signal AEN produces control signal CTR.It should be noted that in the present embodiment, analog core circuit 230 and digital core circuitry 220 the supply voltage VDDIO and the VDD that receive respectively be not identical, wherein, the magnitude of voltage of supply voltage VDDIO for example is greater than supply voltage VDD.Voltage offset circuits 240 then is to carry out the action of variation for the simulation output enable signal AEN that is produced by logical operation circuit 220, be created in the control signal CTR of transition between supply voltage VDDIO and earthed voltage, at this, earthed voltage for example is 0 volt.
At this, simulation output enable signal AEN can be provided by logical operation circuit 220 equally.And when chip will carry out the transmission action of signal transmission AIO by input and output weld pad 270 and analog core circuit 230, logical operation circuit 220 can produce the simulation output enable signal AEN of enabled state.Relative, when signal transmission AIO that chip does not produce by input and output weld pad 270 transportation simulator core circuits 230, logical operation circuit 220 can produce the simulation output enable signal AEN of disabled state.That is to say that when will carrying out the monitoring of the analog signal in the chip, or during the analog signal transmission when carrying out the chip misarrangement, logical operation circuit 220 can produce the simulation output enable signal AEN of enabled state.
Interrupteur SW 1 is serially connected in coupling between the path of input and output weld pad 270 and analog core circuit 230.Interrupteur SW 1 is controlled by control signal CTR with conducting or disconnection.In the present embodiment, when simulation output enable signal AEN was set to enabled state, the corresponding control signal CTR that produces can make interrupteur SW 1 be switched on, and conducting input and output weld pad 270 and analog core circuit 230 couple the path.Thus, produced by analog core circuit 230 or can effectively be transmitted at input and output weld pad 270 and 230 in analog core circuit by the signal transmission AIO that input and output weld pad 270 reaches by the outside.It should be noted that at the same time logical operation circuit 220 can produce the digital output enable signal OEN of disabled state, and logic core circuit 290 transmission signal transmission SOU are cut off to the path of input and output weld pad 270.
Subsidiary one carries, because the voltage amplitude maximum of signal transmission AIO is can be between between supply voltage VDDIO and earthed voltage, therefore, for making signal transmission AIO be unlikely to distortion through interrupteur SW 1 time, the control signal CTR that interrupteur SW 1 receives can be the digital signal that is controlled in transition between supply voltage VDDIO and earthed voltage.
Below please refer to Fig. 3, Fig. 3 is another execution mode of the input/output interface device 200 of the embodiment of the invention.In the present embodiment, logical operation circuit 220 can be by the interior logic core circuit 290 that is contained in.And about the action details of present embodiment, then the embodiment with Fig. 2 is identical, below seldom gives unnecessary details for this reason.
Please refer to Fig. 4, Fig. 4 is an execution mode of logical operation circuit 220.Logical operation circuit 220 comprises and door AND and not gate INV.Receive numeral output control signal OEN_d with the first input end of door AND, produce digital output enable signal OEN with the output of door AND.The output of not gate INV is coupled to the second input with door AND, and the input of not gate INV receives analog input output enable signal AEN.Analog input output enable signal AEN is then provided by logic core circuit 290.
Please refer to Fig. 5, Fig. 5 is the partial circuit figure of an again execution mode of the input/output interface device 200 of the embodiment of the invention.In the present embodiment, input/output interface device 200 can be used to provide the corrective action of the reference current that the analog core circuit 230 that carries out chip internal produces.In the present embodiment, input/output interface device 200 also comprises proofreaies and correct resistance R EXT, wherein, proofreaies and correct resistance R EXT and is serially connected between input and output weld pad 270 and reference voltage VREF.And analog core circuit 230 comprises reference current generator 231, current supply 232 and reference current correcting circuit 233.Reference current generator 231 is adjusted the reference current I1 that reference current generator 231 produces according to control voltage V1.
In the present embodiment, reference current generator 231 comprises band gap voltage generator 2311, operational amplifier OPAMP, transistor M1 and reference resistance RT.Band gap voltage generator 2311 produces fixed voltage VF, and provides a input to operational amplifier OPAMP with fixed voltage VF.Another input of operational amplifier OPAMP is coupled to the second end of transistor M1, and the first end of transistor M1 receives supply voltage VDD, and the control end of transistor M1 is connected to the output of operational amplifier OPAMP.Reference resistance RT is serially connected between the second end and reference voltage VREF of transistor M1, and reference voltage VREF can be earthed voltage.Wherein, the reference current I1 that reference current generator 231 produces flows to its second end by the first end of transistor M1, and reference current I1 and the reference resistance RT that flows through are to produce control voltage V1.And reference resistance RT is a variable resistor, and the resistance value of reference resistance RT can relatively be controlled voltage V1 and proofreaies and correct the comparative result that the voltage on the resistance R T produces and adjust according to reference current correcting circuit 233 utilization.
Current supply 232 couples reference current generator 231, and produces meeting more than one supply electric current I a 3~In and correcting current IC according to reference current I1.Wherein, current supply 232 comprises transistor M2, M3 and M4.Wherein, the second end of transistor M2 and M3 provides respectively the supply electric current I 3~In, and the first end of transistor M2 and M3 is coupled to supply voltage VDD jointly, and the control end of transistor M2 and M3 then is coupled to the control end of transistor M1 jointly.By the ratio of the length-width ratio between transistor M2 and transistor M1, then can adjust the ratio of supply electric current I 3 and reference current I1.In like manner, by the ratio of the length-width ratio between transistor M3 and transistor M1, then can adjust the ratio of supply electric current I n and reference current I1.
Wherein, supply electric current I 3~In is used to provide respectively to the analog core electronic circuit 2321~232P in the analog core circuit 230.
In addition, the first end of transistor M4 is coupled to supply voltage VDD, and its control end couples mutually with the control end of transistor M1~M3, and the second end of transistor M4 then provides correcting current IC.When carrying out the corrective action of reference current I1, interrupteur SW 1 correspondence is switched on, therefore, the second end of transistor M4 can be connected to by interrupteur SW 1 and proofread and correct resistance R EXT, and makes correcting current IC flow through correction resistance R EXT so that the second end of transistor M4 produces voltage V2.
Reference current correcting circuit 233 comprises comparator C MP and correcting logic circuit 2331.The first input end of comparator C MP couples the second end of transistor M4, and the second input of comparator C MP couples the second input of operational amplifier OPAMP.Correcting logic circuit 2331 couples the output of comparator C MP, and has a resistance according to the comparative result that the output of comparator C MP produces and to adjust signal CR.Wherein, resistance is adjusted signal CR and is provided to reference resistance RT, to adjust the resistance value of reference resistance RT.
At this, about adjusting the resistance value adjustment aspect that signal CR carries out reference resistance RT by resistance, wherein, reference resistance RT can be connected in series by a plurality of sub-resistance, and each sub-resistance all disposes one with it and the switch that connects.Adjust conducting or the off-state that signal CR controls each switch by resistance, just can effectively adjust the resistance value of reference resistance RT.The adjustment mode of the resistance value of similar above-mentioned explanation should be technology well known to those of ordinary skill in the art, pardons few numerous stating at this.
In sum, the present invention is by the conducting of switch or the action of disconnection, the input and output weld pad that input/output interface device is connected can under different chip use states, make analog core circuit or digital core circuitry in the chip carry out the transmission action of signal transmission by the input and output weld pad that shares.Thus, the weld pad quantity on the chip can effectively be reduced, and except the quantity that can reduce packaging pin, also can reduce the area of chip, significantly the cost competitiveness of improving product.
It should be noted that at last: above each embodiment is not intended to limit only in order to technical scheme of the present invention to be described; Although with reference to aforementioned each embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.