[go: up one dir, main page]

CN101751365A - Improved ISO7816 interface device and data transmission processing method thereof - Google Patents

Improved ISO7816 interface device and data transmission processing method thereof Download PDF

Info

Publication number
CN101751365A
CN101751365A CN200810178341A CN200810178341A CN101751365A CN 101751365 A CN101751365 A CN 101751365A CN 200810178341 A CN200810178341 A CN 200810178341A CN 200810178341 A CN200810178341 A CN 200810178341A CN 101751365 A CN101751365 A CN 101751365A
Authority
CN
China
Prior art keywords
data
serial
iso7816
iso7816 interface
output
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.)
Granted
Application number
CN200810178341A
Other languages
Chinese (zh)
Other versions
CN101751365B (en
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.)
SK Telecom China Holdings Co Ltd
Original Assignee
SK Telecom China Holdings 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 SK Telecom China Holdings Co Ltd filed Critical SK Telecom China Holdings Co Ltd
Priority to CN2008101783412A priority Critical patent/CN101751365B/en
Publication of CN101751365A publication Critical patent/CN101751365A/en
Application granted granted Critical
Publication of CN101751365B publication Critical patent/CN101751365B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention relates to an improved ISO7816 interface device and a data transmission processing method thereof. An ISO7816 interface device in a mobile communication terminal also comprises a serial/parallel conversion device and a clock frequency conversion device, wherein the serial/parallel conversion device is connected among an ISO7816 interface controller and two buffers for converting serial data output by an ISO7816 interface controller into four-digit parallel data; after buffered by the buffer, the four-digit parallel data is output to an intelligent card in parallel by interface pins C4, C6-C8; four-digit parallel data which is parallel by the interface pins C4, C6-C8, is received by the intelligent card and is buffered by the buffer is converted into serial data to be transmitted to the ISO7816 interface controller; the clock frequency conversion device is used for converting input clock frequency F so as to provide F or 4 (M+1) F clock frequency for the ISO7816 interface controller, provide (M+1) F and 4 (M+1) F clock frequency for the serial/ parallel conversion device and provide F or (M+1) F clock frequency for an interface pin C3, wherein F is 1-5 MHZ, and the parameter M is any one integer of 0-15.

Description

