CN103325409B - Memory card with smart card function, its power control method and power control circuit - Google Patents
Memory card with smart card function, its power control method and power control circuit Download PDFInfo
- Publication number
- CN103325409B CN103325409B CN201210077599.XA CN201210077599A CN103325409B CN 103325409 B CN103325409 B CN 103325409B CN 201210077599 A CN201210077599 A CN 201210077599A CN 103325409 B CN103325409 B CN 103325409B
- Authority
- CN
- China
- Prior art keywords
- power
- power input
- input
- control unit
- power supply
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000012545 processing Methods 0.000 claims abstract description 43
- 230000006870 function Effects 0.000 claims abstract description 14
- 238000004891 communication Methods 0.000 claims description 18
- 230000004044 response Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 claims description 4
- 230000008878 coupling Effects 0.000 claims 2
- 238000010168 coupling process Methods 0.000 claims 2
- 238000005859 coupling reaction Methods 0.000 claims 2
- 238000013461 design Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000003860 storage Methods 0.000 description 6
- 238000013478 data encryption standard Methods 0.000 description 5
- 230000005669 field effect Effects 0.000 description 5
- 230000009977 dual effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002401 inhibitory effect Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Power Sources (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种电源控制方法与电源控制电路,且特别涉及一种具智能卡功能的存储卡及其电源控制方法与电源控制电路。The invention relates to a power control method and a power control circuit, and in particular to a memory card with smart card function and its power control method and power control circuit.
背景技术 Background technique
随着使用者逐渐接受使用电子钱包及预付储值,使得智能卡的使用日益普及。智能卡(SmartCard)是具有例如微处理器、卡操作系统、安全模块及存储器的组件的集成电路芯片(IC芯片),以允许持有者执行预定操作。智能卡提供计算、加密、双向通信及安全功能,使得这张卡片除了存储数据的功能外还能达到对其所存储的数据加以保护的功能。使用全球移动通信系统(GSM)机制的蜂窝式电话中所使用的用户识别模块(SubscriberIdentificationModule,SIM)卡为智能卡的其中一个应用范例。一般来说,智能卡本身受限于其集成电路的规范,因此存储容量有限。As users gradually accept the use of electronic wallets and prepaid stored value, the use of smart cards is becoming more and more popular. A smart card (SmartCard) is an integrated circuit chip (IC chip) having components such as a microprocessor, a card operating system, a security module, and a memory to allow a holder to perform predetermined operations. The smart card provides computing, encryption, two-way communication and security functions, making this card not only store data, but also protect the stored data. The Subscriber Identification Module (SIM) card used in the cellular phone using the Global System for Mobile Communications (GSM) mechanism is one of the application examples of the smart card. In general, smart cards are inherently limited by the specifications of their integrated circuits and therefore have limited storage capacity.
存储卡(MEMORYCARD)是一种数据存储设备,其一般是以NAND快闪存储器作为存储介质。NAND快闪存储器具有可写入、可抹除、以及断电后仍可保存数据的优点,此外,随着制造技术的改良,NAND快闪存储器具有体积小、存取速度快、与耗电量低等优点。因此,近年来此领域技术人员尝试将智能卡与大容量的存储卡结合,以扩增智能卡的存储容量。A memory card (MEMORYCARD) is a data storage device, which generally uses a NAND flash memory as a storage medium. NAND flash memory has the advantages of being writable, erasable, and data can still be saved after power failure. In addition, with the improvement of manufacturing technology, NAND flash memory has the advantages of small size, fast access speed, and low power consumption. low merit. Therefore, in recent years, those skilled in the art try to combine the smart card with a large-capacity memory card to expand the storage capacity of the smart card.
一般来说,如果使用者要存取存储卡内的数据必须通过读卡机来存取,因此在将智能卡结合至存储卡的应用中,亦仅能通过读卡机来以接触式(contact)读取存储卡与智能卡内的数据。然而,随着近距离无线通信(NearFieldCommunication,NFC)的发展,许多非接触式(contactless)感应技术已广泛应用于生活中,例如捷运票卡、门禁卡等。Generally speaking, if the user wants to access the data in the memory card, he must access it through a card reader. Therefore, in the application of combining a smart card with a memory card, it can only be contacted through a card reader. Read data from memory cards and smart cards. However, with the development of Near Field Communication (NFC), many contactless sensing technologies have been widely used in daily life, such as subway ticket cards, access control cards and so on.
因此,结合智能卡并兼具非接触式存取功能的存储卡便应运而生,例如具智能卡功能的微安全数字存储卡(MicroSecureDigital,MicroSD)。此种存储卡在不同情况下被主机系统内的读取装置读取时接收不同的电源输入,因此若存储卡内部的智能卡电路在不同的电源输入任择其一供电时无法正常工作,将大大限制其应用范围。Therefore, a memory card combined with a smart card and having a contactless access function emerges at the historic moment, such as a MicroSecure Digital (MicroSD) with a smart card function. This kind of memory card receives different power input when it is read by the reading device in the host system under different circumstances, so if the smart card circuit inside the memory card cannot work normally when it is powered by one of the different power inputs, it will be greatly affected. limit its scope of application.
发明内容 Contents of the invention
本发明提供一种具有智能卡功能的存储卡,在不同的电源输入任择其一供电时,其内部的智能卡电路可正常工作。The invention provides a memory card with smart card function. When different power sources are input to supply power, the smart card circuit inside can work normally.
本发明提供一种存储卡的电源控制方法,此方法可使具智能卡功能的存储卡的双电源任择其一供电,且此时存储卡内部的智能卡电路可正常工作。The invention provides a power supply control method of a memory card. The method can enable one of the dual power supplies of the memory card with smart card function to supply power, and at this time, the smart card circuit inside the memory card can work normally.
本发明提供一种电源控制电路,适于应用在一电子电路。在不同的电源输入任择其一输入至此电子电路时,此电子电路可正常工作。The invention provides a power control circuit suitable for application in an electronic circuit. When any one of different power inputs is input to the electronic circuit, the electronic circuit can work normally.
本发明提出一种具智能卡功能的存储卡,包括一快闪存储器单元、一数据处理控制单元以及一电源控制单元。数据处理控制单元耦接至快闪存储器单元。数据处理控制单元控制快闪存储器单元,并且加解密与存储一智能卡安全数据。电源控制单元耦接至数据处理控制单元与快闪存储器单元。电源控制单元接收一第一电源输入与一第二电源输入两者至少其中之一。电源控制单元根据至少一控制信号选择提供第一电源输入或第二电源输入至数据处理控制单元,并且电源控制单元的一输出端耦接至第一电源输入。The invention proposes a memory card with smart card function, which includes a flash memory unit, a data processing control unit and a power control unit. The data processing control unit is coupled to the flash memory unit. The data processing control unit controls the flash memory unit, and encrypts, decrypts and stores a smart card security data. The power control unit is coupled to the data processing control unit and the flash memory unit. The power control unit receives at least one of a first power input and a second power input. The power control unit selects to provide the first power input or the second power input to the data processing control unit according to at least one control signal, and an output terminal of the power control unit is coupled to the first power input.
在本发明的一实施例中,上述的电源控制单元包括一第一电源供应通道以及一第二电源供应通道。第一电源供应通道用以接收第一电源输入,并根据一第一控制信号来决定是否提供第一电源输入至数据处理控制单元。第二电源供应通道用以接收第二电源输入,并根据一第二控制信号来决定是否提供第二电源输入至数据处理控制单元。第一控制信号响应于第一电源输入来改变其状态,以控制第一电源供应通道。In an embodiment of the present invention, the above power control unit includes a first power supply channel and a second power supply channel. The first power supply channel is used to receive the first power input, and determine whether to provide the first power input to the data processing control unit according to a first control signal. The second power supply channel is used to receive the second power input, and determine whether to provide the second power input to the data processing control unit according to a second control signal. The first control signal changes its state in response to the first power input to control the first power supply channel.
在本发明的一实施例中,上述的第一电源供应通道包括一第一开关元件以及一信号接收单元。第一开关元件具有一第一端、一第二端及一控制端。第一端接收第一电源输入;第二端耦接至电源控制单元的输出端。信号接收单元具有一输入端及一输出端。输入端接收第一电源输入并将其处理为第一控制信号;输出端耦接至第一开关元件的控制端,并输出第一控制信号。In an embodiment of the present invention, the above-mentioned first power supply channel includes a first switch element and a signal receiving unit. The first switch element has a first terminal, a second terminal and a control terminal. The first end receives the first power input; the second end is coupled to the output end of the power control unit. The signal receiving unit has an input end and an output end. The input end receives the first power input and processes it into a first control signal; the output end is coupled to the control end of the first switch element and outputs the first control signal.
在本发明的一实施例中,上述的信号接收单元包括一反向器。反向器具有输入端及输出端。输入端接收第一电源输入,并将其反向为第一控制信号。输出端耦接至第一开关元件的控制端,并输出第一控制信号。In an embodiment of the present invention, the above-mentioned signal receiving unit includes an inverter. The inverter has an input terminal and an output terminal. The input end receives the first power input and inverts it into a first control signal. The output end is coupled to the control end of the first switch element, and outputs a first control signal.
在本发明的一实施例中,上述的第二电源供应通道包括一第二开关元件。第二开关元件具有一第一端、一第二端及一控制端。第一端接收第二电源输入;第二端耦接至电源控制单元的输出端;控制端用以接收第二控制信号。In an embodiment of the present invention, the above-mentioned second power supply channel includes a second switch element. The second switch element has a first terminal, a second terminal and a control terminal. The first end receives the second power input; the second end is coupled to the output end of the power control unit; the control end is used for receiving the second control signal.
在本发明的一实施例中,上述的电源控制单元还包括一电压限制单元。电压限制单元耦接在第一及第二电源供应通道之间,用以抑制第一电源供应通道反馈至第二电源供应通道的一逆向电压小于一特定值,或者用以抑制第二电源供应通道反馈至第一电源供应通道的逆向电压小于特定值。In an embodiment of the present invention, the above power control unit further includes a voltage limiting unit. The voltage limiting unit is coupled between the first and second power supply channels, and is used to suppress a reverse voltage fed back from the first power supply channel to the second power supply channel from being less than a specific value, or to suppress the second power supply channel The reverse voltage fed back to the first power supply channel is less than a specific value.
在本发明的一实施例中,上述的电压限制单元包括一第一二极管以及一第二二极管。第一二极管具有一阳极与一阴极。阳极耦接至第一电源输入;阴极耦接至第一开关元件。第二二极管具有一阳极与一阴极。阳极耦接至第二电源输入;阴极耦接至第二开关元件。In an embodiment of the present invention, the voltage limiting unit includes a first diode and a second diode. The first diode has an anode and a cathode. The anode is coupled to the first power input; the cathode is coupled to the first switching element. The second diode has an anode and a cathode. The anode is coupled to the second power input; the cathode is coupled to the second switching element.
在本发明的一实施例中,上述的电源控制单元包括一分压单元。分压单元具有一第一端、一第二端及一分压节点。第一端耦接至第一电源输入;第二端耦接至地。分压单元对第一电源输入进行分压,并经由分压节点提供分压后的第一电源输入至电源控制单元的输出端。In an embodiment of the present invention, the above-mentioned power control unit includes a voltage dividing unit. The voltage dividing unit has a first end, a second end and a voltage dividing node. The first end is coupled to the first power input; the second end is coupled to the ground. The voltage dividing unit divides the voltage of the first power input, and provides the divided first power input to the output terminal of the power control unit through the voltage dividing node.
在本发明的一实施例中,上述的分压单元包括一第一电阻,其一端作为分压单元的第一端,且耦接至第一电源输入。第一电阻的另一端作为分压节点,并提供分压后的第一电源输入至电源控制单元的输出端。第二电阻与第一电阻串联耦接。第二电阻的一端耦接至第一电阻的另一端,第二电阻的另一端作为分压单元的第二端且耦接至地。In an embodiment of the present invention, the above-mentioned voltage dividing unit includes a first resistor, one end of which serves as the first end of the voltage dividing unit and is coupled to the first power input. The other end of the first resistor serves as a voltage dividing node, and provides the divided first power supply to the output terminal of the power control unit. The second resistor is coupled in series with the first resistor. One end of the second resistor is coupled to the other end of the first resistor, and the other end of the second resistor serves as a second end of the voltage dividing unit and is coupled to ground.
在本发明的一实施例中,上述的数据处理控制单元包括一存储器控制电路以及一智能卡电路。存储器控制电路耦接快闪存储器单元,并控制快闪存储器单元。智能卡电路耦接至存储器控制电路,并加解密与存储一智能卡安全数据。智能卡电路从一主机系统接收智能卡安全数据或将所处理的智能卡安全数据通过存储器控制电路传送给主机系统。电源控制单元选择提供第一电源输入或第二电源输入至智能卡电路。In an embodiment of the present invention, the above-mentioned data processing control unit includes a memory control circuit and a smart card circuit. The memory control circuit is coupled to the flash memory unit and controls the flash memory unit. The smart card circuit is coupled to the memory control circuit, and encrypts, decrypts and stores a smart card security data. The smart card circuit receives smart card security data from a host system or transmits the processed smart card security data to the host system through the memory control circuit. The power control unit selects to provide the first power input or the second power input to the smart card circuit.
在本发明的一实施例中,上述的快闪存储器单元还存储智能卡安全数据。In an embodiment of the present invention, the above-mentioned flash memory unit also stores smart card security data.
在本发明的一实施例中,上述的第一电源输入由一存储卡读取装置所提供;第二电源输入由一近距离无线通信读取装置所提供。In an embodiment of the present invention, the above-mentioned first power input is provided by a memory card reading device; the second power input is provided by a short-range wireless communication reading device.
本发明提出一种存储卡的电源控制方法。存储卡包括一电源控制单元及一数据处理控制单元。电源控制方法包括如下步骤。接收一第一电源输入与一第二电源输入两者至少其中之一。根据至少一控制信号,选择提供第一电源输入或第二电源输入至数据处理控制单元内的一智能卡电路。电源控制单元的一输出端耦接至第一电源输入。The invention provides a power control method of a memory card. The memory card includes a power control unit and a data processing control unit. The power control method includes the following steps. At least one of a first power input and a second power input is received. According to at least one control signal, select to provide the first power input or the second power input to a smart card circuit in the data processing control unit. An output terminal of the power control unit is coupled to the first power input.
在本发明的一实施例中,上述的选择提供第一电源输入或第二电源输入至智能卡电路的步骤包括根据一第一控制信号来决定是否提供第一电源输入至数据处理控制单元。第一控制信号响应于第一电源输入来改变其状态,以控制第一电源输入的供应。In an embodiment of the present invention, the step of selecting to provide the first power input or the second power input to the smart card circuit includes determining whether to provide the first power input to the data processing control unit according to a first control signal. The first control signal changes its state in response to the first power input to control supply to the first power input.
在本发明的一实施例中,上述的选择提供第一电源输入或第二电源输入至智能卡电路的步骤还包括反向第一电源输入作为第一控制信号,以控制第一电源输入的供应。In an embodiment of the present invention, the step of selecting to provide the first power input or the second power input to the smart card circuit further includes inverting the first power input as the first control signal to control the supply of the first power input.
在本发明的一实施例中,上述的选择提供第一电源输入或第二电源输入至智能卡电路的步骤还包括根据一第二控制信号来决定是否提供第二电源输入至数据处理控制单元。第一电源输入作为第二控制信号。In an embodiment of the present invention, the step of selecting to provide the first power input or the second power input to the smart card circuit further includes determining whether to provide the second power input to the data processing control unit according to a second control signal. The first power input serves as the second control signal.
在本发明的一实施例中,上述的电源控制方法还包括抑制第一电源输入反馈至第二电源输入的一逆向电压小于一特定值。In an embodiment of the present invention, the above-mentioned power control method further includes preventing a reverse voltage fed back from the first power input to the second power input from being smaller than a specific value.
在本发明的一实施例中,上述的电源控制方法还包括抑制第二电源输入反馈至第一电源输入的逆向电压小于特定值。In an embodiment of the present invention, the above power control method further includes preventing the reverse voltage fed back from the second power input to the first power input from being smaller than a specific value.
在本发明的一实施例中,上述的电源控制方法还包括对第一电源输入进行分压,并提供分压后的第一电源输入至电源控制单元的输出端。In an embodiment of the present invention, the above power control method further includes dividing the voltage of the first power input, and providing the divided first power input to the output terminal of the power control unit.
本发明提出一种电源控制电路,包括一第一电源供应通道、一第一电源供应通道以及一电压限制单元。第一电源供应通道用以接收一第一电源输入,并根据一第一控制信号来决定是否提供第一电源输入至一数据处理控制单元。第二电源供应通道用以接收一第二电源输入,并根据一第二控制信号来决定是否提供第二电源输入至数据处理控制单元。电压限制单元耦接在第一及第二电源供应通道之间,用以抑制第一电源供应通道反馈至第二电源供应通道的一逆向电压小于一特定值,或者抑制第二电源供应通道反馈至第一电源供应通道的逆向电压小于特定值。The present invention provides a power control circuit, which includes a first power supply channel, a first power supply channel and a voltage limiting unit. The first power supply channel is used to receive a first power input, and determine whether to provide the first power input to a data processing control unit according to a first control signal. The second power supply channel is used to receive a second power input, and determine whether to provide the second power input to the data processing control unit according to a second control signal. The voltage limiting unit is coupled between the first and second power supply channels, and is used to prevent a reverse voltage fed back from the first power supply channel to the second power supply channel from being less than a specific value, or to prevent the second power supply channel from feeding back to the The reverse voltage of the first power supply channel is less than a specific value.
在本发明的一实施例中,上述的第一电源输入或第二电源输入输入至数据处理控制单元的电压导通损失小于0.15伏特。In an embodiment of the present invention, the conduction loss of the voltage input from the first power input or the second power input to the data processing control unit is less than 0.15 volts.
在本发明的一实施例中,上述的特定值不大于相对应电源输入的60%或1伏特。In an embodiment of the present invention, the above-mentioned specific value is not greater than 60% of the corresponding power input or 1 volt.
基于上述,本发明所提供的存储卡具有智能卡功能,可进行近距离无线通信。并且,所提供的电源控制方法可使此存储卡在双电源任择其一供电的情况下,其内部的智能卡电路皆能正常工作。Based on the above, the memory card provided by the present invention has the function of a smart card and can perform short-distance wireless communication. Moreover, the provided power supply control method can make the internal smart card circuit of the memory card work normally under the condition that one of the dual power supplies is powered.
为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.
附图说明 Description of drawings
图1是根据本发明一范例实施例所绘示的存储卡与其主机系统的概要方块图。FIG. 1 is a schematic block diagram of a memory card and its host system according to an exemplary embodiment of the present invention.
图2是根据本发明一范例实施例所绘示的电源控制单元的概要方块图。FIG. 2 is a schematic block diagram of a power control unit according to an exemplary embodiment of the present invention.
图3是根据本发明一范例实施例所绘示的电源控制单元的概要电路图。FIG. 3 is a schematic circuit diagram of a power control unit according to an exemplary embodiment of the present invention.
图4为本发明一实施例的存储卡的电源控制方法的步骤流程图。FIG. 4 is a flow chart of steps of a power control method for a memory card according to an embodiment of the invention.
图5为本发明另一实施例的存储卡的电源控制方法的步骤流程图。FIG. 5 is a flow chart of steps of a power control method for a memory card according to another embodiment of the present invention.
【主要元件符号说明】[Description of main component symbols]
100:主机系统100: host system
110:存储卡读取装置110: memory card reading device
120:近距离无线通信读取装置120: Short-range wireless communication reading device
200:存储卡200: memory card
210:快闪存储器单元210: Flash memory unit
220:数据处理控制单元220: Data processing control unit
222:存储器控制电路222: memory control circuit
224:智能卡电路224: Smart card circuit
230、330:电源控制单元230, 330: power control unit
232、332:第一电源供应通道232, 332: the first power supply channel
234、334:第二电源供应通道234, 334: Second power supply channel
236、336:电压限制单元236, 336: voltage limiting unit
238、338:分压单元238, 338: Voltage divider unit
333:信号接收单元333: Signal receiving unit
Ctrl1:第一控制信号Ctrl1: first control signal
Ctrl2:第二控制信号Ctrl2: second control signal
P1:第一电源输入P1: first power input
P1’:分压后的第一电源输入P1': the first power input after voltage division
P2:第二电源输入P2: Second power input
OUT:电源控制单元的输出端OUT: the output terminal of the power control unit
Q1:第一开关元件Q1: First switching element
Q2:第二开关元件Q2: Second switching element
D1:第一二极管D1: first diode
D2:第二二极管D2: second diode
N:分压节点N: Voltage divider node
R1:第一电阻R1: first resistor
R2:第二电阻R2: second resistor
S400、S402、S404、S406、S408、S500、S502、S504:电源控制方法的步骤S400, S402, S404, S406, S408, S500, S502, S504: steps of power control method
具体实施方式 detailed description
图1是根据本发明一范例实施例所绘示的存储卡与其主机系统的概要方块图。请参照图1,本范例实施例的主机系统100包括一存储卡读取装置110以及一无线通信读取装置120。在此,主机系统100例如是一便携式电子通信装置(例如手机、平板计算机),但本发明并不限于此。在本范例实施例中,存储卡200包括一快闪存储器单元210、一数据处理控制单元220以及一电源控制单元230。数据处理控制单元220包括一存储器控制电路222以及一智能卡电路224。存储器控制电路222耦接快闪存储器单元210。智能卡电路224耦接存储器控制电路222。存储卡200例如是一微安全数字(MicroSD)存储卡,其结合智能卡并兼具非接触式存取功能。因此,本范例实施例的存储卡读取装置110例如是一微安全数字存储卡读取装置。另外,在本范例实施例中,快闪存储器单元210、数据处理控制单元220以及电源控制单元230可个别以单一芯片来实施,或者也可以将所有功能整合在单一芯片中实现。FIG. 1 is a schematic block diagram of a memory card and its host system according to an exemplary embodiment of the present invention. Referring to FIG. 1 , the host system 100 of this exemplary embodiment includes a memory card reading device 110 and a wireless communication reading device 120 . Here, the host system 100 is, for example, a portable electronic communication device (such as a mobile phone, a tablet computer), but the invention is not limited thereto. In this exemplary embodiment, the memory card 200 includes a flash memory unit 210 , a data processing control unit 220 and a power control unit 230 . The data processing control unit 220 includes a memory control circuit 222 and a smart card circuit 224 . The memory control circuit 222 is coupled to the flash memory unit 210 . The smart card circuit 224 is coupled to the memory control circuit 222 . The memory card 200 is, for example, a Micro Secure Digital (MicroSD) memory card, which is combined with a smart card and has a contactless access function. Therefore, the memory card reading device 110 of this exemplary embodiment is, for example, a Micro Secure Digital memory card reading device. In addition, in this exemplary embodiment, the flash memory unit 210 , the data processing control unit 220 and the power control unit 230 can be individually implemented in a single chip, or all functions can be integrated in a single chip for implementation.
存储卡读取装置110用以识别符合SD规范的数据格式并且转换成主机系统100所能够识别的格式。具体来说,本实施例的存储卡读取装置110用以连接存储卡200,存储卡200例如是以可分离的方式插入至存储卡读取装置110中,以使主机系统100可通过存储卡读取装置110对所插入的存储卡200进行存取。在本范例实施例中,使用者可将存储卡200插入至存储卡读取装置110,以与主机系统100连接,进行符合ISO7816-3标准的接触式(contact)通信。例如,使用者可将具有金融智能卡安全数据的存储卡200插入至存储卡读取装置110并且通过主机系统100及互联网(Internet)进行线上购物的付费行为。The memory card reading device 110 is used to identify the data format conforming to the SD standard and convert it into a format that the host system 100 can recognize. Specifically, the memory card reading device 110 of this embodiment is used to connect the memory card 200. For example, the memory card 200 is detachably inserted into the memory card reading device 110, so that the host system 100 can use the memory card The reading device 110 accesses the inserted memory card 200 . In this exemplary embodiment, the user can insert the memory card 200 into the memory card reading device 110 to connect with the host system 100 for contact communication conforming to the ISO7816-3 standard. For example, the user can insert the memory card 200 with financial smart card security data into the memory card reading device 110 and perform online shopping payment through the host system 100 and the Internet.
无线通信读取装置120可用以收发RF信号,以与读取装置(例如RF读取器,未绘示)进行数据传输,数据传输的方式例如是符合近距离无线通信规范(NearFieldCommunication,NFC)或其他种类无线通信规范。也就是说,在本范例实施例中,使用者可将存储卡200插入至存储卡读取装置110而利用近距离无线通信读取装置120与其他非接触式读取装置进行符合ISO14443标准的非接触式(contactless)近距离无线通信。例如,使用者可将具有捷运票证智能卡安全数据的存储卡200插入至存储卡读取装置110。在搭乘捷运时与配置在捷运站的读取装置通信以非接触式方式付费,或者使用者可将具有金融智能卡安全数据的存储卡200插入至存储卡读取装置110而在相关店家(例如,加油站、便利商店)进行购物时与配置在店家的读取装置通信以非接触式方式付费。The wireless communication reading device 120 can be used to send and receive RF signals to perform data transmission with the reading device (such as an RF reader, not shown). Other types of wireless communication specifications. That is to say, in this exemplary embodiment, the user can insert the memory card 200 into the memory card reading device 110 and use the short-range wireless communication reading device 120 to communicate with other non-contact reading devices according to the ISO14443 standard. Contactless short-range wireless communication. For example, the user may insert the memory card 200 with the security data of the smart card of the subway ticket into the memory card reading device 110 . When taking the subway, communicate with the reading device arranged at the subway station to pay in a contactless manner, or the user can insert the memory card 200 with financial smart card security data into the memory card reading device 110 and pay at the relevant store ( For example, gas stations, convenience stores) when shopping, communicate with the reader installed in the store to pay in a contactless manner.
数据处理控制单元220用以控制存储卡200的运作,其利用存储器控制电路222控制快闪存储器单元210,以及利用智能卡电路224加解密与存储一智能卡安全数据。在本范例实施例中,智能卡电路224例如是一通用集成电路卡(UniversalIntegratedCircuitCard,UICC),存储包括用户信息、金钥密码、付费方式等信息。智能卡电路224从主机系统100接收智能卡安全数据或将所处理的智能卡安全数据通过存储器控制电路222传送给主机系统110(或是通过一无线信息发送单元传送给主机)。一般来说,由于智能卡电路224的数据安全相当高,因此使用智能卡电路224所处理的智能卡安全数据可用作为身份验证、小额支付等应用。例如,此智能卡安全数据为大众运输票证数据、金融数据等。在本发明范例实施例中,智能卡电路224的接口(interface)是符合ISO7816-3与ISO14443标准。然而,本发明不限于此,智能卡电路224也可以是其他安全等级更高的数据保护机制。值得一提的是,智能卡电路224所使用的加密、解密方法为符合先进加密标准(AdvancedEncryptionStandard,AES)、数据加密标准(DataEncryptionStandard,DES)、三阶段数据加密标准(TripleDataEncryptionStandard,3DES)、非对称加密算法(RivestShamirAdleman,RSA)。The data processing control unit 220 is used to control the operation of the memory card 200 , it uses the memory control circuit 222 to control the flash memory unit 210 , and uses the smart card circuit 224 to encrypt, decrypt and store a smart card security data. In this exemplary embodiment, the smart card circuit 224 is, for example, a Universal Integrated Circuit Card (UICC), which stores information including user information, key code, payment method, and the like. The smart card circuit 224 receives smart card security data from the host system 100 or transmits the processed smart card security data to the host system 110 through the memory control circuit 222 (or to the host through a wireless information sending unit). Generally speaking, since the data security of the smart card circuit 224 is quite high, the smart card security data processed by the smart card circuit 224 can be used for identity verification, small payment and other applications. For example, this smart card security data is mass transit ticket data, financial data, etc. In an exemplary embodiment of the present invention, the interface of the smart card circuit 224 complies with ISO7816-3 and ISO14443 standards. However, the present invention is not limited thereto, and the smart card circuit 224 may also be other data protection mechanisms with higher security levels. It is worth mentioning that the encryption and decryption methods used by the smart card circuit 224 conform to Advanced Encryption Standard (Advanced Encryption Standard, AES), Data Encryption Standard (Data Encryption Standard, DES), Three-stage Data Encryption Standard (Triple Data Encryption Standard, 3DES), asymmetric encryption Algorithm (Rivest Shamir Adleman, RSA).
快闪存储器单元210是用以在存储器控制电路222的控制下依据主机系统100的指令来存储主机系统100欲写入的数据。具体来说,当使用者将存储卡200插入至存储卡读取装置110后,主机系统100可通过存储卡读取装置110对存储器控制电路222下达存取指令(例如,写入指令、读取指令等),并且存储器控制电路222会依据所接收的指令来操作快闪存储器单元210,进而写入从主机系统100中接收的数据或传送数据给主机系统100。The flash memory unit 210 is used to store the data to be written by the host system 100 according to the instruction of the host system 100 under the control of the memory control circuit 222 . Specifically, after the user inserts the memory card 200 into the memory card reading device 110, the host system 100 can issue an access command to the memory control circuit 222 through the memory card reading device 110 (for example, write command, read command, etc.), and the memory control circuit 222 operates the flash memory unit 210 according to the received command, and then writes data received from the host system 100 or transmits data to the host system 100 .
例如,在本范例实施例中,存储器控制电路222包括用以控制整体运作的微处理器单元、用以暂存数据的缓冲存储器、用以存取快闪存储器单元210的快闪存储器接口模块、用以与存储卡读取装置110通信的微安全数字接口模块、可存取智能卡电路224的接口模块以及错误检查与校正模块等(未绘示)。For example, in this exemplary embodiment, the memory control circuit 222 includes a microprocessor unit for controlling the overall operation, a buffer memory for temporarily storing data, a flash memory interface module for accessing the flash memory unit 210, The micro-secure digital interface module for communicating with the memory card reading device 110 , the interface module capable of accessing the smart card circuit 224 , and the error checking and correction module (not shown).
在本范例实施例中,存储器控制电路222的微处理器单元会识别经由存储卡读取装置110所接收的指令与数据是要直接传送至快闪存储器单元210的一般指令与数据或是必须由智能卡电路224处理的智能卡指令与智能卡安全数据,并且依据判断结果来执行写入数据至快闪存储器单元210或将指令与数据分派至智能卡电路224的运作。此外,如前所述,在智能卡电路224因其规范而使其存储容量受限下,在本范例实施例中,智能卡片芯片224的智能卡安全数据可在存储器控制电路222的管理下存储在可存储容量较智能卡片芯片224本身大的快闪存储器单元210中。In this exemplary embodiment, the microprocessor unit of the memory control circuit 222 will identify whether the instructions and data received via the memory card reading device 110 are general instructions and data to be directly transmitted to the flash memory unit 210 or must be sent by the flash memory unit 210. The smart card circuit 224 processes the smart card command and the smart card security data, and executes the operation of writing data to the flash memory unit 210 or dispatching the command and data to the smart card circuit 224 according to the judgment result. In addition, as mentioned above, when the storage capacity of the smart card circuit 224 is limited due to its specifications, in this exemplary embodiment, the smart card security data of the smart card chip 224 can be stored in a storage device under the management of the memory control circuit 222. In the flash memory unit 210 whose storage capacity is larger than that of the smart card chip 224 itself.
电源控制单元230耦接至数据处理控制单元220与快闪存储器单元210。电源控制单元230接收一第一电源输入P1与一第二电源输入P2两者至少其中之一。电源控制单元230根据至少一控制信号(未绘示),选择提供第一电源输入P1或第二电源输入P2至智能卡电路224。在本范例实施例中,第一电源输入P1由存储卡读取装置110所提供;第二电源输入P2由近距离无线通信读取装置120所提供,但本发明并不限于此,第一电源输入及第二电源输入可为各种型式的可供电装置。The power control unit 230 is coupled to the data processing control unit 220 and the flash memory unit 210 . The power control unit 230 receives at least one of a first power input P1 and a second power input P2 . The power control unit 230 selectively provides the first power input P1 or the second power input P2 to the smart card circuit 224 according to at least one control signal (not shown). In this exemplary embodiment, the first power input P1 is provided by the memory card reading device 110; the second power input P2 is provided by the short-range wireless communication reading device 120, but the present invention is not limited thereto, the first power The input and the second power input can be various types of power supply devices.
具体而言,如果主机系统100处于正常操作模式时,是由存储卡读取装置110来提供第一电源输入P1至智能卡电路224,此时第一电源输入P1例如是3.3伏特,搭配本范例实施例的电源控制单元230的设计,智能卡电路224可正常工作。另一种操作模式是以近距离无线通信读取装置来读取主机系统100。在此种操作模式中,第二电源输入P2的提供是于接近近距离无线通信发送装置时,主机系统100侦测到近距离无线通信读取装置的信号而决定接收第二电源输入P2。此时第二电源输入P2例如是1.8伏特,搭配本范例实施例的电源控制单元230的设计,智能卡电路224也可正常工作。换句话说,在本范例实施例中,当存储卡读取装置110或是近距离无线通信读取装置120其中之一供电时,智能卡电路224都能正常工作。Specifically, if the host system 100 is in the normal operation mode, the memory card reading device 110 provides the first power input P1 to the smart card circuit 224. At this time, the first power input P1 is, for example, 3.3 volts. With the design of the power control unit 230 of the example, the smart card circuit 224 can work normally. Another mode of operation is to read the host system 100 with a NFC reader. In this operation mode, the second power input P2 is provided when the host system 100 detects the signal of the short-range wireless communication reading device and decides to receive the second power input P2 when it is close to the short-range wireless communication sending device. At this time, the second power input P2 is, for example, 1.8 volts. With the design of the power control unit 230 in this exemplary embodiment, the smart card circuit 224 can also work normally. In other words, in this exemplary embodiment, when either the memory card reading device 110 or the NFC reading device 120 is powered, the smart card circuit 224 can work normally.
进一步来说,图2是根据本发明一范例实施例所绘示的电源控制单元的概要方块图。请参照图2,本范例实施例的电源控制单元230包括一第一电源供应通道232、一第二电源供应通道234、一电压限制单元236以及一分压单元238。Further, FIG. 2 is a schematic block diagram of a power control unit according to an exemplary embodiment of the present invention. Referring to FIG. 2 , the power control unit 230 of this exemplary embodiment includes a first power supply channel 232 , a second power supply channel 234 , a voltage limiting unit 236 and a voltage dividing unit 238 .
第一电源供应通道232接收第一电源输入P1,并根据一第一控制信号Ctrl1来决定是否提供第一电源输入P1至智能卡电路224。在本范例实施例中,第一控制信号Ctrl1响应于第一电源输入P1来改变其状态,以控制第一电源供应通道232。在此,第一控制信号Ctrl1例如是由第一电源输入P1反向所得,但本发明并不限于此。在另一范例实施例中,其可由电源控制单元判断第一电源输入P1高于一预定电压电平时提供一用以将第一电源输入P1至智能卡电路224的第一控制信号Ctrl1。另一方面,第二电源供应通道234接收第二电源输入P2,并根据一第二控制信号Ctrl2来决定是否提供第二电源输入P2至智能卡电路224。在本范例实施例中,第一电源输入P1例如是作为第二控制信号Ctrl2来控制第二电源供应通道234导通与否,但本发明并不限于此。在另一范例实施例中,其可由电源控制单元判断第二电源输入P2高于一预定电压电平时提供一用以将第二电源输入P2输入至智能卡电路224的第二控制信号Ctrl2,且将第一电源供应通道232截止的第一控制信号Ctrl1。The first power supply channel 232 receives the first power input P1, and determines whether to provide the first power input P1 to the smart card circuit 224 according to a first control signal Ctrl1. In this exemplary embodiment, the first control signal Ctrl1 changes its state in response to the first power input P1 to control the first power supply channel 232 . Here, the first control signal Ctrl1 is, for example, obtained by inverting the first power input P1, but the invention is not limited thereto. In another exemplary embodiment, when the power control unit judges that the first power input P1 is higher than a predetermined voltage level, it can provide a first control signal Ctrl1 for connecting the first power input P1 to the smart card circuit 224 . On the other hand, the second power supply channel 234 receives the second power input P2, and determines whether to provide the second power input P2 to the smart card circuit 224 according to a second control signal Ctrl2. In this exemplary embodiment, the first power input P1 is used as the second control signal Ctrl2 to control whether the second power supply channel 234 is turned on or not, but the invention is not limited thereto. In another exemplary embodiment, when the power control unit judges that the second power input P2 is higher than a predetermined voltage level, it can provide a second control signal Ctrl2 for inputting the second power input P2 to the smart card circuit 224, and the The first control signal Ctrl1 for cutting off the first power supply channel 232 .
电压限制单元236耦接在第一电源供应通道232及第二电源供应通道234之间,用以抑制第一电源供应通道232反馈至第二电源供应通道234的一逆向电压小于一特定值,并且抑制第二电源供应通道234反馈至第一电源供应通道232的逆向电压小于特定值。在本实施例中,此特定值不大于相对应电源输入的60%或1伏特。例如,在第一电源供应通道232提供第一电源输入P1时,此特定值不大于第一电源输入P1的60%,即0.6倍。进一步而言,在存储卡读取装置110供电时,3.3伏特的第一电源输入P1经由第一电源供应通道232输出至智能卡电路224,在此同时,第一电源供应通道232也会提供逆向电压反馈至第二电源供应通道234,进而影响第二电源输入P2。因此,在本范例实施例中,为了符合例如是智能卡电路224的UICC规范标准,本范例实施例搭配电压限制单元236可抑制第一电源供应通道232反馈的逆向电压约为0.3伏特,其小于0.5伏特,但本发明并不限于此,此电源供应通道间的反馈逆向电压的限制要求可依设计者的需求而订。在此例中,实际提供至智能卡电路224的第一电源输入P1约为3.28伏特,因此本范例实施例的第一电源输入P1输入至数据处理控制单元220的电压导通损失小于0.15伏特。The voltage limiting unit 236 is coupled between the first power supply channel 232 and the second power supply channel 234, and is used to prevent a reverse voltage fed back from the first power supply channel 232 to the second power supply channel 234 from being less than a certain value, and The reverse voltage fed back from the second power supply channel 234 to the first power supply channel 232 is prevented from being less than a specific value. In this embodiment, the specified value is not greater than 60% of the corresponding power input or 1 volt. For example, when the first power supply channel 232 provides the first power input P1, the specific value is not greater than 60% of the first power input P1, that is, 0.6 times. Furthermore, when the memory card reading device 110 is powered, the first power input P1 of 3.3 volts is output to the smart card circuit 224 through the first power supply channel 232, and at the same time, the first power supply channel 232 will also provide a reverse voltage The feedback is fed back to the second power supply channel 234, thereby affecting the second power input P2. Therefore, in this exemplary embodiment, in order to comply with the UICC specification standard such as the smart card circuit 224, the present exemplary embodiment is combined with the voltage limiting unit 236 to suppress the reverse voltage fed back by the first power supply channel 232 from about 0.3 volts, which is less than 0.5 volts. Volts, but the present invention is not limited thereto, and the limit requirement of the feedback reverse voltage between the power supply channels can be determined according to the needs of the designer. In this example, the first power input P1 actually supplied to the smart card circuit 224 is about 3.28 volts, so the voltage conduction loss of the first power input P1 input to the data processing control unit 220 in this exemplary embodiment is less than 0.15 volts.
反之,在近距离无线通信读取装置120提供1.8伏特的第二电源输入P2时,第二电源供应通道234也会提供逆向电压反馈至第一电源供应通道232,搭配本范例实施例的电压限制单元236,也可抑制第二电源供应通道234反馈的逆向电压小于0.5伏特。换句话说,本范例实施例的设计架构,除了可达到双电源择一供电的目的之外,当任一方电源输入不存在时,所反馈的逆向电压约为0.3伏特,小于0.5伏特,符合UICC的规范标准。在此例中,实际提供至智能卡电路224的第二电源输入P2约为1.78伏特,因此本范例实施例的第二电源输入P2输入至数据处理控制单元220的电压导通损失也小于0.15伏特。Conversely, when the short-range wireless communication reader 120 provides the second power input P2 of 1.8 volts, the second power supply channel 234 will also provide reverse voltage feedback to the first power supply channel 232, with the voltage limitation of this exemplary embodiment The unit 236 can also suppress the reverse voltage fed back from the second power supply channel 234 to be less than 0.5 volts. In other words, the design architecture of this exemplary embodiment, in addition to achieving the purpose of choosing one of the dual power supplies, when either power input does not exist, the reverse voltage fed back is about 0.3 volts, which is less than 0.5 volts, which complies with UICC specification standards. In this example, the second power input P2 actually supplied to the smart card circuit 224 is about 1.78 volts, so the voltage conduction loss of the second power input P2 input to the data processing control unit 220 in this exemplary embodiment is also less than 0.15 volts.
分压单元238对第一电源输入P1进行分压,并经由其分压节点提供分压后的第一电源输入P1’至电源控制单元230的输出端OUT。换句话说,第一电源输入P1被分压之后耦接至电源控制单元230的输出端OUT,因此,电源控制单元230的输出电压会与第一电源输入P1连动,即当第一电源输入P1为3.3伏特时,输出为3.3伏特,反之则为1.8伏特。本范例实施例通过此种连动的设计方式,可避免由第二电源输入P2切换至第一电源输入P1时,造成第一电源输入P1的电压下降至1.8伏特或0伏特的错误操作。在本范例实施例中,电源控制单元230包括分压单元238,在其他范例实施例中,分压单元238可依实际设计需求选择性地配置,亦即电源控制单元可选择性地包括或不包括分压单元。The voltage dividing unit 238 divides the voltage of the first power input P1, and provides the divided first power input P1' to the output terminal OUT of the power control unit 230 via its voltage dividing node. In other words, the first power input P1 is divided and coupled to the output terminal OUT of the power control unit 230, therefore, the output voltage of the power control unit 230 will be linked with the first power input P1, that is, when the first power input When P1 is 3.3 volts, the output is 3.3 volts, otherwise it is 1.8 volts. This exemplary embodiment can avoid the erroneous operation that causes the voltage of the first power input P1 to drop to 1.8 volts or 0 volts when switching from the second power input P2 to the first power input P1 through such a linkage design. In this exemplary embodiment, the power control unit 230 includes a voltage dividing unit 238. In other exemplary embodiments, the voltage dividing unit 238 can be selectively configured according to actual design requirements, that is, the power control unit can optionally include or not Includes divider unit.
图3是根据本发明一范例实施例所绘示的电源控制单元的概要电路图。请参照图3,本范例实施例的第一电源供应通道332包括一第一开关元件Q1以及一信号接收单元333。在本范例实施例中,第一开关元件Q1例如是以一晶体管元件,如P型金属氧化物半导体场效晶体管(P-MOSFET)来实现,但本发明并不限于此。第一开关元件Q1具有一第一端、一第二端及一控制端,因此第一开关元件Q1的第一端、第二端及控制端分别对应P型金属氧化物半导体场效晶体管的源极、漏极及栅极。第一开关元件Q1的第一端接收第一电源输入P1;第一开关元件Q1的第二端耦接至电源控制单元的输出端OUT;第一开关元件Q1的控制端耦接至信号接收单元333,以接收第一控制信号Ctrl1。信号接收单元333具有一输入端及一输出端。输入端接收第一电源输入P1并将其处理为第一控制信号Ctrl1;输出端耦接至第一开关元件Q1的控制端,并输出第一控制信号Ctrl1至第一开关元件Q1,以控制其导通状态。在此例中,信号接收单元333包括一反向器,因此信号接收单元333将第一电源输入P1反向,并作为第一控制信号Ctrl1。FIG. 3 is a schematic circuit diagram of a power control unit according to an exemplary embodiment of the present invention. Please refer to FIG. 3 , the first power supply channel 332 of this exemplary embodiment includes a first switching element Q1 and a signal receiving unit 333 . In this exemplary embodiment, the first switch element Q1 is realized by, for example, a transistor element such as a P-type metal oxide semiconductor field effect transistor (P-MOSFET), but the invention is not limited thereto. The first switching element Q1 has a first terminal, a second terminal and a control terminal, so the first terminal, the second terminal and the control terminal of the first switching element Q1 respectively correspond to the source of the PMOS field effect transistor. pole, drain and gate. The first end of the first switch element Q1 receives the first power input P1; the second end of the first switch element Q1 is coupled to the output end OUT of the power control unit; the control end of the first switch element Q1 is coupled to the signal receiving unit 333 to receive the first control signal Ctrl1. The signal receiving unit 333 has an input terminal and an output terminal. The input end receives the first power input P1 and processes it into a first control signal Ctrl1; the output end is coupled to the control end of the first switching element Q1, and outputs the first control signal Ctrl1 to the first switching element Q1 to control it conduction state. In this example, the signal receiving unit 333 includes an inverter, so the signal receiving unit 333 inverts the first power input P1 and serves as the first control signal Ctrl1.
第二电源供应通道334包括一第二开关元件Q2。在本范例实施例中,第二开关元件Q2例如是以一P型金属氧化物半导体场效晶体管来实现,但本发明并不限于此。第二开关元件Q2具有一第一端、一第二端及一控制端,因此第二开关元件Q2的第一端、第二端及控制端分别对应P型金属氧化物半导体场效晶体管的源极、漏极及栅极。第二开关元件Q2的第一端接收第二电源输入P2;第二开关元件Q2的第二端耦接至电源控制单元的输出端OUT;控制端接收第一电源输入P1作为第二控制信号Ctrl2。The second power supply channel 334 includes a second switch element Q2. In this exemplary embodiment, the second switch element Q2 is realized by, for example, a PMOS field effect transistor, but the invention is not limited thereto. The second switching element Q2 has a first terminal, a second terminal and a control terminal, so the first terminal, the second terminal and the control terminal of the second switching element Q2 respectively correspond to the source of the PMOS field effect transistor. pole, drain and gate. The first end of the second switching element Q2 receives the second power input P2; the second end of the second switching element Q2 is coupled to the output end OUT of the power control unit; the control end receives the first power input P1 as the second control signal Ctrl2 .
在本范例实施例中,第一开关元件Q1与第二开关元件Q2是以P型金属氧化物半导体场效晶体管来实现,此种设计架构,其电压导通损失约为0.02伏特,在第一电源输入P1为3.3伏特,第二电源输入P2为1.8伏特的实施方式中,可确保第一电源供应通道332所输出的第一电源输入P1的电压值约为3.28伏特,同时确保第二电源供应通道334所输出的第二电源输入P2的电压值约为1.78伏特,符合UICC的规范标准。上述0.02伏特、3.3伏特、3.28伏特、1.8伏特以及1.78伏特等电压值仅用以例示说明,本发明并不限于此。In this exemplary embodiment, the first switching element Q1 and the second switching element Q2 are realized by P-type metal-oxide-semiconductor field effect transistors. With this design structure, the voltage conduction loss is about 0.02 volts. In the embodiment where the power input P1 is 3.3 volts and the second power input P2 is 1.8 volts, it can ensure that the voltage value of the first power input P1 output by the first power supply channel 332 is about 3.28 volts, while ensuring that the second power supply The voltage value of the second power input P2 output by the channel 334 is about 1.78 volts, which meets the standard of UICC. The aforementioned voltage values of 0.02 volts, 3.3 volts, 3.28 volts, 1.8 volts, and 1.78 volts are for illustrative purposes only, and the present invention is not limited thereto.
电压限制单元336包括一第一二极管D1以及一第二二极管D2。第一二极管D1的阳极耦接至第一电源输入P1;阴极耦接至第一开关元件Q1的第一端。第二二极管D2的阳极耦接至第二电源输入P2;阴极耦接至第二开关元件Q2的第一端。此种电路设计架构可抑制第一电源供应通道332与第二电源供应通道334所反馈的逆向电压均小于0.5伏特。在本范例实施例中,当任一方电源输入不存在时,各通道所反馈的逆向电压例如约为0.3伏特,符合UICC的规范标准。上述0.3伏特以及0.5伏特等电压值仅用以例示说明,本发明并不限于此。The voltage limiting unit 336 includes a first diode D1 and a second diode D2. An anode of the first diode D1 is coupled to the first power input P1; a cathode is coupled to the first end of the first switching element Q1. An anode of the second diode D2 is coupled to the second power input P2; a cathode is coupled to the first terminal of the second switching element Q2. This kind of circuit design structure can suppress the reverse voltage fed back by the first power supply channel 332 and the second power supply channel 334 to be less than 0.5 volts. In this exemplary embodiment, when any power input does not exist, the reverse voltage fed back by each channel is, for example, about 0.3 volts, which complies with the standard of UICC. The above-mentioned voltage values of 0.3 volts and 0.5 volts are for illustrative purposes only, and the present invention is not limited thereto.
在本范例实施例中,分压单元338具有一第一端、一第二端及一分压节点N。第一端耦接至第一电源输入P1;第二端耦接至地。分压单元338对第一电源输入P1进行分压,并经由分压节点N提供分压后的第一电源输入P1至电源控制单元的输出端OUT。本范例实施例的分压单元338是由串联耦接的第一电阻R1与第二电阻R2来实施。第一电阻R1的一端作为分压单元338的第一端,且耦接至第一电源输入P1。第一电阻R1的另一端作为分压节点N1,以提供分压后的第一电源输入P1’至电源控制单元330的输出端OUT。第二电阻R2的一端耦接至第一电阻R1的另一端,第二电阻的另一端作为分压单元338的第二端且耦接至地。分压单元338将提供分压后的第一电源输入P1’至电源控制单元330的输出端OUT,本范例实施例通过此种连动的设计方式,可避免由第二电源输入P2切换至第一电源输入P1时,造成第一电源输入P1的电压下降至1.8伏特或0伏特的错误操作。In this exemplary embodiment, the voltage dividing unit 338 has a first end, a second end and a voltage dividing node N. Referring to FIG. The first end is coupled to the first power input P1; the second end is coupled to the ground. The voltage dividing unit 338 divides the voltage of the first power input P1, and provides the divided first power input P1 to the output terminal OUT of the power control unit via the voltage dividing node N. The voltage dividing unit 338 in this exemplary embodiment is implemented by a first resistor R1 and a second resistor R2 coupled in series. One end of the first resistor R1 serves as a first end of the voltage dividing unit 338 and is coupled to the first power input P1. The other end of the first resistor R1 serves as a voltage dividing node N1 to provide the divided first power input P1' to the output terminal OUT of the power control unit 330. One end of the second resistor R2 is coupled to the other end of the first resistor R1 , and the other end of the second resistor serves as the second end of the voltage dividing unit 338 and is coupled to the ground. The voltage dividing unit 338 will provide the divided first power input P1' to the output terminal OUT of the power control unit 330. This exemplary embodiment can avoid switching from the second power input P2 to the second power input P2 through this linkage design. When a power supply is input to P1 , the voltage of the first power input P1 drops to 1.8 volts or 0 volts in an erroneous operation.
图4为本发明一实施例的存储卡的电源控制方法的步骤流程图。请同时参照图1、图2及图4,本实施例的电源控制方法至少适用于图1至图3所例示的存储卡,其包括如下步骤。在步骤S400中,至少接收第一电源输入P1。在本范例实施例中,主机系统100例如是处于正常操作模式,由存储卡读取装置110来提供第一电源输入P1至电源控制单元230,此时第一电源输入P1例如是3.3伏特。在其他范例实施例中,步骤S400也可包括接收第二电源输入P2。接着,在步骤S402中,对第一电源输入P1进行分压,并提供分压后的第一电源输入P1’至电源控制单元230的输出端OUT以及第一电源供应通道232。之后,在步骤S404中,反向分压后的第一电源输入P1’作为第一控制信号Ctrl1,以控制第一电源输入P1的供应。在此步骤中,如果电源控制单元230选择性地不配置分压单元238,则被反向者即为第一电源输入P1。继之,在步骤S406中,根据第一控制信号Ctrl1,选择提供第一电源输入P1至数据处理控制单元220内的一智能卡电路224。接着,在步骤S408中,抑制第一电源输入P1反馈至第二电源输入P2的逆向电压小于特定值。在步骤S400中,如果所接收者包括第二电源输入P2,则步骤S408还包括抑制第二电源输入P2反馈至第一电源输入P1的逆向电压小于该特定值。FIG. 4 is a flow chart of steps of a power control method for a memory card according to an embodiment of the invention. Please refer to FIG. 1 , FIG. 2 and FIG. 4 at the same time. The power control method of this embodiment is at least applicable to the memory card illustrated in FIG. 1 to FIG. 3 , and includes the following steps. In step S400, at least a first power input P1 is received. In this exemplary embodiment, the host system 100 is, for example, in a normal operation mode, and the memory card reading device 110 provides the first power input P1 to the power control unit 230 , and the first power input P1 is, for example, 3.3 volts. In other exemplary embodiments, step S400 may also include receiving a second power input P2. Next, in step S402, divide the first power input P1 and provide the divided first power input P1' to the output terminal OUT of the power control unit 230 and the first power supply channel 232. Afterwards, in step S404, the reverse-divided first power input P1' is used as the first control signal Ctrl1 to control the supply of the first power input P1. In this step, if the power control unit 230 selectively does not configure the voltage dividing unit 238 , the reversed one is the first power input P1 . Next, in step S406 , according to the first control signal Ctrl1 , select to provide the first power input P1 to a smart card circuit 224 in the data processing control unit 220 . Next, in step S408 , the reverse voltage fed back from the first power input P1 to the second power input P2 is suppressed from being less than a specific value. In step S400, if the recipient includes the second power input P2, then step S408 further includes inhibiting the reverse voltage of the second power input P2 from feeding back to the first power input P1 to be less than the specified value.
图5为本发明另一实施例的存储卡的电源控制方法的步骤流程图。请同时参照图1、图2及图5,本实施例的电源控制方法至少适用于图1至图3所例示的存储卡,其包括如下步骤。在步骤S500中,接收第二电源输入P2。在此范例实施例中,第二电源输入P2的提供是于接近近距离无线通信发送装置时,主机系统100侦测到近距离无线通信读取装置的信号而决定接收第二电源输入P2。此时,由近距离无线通信读取装置120来提供第二电源输入P2至电源控制单元230,存储卡读取装置110并不供电,或者说第一电源输入P1系处于低电平状态。接着,在步骤S502中,根据第二控制信号Ctrl2,选择提供第二电源输入P2至数据处理控制单元220内的一智能卡电路224。在此步骤中,第一电源输入P1是作为第二控制信号Ctrl2来导通第二电源供应通道234。之后,在步骤S504中,抑制第二电源输入P2反馈至第一电源输入P1的逆向电压小于特定值。FIG. 5 is a flow chart of steps of a power control method for a memory card according to another embodiment of the present invention. Please refer to FIG. 1 , FIG. 2 and FIG. 5 at the same time. The power control method of this embodiment is at least applicable to the memory card illustrated in FIG. 1 to FIG. 3 , and includes the following steps. In step S500, a second power input P2 is received. In this exemplary embodiment, the provision of the second power input P2 is that when the host system 100 detects the signal of the NFC reader device when approaching the NFC transmitter device, it decides to receive the second power input P2. At this time, the NFC reading device 120 provides the second power input P2 to the power control unit 230, and the memory card reading device 110 does not supply power, or the first power input P1 is in a low state. Next, in step S502 , according to the second control signal Ctrl2 , select to provide the second power input P2 to a smart card circuit 224 in the data processing control unit 220 . In this step, the first power input P1 is used as the second control signal Ctrl2 to turn on the second power supply channel 234 . Afterwards, in step S504, the reverse voltage fed back from the second power input P2 to the first power input P1 is suppressed from being less than a specific value.
另外,本发明的实施例的电源控制方法可以由图1至图3实施例的叙述中获致足够的教示、建议与实施说明,因此不再赘述。In addition, the power control method of the embodiment of the present invention can obtain sufficient teachings, suggestions and implementation descriptions from the description of the embodiments in FIG. 1 to FIG. 3 , so the details are not repeated here.
综上所述,在本发明的范例实施例中,存储卡具有智能卡功能,可进行近距离无线通信。并且,所提供的电源控制方法可使此存储卡在双电源任择其一供电的情况下,其内部的智能卡电路皆能正常工作。此外,利用电压限制单元的设计架构,当任一方电源输入不存在时可抑制所反馈的逆向电压小于特定值以符合设计规范。同时,通过电源输入与电源控制单元的输出端连动的设计方式,可避免电源输入切换时所造成的电压下降的错误操作。To sum up, in the exemplary embodiment of the present invention, the memory card has the function of a smart card and can perform near-field wireless communication. Moreover, the provided power supply control method can make the internal smart card circuit of the memory card work normally under the condition that one of the dual power supplies is powered. In addition, by using the design structure of the voltage limiting unit, when any power input does not exist, the feedback reverse voltage can be suppressed from being less than a specific value to meet the design specification. At the same time, through the design method of linkage between the power input and the output end of the power control unit, the wrong operation of the voltage drop caused by the switching of the power input can be avoided.
虽然本发明已以实施例公开如上,然其并非用以限定本发明,本领域技术人员在不脱离本发明的精神和范围内,当可作些许的更动与润饰,故本发明的保护范围当视所附权利要求书所界定者为准。Although the present invention has been disclosed as above with the embodiments, it is not intended to limit the present invention. Those skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention, so the protection scope of the present invention When depending on what is defined in the appended claims shall prevail.
Claims (21)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210077599.XA CN103325409B (en) | 2012-03-22 | 2012-03-22 | Memory card with smart card function, its power control method and power control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210077599.XA CN103325409B (en) | 2012-03-22 | 2012-03-22 | Memory card with smart card function, its power control method and power control circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103325409A CN103325409A (en) | 2013-09-25 |
CN103325409B true CN103325409B (en) | 2016-03-23 |
Family
ID=49194103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210077599.XA Active CN103325409B (en) | 2012-03-22 | 2012-03-22 | Memory card with smart card function, its power control method and power control circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103325409B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5490117A (en) * | 1993-03-23 | 1996-02-06 | Seiko Epson Corporation | IC card with dual level power supply interface and method for operating the IC card |
US6600352B2 (en) * | 1999-07-02 | 2003-07-29 | Fujitsu Limited | Timing signal generating circuit |
CN1595442A (en) * | 2003-09-08 | 2005-03-16 | 株式会社瑞萨科技 | Memory card |
CN1790392A (en) * | 2004-12-15 | 2006-06-21 | 株式会社东芝 | Card-shaped memory device incorporating ic card function, adapter for the same and host device |
-
2012
- 2012-03-22 CN CN201210077599.XA patent/CN103325409B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5490117A (en) * | 1993-03-23 | 1996-02-06 | Seiko Epson Corporation | IC card with dual level power supply interface and method for operating the IC card |
US6600352B2 (en) * | 1999-07-02 | 2003-07-29 | Fujitsu Limited | Timing signal generating circuit |
CN1595442A (en) * | 2003-09-08 | 2005-03-16 | 株式会社瑞萨科技 | Memory card |
CN1790392A (en) * | 2004-12-15 | 2006-06-21 | 株式会社东芝 | Card-shaped memory device incorporating ic card function, adapter for the same and host device |
Also Published As
Publication number | Publication date |
---|---|
CN103325409A (en) | 2013-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI459188B (en) | Memory card with smart card function and power control method and power control circuit thereof | |
US10002246B2 (en) | Hardware isolated secure processing system within a secure element | |
US20100181377A1 (en) | Card reader with near field communication function and near field communication device thereof | |
US7757958B2 (en) | Card-shaped memory device incorporating IC card function, adapter for the same and host device | |
US9198037B2 (en) | Identification processing apparatus and mobile device using the same | |
KR20080018866A (en) | Smart card power management system | |
US10032105B2 (en) | IC card, portable terminal, and portable electronic apparatus | |
US8560751B2 (en) | Memory card, memory card reader and memory card system | |
US7913307B2 (en) | Semiconductor integrated circuit and information processing apparatus | |
US9219519B2 (en) | Proximity wireless transmission/reception device | |
MX2012014154A (en) | Bank card with display screen. | |
CN103325409B (en) | Memory card with smart card function, its power control method and power control circuit | |
US8856712B2 (en) | Optimized flip-flop device with standard and high threshold voltage MOS devices | |
JP2018116479A (en) | IC card | |
US20070073938A1 (en) | Semiconductor for performing direct memory access without FIFO and method for processing data thereof | |
US9094053B2 (en) | Electronic device comprising elements managed by different standardised protocols and method for managing communication between those elements | |
CN103325408A (en) | Intelligent power adjustment method and device | |
CN203386237U (en) | System for sending express-delivery notification short messages | |
KR20070007424A (en) | Secure data storage with memory card interface | |
JP2016057804A (en) | Portable electronic device, ic module and terminal | |
KR20070018228A (en) | Controller, Integrated circuit card having the controller, and Data processing method of the integrated circuit card |
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 |