1. Field of the Invention
This invention relates to an application of a PCMCIA socket, in particular, to a method and a system for supplying electric power by the PCMCIA socket.
2. Description of the Related Art
The standard of the PCMCIA (Personal Computer Memory Card Interface Association) card (or PC card for short) was established in June of 1998 by the Association, which has become a standard of an expanded PC peripheral to promote interchangeability among laptops computer. Due to the limited size host of a laptop computer, a user has to frequently connect the laptop to various peripherals for expanding functions of the laptop computer. Therefore, the PC card has become the best useful interface for connecting the laptop computer to PC peripherals.
Nowadays, the most crucial functions of PC card have evolved continuously as a modem card or a LAN card for the laptop computer, to allow the user being free from carrying heavy peripheral devices with the laptop computer. It is rather convenient for the user to exchange PC cards without restarting the laptop computer, so as to make use of the functions of the PC card to achieve the objective of working in a mobile office.
Generally, a standard PCMCIA card (including modem card, LAN card, memory card, HDD card, etc.) comprises a PCMCIA interface IC therein. Meanwhile, almost each laptop computer has equipped with a PCMCIA interface socket, which connects to a PCMCIA controller inside of the laptop computer. Therefore, if the standard PCMCIA card is inserted into and connected to the standard PCMCIA interface socket, the PCMCIA interface IC is able to provide data for the PCMCIA controller, thereby enabling the PCMCIA controller to identify the connected PCMCIA card, in addition, enabling the host of the laptop computer to supply electric power to the connected PCMCIA card and to retrieve data.
In other words, if the user wants to utilize electric power of the PCMCIA interface socket, the user must insert the PCMCIA card with the PCMCIA interface IC based on the foundation of prior technology. If the user inserts a device having the same appearance and shape of the PCMCIA card and having same pins' location but having no PCMCIA interface IC, the host of the laptop computer is unable to supply electric power to the device without the PCMCIA interface IC, so it may relatively decrease the utilization of the PCMCIA interface socket.
For example, Taiwan Patent Application NO. 92200894, entitled “Wireless remote control stored in a PCMCIA socket of a notebook computer”, has disclosed that the PCMCIA socket may have another function for storing. Nevertheless, the notebook computer still can't have connection electrically to the wireless remote control, not even to mention for charging the wireless remote control. Hence, the wireless remote control is still required a battery to provide electric power for the use of the wireless remote control, it will reduce the convenience of utilization of the wireless remote control.
Moreover, the PCMCIA socket may have additional expandability. For example, the applicant of this invention also filed another Taiwan Patent Application NO. 93221124, entitled “Wireless Handset for VoIP”, which has disclosed the PCMCIA socket may be used to connect with the wireless handset for VoIP. It is to be understood that it would be more convenient to have electric power through the PCMCIA socket supplied by the notebook computer.
In view of the foregoing drawbacks, this invention is described herein to provide a method and a system for supplying electric power by a PCMCIA socket. It can switch on the PCMCIA socket for electric power that is controlled by a PCMCIA controller of a computer for supplying electric power.
First, the system provided by this invention enables the PCMCIA socket to supply electric power. The system comprises the PCMCIA socket, the PCMCIA controller, a memory, and a processor, wherein the PCMCIA controller electronically connects to the PCMCIA socket and the processor, respectively, and the memory electronically connects to the processor. When a specific device is inserted into the PCMCIA socket, the processor according to the present invention then implement a computer program stored in the memory to access bits data in an ExCA (Exchangeable Card Architecture) Interface Status Register, a CardBus Socket Present-State Register, and/or an ExCA Power Control Register of the PCMCIA controller, so as to achieve the objective of supplying electric power to the specific device by way of the PCMCIA socket.
Subsequently, the method provided by the present invention for supplying electric power by the PCMCIA socket comprises:
determining whether the PCMCIA socket electronically connects to the specific device;
determining whether the specific device comprises the PCMCIA interface IC when the PCMCIA socket electronically connects to the specific device; and
switching on the PCMCIA socket for electric power through the PCMCIA controller to supply electric power to the specific device by the PCMCIA socket when the specific device does not comprise the PCMCIA interface IC therein.
One embodiment of the present invention discloses that the ExCA Interface Status Register comprises a bit 2 and a bit 3; meanwhile, the step of determining whether the PCMCIA socket electronically connects to the specific device further comprises: determining whether the bit 2 and the bit 3 of the ExCA Interface Status Register are both “1”; if YES, determining whether the PCMCIA socket is switched on for electric power; and if the PCMCIA socket is not switched on for electric power, the determination is that the specific device is electronically connected to the PCMCIA socket.
Another embodiment of the present invention discloses that the ExCA Interface Status Register further comprises a bit 6, thereby the step of determining whether the PCMCIA socket is switched on for electric power can be determined by whether a value of the bit 6 is “0”; if the bit 6 is “0”, it presumes that the PCMCIA socket is not switched on for electric power thereof.
Another embodiment of the present invention discloses the step of determining whether the specific device comprises a PCMCIA interface IC that can be determined by determining if there is a child device under the PCMCIA controller; if there is no child device under the child device, it represents that the specific device is not a standar PCMCIA device, thereby the specific device is determined not comprising the PCMCIA interface IC.
Another embodiment of the invention shows that the CardBus Socket Present-State Register comprises a bit 4, a bit 5, a bit 10, and a bit 11, in addition, the ExCA Power Control Register comprises a bit 4 and a bit 3. The step of switching on the PCMCIA socket for electric power through the PCMCIA controller to supply electric power further comprises the following steps of: determining if values of the bit 4 and the bit 10 of the CardBus Socket Present-State Register are both “1”; if YES, setting values of the bit 4 and the bit 3 of the ExCA Power Control Register to be “1” and “0”, respectively, for switching on the PCMCIA socket for 5.0V electric power.
Alternatively, another embodiment of the invention shows that the step of switching on the PCMCIA socket for electric power by the PCMCIA controller further comprises the following steps of: determining if values of the bit 5 and the bit 11 of the CardBus Socket Present-State Register are both “1”; if YES, setting the bit 4 and the bit 3 of the ExCA Power Control Register to be both “1”, for switching on the PCMCIA socket for 3.3V electric power.
The following descriptions of the preferred embodiments are provided to help understand the features and structure of the present invention.
First, the present invention provides a system of supplying electric power by a PCMCIA socket.
As shown in
As shown in
Subsequently, the invention provides a method of supplying electric power by the PCMCIA socket 56, which can be applied to the system of
First, in the flowchart of
Subsequently, the flowchart of the
If the PCMCIA socket 56 does not electronically connect to the specific device 100, ended the flowchart. On the contrary, if the PCMCIA socket 56 electronically connects to the specific device 100, the flowchart of
If the specific device 100 comprises the PCMCIA interface IC, ended the flowchart of
It can be found from the steps S11 to S14 that the invention enables the computer 5 to supply electric power to the specific device 100 (such as the PCMCIA device without the PCMCIA interface IC) by the PCMCIA socket 56, as shown in
The step S12 is further described as follows, with reference to
As shown in
First, the flowchart of
The flowchart of
If the PCMCIA socket 56 electronically connects to the standard PCMCIA device (such as the PCMCIA device having the PCMCIA interface IC), the PCMCIA socket 56 is switched on automatically, and the value of the bit 6 of the ExCA Interface Status Register 551 is “1”. Therefore, when the PCMCIA socket 56 electronically connects to the external PCMCIA device as long as the PCMCIA socket 56 is not switched on for electric power, the PCMCIA socket 56 electronically connects to the specific device 100 of the invention (i.e. the external PCMCIA device is the specific device 100 without the PCMCIA interface IC).
As shown in
Alternatively, in another embodiment of the present invention, if the determination of the step S121 or the step S122 is “NO”, as shown in
In one preferred embodiment of the invention, the determination of the step S13 can be made by determining if there is any child device under the PCMCIA controller 55. If there is any child under the PCMCIA controller 55, subsequently, there will have signal connection between the PCMCIA controller 55 and the standard PCMCIA device in the PCMCIA socket 56 through the connection L; if so, it shows that the PCMCIA device in the PCMCIA socket 56 is the standard PCMCIA device with the standard PCMCIA interface IC. In other words, if there is no child device under the PCMCIA controller 55, there will be no signal connection to connect with the child device through the connection L. Under this situation (no child device), therefore, the non-standard PCMCIA device (such as the specific device 100) inserted into the PCMCIA socket 56 is not the standard PCMCIA device, i.e. without comprising the PCMCIA interface IC.
With reference to
As shown in
As shown in
With reference to
If the determination of the step S141 is “NO”, the flowchart goes to the step S143 for determining whether the values of the bit 5 and the bit 11 of the CardBus Socket Present-State Register 552 are both “1” (bit 5=1 and bit 11=1). If the determination is “YES”, it means that the specific device 100 inserted into the PCMCIA socket 56 is a 32-bit CardBus device with an operation voltage of 3.3V. Next, the flowchart goes to the step S144, which is setting the values of the bit 4 and the bit 3 of the ExCA electric Power Control Register 553 as “1” (bit 4=1 and bit 3=1) to switch on the PCMCIA socket 56 for 3.3V electric power. If the determination of the step S143 is “NO”, the flowchart of
Alternatively, with reference to
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
Number | Date | Country | Kind |
---|---|---|---|
0942115949 | May 2005 | TW | national |