Modified ISO7816 interface arrangement and data transmission processing method thereof
Technical field
The present invention relates to moving communicating field, relate to the ISO7816 interface arrangement in mobile communication terminal and the used smart card thereof especially, and data transmission processing method between the two.
Background technology
In the prior art, as shown in Figure 1, the ISO7816 interface arrangement in the existing mobile communication terminal (for example mobile phone) includes ISO7816 interface controller (10); The reseting interface pin C2 that links to each other with the reset terminal RST of described ISO7816 interface controller (10); Data input/output interface pin C7, it links to each other with the data input pin IN of ISO7816 interface controller (10) by first impact damper (11), data output end OUT with described ISO7816 interface controller (10) links to each other by second impact damper (12), and wherein second impact damper (12) also receives the enable signal EN from described ISO7816 interface controller (10); Keep not interface pin C4, C6 and the C8 of usefulness; And the clock interface pin C3 that links to each other with the clock end CK of described ISO7816 interface controller (10).
As shown in Figure 2, in the prior art in the mobile communication terminal (for example mobile phone) the ISO7816 interface arrangement in the used smart card include ISO7816 interface controller (20); The reseting interface pin C2 that links to each other with the reset terminal RST of described ISO7816 interface controller (20); Data input/output interface pin C7, it links to each other with the data input pin IN of ISO7816 interface controller (20) by the 3rd impact damper (21), data output end OUT with described ISO7816 interface controller (20) links to each other by the 4th impact damper (22), and wherein the 4th impact damper (22) also receives the enable signal EN from described ISO7816 interface controller (20); Keep not interface pin C4, C6 and the C8 of usefulness; And the clock interface pin C3 that links to each other with the clock end CK of described ISO7816 interface controller (20).
As shown in Figure 3, eight interface pin C1-C8 that use in the ISO7816 interface arrangement that uses in the prior art are respectively power supply (VCC) interface pin C1, (RST) the interface pin C2 that resets, clock (CLK) interface pin C3, keep usefulness not interface pin C4, ground connection (GND) interface pin C5, keep interface pin C6, data I/O (I/O) the interface pin C7 of usefulness not and keep the not interface pin C8 of usefulness.
Data transmission processing method between existing mobile communication terminal (for example mobile phone) and the used smart card thereof includes: the mobile communication terminal power-up initializing that smart card is housed; Mobile communication terminal automatically resets and responds the ATR processing; Carry out the transmission of data between mobile communication terminal and the smart card; And end data transmission.Wherein in the transmitting step of data, when mobile communication terminal is written to smart card with data, ISO7816 interface arrangement in the described mobile communication terminal by the processor in the control chip in ISO interface controller (the 20) → smart card of I/O (I/O) interface pin C7 → smart card in the ISO7816 interface arrangement in the smart card of interface controller (10) → I/O (I/O) the interface pin C7 → coupled of himself, realizes that mobile communication terminal is written to smart card with data with a bit serial data transmission; Perhaps when mobile communication terminal during from the smart card reading of data, processor in the control chip in the described smart card is after the steering order that receives from mobile communication terminal, one bit serial data transmission by the processor in ISO7816 interface controller (the 10) → mobile communication terminal in I/O (I/O) interface pin C7 → mobile communication terminal in the ISO7816 interface arrangement in the mobile communication terminal of interface controller (20) → I/O (I/O) the interface pin C7 → coupled of himself, is realized that mobile communication terminal is from the smart card reading of data.
Because the input clock frequency of the data transmission of the ISO7816 interface arrangement in existing mobile communication terminal and the used smart card thereof is 1-5MHZ, and can only be by single serial line interface pin C7 transmission data, cause the speed of the data transmission between mobile communication terminal and the smart card lower, therefore, smart card all more as the instrument of an identification, is used to store a small amount of critical data for a long time.
Along with popularizing and development of mobile communication, the capacity of smartcard internal storer does not more and more satisfy user's demand.And the development of IC designing technique also makes the raising of smart card capacity become possibility, carries out the transition to the MB magnitude from the KB magnitude at present, high-end smart card even the GB magnitude occurred.Because the storer in the control chip of smart card is difficult to accomplish very high capacity,, increase the active volume of smart card so visit the outer bigger external memory storage of capacity of control chip by the external storage controller in the control chip usually.And external memory storage and the smart card control chip form by system in package (SIP) is packaged together.
In order to solve the too low problem of ISO7816 interface arrangement transmission speed, the smart card with large capacity of new mobile communication terminal of releasing and use thereof is equipped with USB interface device or MMC interface arrangement toward contact.Although such improvement has been arranged, smart card with large capacity does not obtain the approval in market, promotes difficult.Trace it to its cause, still main because the reason of power consumption.Increase the significantly lifting that USB interface or MMC interface all will cause rolling up of power consumption and block the complexity of interior software and hardware, also cause simultaneously the increase of the infrastructure cost of mobile communication terminal and used smart card thereof, this is that manufacturer and user are unacceptable.
Summary of the invention
The object of the present invention is to provide ISO7816 interface arrangement in the smart card of a kind of follow-on mobile communication terminal and use thereof, and data transmission processing method between the two, under the prerequisite of the infrastructure cost that does not increase mobile communication terminal and smart card, significantly improved the data throughput of ISO7816 interface.
According to a first aspect of the invention, provide the ISO7816 in a kind of mobile communication terminal interface arrangement, included the ISO7816 interface controller; The reseting interface pin C2 that links to each other with the reset terminal of described ISO7816 interface controller; Data input/output interface pin C7, it links to each other with the data input pin of ISO7816 interface controller by first impact damper, link to each other by the data output end of second impact damper with described ISO7816 interface controller, wherein second impact damper also receives the enable signal from described ISO7816 interface controller; Interface pin C4, C6 and C8; And the clock interface pin C3 that links to each other with the clock end of described ISO7816 interface controller, it is characterized in that:
Described interface pin C4, C6 and C8 and C7 are connected to the input end of described first impact damper and the output terminal of described second impact damper concurrently;
ISO7816 interface arrangement in the described mobile communication terminal also includes:
Serial/parallel conversion equipment, be connected between described ISO7816 interface controller and described first impact damper and described second impact damper, be used for when described mobile communication terminal is written to smart card with data, one bit serial data-switching of ISO7816 interface controller output is become four bit parallel data, then by after described second buffer buffers, export to described smart card via described interface pin C4, C6, C7 and C8 are parallel; Or at described mobile communication terminal during from described smart card reading of data, will be parallel that receive from described smart card and become bit serial data by four bit parallel data-switching after described first buffer buffers by described interface pin C4, C6, C7 and C8, be transferred to described ISO7816 interface controller;
The clock frequency conversion equipment, link to each other with described ISO7816 interface controller, serial/parallel conversion equipment and described interface pin C3 respectively, be used to change the clock frequency F of input, to provide F or 4 (M+1) clock frequency of F to described ISO7816 interface controller, provide (M+1) F and 4 (M+1) clock frequency of F to described serial/parallel conversion equipment, and provide F or (M+1) clock frequency of F to described interface pin C3, wherein F represents the arbitrary frequency values in the 1-5MHz scope; Parameter M is the parameter that described ISO7816 interface controller receives from described smart card, and expression is the arbitrary round values among the 0-15 to the multiple of the lifting of outside input clock frequency F.
In one embodiment of this invention, M=0 represents that frequency range (M+1) F is 1~5MHz, M=1, and then frequency range is 2~10MHz, M=2, then frequency range (M+1) F is 3~15MHz, by that analogy, and M=15, then frequency range (M+1) F is 16~80MHz.
In one embodiment of this invention, ISO7816 interface arrangement in the described mobile communication terminal also includes parameter M register, link to each other with described clock frequency conversion equipment with described ISO7816 interface controller respectively, be used to store the described parameter M that receives from described ISO7816 interface controller and provide described parameter M to described clock frequency conversion equipment; With parameter S el register, respectively with described ISO7816 interface controller, described serial/parallel conversion equipment links to each other with described clock frequency conversion equipment, be used to store the described parameter S el that receives from described ISO7816 interface controller and provide described parameter S el to described serial/parallel conversion equipment and described clock frequency conversion equipment, wherein said parameter S el is that described ISO7816 interface controller receives from described smart card, include numeral 0 or 1, numeral 0 expression only supports the ISO7816 interface arrangement of standard and numeral 1 to express support for described ISO7816 interface arrangement of the present invention.
In one embodiment of this invention, described serial/parallel conversion equipment includes: serial/parallel converter, be used to carry out the mutual conversion between bit serial data and the four bit parallel data, described serial/parallel converter has the input end of the serial data that receives described ISO7816 interface controller output, receive the CKP end of clock frequency of (M+1) F of described clock frequency conversion equipment output, receive the CKS end of clock frequency of 4 (M+1) F of described clock frequency conversion equipment output, export the output terminal of four bit parallel data, receive the input end of four bit parallel data and the output terminal of output serial data;
First multiplexer, be used for according to parameter S el from described parameter S el register, to from the serial data of described ISO7816 interface controller output, three ground connection data and carry out from four bit parallel data of the data output end output of described serial/parallel converter multiplexed, four bit parallel data of forming from the serial data of described ISO7816 interface controller output and three ground connection data with output or give described second impact damper from four bit parallel data of the data output end output of described serial/parallel converter; And
Second multiplexer, be used for according to parameter S el from described parameter S el register, to from the serial data of the output terminal of described serial/parallel converter output with carry out multiplexed from the serial data of passing through described first buffer buffers of described interface pin C7, with output from described from described serial/parallel converter data output end output serial data or give described ISO7816 interface controller from the serial data of described interface pin C7
Wherein first impact damper is four digit buffers, be used for four bit parallel data from described interface pin C4, C6, C7 and C8 are cushioned, export to the described input end of described serial/parallel converter and only will export to second multiplexer from the data after the buffering of described interface pin C7 with four bit parallel data after will cushioning;
Described second impact damper is four digit buffers, be used for receiving respectively four bit parallel data of described first multiplexer output and the enable signal of exporting from described ISO7816 interface controller, to export to described interface pin C4, C6, C7 and C8 respectively behind the four bit parallel data bufferings that will receive.
In one embodiment of this invention, in the Sel parameter is 0 o'clock, when described mobile communication terminal is written to described smart card with data, described first multiplexer output is from serial data and three four bit parallel data that the ground connection data are formed of described ISO7816 interface controller output, perhaps at described mobile communication terminal during from described smart card reading of data, described second multiplexer output is from the serial data of described interface pin C7; In the Sel parameter is 1 o'clock, when described mobile communication terminal is written to described smart card with data, described first multiplexer output is from four bit parallel data of described serial/parallel converter output, perhaps at described mobile communication terminal during from described smart card reading of data, described second multiplexer output is from the serial data of the output terminal output of described serial/parallel converter.
In one embodiment of this invention, described clock frequency conversion equipment includes: 4 (M+1) frequency multiplier, be used for according to the parameter M from described M parameter register, the clock frequency F that the outside is imported carries out 4 (M+1) frequency multiplication, and exports to the CKS end of described serial/parallel converter;
4 frequency dividers are used for clock frequency 4 (M+1) F of described 4 (M+1) frequency multiplier (141) output is carried out 4 frequency divisions, with the clock frequency of output (M+1) F, and export to the CKP end of described serial/parallel converter;
The 3rd multiplexer, be used for according to parameter S el from described parameter S el register, to the clock frequency F of outside input with carry out multiplexedly from clock frequency (M+1) F of described 4 frequency dividers, give described clock interface pin C3 with the clock frequency F that exports outside input or from clock frequency (M+1) F of 4 frequency dividers; And
The 4th multiplexer, be used for according to parameter S el from described parameter S el register, to the clock frequency F of outside input with carry out multiplexedly from clock frequency 4 (M+1) F of described 4 (M+1) frequency multiplier output, give described ISO7816 interface controller with the clock frequency F that exports outside input or from clock frequency 4 (M+1) F of described 4 (M+1) frequency multiplier output.
In one embodiment of this invention, when parameter S el was 0, the clock frequency F of the outside input of the 3rd multiplexer output gave described clock interface pin C3, and the clock frequency F of the outside input of the 4th multiplexer output gives described ISO7816 interface controller; When parameter S el is 1, the output of the 3rd multiplexer gives the ISO7816 interface arrangement in the described mobile communication terminal interior clock interface pin C3 from clock frequency (M+1) F of 4 frequency dividers, and the output of the 4th multiplexer is given described ISO7816 interface controller from clock frequency 4 (M+1) F of described 4 (M+1) frequency multiplier output.
According to a second aspect of the invention, provide the ISO7816 interface arrangement in the smart card that uses in a kind of mobile communication terminal, included the ISO7816 interface controller; The reseting interface pin C2 that links to each other with the reset terminal of described ISO7816 interface controller; Data input/output interface pin C7, it links to each other with the data input pin of ISO7816 interface controller by the 3rd impact damper, link to each other by the data output end of the 4th impact damper with described ISO7816 interface controller, wherein the 4th impact damper also receives the enable signal from described ISO7816 interface controller; Interface pin C4, C6 and C8; And the clock interface pin C3 that links to each other with the clock end of described ISO7816 interface controller, it is characterized in that:
Described interface pin C4, C6 and C8 and C7 are connected to the input end of described the 3rd impact damper and the output terminal of described the 4th impact damper concurrently;
ISO7816 interface arrangement in the described smart card also includes:
Serial/parallel conversion equipment, be connected between described ISO7816 interface controller and described the 3rd impact damper and described the 4th impact damper, be used at described mobile communication terminal during from described smart card reading of data, one bit serial data-switching of ISO7816 interface controller output is become four bit parallel data, by after described the 4th buffer buffers, export to described mobile communication terminal via described interface pin C4, C6, C7 and C8 respectively then; Or when described mobile communication terminal is written to described smart card with data, that to receive from described mobile communication terminal by described interface pin C4, C6, C7 and C8 and become bit serial data by four bit parallel data-switching after described the 3rd buffer buffers, be transferred to described ISO7816 interface controller;
The clock frequency conversion equipment, link to each other with described ISO7816 interface controller, serial/parallel conversion equipment and described clock interface pin C3 respectively, be used to change by clock interface pin C3 from the clock frequency F of described mobile communication terminal input (or (M+1) F), so that the clock frequency of F (or (M+1) F) or 4F (or 4 (M+1) F) to be provided to described ISO7816 interface controller, and provide the clock frequency of F and 4F (or (M+1) F and 4 (M+1) F) to described serial/parallel conversion equipment, wherein F represents the arbitrary frequency values in the 1-5MHZ scope;
Parameter M register, link to each other with described ISO7816 interface controller, be used to store the parameter M of setting and provide described parameter M, thereby offer described mobile communication terminal via interface pin C7 by described ISO7816 interface controller to described ISO7816 interface controller; With
Parameter S el register, link to each other with described ISO7816 interface controller, described serial/parallel conversion equipment and described clock frequency conversion equipment respectively, be used to store the parameter S el of setting and offer described ISO7816 interface controller, described serial/parallel conversion equipment and described clock frequency conversion equipment, and offer described mobile communication terminal via interface pin C7 by described ISO7816 interface controller
Wherein said parameter S el includes numeral 0 or 1, and numeral 0 expression only supports the ISO7816 interface arrangement of standard and numeral 1 to express support for described ISO7816 interface arrangement of the present invention; Parameter M represents the multiple to the lifting of outside input clock frequency F, is the arbitrary round values among the 0-15.
In one embodiment of this invention, M=0 represents that frequency range (M+1) F is 1~5MHz, M=1, then frequency range (M+1) F is 2~10MHz, M=2, and then frequency range (M+1) F is 3~15MHz, by that analogy, M=15, then frequency range (M+1) F is 16~80MHz.
In one embodiment of this invention, described serial/parallel conversion equipment comprises: serial/parallel converter, be used to carry out the mutual conversion between bit serial data and the four bit parallel data, described serial/parallel converter has the input end of the serial data that receives described ISO7816 interface controller output, receive the CKP end of clock frequency of the F (or (M+1) F) of described clock frequency conversion equipment output, receive the CKS end of clock frequency of the 4F (or 4 (M+1) F) of described clock frequency conversion equipment output, export the output terminal of four bit parallel data, receive the input end of four bit parallel data and the output terminal of output serial data;
The 5th multiplexer, be used for according to described parameter S el, to from serial data, three ground connection data of the output of described ISO7816 interface controller and carry out from four bit parallel data of described serial/parallel converter output multiplexed, four bit parallel data of forming from the serial data of the data output end output of described ISO7816 interface controller and three ground connection data with output or give described the 4th impact damper from four bit parallel data of described serial/parallel converter output; And
The 6th multiplexer, be used for according to described parameter S el, to from the serial data of the output terminal of described serial/parallel converter with carry out multiplexed from the serial data after the 3rd buffer buffers of described interface pin C7, give described ISO7816 interface controller with output from the serial data of described output terminal from described serial/parallel converter or from the serial data of described interface pin C7
Wherein the 3rd impact damper is four digit buffers, be used for four bit parallel data from described interface pin C4, C6, C7 and C8 are cushioned, export to the described input end of described serial/parallel converter and only will export to the 6th multiplexer from the data after the buffering of described interface pin C7 with four bit parallel data after will cushioning;
The 4th impact damper is four digit buffers, be used for receiving respectively four bit parallel data of described the 5th multiplexer output and the enable signal of exporting from described ISO7816 interface controller, to export to described interface pin C4, C6, C7 and C8 behind the data buffering that will receive.
In one embodiment of this invention, in the Sel parameter is 0 o'clock, during from described smart card reading of data, described the 5th multiplexer output is from serial data and three four bit parallel data that the ground connection data are formed of described ISO7816 interface controller output at described mobile communication terminal; Perhaps when described mobile communication terminal was written to described smart card with data, described the 6th multiplexer output was from the serial input data of described interface pin C7; In the Sel parameter is 1 o'clock, and during from described smart card reading of data, described the 5th multiplexer output is from four bit parallel data of described serial/parallel converter output at described mobile communication terminal; Perhaps when described mobile communication terminal was written to described smart card with data, described the 6th multiplexer output was from the serial data of described serial/parallel converter.
In one embodiment of this invention, described clock frequency conversion equipment comprises: 4 frequency multipliers, clock F (or (M+1) F) frequency that is used for docking port pin C3 input is carried out 4 frequencys multiplication, with when the parameter S el=0, the CKP end that provides clock frequency F (or (M+1) F) to give described serial/parallel converter, and when parameter S el=1, the CKS end that provides clock frequency 4F (or 4 (M+1) F) to give serial/parallel converter; The 7th multiplexer, be used for according to described parameter S el, the clock F of docking port pin C3 input (or (M+1) F) and carry out multiplexed from the clock frequency 4F (or 4 (M+1) F) of 4 frequency multipliers, with when the parameter S el=0, the clock F of output interface pin C3 input (or (M+1) F) gives the described ISO7816 interface controller in the described smart card, or when parameter S el=1, output is given described ISO7816 interface controller in the described smart card from the clock frequency 4F (or 4 (M+1) F) of 4 frequency multipliers.
In one embodiment of this invention, when parameter S el is 0, the 7th multiplexer output interface pin C3 input clock frequency F give described ISO7816 interface controller in the described smart card; When parameter S el is 1, the 7th multiplexer output interface pin C3 input clock frequency 4 (M+1) F give described ISO7816 interface controller in the described smart card.
According to a third aspect of the invention we, provide ISO7816 interface arrangement in a kind of above-mentioned mobile communication terminal and the data transmission processing method between the ISO7816 interface arrangement in the above-mentioned smart card, included following steps:
1, the described mobile communication terminal power-up initializing of described smart card is housed;
2, described mobile communication terminal automatically resets and responds the ATR processing;
3, described smart card is stored two registers that the parameter S el that sets and F send in the ISO7816 interface arrangement in the described mobile communication terminal, wherein said parameter S el includes numeral 0 and 1, wherein the ISO7816 interface arrangement of existing standard is only supported in numeral 0 expression, and numeral 1 expresses support for described ISO7816 interface arrangement of the present invention; Described parameter M represents the multiple to the lifting of outside input clock frequency F, is the arbitrary round values among the 0-15;
4, carry out the transmission of data between described mobile communication terminal and the described smart card, comprise that described mobile communication terminal writes data to described smart card and from described smart card reading of data, wherein under parameter S el was 0 situation, described data were carried out bit serial transmission by interface pin C7 in the ISO7816 interface arrangement in the described mobile communication terminal and the interface pin C7 in the ISO7816 interface arrangement in the described smart card; Be that described data are carried out the transmission of four bit parallels by interface pin C4, C6, C7 and C8 in the ISO7816 interface arrangement in the described mobile communication terminal and interface pin C4, C6, C7 and C8 in the ISO7816 interface arrangement in the described smart card under 1 the situation at parameter S el; And
5, end data transmission.
In one embodiment of this invention, the transfer step 3 of described parameter S el and M includes:
301, the ISO7816 interface controller in the ISO7816 device of described smart card reads in parameter M register and the parameter S el register parameter M and the Sel of the setting of storage respectively via data input pin, and exports to interface pin C7 via data output end;
302, the ISO7816 interface controller in the ISO7816 interface arrangement of described mobile communication terminal receives described parameter M and Sel via data input pin, and exports to two registers respectively via data output end and store by interface pin C7.
In one embodiment of this invention, be that when mobile communication terminal was written to smart card with data, the transmitting step 4 of described data comprised under 1 the situation at parameter S el:
401, the ISO7816 interface controller in the ISO7816 interface arrangement in the described mobile communication terminal sends bit serial data to serial/parallel conversion equipment;
402, the described serial/parallel conversion equipment in the ISO7816 interface controller in the ISO7816 interface arrangement converts this bit serial to four bit parallel data, and sends four interior interface pin C4, C6, C7 and the C8 of ISO7816 interface arrangement in the described mobile communication terminal to;
403, described four bit parallel data by with described mobile communication terminal in the ISO7816 interface arrangement in the described smart card that links to each other respectively of four interface pin C4, C6, C7 and C8 in four interface pin C4, C6, C7 and C8 send serial/parallel conversion equipment in the described ISO7816 interface arrangement in the described smart card to;
404, the described serial/parallel conversion equipment in the described ISO7816 interface arrangement in the described smart card becomes bit serial data with described four bit parallel data-switching, and sends the interior ISO7816 interface controller of described ISO7816 interface arrangement in the described smart card to; And
405, the described ISO7816 interface controller in the described ISO7816 interface arrangement in the described smart card sends described bit serial data in the described smart card inner control chip processor, realizes that described mobile communication terminal is written to described smart card with data.
In one embodiment of this invention, be under 1 the situation at parameter S el, when mobile communication terminal during from the smart card reading of data, the transmitting step 4 of described data comprises:
411, the processor in the control chip in the described smart card is after the reading command that receives from mobile communication terminal, sends bit serial data in the ISO7816 interface arrangement in the described smart card serial/parallel conversion equipment (23) by the ISO7816 interface controller in the ISO7816 interface arrangement in the described smart card;
412, the described serial/parallel conversion equipment in the ISO7816 interface arrangement in the described smart card becomes a described bit serial data-switching four interface pin C4, C6, C7 and C8 in the ISO7816 interface controller that sends to after the four bit parallel data in the smart card;
413, described four bit parallel data by four interface pin C4, C6, C7 and C8 in the smart card, with mobile communication terminal that they link to each other respectively in the ISO7816 interface arrangement in four interface pin C4, C6, C7 and C8 send serial/parallel conversion equipment in the ISO7816 interface arrangement in the described mobile communication terminal to;
414, the described serial/parallel conversion equipment in the ISO7816 interface arrangement in the described mobile communication terminal becomes described four bit parallel data-switching the ISO7816 interface controller that sends to after the one bit serial data in the described mobile communication terminal; And
415, the described ISO7816 interface controller in the described mobile communication terminal gives described mobile communication terminal interior processor a described bit serial data transmission, realizes that described mobile communication terminal is from described smart card reading of data.
The present invention has realized following significant beneficial effect: by being used in combination input/output interface pin C7 in the existing ISO7816 standard and three interface pin C4 of reservation, C6 and C8, make the data transmission between the interior ISO7816 interface arrangement of ISO7816 interface arrangement and smart card in the mobile communication terminal become parallel interface C4 by 4 by input/output interface C7 by original serial, C6, C7 and C8 carry out, and improve the clock frequency of importing during the data transmission simultaneously, thereby reach the effect of the data throughput that significantly improves the ISO7816 interface arrangement.
Others of the present invention and specific embodiment can obtain better understanding by the following drawings.
Description of drawings
Fig. 1 is the block scheme of the structure of the ISO7816 interface arrangement in the existing mobile communication terminal of expression (for example mobile phone);
Fig. 2 is the block diagram of the ISO7816 interface arrangement in the smart card that uses in the existing mobile communication terminal of expression (for example mobile phone);
Fig. 3 is the synoptic diagram of each pin function of the ISO7816 interface of description standard;
Fig. 4 is the block scheme of structure of the ISO7816 interface arrangement in the mobile communication terminal (for example mobile phone) of expression one embodiment of the invention;
Fig. 5 is the block diagram of the ISO7816 interface arrangement in the smart card that uses in the mobile communication terminal (for example mobile phone) of expression one embodiment of the invention;
Fig. 6 illustrates the synoptic diagram of each pin function of ISO7816 interface of the present invention.
Embodiment
Below provided according to several example embodiment of the present invention, this introduction only is illustrative, never represents limitation of the present invention, the aspect that it is the most wide in range, and appended from here claim is defined.
As can be seen from Figure 6, compare with the ISO7816 interface of standard in the prior art, in the ISO7816 interface arrangement of the present invention, the function of interface pin C1, C2, C3, C5 is all without any variation, interface pin C7 is also still as data transmission terminal, difference is to keep not in the ISO7816 interface of standard in the prior art, and interface pin C4, C6 and the C8 of usefulness also are used as data transmission interface, thereby interface pin C4, C6, C7 and C8 have constituted the reportedly defeated interface of parallel four figures together.
And, in order to keep the compatibility with the standard ISO 7816 of prior art, adopting in the system of the mobile communication terminal of ISO7816 interface arrangement of the present invention and smart card, the process of the process of power-up initializing and ISO7816 regulation is just the same.Reset during ATR handles from dynamic response carrying out, smart card parameter that some are specific sends mobile phone to according to the form of standard code.Reserved a large amount of fields in the ISO7816 standard and be used for expanding, so can utilize these fields to define two parameters such as TC (2) and TD (2):
● Sel: be 1 bit data, include numeral 0 and 1, wherein 1 express support for ISO7816 interface arrangement of the present invention, the ISO7816 interface of the standard of prior art is only supported in 0 expression
● M: be 4 bit data, the multiple that the expression clock frequency promotes.Standard ISO 7816 regulation clock frequency F are 1-5MHz, therefore, the clock frequency of improved ISO7816 interface arrangement of the present invention promotes and is (M+1)-5 (M+1) MHz, wherein M is the arbitrary integer among the 0-15, be that M=0 represents that frequency range is 1~5MHz, M=1 represents that frequency range is 2~10MHz, and M=2 represents 3~15MHz,, M=15 represents 16~80MHz.
As shown in Figure 4, show block scheme according to the structure of the ISO7816 interface arrangement 1 in the mobile phone of one embodiment of the invention.Parameter F=5MHz wherein, parameter M=15.ISO7816 interface arrangement in the described mobile communication terminal includes ISO7816 interface controller 10; The reseting interface pin C2 that links to each other with the reset terminal RST of described ISO7816 interface controller 10; Serial/parallel conversion equipment 13 does not link to each other with data output end OUT with the data input pin IN of described ISO7816 interface controller 10 respectively, is used to carry out the mutual conversion between bit serial data and the four bit parallel data; The one or four digit buffer 11, output terminal links to each other with described serial/parallel conversion equipment 13; The two or four digit buffer 12, input end links to each other with described serial/parallel conversion equipment 13; Data transmission interface pin C4, C6, C7 and C8 are simultaneously with parallel linking to each other of output terminal of the input end and the two or four digit buffer 12 of described the one or four digit buffer 11; Clock interface pin C3; Clock frequency conversion equipment 14, link to each other with described ISO7816 interface controller 10, serial/parallel conversion equipment 13 and described clock interface pin C3 respectively, be used to change the clock frequency 5MHz of input, so that the clock frequency of 5MHz or 320MHz to be provided to described ISO7816 interface controller 10, provide the clock frequency of 80MHz and 320MHz and the clock frequency that 5MHz or 80MHz are provided to described interface pin C3 to described serial/parallel conversion equipment 11; Parameter M register 31, link to each other with described clock frequency conversion equipment 14 with the OUT end of described ISO7816 interface controller 10 respectively, be used to store the described parameter M=15 that receives from described ISO7816 interface controller 10 and provide described parameter M=15 to described clock frequency conversion equipment 14; With parameter S el register 32, OUT with described ISO7816 interface controller 10 holds respectively, described serial/parallel conversion equipment 13 links to each other with described clock frequency conversion equipment 14, be used to store the described parameter S el that receives from described ISO7816 interface controller 10 and provide described parameter S el to described serial/parallel conversion equipment 13 and described clock frequency conversion equipment 14, wherein said serial/parallel conversion equipment 13 is used for when described mobile phone is written to smart card with data, convert a bit serial data D1a of ISO7816 interface controller 10 outputs to four bit parallel data D2a, D3a, D4a, D5a or 0,0, D1a, 0, then by after described the two or four digit buffer 12 bufferings, via described interface pin C4, C6, C7 and C8 export to described smart card; Or at described mobile phone during from described smart card reading of data, that to receive from described smart card by described interface pin C4, C6, C7 and C8 and by four bit parallel data D2a ', D3a ', D4a ', D5a ' after described the one or four digit buffer 11 bufferings convert to a bit serial data D1a ' or will from interface pin C7 receive cushion by described the one or four digit buffer 11 after serial data D4a ', be transferred to described ISO7816 interface controller 10.Wherein said parameter S el and parameter M are that described ISO7816 interface controller 10 receives from described smart card via interface pin C7, particularly, ISO7816 interface controller 10 in the ISO7816 interface arrangement of described mobile communication terminal is by interface pin C7, receive described parameter M and Sel via the IN termination, and export to two registers 31 and 32 respectively via output terminal OUT and store.
Wherein, described serial/parallel conversion equipment 13 includes: serial/parallel converter 131, be used to carry out the mutual conversion between bit serial data and the four bit parallel data, described serial/parallel converter 131 has the input end 131a of the serial data D1a that receives described ISO7816 interface controller 10 outputs, receive the CKP end of clock frequency of the 80MHz of described clock frequency conversion equipment 14 outputs, receive the CKS end of clock frequency of the 320MHz of described clock frequency conversion equipment 14 outputs, export four bit parallel data D2a, D3a, D4a, the output terminal 131b of D5a receives four bit parallel data D2a ', D3a ', D4a ', the output terminal 131d of the input end 131c of D5a ' and output serial data D1a '; First multiplexer 132, be used for according to parameter S el from described parameter S el register 32, to serial data D1a from described ISO7816 interface controller 10 outputs, three ground connection data 0,0,0 and from four bit parallel data D2a of the output terminal 131b of described serial/parallel converter 131 output, D3a, D4a, D5a carries out multiplexed, and it is 0 o'clock in the Sel parameter, will be from serial data D1a and three ground connection data 0 of described ISO7816 interface controller 10 outputs, 0, the 0 four bit parallel data of forming 0,0, D1a, 0 exports to described second impact damper 12, or be 1 o'clock in the Sel parameter, will be from four bit parallel data D2a of described serial/parallel converter 131, D3a, D4a, D5a exports to described second impact damper 12; And second multiplexer 133, be used for according to parameter S el from described parameter S el register 32, to from the serial data D1a ' of the output terminal 131d of described serial/parallel converter 131 output with carry out multiplexed from the serial data D4a ' that described the one or four digit buffer 11 cushions that pass through of described interface pin C7, being 1 o'clock in the Sel parameter, to export to described ISO7816 interface controller 10 from the serial data D1a ' of described output terminal 131d from described serial/parallel converter 131, or be 0 o'clock in the Sel parameter, will export to described ISO7816 interface controller 10 from the serial data D4a ' that passes through described the one or four digit buffer 11 bufferings of described interface pin C7.
Wherein the one or four digit buffer 11 is used for four bit parallel data D2a ', D3a ', D4a ', D5a ' from described interface pin C4, C6, C7 and C8 are cushioned, and exports to the described input end 131c of described serial/parallel converter 131 and only will export to second multiplexer 133 from the data D4a ' after the buffering of described interface pin C7 with four bit parallel data D2a ', D3a ', D4a ', D5a ' after will cushioning; Described the two or four digit buffer 12 is used for receiving respectively the four bit parallel data D2a, D3a, D4a, D5a or 0,0, D1a, 0 and from the enable signal of described ISO7816 interface controller 10 outputs, to export to described interface pin C4, C6, C7 and C8 behind the data buffering that will receive of described first multiplexer 132 outputs.
Wherein under the Sel parameter is 0 situation, when mobile phone was written to smart card with data, 132 outputs of described first multiplexer were from serial data D1a and three four bit parallel data 0,0, D1a, 0 that ground connection data 0,0,0 are formed of described ISO7816 interface controller 10 outputs; Perhaps when mobile phone during from the smart card reading of data, 133 outputs of described second multiplexer are from the serial data D4a ' of described interface pin C7.Be that when mobile phone was written to smart card with data, 132 outputs of described first multiplexer were from four bit parallel data D2a, D3a, D4a, the D5a of described serial/parallel converter 131 outputs under 1 the situation in the Sel parameter; Perhaps when mobile phone during from the smart card reading of data, 133 outputs of described second multiplexer are from the serial data D1a ' of the output terminal 131d output of described serial/parallel converter 131.
Wherein, described clock frequency conversion equipment 14 includes: 64 frequency multipliers 141, be used for according to parameter M=15 from described M parameter register 31, and the clock frequency 5MHz that the outside is imported carries out 64 frequencys multiplication, and exports to the CKS end of described serial/parallel converter 131; 4 frequency dividers 142 are used for the clock frequency 320MHz of described 64 frequency multipliers 141 output is carried out 4 frequency divisions, with the clock frequency of output 80MHz, and export to the CKP end of described serial/parallel converter 131; The 3rd multiplexer 143, be used for according to parameter S el from described parameter S el register 32, to the clock frequency 5MHz of outside input with carry out multiplexedly from the clock frequency 80MHz of described 4 frequency dividers 142, give described clock interface pin C3 with the clock frequency 5MHz that exports outside input or from the clock frequency 80MHz of 4 frequency dividers 142; And the 4th multiplexer 144, be used for according to parameter S el from described parameter S el register 32, to the clock frequency 5MHz of outside input with carry out multiplexedly from the clock frequency 320MHz of described 64 frequency multipliers 141 outputs, give described ISO7816 interface controller 10 with the clock frequency 5MHz that exports outside input or from the clock frequency 320MHz of described 64 frequency multipliers 141 outputs.Wherein, when parameter S el was 0, the clock frequency 5MHz of the outside input of the 3rd multiplexer 143 outputs gave described clock interface pin C3, and the clock frequency 5MHz of the outside input of the 4th multiplexer 144 outputs gives described ISO7816 interface controller 10.When parameter S el is 1,143 outputs of the 3rd multiplexer are given described clock interface pin C3 from the clock frequency 80MHz of 4 frequency dividers 142, and 144 outputs of the 4th multiplexer are given described ISO7816 interface controller 10 from the clock frequency 320MHz of described 64 frequency multipliers 141 outputs.
Serial/parallel conversion equipment 13 of the present invention and clock frequency conversion equipment 14 can adopt current commercially available serial/parallel conversion equipment and clock frequency conversion equipment to realize.Certainly, those of ordinary skill in the art can expect easily that serial/parallel conversion equipment 13 of the present invention and clock frequency conversion equipment 14 can have the simple remodeling of implementation that multiple equivalence replaces and obvious unsubstantiality, just no longer specifically enumerate one by one at this.
As shown in Figure 5, show the block diagram of the ISO7816 interface arrangement 2 in the smart card that uses in the mobile phone according to one embodiment of the invention shown in Figure 4.Store in the smart card that uses in the described mobile phone parameter M=15 of described setting and Sel=0 or=1.
ISO7816 interface arrangement in the described smart card includes ISO7816 interface controller 20; The reseting interface pin C2 that links to each other with the reset terminal RST of described ISO7816 interface controller 20; Serial/parallel conversion equipment 23 links to each other with data output end OUT with the data input pin IN of described ISO7816 interface controller 20, is used to carry out the mutual conversion between bit serial data and the four bit parallel data; The three or four digit buffer 21, its output terminal links to each other with described serial/parallel conversion equipment 23; The four or four digit buffer 22, its input end links to each other with described serial/parallel conversion equipment 23; Data transmission interface pin C4, C6, C7 and C8 are simultaneously with parallel linking to each other of output terminal of the input end and the four or four digit buffer 22 of described the three or four digit buffer 21; Clock interface pin C3; Clock frequency conversion equipment 24, link to each other with described ISO7816 interface controller 20, serial/parallel conversion equipment 23 and described interface pin C3 respectively, be used to change clock frequency 5MHz or the 80MHz from described mobile phone input by interface pin C3, so that the clock frequency of 5MHz and 320MHz to be provided to described ISO7816 interface controller 20, reach the clock frequency that 5MHz or 80MHz and 20MHz or 320MHz are provided to described serial/parallel conversion equipment 23; Parameter M register 41, link to each other with the IN end of described ISO7816 interface controller 20, be used to store the parameter M of setting and provide described parameter M, thereby offer described mobile phone via OUT end, interface pin C7 by described ISO7816 interface controller 20 to described ISO7816 interface controller 20; With parameter S el register 42, link to each other with described clock frequency conversion equipment 24 with the IN end of described ISO7816 interface controller 20, described serial/parallel conversion equipment 23 respectively, be used to store the parameter S el of setting and offer described ISO7816 interface controller 20, described serial/parallel conversion equipment 23 and described clock frequency conversion equipment 24, and offer described mobile phone via OUT end, interface pin C7 by described ISO7816 interface controller 20.
Wherein, described serial/parallel conversion equipment 23 is used at described mobile phone during from described smart card reading of data, convert a bit serial data D1b of ISO7816 interface controller 20 outputs to four bit parallel data D2b, D3b, D4b, D5b or 0,0, D4b, 0, by after described the four or four bit parallel impact damper 22 bufferings, export to described mobile phone via described interface pin C4, C6, C7 and C8 respectively then; Or when described mobile phone is written to described smart card with data, that to receive from described mobile phone by described interface pin C4, C6, C7 and C8 and by four bit parallel data D2b ', D3b ', D4b ', D5b ' after described the one or three impact damper 21 bufferings convert to a bit serial data D1b ' or will from interface pin C7 receive cushion by described the three or four digit buffer 21 after serial data D4b ', be transferred to described ISO7816 interface controller 20.
Wherein, described serial/parallel conversion equipment 23 comprises: serial/parallel converter 231, be used to carry out the mutual conversion between bit serial data and the four bit parallel data, described serial/parallel converter 231 has the input end 231a of the serial data D1b that receives described ISO7816 interface controller 20 outputs, receive the CKP end of the clock frequency of the 5MHz of described clock frequency conversion equipment 24 outputs or 80MHz, receive the CKS end of the clock frequency of the 20MHz of described clock frequency conversion equipment 24 outputs or 320MHz, export four bit parallel data D2b, D3b, D4b, the output terminal 231b of D5b receives four bit parallel data D2b ', D3b ', D4b ', the output terminal 231d of the input end 231c of D5b ' and output serial data D1b '; The 5th multiplexer 232, be used for according to described parameter S el, to serial data D1b from described ISO7816 interface controller 20 outputs, three ground connection data 0,0,0 and from four bit parallel data D2b of described serial/parallel converter 231 outputs, D3b, D4b, D5b carries out multiplexed, being 0 o'clock at parameter S el, will be from serial data D1b and three ground connection data 0 of described ISO7816 interface controller 20,0, the 0 four bit parallel data of forming 0,0, D1b, 0 exports to described the 4th impact damper 22 or is 1 o'clock at parameter S el, will be from four bit parallel data D2b of described serial/parallel converter 231 outputs, D3b, D4b, D5b exports to described the 4th impact damper 22; And the 6th multiplexer 233, be used for according to described parameter S el, to from the serial data D1b ' of the output terminal 231d of described serial/parallel converter 231 with carry out multiplexed from the serial data D4b ' after the 3rd impact damper 21 bufferings of described interface pin C7, being 1 o'clock at parameter S el, to be transferred to described ISO7816 interface controller 20 from the serial data D1b ' of the output terminal 231d of described serial/parallel converter 231, or be 0 o'clock at parameter S el, will be transferred to described ISO7816 interface controller 20 from the serial data D4b ' after the 3rd impact damper 21 bufferings of described interface pin C7.
Wherein the three or four digit buffer 21 is used for four bit parallel data D2b ', D3b ', D4b ', D5b ' from described interface pin C4, C6, C7 and C8 are cushioned, and exports to the described input end 231c of described serial/parallel converter 231 and only will export to the 6th multiplexer 233 from the data D4b ' after the buffering of described interface pin C7 with four bit parallel data D2b ', D3b ', D4b ', D5b ' after will cushioning; The four or four digit buffer 22 is used for receiving respectively the four bit parallel data D2b, D3b, D4b, D5b or 0,0, D1b, 0 and from the enable signal of described ISO7816 interface controller 20 outputs, to export to described interface pin C4, C6, C7 and C8 behind the data buffering that will receive of described the 5th multiplexer 232 outputs.
Wherein under the Sel parameter is 0 situation, when mobile phone during from the smart card reading of data, 232 outputs of described the 5th multiplexer are from serial data D1b and three four bit parallel data 0,0, D1b, 0 that ground connection data 0,0,0 are formed of described ISO7816 interface controller 20 outputs; Perhaps when mobile phone write data to smart card, 233 outputs of described the 6th multiplexer were from the serial input data D4b ' of described interface pin C7.Be under 1 the situation in the Sel parameter, when mobile phone during from the smart card reading of data, 232 outputs of described the 5th multiplexer are from four bit parallel data D2b, D3b, D4b, the D5b of described serial/parallel converter 231 outputs; Perhaps when mobile phone write data to smart card, 234 outputs of described the 6th multiplexer were from the serial data D1b ' of the output terminal 231d of described serial/parallel converter 231.
Wherein, described clock frequency conversion equipment 24 comprises: 4 frequency multipliers 241, the clock 5MHz or the 80MHz frequency that are used for docking port pin C3 input are carried out 4 frequencys multiplication, providing clock frequency 5MHz or 80MHz, and provide clock frequency 20MHz or 320MHz CKS end to serial/parallel converter 231 to the CKP of described serial/parallel converter 231 end; The 7th multiplexer 242, be used for according to described parameter S el, the clock 5MHz of docking port pin C3 input or 80MHz and carry out multiplexedly from the clock frequency 20MHz of 4 frequency multipliers 241 or 320MHz give described ISO7816 interface controller 20 in the described smart card with the clock 5MHz of output interface pin C3 input or 80MHz or from the clock frequency 20MHz of 4 frequency multipliers 241 or 320MHz.Wherein, when parameter S el is 0, the 7th multiplexer 242 output interface pin C3 input clock frequency 5MHz give described ISO7816 interface controller 20 in the described smart card; When parameter S el is 1, the 7th multiplexer 242 output interface pin C3 input clock frequency 320MHz give described ISO7816 interface controller 20 in the described smart card.
Serial/parallel conversion equipment 23 of the present invention and clock frequency conversion equipment 24 can adopt current commercially available serial/parallel conversion equipment and clock frequency conversion equipment to realize.Certainly, those of ordinary skill in the art can expect easily that serial/parallel conversion equipment 23 of the present invention and clock frequency conversion equipment 24 can have the implementation of multiple equivalence replacement and obvious remodeling, just no longer specifically enumerate one by one at this.
In another embodiment of the present invention, parameter F=1MHz, parameter M=0,4 (M+1) frequency multiplier 141 that then comprises in the clock frequency conversion equipment 14 is 4 frequency multipliers.As shown in Figure 4 according to the ISO7816 interface arrangement 1 in the mobile phone of the present invention in, under the situation of parameter S el=0, the clock frequency that clock frequency conversion equipment 14 provides 1MHz is to the CK end of ISO7816 interface controller 10; The CKS end of the clock frequency of 4MHz to described serial/parallel converter 131 is provided; The CKP end of the clock frequency of 1MHz to described serial/parallel converter 131 is provided; The clock frequency that 1MHz is provided is to described pin C3.Under the situation of parameter S el=1, clock frequency conversion equipment 14 provides the CK end of the clock frequency of 4MHz to ISO7816 interface controller 10; The CKS end of the clock frequency of 4MHz to described serial/parallel converter 131 is provided; The CKP end of the clock frequency of 1MHz to described serial/parallel converter 131 is provided; The clock frequency that 1MHz is provided is to described pin C3.As shown in Figure 5 according to the ISO7816 interface arrangement 2 in the smart card of the present invention in, under the situation of parameter S el=0, the clock frequency that the C3 pin receives is 1MHz, and clock frequency conversion equipment 24 provides the CK end of the clock frequency of 1MHz to ISO7816 interface controller 20; The CKS end of the clock frequency of 4MHz to described serial/parallel converter 231 is provided; The CKP end of the clock frequency of 1MHz to described serial/parallel converter 231 is provided.Under the situation of parameter S el=1, the clock frequency that the C3 pin receives is 1MHz, and clock frequency conversion equipment 24 provides the CK end of the clock frequency of 4MHz to ISO7816 interface controller 20; The CKS end of the clock frequency of 4MHz to described serial/parallel converter 231 is provided; The CKP end of the clock frequency of 1MHz to described serial/parallel converter 231 is provided.
In another embodiment of the present invention, parameter F=3MHz, parameter M=5,4 (M+1) frequency multiplier 141 that then comprises in the clock frequency conversion equipment 14 is 24 frequency multipliers.As shown in Figure 4 according to the ISO7816 interface arrangement 1 in the mobile phone of the present invention in, under the situation of parameter S el=0, the clock frequency that clock frequency conversion equipment 14 provides 3MHz is to the CK end of ISO7816 interface controller 10; The CKS end of the clock frequency of 72MHz to described serial/parallel converter 131 is provided; The CKP end of the clock frequency of 18MHz to described serial/parallel converter 131 is provided; The clock frequency that 3MHz is provided is to described pin C3.Under the situation of parameter S el=1, clock frequency conversion equipment 14 provides the CK end of the clock frequency of 72MHz to ISO7816 interface controller 10; The CKS end of the clock frequency of 72MHz to described serial/parallel converter 131 is provided; The CKP end of the clock frequency of 18MHz to described serial/parallel converter 131 is provided; The clock frequency that 18MHz is provided is to described pin C3.As shown in Figure 5 according to the ISO7816 interface arrangement 2 in the smart card of the present invention in, under the situation of parameter S el=0, the clock frequency that the C3 pin receives is 3MHz, and clock frequency conversion equipment 24 provides the CK end of the clock frequency of 3MHz to ISO7816 interface controller 20; The CKS end of the clock frequency of 12MHz to described serial/parallel converter 231 is provided; The CKP end of the clock frequency of 3MHz to described serial/parallel converter 231 is provided.Under the situation of parameter S el=1, the clock frequency that the C3 pin receives is 18MHz, and clock frequency conversion equipment 24 provides the CK end of the clock frequency of 72MHz to ISO7816 interface controller 20; The CKS end of the clock frequency of 72MHz to described serial/parallel converter 231 is provided; The CKP end of the clock frequency of 18MHz to described serial/parallel converter 231 is provided.
In one embodiment of this invention, provide ISO7816 interface arrangement and the end of the data transmission processing method between the ISO7816 interface arrangement in above-mentioned smart card diagram in a kind of above-mentioned mobile phone, included following steps:
1, the described mobile phone power-up initializing of described smart card is housed;
2, described mobile phone automatically resets and responds the ATR processing;
3, described smart card two parameter S el that will set and F send two registers 31 in the described ISO7816 interface arrangement in the described mobile phone respectively to, 32 store, wherein said parameter S el is a parameter, include numeral 0 and 1, wherein the ISO7816 interface arrangement of existing standard is only supported in numeral 0 expression, and numeral 1 expresses support for described ISO7816 interface arrangement of the present invention; Described parameter M is four parameters, and the multiple that expression expression clock frequency promotes is the arbitrary round values among the 0-15;
4, carry out the transmission of data between described mobile phone and the described smart card, comprise that described mobile phone writes data to described smart card and from described smart card reading of data, wherein under parameter S el was 0 situation, described data were carried out bit serial transmission by interface pin C7 in the ISO7816 interface arrangement in the described mobile phone and the interface pin C7 in the ISO7816 interface arrangement in the described smart card; Be that described data are carried out the transmission of four bit parallels by interface pin C4, C6, C7 and C8 in the ISO7816 interface arrangement in the described mobile phone and interface pin C4, C6, C7 and C8 in the ISO7816 interface arrangement in the described smart card under 1 the situation at parameter S el; And
5, end data transmission.
Wherein, the transfer step 3 of described parameter S el and M includes:
301, the ISO7816 interface controller 20 in the ISO7816 device of described smart card is held parameter M and the Sel that reads in the setting of storing respectively in register 41 and 42 via input IN, and gives interface pin C7 via output OUT output terminal;
302, the ISO7816 interface controller in the ISO7816 interface arrangement of described mobile communication terminal 10 is received described parameter M and Sel by interface pin C7 via input IN termination, and exports to two registers 31 and 32 via output OUT end and store.
Wherein, be that when mobile phone was written to smart card with data, described data transmission step 4 comprised under 1 the situation at parameter S el:
401, the processor in the described mobile phone sends a bit serial data D1a to serial/parallel conversion equipment 13 by the ISO7816 interface controller 10 in the ISO7816 interface arrangement;
402, described serial/parallel conversion equipment 13 converts these bit serial data D1a to four bit parallel data D2a, D3a, D4a, D5a, and sends four interior interface pin C4, C6, C7 and the C8 of ISO7816 interface arrangement in the described mobile phone to;
403, described four bit parallel data D2a, D3a, D4a, D5a by with described mobile phone in the ISO7816 interface arrangement in four interface pin C4, C6, C7 and C8 with described smart card that they link to each other respectively in four interface pin C4, C6, C7 and C8 send serial/parallel conversion equipment 23 in the described ISO7816 interface arrangement in the described smart card to;
404, described serial/parallel conversion equipment 23 is that D2b ', D3b ', D4b ', D5b ' convert a bit serial data D1b ' to described four bit parallel data D2a, D3a, D4a, D5a, and sends the interior ISO7816 interface controller 20 of described ISO7816 interface arrangement in the described smart card to; And
405, described ISO7816 interface controller 20 sends a described bit serial data D1b ' in the described smart card inner control chip processor, realizes that described mobile phone is written to described smart card with data.
Wherein, be under 1 the situation at parameter S el, when mobile phone during from the smart card reading of data, the transmitting step 4 of described data comprises:
411, the processor in the control chip in the described smart card is after the reading command that receives from mobile phone, sends a bit serial data D1b in the ISO7816 interface arrangement in the described smart card serial/parallel conversion equipment 23 by the ISO7816 interface controller 20 in the ISO7816 interface arrangement in the described smart card;
412, described serial/parallel conversion equipment 23 converts a described bit serial data D1b to four interface pin C4, C6, C7 and C8 in the ISO7816 interface arrangement that sends to behind four bit parallel data D2b, D3b, D4b, the D5b in the smart card;
413, described four bit parallel data D2b, D3b, D4b, D5b by four interface pin C4, C6 in the smart card, C7, C8 with mobile phone that they link to each other respectively in the ISO7816 interface arrangement in four interface pin C4, C6, C7 and C8 send serial/parallel conversion equipment 13 in the ISO7816 interface arrangement in the described mobile phone to;
414, described serial/parallel conversion equipment 13 is that D2a ', D3a ', D4a ', D5a ' convert the ISO7816 interface controller 10 that sends to behind the bit serial data D1a ' in the described mobile phone to described four bit parallel data D2b, D3b, D4b, D5b; And
415, described ISO7816 interface controller 10 is transferred to the interior processor of described mobile phone with a described bit serial data D1a ', realizes that described mobile phone is from described smart card reading of data.
Wherein, be that when mobile phone was written to smart card with data, the transmitting step 4 of described data comprised under 0 the situation at parameter S el:
421, the processor in the described mobile phone sends a bit serial data D1a to serial/parallel conversion equipment 13 by the ISO7816 interface controller 10 in the ISO7816 interface arrangement;
422, described serial/parallel conversion equipment 13 is combined into four bit parallel data 0,0, D1a, 0 with this bit serial data D1a and three ground connection data 0,0,0, and send in the ISO7816 interface arrangement in the described mobile phone four interface pin C4, C6, C7 and C8 in fact only interface pin C7 receive a described bit serial data D1a, and pin C4, C6 and C8 receive and are sky data 0;
423, the described bit serial data D1a that receives of pin C7 by with described mobile phone in the ISO7816 interface arrangement in interface pin C7 and the described smart card that links to each other with it in the ISO7816 interface arrangement in interface pin C7 send serial/parallel conversion equipment 23 in the described ISO7816 interface arrangement in the described smart card to;
424, described serial/parallel conversion equipment 23 is that D4b ' sends the interior ISO7816 interface controller 20 of described ISO7816 interface arrangement in the described smart card to a described bit serial data D1a; And
425, described ISO7816 interface controller 20 sends a described bit serial data D4b ' in the described smart card inner control chip processor, realizes that described mobile phone is written to described smart card with data.
Wherein, be under 0 the situation at parameter S el, when mobile phone during from the smart card reading of data, the transmitting step 4 of described data comprises:
431, the processor in the control chip in the described smart card is after the steering order that receives from mobile phone, sends a bit serial data D1b in the ISO7816 interface arrangement in the described smart card serial/parallel conversion equipment 23;
432, send to behind described serial/parallel conversion equipment 23 four bit parallel data 0,0 that a described bit serial data D1b and three ground connection data 0,0,0 are formed, the D1b, 0 four interface pin C4, C6, C7 and C8 in the smart card (in fact only interface pin C7 receives a described bit serial data D1b, and pin C4, C6 and C8 receive be sky data 0);
433, the described bit serial data D1b that receives of described interface pin C7 by the interface pin C7 in the smart card with mobile phone that it links to each other in the ISO7816 interface arrangement in interface pin C7 send serial/parallel conversion equipment 13 in the ISO7816 interface arrangement in the described mobile phone to;
434, described serial/parallel conversion equipment 13 is that D4a ' sends the ISO7816 interface controller 10 in the described mobile phone to a described bit serial data D1b; And
435, described ISO7816 interface controller 10 is transferred to the interior processor of described mobile phone with a described bit serial data D4a ', realizes that described mobile phone is from described smart card reading of data.
With the ISO7816 interface arrangement in the mobile phone is example, and as shown in Figure 4, the clock frequency of the clock interface pin C3 output in the mobile phone depends on M and Sel.Two registers 31 in the mobile phone and 32 are respectively applied for described parameter M of storage and Sel, and the default value of this two parameter is 0.So behind the power-up initializing, the output clock frequency F of the clock interface pin C3 in the mobile phone is 1-5MHz, 4 in the clock frequency conversion equipment 14 (M+1) frequency multiplier 141 and 4 frequency dividers 142 are not all worked.After the ATR processing that resets from dynamic response, mobile phone has obtained parameter M that sets and Sel that smart card sends.If Sel is 0, the work clock of the ISO7816 interface controller 10 in the mobile phone is F=1-5MHz.If Sel be 1 and M be not equal to 0, described 4 (M+1) frequency multiplier 141 and 4 frequency dividers 142 in the mobile phone are all started working, clock interface pin C3 in the mobile phone will export the clock frequency of (M+1) FMHz for example at F=5MHz, during M=15, clock interface pin C3 will export (15+1) * 5=80MHz.In other words, when Sel is 1, the clock frequency of clock interface pin C3 output is (M+1) F MHz, data transmission interface pin C4, C6, C7, the frequency of operation of C8 also is (M+1) F MHz, the work clock of the parallel input/output terminal CKP of the serial/parallel conversion equipment 131 in the ISO7816 interface arrangement in the mobile phone is (M+1) F MHz, and the work clock of its serial input/output terminal CKS is 4 (M+1) F MHz.At this moment, the work clock of the ISO7816 interface controller 10 in the mobile phone is 4 (M+1) FMHz.Wherein, preferably, select F=5MHz, thereby realize the frequency multiplication of 20 (M+1) MHz.
Obviously, being not limited in mobile phone at the mobile communication terminal described in the technical scheme of the present invention, can be scrutable other the equivalent alternative of those skilled in the art.And, the IC-card that the smart card described in the technical scheme of the present invention is not limited only to use in the mobile phone, and can be the smart card of other type that is used for the employing ISO7816 interface standard of mobile communication terminal.
Adopt ISO7816 interface arrangement of the present invention, difference according to configuration, be under 1 the situation,, the data throughput of standard ISO7816 interface in the prior art can be improved 4~64 times after doubly taking advantage of by 4 (M+1) in the Sel parameter by selecting the arbitrary integer among the M=0-15; On the other hand under the Sel parameter is 0 situation, also kept with prior art in the ISO7816 interface compatibility of standard, and avoided significantly increasing the complicacy of software and hardware to greatest extent.The user, cell phone manufacturer, the operation commercial city can not increase cost for this reason significantly, thereby provides possibility for further promoting smart card with large capacity.
Although illustrated, described and pointed out the of the present invention basic novel characteristics that puts on an one preferred embodiment, but the those of skill in the art in this technical field will appreciate that, under the situation that does not deviate from design of the present invention, can aspect the form and details of illustrated equipment, the present invention be carried out various omissions, substitute and revise.For example, in order to reach identical result, those carry out all combinations of the element and the method step of essentially identical function in essentially identical mode, all fall into scope of the present invention.And, it should further be appreciated that, individual normal conditions as design alternative, can the illustrated and described structure relevant and element with any disclosed form of the present invention or embodiment and/method step, incorporate into any other disclosed or the form or the embodiment that describe or advised.Therefore, the present invention only is intended to from here that the scope of claims is limited.

