This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2007-333304, filed Dec. 25, 2007, the entire contents of which are incorporated herein by reference.
1. Field
One embodiment of the present invention relates to a device detection process applicable to a computer including an expansion unit, or drive bay, capable of accommodating a specific device, such as a hard disk drive (HDD) or optical disc drive (ODD), selected from a choice of hardware.
2. Description of the Related Art
In recent years, portable, battery-powered notebook computers have become very popular. The latest machines include such features as a wireless communication function or a television receiver function, allowing users to do such things as browsing the Web, sending and receiving e-mail, and watching TV while away from home or the office or while on the road.
Since, in the interests of portability, the size of a notebook computer must be restricted, the addition of extra hardware is often made possible by providing an expansion unit called a drive bay. By means of this drive bay, a user who wishes, say, to add more secondary storage can mount a second HDD, while a user who needs to use CDs or DVDs can mount a ODD. In this way, through the provision of an expansion unit capable of accommodating a specific device selected from a choice of hardware, the computer can be flexibly adapted to the needs of the user without becoming bulky.
Thus, various methods have been proposed for determining which of a selection of devices a user has mounted in the drive bay (refer, for example, to Jpn. Pat. Appln. KOKAI Publication No. 6-64278).
However, the methods proposed so far, in Jpn. Pat. Appln. KOKAI Publication No. 6-64278 and subsequent publications, require the use of circuitry such as multiple signal lines and analog-to-digital converters, making them expensive to implement.
A general architecture that implements the various feature of the invention will now be described with reference to the drawings. The drawings and the associated descriptions are provided to illustrate embodiments of the invention and not to limit the scope of the invention.
Various embodiments according to the invention will be described hereinafter with reference to the accompanying drawings. In general, according to one embodiment of the invention, an information processing apparatus includes a device connection detection module which monitors a potential of the signal line by disabling the function of a second pull-up resistor by means of a switch circuit and detects that the first or second device has been connected if the potential becomes no higher than a first threshold. The apparatus further includes a device determination module which assesses the potential of the signal line by enabling the function of the second pull-up resistor by means of the switch circuit, and determines, if the potential exceeds a second threshold that is higher than the first threshold, that the first device has been connected, or, if the potential is no higher than the first threshold, that the second device (5b) has been connected.
As can be seen from
The first embodiment requires that the resistances of first and second pull-up resistors 14 and 15 of the computer 1 and the pull-down resistor 51 of the DVDD 5a be such that the following two criteria are met:
(a) The resistances of the first pull-up resistor 14 of the computer 1 and the pull-down resistor 51 of the DVDD 5a are such that, on connection of the DVDD 5a, the potential of signal line “A” 12a does not exceed the maximum magnitude of potential VIL (potential recognized as logical low) of a controller 11.
(b) The resistance of the second pull-up resistor 15 of the computer 1 is such that the potential of signal line “A” 12a is no lower than potential VIH (potential recognized as logical high) when, on connection of the DVDD 5a, a switch 13 is closed. (The potential of signal line “A” is defined by the potential divider formed by the first and second pull-up resistors 14, 15 of the computer 1 and the pull-down resistor 51 of the DVDD 5a).
The process of device detection begins at time x1 of
When, at time x2 (block A2), the DVDD 5a or the HDD 5b is connected to the connector 16, signal line “A” 12a goes low (device present) and the controller 11 is able to detect that an unidentified device has been mounted.
At time x3 (block A3), the controller 11 drives signal line “B” 12b to close the switch 13, then, at time x4 (block A4), ascertains the state of signal line “A” 12a.
If signal line “A” 12a is high, the controller 11 recognizes that the DVDD 5a has been mounted (time x5, block A5); if signal line “A” 12a is low, the controller 11 recognizes that the HDD 5b has been mounted 16 (time x6, block A6).
When, at time x7 (block A7), determination of the device has been completed, the controller 11 drives signal line “B” 12b to open the switch 13, making signal line “A” 12a low (time x8, block A8).
If, subsequently, the device is disconnected from the connector 16, signal line “A” 12a goes high and the controller 11 is able to detect that the device has been removed.
In this way, according to the configuration of the first embodiment, a single signal line “A” realizes detection of the mounting of a device, determination of the type of device, and detection of the removal of the device.
In this case, although the potential of signal line “A” 12a rises because of the pull-down resistor 51 of the DVDD 5a, the current of the constant-current source 17 is set so that the potential does not fall below a minimum magnitude of VIH (potential recognized as logical high) and does not exceed the maximum rated potential of the controller 11. Thereby, the device detection process may be carried out in the same way as in the first embodiment.
The third embodiment requires that the resistance of first and second resistors 18, 20 of the computer 1, the pull-down resistor 51 of the DVDD 5a, and the pull-up resistor 52 of the HDD 5b be such that the following four criteria are met:
(a) The resistance of the first resistor 18 of the computer 1 exceeds the greater of the resistance of the pull-down resistor 51 of the DVDD 5a and that of the pull-up resistor 52 of the HDD 5b.
(b) The potential of signal line “A” 12a does not exceed the maximum magnitude of VIL (potential recognized as logical low) of the controller 11 when, on connection of the DVDD 5a, signal line “B” 12b goes high and causes the first resistor 18 of the computer 1 to act as a pull-up resistor.
That is, the resistances satisfy the following condition:
Potential VCC−A×Resistance of pull-down resistor 51 of DVDD 5a/(Resistance of pull-down resistor 51 of DVDD 5a+Resistance of first resistor 18 of computer 1)<VIL (1)
(c) The potential of signal line “B” 12b does not exceed the maximum magnitude of VIL (potential recognized as logical low) of the controller 11 when, on connection of the HDD 5b, the power switch 19 being open so that potential VCC−B is not applied, signal line “B” 12b goes high and causes the first resistor 18 of the computer 1 to act as a pull-up resistor.
That is, the resistances satisfy the following condition:
Potential VCC−A×(Resistance of pull-up resistor 52 of HDD 5b+Resistance of second resistor 20 of computer 1)/(Resistance of pull-up resistor 52 of HDD 5b+Resistance of first resistor 18 of computer 1+Resistance of second resistor 20 of computer 1)<VIL (max) (2)
(d) The potential of signal line “B” 12b does not exceed the minimum magnitude of VIH (potential recognized as logical high) of the controller 11 when, on connection of the HDD 5b, the power switch 19 being closed so that potential VCC−B is applied, signal line “B” 12b goes low and causes the first resistor 18 of computer 1 to act as a pull-down resistor.
That is, the resistances satisfy the following condition:
Potential VCC−B×Resistance of first resistor 18 of computer 1/(Resistance of pull-up resistor 52 of HDD 5b+Resistance of first resistor 18 of computer 1)>VIH (min) (3)
The process of device detection begins at time y1 of
When, at time y2 (block B2), the DVDD 5a or the HDD 5b is connected to the connector 16, signal line “A” 12a goes low (device present) and the controller 11 is able to detect that an unidentified device has been mounted. (Even in the case of the HDD 5b, although the DP pin is connected to the pull-up resistor 52, since the power switch 19 is open, potential VCC−B is not applied to the pull-up resistor 52, which therefore acts as a pull-down resistor, making signal line “A” 12a low).
At time y3 (block B3), the controller 11 drives signal line “C” 12c to close the power switch 19 and apply potential VCC−B, then, at time y4 (block B4), ascertains the state of signal line “A” 12a.
If signal line “A” 12a is low, the controller 11 recognizes that the DVDD 5a has been mounted (time y5, block B5). Conversely, if signal line “A” 12a is high, the controller 11 recognizes that the HDD 5b has been mounted (time y6, block B6).
At time y7 (block B7), the controller 11 makes signal line “B” 12b low, and the state of signal line “A” remains unchanged (low for the DVDD 5a, high for the HDD 5b).
If, subsequently, the device is disconnected from the connector, signal line “A” 12a goes high for the DVDD 5a and low for the HDD 5b, and the controller 11 is able to detect that the device has been removed. (In the case of the HDD 5b, if the controller 11 had not made signal line “B” 12b low at time y7 [block B7], signal line “A” 12a would have stayed high when the HDD 5b was removed, making detection of removal impossible).
After recognizing the removal of the device, the controller 11 immediately makes signal line “B” 12b high again in preparation for any subsequent mounting of a device.
In this way, according to the configuration of the third embodiment, a single signal line “A” realizes detection of the mounting of a device, determination of the type of device, and detection of the removal of the device.
While certain embodiments of the inventions have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2007-333304 | Dec 2007 | JP | national |