The transceiver configuration of All-in-One data communication interface and method in the IC chip
Technical field
The present invention relates to technical field of integrated circuits, particularly design of integrated circuit field specifically is meant the transceiver configuration and the method for All-in-One data communication interface in a kind of IC chip.
Background technology
In the modern society, along with the continuous development of the communication technology and integrated circuit technique, both combining closely becomes irreversible main trend.
In data communication field, UART Universal Asynchronous Receiver Transmitter (UART, Universal Asynchronous Receiver andtransmitter) be a kind of maturation, the asynchronous serial data transceiver module.Receiving and transmitting signal has carried its major function in the UART agreement, and this paper is that the basis describes with UART_TX and UART_RX two holding wire patterns only, and other functions can be done respective extension according to different needs under the situation of not destroying the function of tonic chord.
The data format of UART module sees also shown in Figure 1, and data are received and dispatched to high-order (MSB) from low level (LSB) successively, and a partial data byte comprises: 1 of start bit, 8 of data bit, 1 of optional check digit, 1,1.5 or 2 of position of rests.
Infrared data ANSI (IrDA, Infrared Data Association) technology is a kind of technology of utilizing infrared ray to carry out point-to-point communication, and its corresponding software and hardware technology is comparative maturity all.IrDA has the transmitting-receiving that IrDA_TX and two holding wires of IrDA_RX are responsible for data.
The data format of IrDA module sees also shown in Figure 2, and data are received and dispatched to high-order (MSB) from low level (LSB) successively, and a partial data byte comprises: 1 of start bit, 8 of data bit, 1 of position of rest.
According to agreement IrDA1.0 and above version thereof, the IrDA physical layer data has its different frame formats definition, and these frame formats can pass through encoder (Encoder) and decoder (Decoder) module realizes, see also shown in Figure 3.Encoder and Decoder module promptly can be integrated in the All-in-One transceiver that this paper says, also can be equipped with hardware or software module in addition.
The client discerns module (SIM; Subscriber Identity Model) card is a card that contains large scale integrated circuit in inner packet; The card storage inside contents such as digital mobile phone client's information, encryption key; It can supply the GSM network that client identity is differentiated, and the voice messaging the when client conversed is encrypted.
UMTS client discerns module (USIM; UMTS Subscriber Identity Module) stems from the notion of the SIM of GSM; Have the multi-functional characteristic of high power capacity, can deposit user's information and all authentication and encryptions, answer the requirement in 3G epoch to produce.Usim card is changed to cross-cutting many Application of I C card platform from single telecommunications functions; Usim card is not a kind of application in the mobile phone card; More non-telecommunications functions may join the application of chip for cell phone card, like payment, oiling, public transport, social security, even electron underwriting authentication or the like.
SIM and USIM are a kind of of ISO smart card, and its tcp data segment is mainly controlled by two holding wires, SIM_CLK and SIM_DATA, and it is a kind of synchronous transceiver mode.
The data format of sim module sees also shown in Figure 4, and data are received and dispatched to high-order (MSB) from low level (LSB) successively, and a partial data byte comprises: 1 of start bit, 8 of data bit, 1 of check digit.
In the prior art, a multifunction chip often needs to be equipped with several correlation modules on function.Mobile terminal chip for example for different clients' demand, often provides 3 UART modules, 2 infrared modules and 2 SIM or USIM module, amounts to 7 modules.And, can use two or three modules wherein simultaneously for general specific to certain user, remaining module can only be left unused.Because different clients needs different combinations, can not reduce the quantity of module again.Above-mentioned situation has just caused the waste of resource and has occupied high cost.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, provide a kind of can support simultaneously the several data communication interface, simple in structure, integrated level is high, flexible, cost is lower, highly effective, stable and reliable working performance, the scope of application transceiver configuration and the method for All-in-One data communication interface in the IC chip comparatively widely.
In order to realize above-mentioned purpose, the transceiver configuration of All-in-One data communication interface and method are following in the IC chip of the present invention:
The transceiver configuration of All-in-One data communication interface in this IC chip; Comprise first pin and second pin on the IC chip; Its main feature is; Comprise control function module, multi-functional sending module, multi-functional reception module and pin assignments control module in the described transceiver configuration; Described control function module is connected with described pin assignments control module through described multi-functional sending module, multi-functional reception module respectively, and described pin assignments control module is connected with second pin with described first pin.
In this IC chip the transceiver configuration of the transceiver configuration of All-in-One data communication interface compatible data communication interface comprise UART Universal Asynchronous Receiver Transmitter UART interface and infrared data IrDA interface.
The control function module of the transceiver configuration of All-in-One data communication interface is a control register in this IC chip.
In this IC chip the transceiver configuration of the transceiver configuration of All-in-One data communication interface compatible data communication interface also comprise client identification module SIM interface and UMTS client identification module USIM interface; Also comprise the SIM/USIM clock generating module in the described transceiver configuration, described control function module is connected with described pin assignments control module through this SIM/USIM clock generating module.
This uses above-mentioned transceiver configuration to realize the method for All-in-One data communication interface in the IC chip, and its main feature is that described method may further comprise the steps:
(1) the multi-functional data frame format of systemic presupposition several data communication pattern and compatible this several data communication pattern;
(2) control function module is switched the selection configuration operation in described several data communication pattern;
(3) described multi-functional sending module sends data frame format according to switch data communication mode and the configuration of described multi-functional data frame format selected, and sends corresponding data;
(4) described multi-functional reception module disposes the receiving data frames form according to switch data communication mode and the described multi-functional data frame format selected, and receives corresponding data;
(5) described pin assignments control module is carried out the function batch operation according to the switch data communication mode of selecting to described first pin and second pin.
Data communication mode in this realization IC chip in the method for All-in-One data communication interface comprises universal asynchronous receiving-transmitting UART pattern and infrared data IrDA pattern.
Multi-functional data frame format in this realization IC chip in the method for All-in-One data communication interface is:
The position of rest of optional check digit of 1+8bit of 1bit start bit data bit+1bit+optional and configurable length.
The state of the model selection item in the control register in this realization IC chip in the method for All-in-One data communication interface with the corresponding relation of the switch data communication mode of selecting is:
(21) the model selection item in the control register is a 0--universal asynchronous receiving-transmitting UART pattern;
(22) the model selection item in the control register is a 1--infrared data IrDA pattern.
Multi-functional sending module in this realization IC chip in the method for All-in-One data communication interface sends data frame format according to switch data communication mode and the configuration of multi-functional data frame format selected, may further comprise the steps:
(31) if selected data communication mode is a universal asynchronous receiving-transmitting UART pattern, then will sends data frame format and be configured to:
The position of rest of the optional check digit of 1+8bit of 1bit start bit data bit+1bit+configurable length;
(32) if selected data communication mode is an infrared data IrDA pattern, then will sends data frame format and be configured to:
1+8bit of 1bit start bit data bit+1bit position of rest.
Multi-functional reception module in this realization IC chip in the method for All-in-One data communication interface may further comprise the steps according to switch data communication mode and the multi-functional data frame format configuration receiving data frames form of selecting:
(41), then be with the receiving data frames format configuration if selected data communication mode is a universal asynchronous receiving-transmitting UART pattern:
The position of rest of the optional check digit of 1+8bit of 1bit start bit data bit+1bit+configurable length;
(42), then be with the receiving data frames format configuration if selected data communication mode is an infrared data IrDA pattern:
1+8bit of 1bit start bit data bit+1bit position of rest.
Pin assignments control module in this realization IC chip in the method for All-in-One data communication interface is carried out the function batch operation according to the switch data communication mode of selecting to first pin and second pin, may further comprise the steps:
(51) if selected data communication mode is a universal asynchronous receiving-transmitting UART pattern, then first pin is set to the UART_TX output pin, and second pin is set to the UART_RX input pin;
(52) if selected data communication mode is an infrared data IrDA pattern, then first pin is set to the UART_TX output pin, and second pin is set to the UART_RX input pin.
Data communication mode in this realization IC chip in the method for All-in-One data communication interface comprises that also the client discerns SIM/UMTS client and discerns the USIM pattern.
Multi-functional data frame format in this realization IC chip in the method for All-in-One data communication interface is:
The position of rest of optional check digit of 1+8bit of 1bit start bit data bit+1bit+optional and configurable length.
Control function module in this realization IC chip in the method for All-in-One data communication interface is a control register, and the state of the model selection item in the described control register with the corresponding relation of the switch data communication mode of selecting is:
(23) the model selection item in the control register is discerned the USIM pattern for 2--client discerns SIM/UMTS client.
Multi-functional sending module in this realization IC chip in the method for All-in-One data communication interface sends data frame format according to switch data communication mode and the configuration of multi-functional data frame format selected, may further comprise the steps:
(33) if selected data communication mode is discerned the USIM pattern for the client discerns SIM/UMTS client, then will send data frame format and be configured to:
1+8bit of 1bit start bit data bit+1bit check digit.
Multi-functional reception module in this realization IC chip in the method for All-in-One data communication interface may further comprise the steps according to switch data communication mode and the multi-functional data frame format configuration receiving data frames form of selecting:
(43), then be with the receiving data frames format configuration if selected data communication mode is a universal asynchronous receiving-transmitting UART pattern:
1+8bit of 1bit start bit data bit+1bit check digit.
Pin assignments control module in this realization IC chip in the method for All-in-One data communication interface is carried out the function batch operation according to the switch data communication mode of selecting to first pin and second pin, may further comprise the steps:
(53) if selected data communication mode is discerned the USIM pattern for the client discerns SIM/UMTS client, then first pin is set to SIM_CLK synchronised clock pin, and second pin is set to SIM_DATA input and output pin.
Adopted the transceiver configuration and the method for All-in-One data communication interface in the IC chip of this invention,,, be in the different working state according to different configurations because it supports multiple mode of operation with same transceiver.Thereby overcome the idle problem of a large amount of modules in the prior art, obviously reduced production cost of chip, and saved system resource; Because the present invention produces a multi-functional data format of support through the data format of a plurality of modules is concluded, thereby the logical resource that makes multi-functional transceiver consume is only almost suitable with the logical resource that an independent transceiver consumes, and can UART, IrDA, SIM and USIM control module be merged; Not only simple in structure; And level of integrated system is high, and flexible, cost is lower; Highly effective; Stable and reliable working performance, the scope of application are comparatively extensive, for communications field design of integrated circuit and increased functionality have been established solid foundation.
Description of drawings
Fig. 1 is a UART data frame format sketch map of the prior art.
Fig. 2 is an IrDA data frame format sketch map of the prior art.
Fig. 3 is infrared transceiver Encoder of the prior art and Decoder modular structure sketch map.
Fig. 4 is a SIM/USIM data frame format sketch map of the prior art.
Fig. 5 is the transceiver configuration of All-in-One data communication interface in the IC chip of the present invention and the multi-functional data frame format sketch map in the method.
Fig. 6 is the transceiver configuration of All-in-One data communication interface in the IC chip of the present invention and the multi-functional transceiver configuration sketch map in the method.
Embodiment
In order more to be expressly understood technology contents of the present invention, the special following examples of lifting specify.
See also Fig. 5 and shown in Figure 6; The transceiver configuration of All-in-One data communication interface in this IC chip; Comprise first pin one and second pin two on the IC chip; Wherein, Comprise control function module 3, multi-functional sending module 4, multi-functional reception module 5, pin assignments control module 6 and SIM/USIM clock generating module 7 in the described transceiver configuration; Described control function module 3 is connected with described pin assignments control module 6 through described multi-functional sending module 4, multi-functional reception module 5 respectively, and described pin assignments control module 6 is connected with second pin two with described first pin one, and described control function module 3 is connected with described pin assignments control module 6 through this SIM/USIM clock generating module 7.
Wherein, In this IC chip the transceiver configuration of the transceiver configuration of All-in-One data communication interface compatible data communication interface comprise UART Universal Asynchronous Receiver Transmitter UART interface, infrared data IrDA interface, client identification module SIM interface and UMTS client identification module USIM interface; This control function module 3 can be control register, also can have the device of control action for other.
This uses above-mentioned transceiver configuration to realize the method for All-in-One data communication interface in the IC chip, comprising following steps:
(1) the multi-functional data frame format of systemic presupposition several data communication pattern and compatible this several data communication pattern; This multi-functional data frame format is:
The position of rest of optional check digit of 1+8bit of 1bit start bit data bit+1bit+optional and configurable length;
This data communication mode comprises that universal asynchronous receiving-transmitting UART pattern, infrared data IrDA pattern and client discern SIM/UMTS client and discern the USIM pattern;
(2) control function module is switched the selection configuration operation in described several data communication pattern; Control function module in this realization IC chip in the method for All-in-One data communication interface is a control register, and the state of the model selection item in the described control register with the corresponding relation of the switch data communication mode of selecting is:
(a) the model selection item in the control register is a 0--universal asynchronous receiving-transmitting UART pattern;
(b) the model selection item in the control register is a 1--infrared data IrDA pattern;
(c) the model selection item in the control register is discerned the USIM pattern for 2--client discerns SIM/UMTS client;
(3) described multi-functional sending module sends data frame format according to switch data communication mode and the configuration of described multi-functional data frame format selected, and sends corresponding data, may further comprise the steps:
(a) if selected data communication mode is a universal asynchronous receiving-transmitting UART pattern, then will sends data frame format and be configured to:
The position of rest of the optional check digit of 1+8bit of 1bit start bit data bit+1bit+configurable length;
(b) if selected data communication mode is an infrared data IrDA pattern, then will sends data frame format and be configured to:
1+8bit of 1bit start bit data bit+1bit position of rest;
(c) if selected data communication mode is discerned the USIM pattern for the client discerns SIM/UMTS client, then will send data frame format and be configured to:
1+8bit of 1bit start bit data bit+1bit check digit;
(4) described multi-functional reception module disposes the receiving data frames form according to switch data communication mode and the described multi-functional data frame format selected, and receives corresponding data, may further comprise the steps:
(a), then be with the receiving data frames format configuration if selected data communication mode is a universal asynchronous receiving-transmitting UART pattern:
The position of rest of the optional check digit of 1+8bit of 1bit start bit data bit+1bit+configurable length;
(b), then be with the receiving data frames format configuration if selected data communication mode is an infrared data IrDA pattern:
1+8bit of 1bit start bit data bit+1bit position of rest;
(c), then be with the receiving data frames format configuration if selected data communication mode is a universal asynchronous receiving-transmitting UART pattern:
1+8bit of 1bit start bit data bit+1bit check digit;
(5) described pin assignments control module is carried out the function batch operation according to the switch data communication mode of selecting to described first pin and second pin, may further comprise the steps:
(a) if selected data communication mode is a universal asynchronous receiving-transmitting UART pattern, then first pin is set to the UART_TX output pin, and second pin is set to the UART_RX input pin;
(b) if selected data communication mode is an infrared data IrDA pattern, then first pin is set to the UART_TX output pin, and second pin is set to the UART_RX input pin;
(c) if selected data communication mode is discerned the USIM pattern for the client discerns SIM/UMTS client, then first pin is set to SIM_CLK synchronised clock pin, and second pin is set to SIM_DATA input and output pin.
In the middle of practical application, see also shown in Figure 6ly, it is the structure chart of a kind of implementation of this multipurpose universal asynchronism transceiver.As shown in the figure, this module comprises: control register module, multi-functional sending module, multi-functional reception module, SIM/USIM clock generating module and pin assignments module.
The major function of control register control module.In control register; One model selection item ModeSelect is arranged; When putting this position when being 0,1,2; Transceiver is in UART, IrDA and SIM/USIM pattern respectively, so control register can the switching of control module between these three kinds of patterns, controls the function and the co-ordination of each module simultaneously.Three kinds of patterns in this embodiment are UART pattern, IrDA pattern and SIM/ISIM pattern.
According to analysis, can be integrated into multi-functional data form shown in Figure 5 to three data forms: 1 of start bit, 8 of data bit, 1 of optional check digit, optional and configurable length position of rest to Fig. 1, Fig. 2 and Fig. 4.Because the check bit sum position of rest of multi-functional data position is optional, can be configured to meet the data format of above-mentioned three kinds of patterns arbitrarily, so the multi-functional data form can compatible any independent data format above-mentioned.Constant such as start bit and data bit in the above-mentioned multi-functional data form), do not select check digit and select the position of rest of a bit length, just become the IrDA pattern.In like manner, can become any among UART, IrDA and the SIM/USIM to the multi-functional data format configuration, form the unification of three kinds of data formats.Three kinds of data formats effectively be unified into the basis of realizing for the All-in-One transceiver.
For example when ModeSelect was 0, multi-functional transceiver was 1 according to UART pattern (seeing also shown in Figure 1) transceive data if switch to ModeSelect, and multi-functional transceiver is just according to IrDA pattern (seeing also shown in Figure 2) transceive data.And only be to have omitted check digit by the change that the UART mode switch is made to the IrDA pattern, any variation does not take place in other part except check digit.This change that utilizes the similitude of data structure and make is a kind of very simply change, thereby has reached the purpose of saving resource, raising the efficiency.Except the UART that enumerates here to the switching of IrDA, other switch mode also has the switching of the switching of UART to the switching of SIM/USIM, IRDA to SIM/USIM, IRDA switching and the SIM/USIM to the switching of UART, SIM/USIM to UART to IrDA.Similar mode is all followed in all these switchings, reaches identical purpose.
Multi-functional sending module is responsible for sending data according to the scheme of control register configuration, is operated in different patterns, can send the data of different mode; And multi-functional reception module is responsible for receiving data according to the scheme of control register configuration simultaneously, is operated in different mode, can receive the data of different mode.
The SIM/USIM clock generating module is responsible for producing the clock that supplies the work of SIM/USIM card according to the scheme of control register configuration.
The pin assignments module is responsible for arranging the external pin of chip.For the save pins resource, done the multiplexing of height in this instance.Pin1 is the pin of an output type, as the UART_TX under the UART pattern, the SIM_CLK under IrDA_TX under the IrDA pattern and the SIM/USIM pattern.Pin2 is the pin that can between input type and input and output bi-directional type, change, is responsible for the UART_RX under the UART pattern, the SIM_DATA under IrDA_RX under the IrDA pattern and the SIM/USIM pattern.Pin2 is the pin of input type under UART pattern and IrDA pattern, is the pin of input and output type under the SIM/USIM pattern, and this root pin is all passed through in the transmitting-receiving of data.Like this, a chips only provides two pins just can accomplish the data manipulation partial function of various protocols.
What this multi-functional transceiver can repeat in same chips calls.
No matter adopt the above-mentioned multi-functional transceiver that description generated, be logical resource aspect or pin resource aspect, all made minimization, and function aspects has been done the extension processing.This transceiver is compared with existing implementation, and the functional performance aspect still is that the cost aspect all has remarkable advantages.
Wherein, the multi-functional transceiver of All-in-One provided by the present invention can support and the communicating by letter of UART, IrDA, several kinds of interfaces of SIM and USIM.
Same transceiver can be supported multiple mode of operation, according to different configurations, is in the different working state.This mode has overcome the idle problem of a large amount of modules in the prior art, has reduced production cost of chip, and effect obviously.For example most mobile device production firm only can use maximum 3 modules (presumable module is repeatedly called) simultaneously with a product; Each only need provide 3 multifunction modules just passable in the chip so, because can be operated in suitable mode of operation as required.Compare with about 7 disparate modules that generally provide in the prior art, saved resource greatly and practiced thrift cost.
Sharpest edges in the technical scheme of the present invention are that All-in-One is not to combine disparate modules, and the All-in-One function is provided after the packing.According to the traditional method of prior art, simply be packaged in a plurality of modules together, its chip area is not saved, because used separately logical resource does not reduce, does not reach the purpose that economizes on resources, reduces cost like this.The present invention then is a data format of analyzing a plurality of modules earlier, produces one and supports multi-functional data format, thereby generate multi-functional transceiver.The logical resource that the logical resource that the multi-functional transceiver that generates like this consumes and independent some transceivers consume is almost equal, reaches the purpose of saving resource, practicing thrift cost completely.
Adopted the transceiver configuration and the method for All-in-One data communication interface in the above-mentioned IC chip,,, be in the different working state according to different configurations because it supports multiple mode of operation with same transceiver.Thereby overcome the idle problem of a large amount of modules in the prior art, obviously reduced production cost of chip, and saved system resource; Because the present invention produces a multi-functional data format of support through the data format of a plurality of modules is concluded, thereby the logical resource that makes multi-functional transceiver consume is only almost suitable with the logical resource that an independent transceiver consumes, and can UART, IrDA, SIM and USIM control module be merged; Not only simple in structure; And level of integrated system is high, and flexible, cost is lower; Highly effective; Stable and reliable working performance, the scope of application are comparatively extensive, for communications field design of integrated circuit and increased functionality have been established solid foundation.
In this specification, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.