Claims (16)

1. the ISO7816 interface arrangement in the mobile communication terminal includes ISO7816 interface controller (10); The reseting interface pin C2 that links to each other with the reset terminal of described ISO7816 interface controller (10); Data input/output interface pin C7, it links to each other with the data input pin of ISO7816 interface controller (10) by first impact damper (11), link to each other by the data output end of second impact damper (12) with described ISO7816 interface controller (10), wherein second impact damper (12) also receives the enable signal from described ISO7816 interface controller (10); Interface pin C4, C6 and C8; And the clock interface pin C3 that links to each other with the clock end of described ISO7816 interface controller (10), it is characterized in that:
Described interface pin C4, C6 and C8 and C7 are connected to the input end of described first impact damper (11) and the output terminal of described second impact damper (12) concurrently;
ISO7816 interface arrangement in the described mobile communication terminal also includes:
Serial/parallel conversion equipment (13), be connected between described ISO7816 interface controller (10) and described first impact damper (11) and described second impact damper (12), be used for when described mobile communication terminal is written to smart card with data, one bit serial data-switching of ISO7816 interface controller (10) output is become four bit parallel data, then by after described second impact damper (12) buffering, export to described smart card via described interface pin C4, C6, C7 and C8 are parallel; Or at described mobile communication terminal during from described smart card reading of data, to also become bit serial data from what described smart card received by described interface pin C4, C6, C7 and C8 are parallel, be transferred to described ISO7816 interface controller (10) by four bit parallel data-switching after described first impact damper (11) buffering;
Clock frequency conversion equipment (14), link to each other with described interface pin C3 with described ISO7816 interface controller (10), serial/parallel conversion equipment (13) respectively, be used to change the clock frequency F of input, to provide F or 4 (M+1) clock frequency of F to described ISO7816 interface controller (10), provide (M+1) F and 4 (M+1) clock frequency of F to described serial/parallel conversion equipment (13), and provide F or (M+1) clock frequency of F to described interface pin C3, wherein F represents the arbitrary frequency values in the 1-5MHz scope; Parameter M is the parameter that described ISO7816 interface controller (10) receives from described smart card, and expression is the arbitrary round values among the 0-15 to the multiple of the lifting of outside input clock frequency F.
2. the ISO7816 interface arrangement in the mobile communication terminal according to claim 1, it is characterized in that, M=0, then frequency range (M+1) F is 1~5MHz, M=1, then frequency range (M+1) F is 2~10MHz, M=2, then frequency range (M+1) F is 3~15MHz, by that analogy, M=15, then frequency range (M+1) F is 16~80MHz.
3. the ISO7816 interface arrangement in the mobile communication terminal according to claim 1 is characterized in that, the ISO7816 interface arrangement in the described mobile communication terminal also includes:
Parameter M register (31), link to each other with described clock frequency conversion equipment (14) with described ISO7816 interface controller (10) respectively, be used for storing the described parameter M that receives from described ISO7816 interface controller (10) and providing described parameter M to described clock frequency conversion equipment (14); With
Parameter S el register (32), link to each other with described ISO7816 interface controller (10), described serial/parallel conversion equipment (13) and described clock frequency conversion equipment (14) respectively, be used for storing the described parameter S el that receives from described ISO7816 interface controller (10) and providing described parameter S el to described serial/parallel conversion equipment (13) and described clock frequency conversion equipment (14)
Wherein said parameter S el is that described ISO7816 interface controller (10) receives from described smart card, includes numeral 0 or 1, and numeral 0 expression only supports the ISO7816 interface arrangement of standard and numeral 1 to express support for described ISO7816 interface arrangement of the present invention.
4. according to the ISO7816 interface arrangement in each described mobile communication terminal among the claim 1-3, it is characterized in that described serial/parallel conversion equipment (13) includes:
Serial/parallel converter (131), be used to carry out the mutual conversion between bit serial data and the four bit parallel data, described serial/parallel converter (131) has the input end (131a) of the serial data that receives described ISO7816 interface controller (10) output, receive the CKP end of clock frequency of (M+1) F of described clock frequency conversion equipment (14) output, receive the CKS end of clock frequency of 4 (M+1) F of described clock frequency conversion equipment (14) output, export the output terminal (131b) of four bit parallel data, receive the input end (131c) of four bit parallel data and the output terminal (131d) of output serial data;
First multiplexer (132), be used for according to parameter S el from described parameter S el register (32), to serial data from described ISO7816 interface controller (10) output, three ground connection data and carry out from four bit parallel data of output terminal (131b) output of described serial/parallel converter (131) multiplexed, four bit parallel data of forming from the serial data of described ISO7816 interface controller (10) output and three ground connection data with output or give described second impact damper (12) from four bit parallel data of the output terminal (131b) of described serial/parallel converter (131); And
Second multiplexer, (133), be used for basis from described parameter S el register, (32) parameter S el, to from described serial/parallel converter, (131) output terminal, (131d) Shu Chu serial data and from described first impact damper that passes through of described interface pin C7, (11) Huan Chong serial data is carried out multiplexed, to export from described from described serial/parallel converter, (131) output terminal, (131d) Shu Chu serial data or give described ISO7816 interface controller from the serial data of described interface pin C7, (10)
Wherein first impact damper (11) is four digit buffers, be used for four bit parallel data from described interface pin C4, C6, C7 and C8 are cushioned, export to the described input end (131c) of described serial/parallel converter (131) and only will export to second multiplexer (133) from the data after the buffering of described interface pin C7 with four bit parallel data after will cushioning;
Described second impact damper (12) is four digit buffers, be used for receiving respectively four bit parallel data of described first multiplexer (132) output and the enable signal of exporting from described ISO7816 interface controller (10), to export to described interface pin C4, C6, C7 and C8 respectively behind the four bit parallel data bufferings that will receive.
5. the ISO7816 interface arrangement in the mobile communication terminal according to claim 4, it is characterized in that, in the Sel parameter is 0 o'clock, when described mobile communication terminal is written to described smart card with data, described first multiplexer (132) output is from serial data and three four bit parallel data that the ground connection data are formed of described ISO7816 interface controller (10) output, perhaps at described mobile communication terminal during from described smart card reading of data, described second multiplexer (133) output is from the serial data of described interface pin C7;
In the Sel parameter is 1 o'clock, when described mobile communication terminal is written to described smart card with data, described first multiplexer (132) output is from four bit parallel data of the output terminal (131b) of described serial/parallel converter (131), perhaps at described mobile communication terminal during from described smart card reading of data, described second multiplexer (133) output is from the serial data of the output terminal (131d) of described serial/parallel converter (131).
6. the ISO7816 interface arrangement in the mobile communication terminal according to claim 3 is characterized in that, described clock frequency conversion equipment (14) includes:
4 (M+1) frequency multiplier (141) is used for according to the parameter M from described M parameter register (31), and the clock frequency F that the outside is imported carries out 4 (M+1) frequency multiplication, and exports to the CKS end of described serial/parallel converter (131);
4 frequency dividers (142) are used for clock frequency 4 (M+1) F of described 4 (M+1) frequency multiplier (141) output is carried out 4 frequency divisions, with the clock frequency of output (M+1) F, and export to the CKP end of described serial/parallel converter (131);
The 3rd multiplexer (143), be used for according to parameter S el from described parameter S el register (32), to the clock frequency F of outside input with carry out multiplexedly from clock frequency (M+1) F of described 4 frequency dividers (142), give described clock interface pin C3 with the clock frequency F that exports outside input or from clock frequency (M+1) F of 4 frequency dividers (142); And
The 4th multiplexer (144), be used for according to parameter S el from described parameter S el register (32), to the clock frequency F of outside input with carry out multiplexedly from clock frequency 4 (M+1) F of described 4 (M+1) frequency multiplier (141) output, give described ISO7816 interface controller (10) with the clock frequency F that exports outside input or from clock frequency 4 (M+1) F of described 4 (M+1) frequency multiplier (141) output.
7. the ISO7816 interface arrangement in the mobile communication terminal according to claim 6, it is characterized in that, when parameter S el is 0, the clock frequency F of the outside input of the 3rd multiplexer (143) output gives described clock interface pin C3, and the clock frequency F of the outside input of the 4th multiplexer (144) output gives described ISO7816 interface controller (10);
When parameter S el is 1, the 3rd multiplexer (143) output gives the ISO7816 interface arrangement in the described mobile communication terminal interior clock interface pin C3 from clock frequency (M+1) F of 4 frequency dividers (142), and the 4th multiplexer (144) output is given described ISO7816 interface controller (10) from clock frequency 4 (M+1) F of described 4 (M+1) frequency multiplier (141) output.
8. the ISO7816 interface arrangement in the smart card that uses in the mobile communication terminal includes ISO7816 interface controller (20); The reseting interface pin C2 that links to each other with the reset terminal of described ISO7816 interface controller (20); Data input/output interface pin C7, it links to each other with the data input pin of ISO7816 interface controller (20) by the 3rd impact damper (21), link to each other by the data output end of the 4th impact damper (22) with described ISO7816 interface controller (20), wherein the 4th impact damper (22) also receives the enable signal from described ISO7816 interface controller (20); Interface pin C4, C6 and C8; And the clock interface pin C3 that links to each other with the clock end of described ISO7816 interface controller (20), it is characterized in that:
Described interface pin C4, C6 and C8 and C7 are connected to the input end of described the 3rd impact damper (21) and the output terminal of described the 4th impact damper (22) concurrently;
ISO7816 interface arrangement in the described smart card also includes:
Serial/parallel conversion equipment (23), be connected between described ISO7816 interface controller (20) and described the 3rd impact damper (21) and described the 4th impact damper (22), be used at described mobile communication terminal during from described smart card reading of data, one bit serial data-switching of ISO7816 interface controller (20) output is become four bit parallel data, by after described the 4th impact damper (22) buffering, walk abreast via described interface pin C4, C6, C7 and C8 respectively and export to described mobile communication terminal then; Or when described mobile communication terminal is written to described smart card with data, to also become bit serial data from what described mobile communication terminal received by described interface pin C4, C6, C7 and C8 are parallel, be transferred to described ISO7816 interface controller (20) by four bit parallel data-switching after described the 3rd impact damper (21) buffering;
Clock frequency conversion equipment (24), link to each other with described ISO7816 interface controller (20), serial/parallel conversion equipment (23) and described clock interface pin C3 respectively, be used to change by clock interface pin C3 from the clock frequency F of described mobile communication terminal input or (M+1) F, so that F or (M+1) F to be provided to described ISO7816 interface controller (20), or the clock frequency of 4F or 4 (M+1) F, and provide F and 4F to described serial/parallel conversion equipment (23), or (M+1) clock frequency of F and 4 (M+1) F, wherein F represents appointing-frequency values in the 1-5MHZ scope;
Parameter M register (41), link to each other with described ISO7816 interface controller (20), be used to store the parameter M of setting and provide described parameter M, thereby offer described mobile communication terminal via interface pin C7 by described ISO7816 interface controller (20) to described ISO7816 interface controller (20); With
Parameter S el register (42), link to each other with described ISO7816 interface controller (20), described serial/parallel conversion equipment (23) and described clock frequency conversion equipment (24) respectively, be used to store the parameter S el of setting and offer described ISO7816 interface controller (20), described serial/parallel conversion equipment (23) and described clock frequency conversion equipment (24), and offer described mobile communication terminal via interface pin C7 by described ISO7816 interface controller (20);
Wherein said parameter S el includes numeral 0 or 1, and numeral 0 expression only supports the ISO7816 interface arrangement of standard and numeral 1 to express support for described ISO7816 interface arrangement of the present invention; Parameter M represents the multiple to the lifting of outside input clock frequency F, is the arbitrary round values among the 0-15.
9. the ISO7816 interface arrangement in the smart card according to claim 8, it is characterized in that, M=0, then frequency range (M+1) F is 1~5MHz, M=1, then frequency range (M+1) F is 2~10MHz, M=2, then frequency range (M+1) F is 3~15MHz, by that analogy, M=15, then frequency range (M+1) F is 16~80MHz.
10. the ISO7816 interface arrangement in the smart card according to claim 8 is characterized in that described serial/parallel conversion equipment (23) comprising:
Serial/parallel converter (231), be used to carry out the mutual conversion between bit serial data and the four bit parallel data, described serial/parallel converter (231) has the input end (231a) of the serial data that receives described ISO7816 interface controller (20) output, receive the F of described clock frequency conversion equipment (24) output or (M+1) the CKP end of the clock frequency of F, receive the CKS end of clock frequency of 4F or 4 (M+1) F of described clock frequency conversion equipment (24) output, export the output terminal (231b) of four bit parallel data, receive the input end (231c) of four bit parallel data and the output terminal (231d) of output serial data;
The 5th multiplexer (232), be used for according to described parameter S el, to from the serial data of described ISO7816 interface controller (20) output, three ground connection data and carry out from four bit parallel data of the output terminal (231b) of described serial/parallel converter (231) multiplexed, four bit parallel data of forming from the serial data of described ISO7816 interface controller (20) output and three ground connection data with output or give described the 4th impact damper (22) from four bit parallel data of output terminal (231b) output of described serial/parallel converter (231); And
The 6th multiplexer (233), be used for according to described parameter S el, to from the serial data of the output terminal (231d) of described serial/parallel converter (231) with carry out multiplexed from the serial data after the 3rd impact damper (21) buffering of described interface pin C7, give described ISO7816 interface controller (20) with output from the serial data of described output terminal (231d) from described serial/parallel converter (231) or from the serial data of described interface pin C7
Wherein the 3rd impact damper (21) is four digit buffers, be used for four bit parallel data from described interface pin C4, C6, C7 and C8 are cushioned, export to the described input end (231c) of described serial/parallel converter (231) and only will export to the 6th multiplexer (233) from the data after the buffering of described interface pin C7 with four bit parallel data after will cushioning;
The 4th impact damper (22) is four digit buffers, be used for receiving respectively four bit parallel data of described the 5th multiplexer (232) output and the enable signal of exporting from described ISO7816 interface controller (20), to export to described interface pin C4, C6, C7 and C8 behind the data buffering that will receive.
11. the ISO7816 interface arrangement in the smart card according to claim 10, it is characterized in that, in the Sel parameter is 0 o'clock, during from described smart card reading of data, described the 5th multiplexer (232) output is by serial data and three four bit parallel data that the ground connection data are formed from described ISO7816 interface controller (20) output at described mobile communication terminal; Perhaps when described mobile communication terminal was written to described smart card with data, described the 6th multiplexer (233) output was from the serial input data of described interface pin C7;
In the Sel parameter is 1 o'clock, and during from described smart card reading of data, described the 5th multiplexer (232) output is from four bit parallel data of output terminal (231b) output of described serial/parallel converter (231) at described mobile communication terminal; Perhaps when described mobile communication terminal was written to described smart card with data, described the 6th multiplexer (233) output was from the serial data of output terminal (231d) output of described serial/parallel converter (231).
12. the ISO7816 interface arrangement in the smart card according to claim 8 is characterized in that described clock frequency conversion equipment (24) comprising:
4 frequency multipliers (241), be used for the clock F of docking port pin C3 input or (M+1) the F frequency carry out 4 frequencys multiplication, with when the parameter S el=0, provide clock frequency F or (M+1) F give the CKP end of described serial/parallel converter (231), and when parameter S el=1, the CKS end that provides clock frequency 4F or 4 (M+1) F to give serial/parallel converter (231);
The 7th multiplexer (242), be used for according to described parameter S el, the clock F of docking port pin C3 input or (M+1) F and carry out multiplexed from clock frequency 4F or 4 (M+1) F of 4 frequency multipliers (241), with when the parameter S el=0, the clock F of output interface pin C3 input or (M+1) F give described ISO7816 interface controller (20) in the described smart card, or when parameter S el=1, output is given described ISO7816 interface controller (20) in the described smart card from clock frequency 4F or 4 (M+1) F of 4 frequency multipliers (241).
13. ISO7816 interface arrangement in the described mobile communication terminal of claim 1 and the data transmission processing method between the ISO7816 interface arrangement in the described smart card of claim 8 include following steps:
(1) the described mobile communication terminal power-up initializing of described smart card is housed;
(2) described mobile communication terminal automatically resets and responds the ATR processing;
(3) described smart card sends the parameter S el that sets and M in the SO7816 interface arrangement in the described I mobile communication terminal two registers (31 respectively, 32) store, wherein said parameter S el includes numeral 0 and 1, wherein the ISO7816 interface arrangement of existing standard is only supported in numeral 0 expression, and numeral 1 expresses support for described ISO7816 interface arrangement of the present invention; Described parameter M represents the multiple to the lifting of outside input clock frequency F, is the arbitrary round values among the 0-15;
(4) carry out the transmission of data between described mobile communication terminal and the described smart card, comprise that described mobile communication terminal writes data to described smart card and from described smart card reading of data, wherein under parameter S el was 0 situation, described data were carried out bit serial transmission by interface pin C7 in the ISO7816 interface arrangement in the described mobile communication terminal and the interface pin C7 in the ISO7816 interface arrangement in the described smart card; Be that described data are carried out the transmission of four bit parallels by interface pin C4, C6, C7 and C8 in the ISO7816 interface arrangement in the described mobile communication terminal and interface pin C4, C6, C7 and C8 in the ISO7816 interface arrangement in the described smart card under 1 the situation at parameter S el; And
(5) end data transmission.
14. data transmission processing method according to claim 13 is characterized in that, the transfer step of described parameter S el and M (3) includes:
(301) the ISO7816 interface controller (20) in the ISO7816 device of described smart card is held parameter M and the Sel that reads in the setting of storing respectively in the register (41,42) via input IN, and exports to interface pin C7 via output OUT end;
(302) the ISO7816 interface controller (10) in the ISO7816 interface arrangement of described mobile communication terminal is received described parameter M and Sel by interface pin C7 via input IN termination, and exports to two registers (31,32) via output OUT end and store.
15., it is characterized in that, be that when described mobile communication terminal was written to smart card with data, the transmitting step of described data (4) comprising under 1 the situation at parameter S el according to claim 13 or 14 described data transmission processing methods:
(401) processor in the described mobile communication terminal sends bit serial data to serial/parallel conversion equipment (13) by the ISO7816 interface controller (10) in the ISO7816 interface arrangement;
(402) described serial/parallel conversion equipment (13) becomes four bit parallel data with this bit serial data-switching, and sends four interior interface pin C4, C6, C7 and the C8 of ISO7816 interface arrangement in the described mobile communication terminal to;
(403) described four bit parallel data by with described mobile communication terminal in the ISO7816 interface arrangement in four interface pin C4, C6, C7 and C8 with described smart card that they link to each other respectively in four interface pin C4, C6, C7 and C8 send serial/parallel conversion equipment (23) in the described ISO7816 interface arrangement in the described smart card to;
(404) described serial/parallel conversion equipment (23) becomes bit serial data with described four bit parallel data-switching, and sends the interior ISO7816 interface controller (20) of described ISO7816 interface arrangement in the described smart card to; And
(405) described ISO7816 interface controller (20) sends described bit serial data in the described smart card inner control chip processor, realizes that described mobile communication terminal is written to described smart card with data.
16., it is characterized in that according to claim 13 or 14 described data transmission processing methods, be under 1 the situation at parameter S el, when described mobile communication terminal during from the smart card reading of data, the transmitting step of described data (4) comprising:
(411) processor in the control chip in the described smart card is after the reading command that receives from described mobile communication terminal, sends bit serial data in the ISO7816 interface arrangement in the described smart card serial/parallel conversion equipment (23) by the ISO7816 interface controller (20) in the ISO7816 interface arrangement in the described smart card;
(412) described serial/parallel conversion equipment (23) sends four interior interface pin C4, C6, C7 and C8 of the interior ISO7816 interface arrangement of smart card to after a described bit serial data-switching is become four bit parallel data;
(413) described four bit parallel data by four interface pin C4, C6 in the smart card, C7, C8 with described mobile communication terminal that they link to each other respectively in the ISO7816 interface arrangement in four interface pin C4, C6, C7 and C8 send serial/parallel conversion equipment (13) in the ISO7816 interface arrangement in the described mobile communication terminal to;
(414) described serial/parallel conversion equipment (13) becomes described four bit parallel data-switching the ISO7816 interface controller (10) that sends to after the one bit serial data in the described mobile communication terminal; And
(415) described ISO7816 interface controller (10) gives described mobile communication terminal interior processor a described bit serial data transmission, realizes that described mobile communication terminal is from described smart card reading of data.
CN2008101783412A 2008-11-28 2008-11-28 Improved ISO7816 interface device and data transmission processing method thereof Expired - Fee Related CN101751365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101783412A CN101751365B (en) 2008-11-28 2008-11-28 Improved ISO7816 interface device and data transmission processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101783412A CN101751365B (en) 2008-11-28 2008-11-28 Improved ISO7816 interface device and data transmission processing method thereof

