The present invention relates to a set/reset circuit used in a magnetic sensing device, and more particularly to a set/reset circuit having one capacitor only which is able to supply electrical power to operate the set/reset circuit and stabilize the related power supply voltage. The present invention is also related to a magnetic sensing device utilizing the abovementioned set/reset circuit.
In recent years, magnetic sensing devices have been widely used in magnetic compass, rotary position sensing, current sensing, directional drilling, liner position measurement, yaw rate sensor and head trajectory tracking in virtual reality. Generally, a magnetic sensing device mainly includes a magnetoresistive sensor and a set/reset circuit. When an external magnetic field is applied to the magnetic sensing device, the resistance of the magnetoresistive material constituting the magnetic sensing device will change, so a user can determine the intensity of the external magnetic field according to the voltage change of the magnetoresistive material. The set/reset circuit is used to reset the align direction of the magnetic moment of the magnetoresistive material, so that the magnetic sensing device can measure the external magnetic field correctly. Under a normal circumstance, the direction of the magnetic moment of the magnetoresistive material after being reset and the direction of the magnetic moment of the magnetoresistive material after being set have a 180 degree difference.
In a conventional design, the set/reset circuit is provided with a plurality of capacitors for having a normal operation, and at least one of the capacitors is also used to stabilize the power supply voltage. However, these capacitors may cause that the set/reset circuit therefore has a relatively large circuit area and consequentially the magnetic sensing device has a relatively large circuit area. Thus, it is quite important to develop a set/reset circuit as well as a magnetic sensing device having reduced size.
Therefore, one object of the present invention is to provide a set/reset circuit which can be operated by utilizing one capacitor only, wherein the capacitor is also used to stabilize the related power supply voltage.
Another object of the present invention is to provide a magnetic sensing device utilizing the abovementioned set/reset circuit.
The present invention provides a set/reset circuit used with a magnetoresistive sensor. The set/reset circuit includes a coil, a first switch unit, a second switch unit, a third switch unit, a fourth switch unit, a capacitor and a control unit. The coil has a first end and a second end. The first switch unit is electrically coupled between a power supply voltage and the first end of the coil and has a variable resistance. The second switch unit is electrically coupled between the power supply voltage and the second end of the coil and has a variable resistance. The third switch unit is electrically coupled between the second end of the coil and a reference voltage and has a variable resistance. The fourth switch unit is electrically coupled between the first end of the coil and the reference voltage and has a variable resistance. The capacitor has a first end and a second end. The first end of the capacitor is electrically coupled to the power supply voltage, the first switch unit and the second switch unit, and the second end of the capacitor is electrically coupled to the reference voltage. The control unit is electrically coupled to the first, the second, the third and the fourth switch units and configured to receive a first pulse width modulation signal and a second pulse width modulation signal.
The present invention further provides a magnetic sensing device, which includes the abovementioned set/reset circuit and a magnetoresistive sensor.
In summary, the set/reset circuit of the present invention utilizes N switch units to provide respective electrical paths with variable resistances and uses the control unit to turn on or turn off the N switch units, thereby changing the flowing direction of the current in the coil and resetting the direction of the magnetic moment of the magnetoresistive sensor in the magnetic sensing device. Additionally, the control unit is further used to control the resistances of the electrical paths of the N switch units so as to modulate the value of the current flowing in the coil. Therefore, by utilizing one capacitor only, the set/reset circuit can be operated and the power supply voltage is stabilized. Because all of the abovementioned switch units can be implemented with transistors which have component sizes much smaller than the capacitors and the control unit has a smaller circuit area due to that the operation of the switch units is less complicated, the entire circuit area of the set/reset circuit is efficiently reduced. Consequentially, the magnetic sensing device utilizing the set/reset circuit has a reduced circuit size.
The above embodiments will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
The disclosure will now be described more specifically with reference to the following embodiments. It is to be noted that the following descriptions of preferred embodiments are presented herein for purpose of illustration and description only. It is not intended to be exhaustive or to be limited to the precise form disclosed.
As shown in
The control unit 27 is electrically coupled to the switch units 21˜24. The control unit 27 is configured to control the switch unit 21 and the switch unit 23 to provide the first electrical path and the third electrical path according to a pulse width modulation signal PWM1, respectively, and control the switch unit 22 and the switch unit 24 to provide the second electrical path and the fourth electrical path according to a pulse width modulation signal PWM2. In the present embodiment, the pulse enable period of the pulse width modulation signal PWM1 (i.e., the period of the pulse width modulation signal PWM1 having a high voltage level) and the pulse enable period of the pulse width modulation signal PWM2 (i.e., the period of the pulse width modulation signal PWM2 having a high voltage level) do not overlap. Specifically, when the control unit 27 controls the switch unit 21 and the switch unit 23 to provide the first electrical path and the third electrical path, respectively, the current from the power supply voltage VCC and the capacitor 25 flows to the reference voltage VSS sequentially through the first electrical path, the coil 26 and the third electrical path. Meanwhile, the magnetic field, generated by the coil 26 being supplied with electrical power, can be used to reset the direction of the magnetic moment of the magnetoresistive material of the magnetoresistive sensor 1. In the present embodiment, the aforementioned operation is referred to as either a set operation or a reset operation.
Similarly, when the control unit 27 controls the switch unit 22 and the switch unit 24 to provide the second electrical path and the fourth electrical path, respectively, the current from the power supply voltage VCC and the capacitor 25 flows to the reference voltage VSS sequentially through the second electrical path, the coil 26 and the fourth electrical path. Meanwhile, the magnetic field, generated by the coil 26 being supplied with electrical power, can also be used to reset the direction of the magnetic moment of the magnetoresistive material of the magnetoresistive sensor 1. In the present embodiment, the aforementioned operation is referred to as either a set operation or a reset operation. It is to be noted that the direction of the magnetic moment of the magnetoresistive material of the magnetoresistive sensor 1 generated by the first electrical path and the third electrical path and the direction of the magnetic moment of the magnetoresistive material of the magnetoresistive sensor 1 generated by the second electrical path and the fourth electrical path have (or substantially have) 180 degree difference.
In addition, the control unit 27 is further configured to determine the value of the power supply voltage VCC. Specifically, the control unit 27 controls the switch units 21˜24 to provide variable resistances increased with increasing value of the power supply voltage VCC. Thus, through the aforementioned control mechanism of the set operation or the reset operation by the control unit using the switch units 21˜24 the amount of the charges drawn from the power supply voltage VCC and the capacitor 25 is limited while the set/reset circuit 2 performs the set operation or the reset operation. As a result, the issue of drawing charges more than the capacitor 25 can provide is avoided, and consequentially the voltage stabilizing ability of the capacitor 25 and the voltage level of the power supply voltage VCC are maintained. It is to be noted that once the voltage level of the power supply voltage VCC is pulled down, the operations of the electronic components or devices (for example, I/O, microcontroller, memory, or other control elements) sharing the power supply voltage VCC with the set/reset circuit 2 may be greatly affected.
In the present embodiment, each one of the switch units 21˜24 includes N transistors, where N is a positive integer and N is for example four in the present illustrated embodiment. Each one of the N transistors in the switch unit 21 has a gate 210, a first source/drain 211 and a second source/drain 212. The four transistors in the switch unit 21 are configured to have their first sources/drains 211 electrically coupled to the power supply voltage VCC, their second sources/drains 212 electrically coupled to the first end 261 of the coil 26, and their gates 210 electrically coupled to the control unit 27 and from which to receive the control signals a(1)˜a(4), respectively. In the present embodiment, the four transistors in the switch unit 21 are controlled to be turned-on or turned-off according to the control signals a(1)˜a(4), respectively. Each one of the N transistors in the switch unit 22 has a gate 220, a first source/drain 221 and a second source/drain 222. The four transistors in the switch unit 22 are configured to have their first sources/drains 221 electrically coupled to the power supply voltage VCC, their second sources/drains 222 electrically coupled to the second end 262 of the coil 26, and their gates 220 electrically coupled to the control unit 27 and from which to receive the control signals b(1)˜b(4), respectively. In the present embodiment, the four transistors in the switch unit 22 are controlled to be turned-on or turned-off according to the control signals b(1)˜b(4), respectively.
Each one of the N transistors in the switch unit 23 has a gate 230, a first source/drain 231 and a second source/drain 232. The four transistors in the switch unit 23 are configured to have their first sources/drains 231 electrically coupled to the second end 262 of the coil 26, their second sources/drains 232 electrically coupled to the reference voltage VSS, and their gates 230 electrically coupled to the control unit 27 and from which to receive the control signals a′(1)˜a′(4), respectively. In the present embodiment, the four transistors in the switch unit 23 are controlled to be turned-on or turned-off according to the control signals a′(1)˜a′(4), respectively. Each one of the N transistors in the switch unit 24 has a gate 240, a first source/drain 241 and a second source/drain 242. The four transistors in the switch unit 24 are configured to have their first sources/drains 241 electrically coupled to the first end 261 of the coil 26, their second sources/drains 242 electrically coupled to the reference voltage VSS, and their gates 240 electrically coupled to the control unit 27 and from which to receive the control signals b′(1)˜b′(4), respectively. In the present embodiment, the four transistors in the switch unit 24 are controlled to be turned-on or turned-off according to the control signals b′(1)˜b′(4), respectively.
In the present embodiment, each transistor in the switch units 21 and 22 is implemented with a P-type transistor and each transistor in the switch units 23 and 24 is implemented with an N-type transistor; however, the present invention is not limited thereto.
The NAND gate group 271 includes N (in the present embodiment, N=4) NAND gates 273. The four NAND gates 273 in the NAND gate group 271 are configured to have their first input ends for receiving the pulse width modulation signal PWM1, their second input ends for receiving the four output signals of the voltage determining unit 270 respectively, and their output ends for outputting the control signals a(1)˜a(4) respectively. The NOT gate group 272 includes N (in the present embodiment, N=4) NOT gates 274. The four NOT gates 274 in the NOT gate group 272 are configured to have their input ends electrically coupled to the output ends of the four NAND gates 273 in the NAND gate group 271 and the gates 210 of the four transistors in the switch unit 21 respectively, and their output ends for outputting the control signals a′(1)˜a′(4) and electrically coupled to the gates 230 of the four transistors in the switch unit 23 respectively.
The NAND gate group 281 includes N (in the present embodiment, N=4) NAND gates 283. The four NAND gates 283 in the NAND gate group 281 are configured to have their first input ends for receiving the pulse width modulation signal PWM2, their second input ends for receiving the four output signals of the voltage determining unit 270 respectively, and their output ends for outputting the control signals b(1)˜b(4) respectively. The NOT gate group 282 includes N (in the present embodiment, N=4) NOT gates 284. The four NOT gates 284 in the NOT gate group 282 are configured to have their input ends electrically coupled to the output ends of the four NAND gates 283 in the NAND gate group 281 and the gates 220 of the four transistors in the switch unit 22 respectively, and their output ends for outputting the control signals b′(1)˜b′(4) and electrically coupled to the gates 240 of the four transistors in the switch unit 24 respectively.
Please refer back to
In addition, as shown in
It is understood that the all the transistors in the switch unit 21 may be implemented with N-type transistors and all the transistors in the switch unit 23 may be implemented with P-type transistors if the control signals supplied to the transistors in the switch units 21 and 23 are properly modulated. Based on the same manner, all the transistors in the switch unit 22 may be implemented with N-type transistors and all the transistors in the switch unit 24 may be implemented with P-type transistors if the control signals supplied to the transistors in the switch units 22 and 24 are properly modulated.
In addition, it is to be noted that the NOT gate groups 272, 282 in the control unit 27 of
Alternatively, it is to be noted that the control unit 27 in
Please refer to
In one embodiment, the resistive elements 250 may have the same resistance and the number of the transistors in each one of the switch units 21˜24 and turned on by the control unit 27 decreases with increasing value of the power supply voltage VCC. Thus, the electrical path formed by the resistive element 250 corresponding to the turned-on transistors in each one of the switch units 21˜24 has an increased resistance; and consequentially, the current flowing into the set/reset circuit 2 from the power supply voltage VCC and the capacitor 25 is reduced. In another embodiment, the resistive elements 250 in each one of the switch units 21˜24 may have different resistances. Thus, the control unit 27 may select the transistor connected to the resistive element 250 having the maximum resistance to be turned on in each one of the switch units 21˜24 when the power supply voltage VCC has an increased value. As a result, the current flowing into the set/reset circuit 2 from the power supply voltage VCC and the capacitor 25 is reduced.
In summary, the set/reset circuit of the present invention utilizes a plurality of switch units to provide respective electrical paths with variable resistances and uses the control unit to turn on or turn off the plurality of switch units, thereby changing the flowing direction of the current in the coil and resetting the direction of the magnetic moment of the magnetoresistive sensor in the magnetic sensing device. Additionally, the control unit is further used to control the resistances of the electrical paths of the N switch units so as to modulate the value of the current flowing in the coil. Therefore, by utilizing one capacitor only, the set/reset circuit can be operated and the power supply voltage is stabilized. Because all of the abovementioned switch units can be implemented with transistors which have component sizes much smaller than the capacitors and the control unit has a smaller circuit area due to that the operation of the switch units is less complicated, the entire area of the set/reset circuit is efficiently reduced. Consequentially, the magnetic sensing device utilizing the set/reset circuit has a reduced circuit size.
While the disclosure has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the disclosure needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
103136369 | Oct 2014 | TW | national |