Publications (2)

Publication Number Publication Date
CN101751365A true CN101751365A (en) 2010-06-23
CN101751365B CN101751365B (en) 2012-08-22

Family

ID=42478359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101783412A Expired - Fee Related CN101751365B (en) 2008-11-28 2008-11-28 Improved ISO7816 interface device and data transmission processing method thereof

Country Status (1)

Country Link
CN (1) CN101751365B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377703A (en) * 2010-08-09 2012-03-14 索尼公司 Transmission circuit and communication system
CN103782630A (en) * 2011-08-29 2014-05-07 高通股份有限公司 System and method for improving channel efficiency in a wireless link

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6913196B2 (en) * 2002-02-20 2005-07-05 O2Micro International Limited Dual mode controller for ISO7816 and USB enabled smart cards

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377703A (en) * 2010-08-09 2012-03-14 索尼公司 Transmission circuit and communication system
CN102377703B (en) * 2010-08-09 2016-08-10 索尼公司 Transtation mission circuit and communication system
CN103782630A (en) * 2011-08-29 2014-05-07 高通股份有限公司 System and method for improving channel efficiency in a wireless link
CN103782630B (en) * 2011-08-29 2017-07-28 高通股份有限公司 System and method for improving the channel efficiency in Radio Link
US9854533B2 (en) 2011-08-29 2017-12-26 Qualcomm Incorporated System and method for improving channel efficiency in a wireless link

Also Published As

Publication number Publication date
CN101751365B (en) 2012-08-22

Similar Documents

Publication Publication Date Title
US7233541B2 (en) Storage device
US8151134B2 (en) SPI devices and method for transferring data between the SPI devices
CN101876946B (en) Memory controlling device and memory controlling method
US7949818B2 (en) Memory system comprising semiconductor memory having plural different operation modes
CN109558344A (en) A kind of DMA transfer method and dma controller suitable for network transmission
WO2006051629A1 (en) Memory card having memory element and card controller thereof
US8737135B2 (en) Method for and flash memory device having improved read performance
CN101162452A (en) Multiple input/output serial peripheral interface and data transmission method
CN109061446A (en) A kind of test method and system of single-ended port transmission chip
CN1783330B (en) Memory device
CN101751365B (en) Improved ISO7816 interface device and data transmission processing method thereof
JP4870368B2 (en) Integrated circuit card system, memory card and control method thereof
CN101385038B (en) Ic card, terminal with ic card and initializing method thereof
CN108920197B (en) Loading circuit and loading method for improving serial passive loading rate of FPGA (field programmable Gate array)
CN100499557C (en) Addressing control device and addressing method using same
CN102541769B (en) Memory interface access control method and device
CN102033713A (en) Electronic system, controller and data transmission method
US8214563B2 (en) Host computer, computer terminal, and card access method
CN106547716B (en) An extended bus configuration system and method for low pin count
CN104425022B (en) Memory, storage system and memory control methods
CN101876960B (en) APB bus system and chip
US20120260010A1 (en) Storage control system and storage control method
US8631214B2 (en) Memory control circuit, control method therefor, and image processing apparatus
US9377957B2 (en) Method and apparatus for latency reduction
CN109144421A (en) A kind of method and device accelerating DDR access efficiency

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120822

Termination date: 20121128