Power management system for pressure monitoring
10416035 ยท 2019-09-17
Assignee
Inventors
- Jorge Rubinstein (Newton, MA, US)
- Robert M. Manning (Weymouth, MA, US)
- John J. McSheffrey (Hingham, MA, US)
Cpc classification
F17C2223/0123
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
A61M16/1005
HUMAN NECESSITIES
F17C1/00
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
H03K17/6871
ELECTRICITY
F17C2223/035
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F17C2250/043
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F17C2270/025
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F17C2250/077
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F17C2265/04
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
H02H11/002
ELECTRICITY
F17C13/025
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
G01L7/04
PHYSICS
F17C2221/011
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F17C2250/0491
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F17C2250/036
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
International classification
G01L19/00
PHYSICS
F17C13/02
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
H03K17/10
ELECTRICITY
F17C1/00
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
A61M16/00
HUMAN NECESSITIES
G01L7/04
PHYSICS
Abstract
A power management system and method including a normally-open switch, an on/off circuit, a microprocessor, and at least one sensor to monitor a condition. The on/off circuit includes an on/off control gate-controlled switch device such as a PMOS device for system power, a flip/flop switch to respectively activate and deactivate the on/off control PMOS device, and a transition detection circuit connected to the normally-open switch. A single DC power source establishes a source voltage to power the on/off circuit and the normally-open switch. The transition detection circuit generates an on signal when the user initially activates the normally-open switch, and supplies the on signal to the flip/flop switch to change it to an on state to activate the on/off control PMOS device. While activated, the on/off control PMOS device enables system power from the power source to be provided to at least the sensor and the microprocessor. The microprocessor generates an off signal when the normally-open switch is activated for at least a selected period of time, and supplies the off signal to the flip/flop switch to change it to an off state to deactivate the on/off control PMOS device and thereby disable system power to at least the sensor and the microprocessor.
Claims
1. A power management system for use with a single DC power source having inversion protection, the system comprising: a normally-open switch that can be activated by a user; an on/off circuit including an on/off control gate-controlled switching device for system power, a flip/flop switch having an on state and an off state to respectively activate and deactivate the on/off control gate-controlled switching device, and a transition detection circuit connected to the normally-open switch; a microprocessor; and at least one sensor to monitor a condition; wherein the microprocessor receives inputs from at least the normally-open switch and the sensor; wherein, when connected to the power source with inversion protection, a source voltage is established to power the on/off circuit and the normally-open switch; wherein the transition detection circuit (1) generates an on signal when the user initially activates the normally-open switch and (2) supplies the on signal to the flip/flop switch to change the flip/flop switch to the on state to activate the on/off control gate-controlled switching device which, while activated, enables system power from the power source to be provided to at least the sensor and the microprocessor; and wherein the microprocessor (1) generates an off signal when the normally-open switch is activated for at least a selected period of time and (2) supplies the off signal to the flip/flop switch to change it to the off state to deactivate the on/off control gate-controlled switching device and thereby disable system power to at least the sensor and the microprocessor.
2. The system of claim 1 further including the inversion protection circuit with a second gate-controlled switching device to accomplish inversion protection.
3. The system of claim 2 wherein the on/off control gate-controlled switching device is a PMOS device and the inversion protection circuit gate-controlled switching device is a second PMOS device that is electrically separate from the on/off control PMOS device.
4. The system of claim 3 wherein each PMOS device is configured as a three-terminal device, each with a source terminal, a drain terminal, and a gate terminal, and each PMOS device includes a parasitic internal diode located between the source and drain terminals of that device.
5. The system of claim 4 wherein the inversion protection PMOS device has its drain terminal connectable to a first terminal of the power source having a first polarity, its gate terminal is connectable to a second terminal of the power source having a second polarity, and its source terminal powers the on/off control PMOS device, the flip-flop switch and the transition detection circuit.
6. The system of claim 5 wherein the on/off control PMOS device has its source terminal connected to the source terminal of the inversion protection PMOS device, its gate terminal connected to the flip-flop switch output, and its drain terminal powers at least the sensor and the microprocessor.
7. The system of claim 6 wherein the parasitic internal diode of the inversion protection PMOS device creates an open circuit if the battery polarity is inverted.
8. The system of claim 7 wherein the parasitic internal diode of the on/off control PMOS device creates an open circuit if the flip-flop switch output applies a positive voltage on the gate terminal of the on/off control PMOS device that forces the on/off control PMOS to turn off, effectively shutting off power at least to the sensor and microprocessor.
9. The system of claim 6 wherein the parasitic internal diode of the on/off control PMOS is biased toward its source terminal.
10. The system of claim 3 wherein the inversion protection PMOS device and the on/off control PMOS device are formed on a single integrated circuit package as electrically separate devices.
11. The system of claim 2 wherein the flip/flop switch and the transition detection circuit utilize different portions of a quad-NOR device.
12. The system of claim 2 wherein the normally-open switch includes a push-button switch that, when pressed, sends a switch signal to the transition detection circuit and the microprocessor.
13. The system of claim 2 further including a user notification device that is activated by the microprocessor to inform the user when the sensor detects a change in the condition being monitored.
14. The system of claim 13 wherein the sensor includes a magnetically-actuated reed switch that, when actuated, indicates the change in the condition being monitored.
15. A power management system having a single DC power source, the system comprising: a single DC power source; an inversion protection circuit including an inversion protection PMOS device; a normally-open switch that can be activated by a user; an on/off circuit including an on/off control PMOS device for system power, a flip/flop switch having an on state and an off state to respectively activate and deactivate the on/off control PMOS device, and a transition detection circuit connected to the normally-open switch; a microprocessor; at least one sensor to monitor a condition; and a user notification device that is activated by the microprocessor to inform the user when the sensor detects a change in the condition being monitored; wherein the microprocessor receives inputs from at least the normally-open switch and the sensor; wherein a positive source voltage is established by the DC power source and the inversion protection PMOS device to power the on/off circuit and the normally-open switch; wherein the transition detection circuit (1) generates an on signal when the user initially activates the normally-open switch and (2) supplies the on signal to the flip/flop switch to change the flip/flop switch to the on state to activate the on/off control PMOS device which, while activated, enables system power from the power source to be provided to at least the sensor and the microprocessor; and wherein the microprocessor (1) generates an off signal when the normally-open switch is activated for at least a selected period of time and (2) supplies the off signal to the flip/flop switch to change it to the off state to deactivate the on/off control PMOS device and thereby disable system power to at least the sensor and the microprocessor.
16. A circuit utilizing a single power source to provide inversion protection and power management to a load, the circuit comprising first and second gate-controlled switching devices, each switching device having a source terminal, a drain terminal and a gate terminal, with a parasitic internal diode located between the source and drain terminals and having a cathode connected to the source terminal and an anode connected to the drain terminal, the first switching device having its drain terminal connectable to a first terminal of the power source having a first polarity, its gate terminal is connectable to a second terminal of the power source having a second polarity to provide inversion protection, and its source terminal powers at least the second switching device, and the second switching device has its source terminal connected to the source terminal of the first switching device, its gate terminal connected to a control switch to provide on/off control, and its drain terminal powers the load, and wherein the parasitic internal diode of the second switching device has its cathode connected to its source terminal and therefore is connected to only conduct toward the power source.
17. A method for managing power from a single DC power source having inversion protection, the method comprising: selecting a normally-open switch that can be activated by a user; selecting an on/off circuit including an on/off control gate-controlled switching device for system power, a flip/flop switch having an on state and an off state to respectively activate and deactivate the on/off control gate-controlled switching device, and a transition detection circuit connected to the normally-open switch; selecting a microprocessor and at least one sensor to monitor a condition; establishing a source voltage from the power source with inversion protection to power the on/off circuit and the normally-open switch; utilizing the transition detection circuit (1) to generate an on signal when the user initially activates the normally-open switch and (2) to supply the on signal to the flip/flop switch to change the flip/flop switch to the on state to activate the on/off control gate-controlled switching device which, while activated, enables system power from the power source to be provided to at least the sensor and the microprocessor; and utilizing the microprocessor (1) to generate an off signal when the normally-open switch is activated for at least a selected period of time and (2) to supply the off signal to the flip/flop switch to change it to the off state to deactivate the on/off control gate-controlled switching device and thereby disable system power to at least the sensor and the microprocessor.
18. The method of claim 17 wherein the on/off control gate-controlled switching device is a P-channel enhancement FET device and the inversion protection circuit gate-controlled switching device is a second P-channel enhancement FET device that is electrically separate from the on/off control P-channel enhancement FET device.
19. The method of claim 17 wherein the on/off control gate-controlled switching device is a PMOS device and the inversion protection circuit gate-controlled switching device is a second PMOS device that is electrically separate from the on/off control PMOS device.
20. The method of claim 19 wherein each PMOS device is configured as a three-terminal device, each with a source terminal, a drain terminal, and a gate terminal, and each PMOS device includes a parasitic internal diode located between the source and drain terminals of that device.
21. The method of claim 20 wherein the inversion protection PMOS device has its drain terminal connectable to a first terminal of the power source having a first polarity, its gate terminal is connectable to a second terminal of the power source having a second polarity, and its source terminal powers the on/off control PMOS device, the flip-flop switch and the transition detection circuit.
22. The method of claim 21 wherein the on/off control PMOS device has its source terminal connected to the source terminal of the inversion protection PMOS device, its gate terminal connected to the flip-flop switch output, and its drain terminal powers at least the sensor and the microprocessor.
23. The method of claim 22 wherein the parasitic internal diode of the inversion protection PMOS device creates an open circuit if the battery polarity is inverted, and the parasitic internal diode of the on/off control PMOS device creates an open circuit if the flip-flop switch output applies a positive voltage on the gate terminal of the on/off control PMOS device that forces the on/off control PMOS to turn off, effectively shutting off power at least to the sensor and microprocessor.
24. The method of claim 17 wherein power is managed in a pressure gauge monitoring system including a spiral Bourdon element, a socket, a housing, a dial, a main PCB with mechanical on/off push button switch as the normally-open switch to silence an alarm.
25. The method of claim 24 further including LED indicators for a low pressure state, low battery state and acceptable operating pressure.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) In what follows, preferred embodiments of the invention are explained in more detail with reference to the drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
DETAILED DESCRIPTION OF THE PRESENTLY PREFERRED EMBODIMENTS
(17) This invention may be accomplished by a power management system for use with a DC (direct or constant current) power source having inversion protection, the system including a normally-open switch such as a push-button or rocker-type switch that can be activated by a user, an on/off circuit, a microprocessor, and at least one sensor to monitor a condition. The on/off circuit includes an on/off control gate-controlled switching device for system power such as a PMOS device or other P-channel enhancement FET device. Also included in the on/off circuit is a flip/flop switch having an on state and an off state to respectively activate and deactivate the on/off control PMOS device, and a transition detection circuit connected to the normally-open switch. The microprocessor receives inputs from at least the normally-open switch and the sensor. The power source with inversion protection establishes a source voltage to power the on/off circuit and the normally-open switch.
(18) The transition detection circuit generates an on signal when the user initially activates the normally-open switch, and supplies the on signal to the flip/flop switch to change it to the on state to activate the on/off control PMOS device. While activated, the on/off control PMOS device enables system power from the power source to be provided to at least the sensor and the microprocessor. The microprocessor generates an off signal when the normally-open switch is depressed for at least a selected period of time, and supplies the off signal to the flip/flop switch to change it to the off state to deactivate the on/off control PMOS device and thereby disable system power to at least the sensor and the microprocessor.
(19) The present invention may also be accomplished by a circuit utilizing a single power source to provide inversion protection and power management to a load, the circuit including first and second gate-controlled switching devices, each switching device having a source terminal, a drain terminal and a gate terminal, with a parasitic internal diode located between the source and drain terminals. The first switching device has its drain terminal connectable to a first terminal of the power source having a first polarity, its gate terminal is connectable to a second terminal of the power source having a second polarity to provide inversion protection, and its source terminal powers at least the second switching device. The second switching device has its source terminal connected to the source terminal of the first switching device, its gate terminal connected to a control switch to provide on/off control, and its drain terminal powers the load. The parasitic internal diode of the second switching device has its cathode connected to its source terminal, with its anode connected to the load, and therefore is connected to conduct current only toward the power source.
(20) In one construction, power management system 10,
(21) The on/off circuit 20 includes an on/off control PMOS device 16 for system power 17 within supply line 19, a flip/flop switch 22 having an on state and an off state to respectively activate and deactivate the on/off control PMOS device 16, and a transition detection circuit 24 connected to the user switch 30. As described in more detail below beginning with
(22) The microprocessor 32 receives inputs from at least the user switch 30 (indirectly via a logic inversion in this construction) and the sensor 40. The power source 12 with inversion protection 14 establishes a power source voltage Vcc to power the on/off circuit 20 and the user switch 30. In this construction, source voltage Vcc is established for on/off control PMOS device 16, flip/flop switch 22 and transition detection circuit 24. At least the flip/flop switch 22, the transition detection circuit 24 and the microprocessor 32 are connected to ground G in this construction, as illustrated in
(23) The transition detection circuit 24 generates an on signal 25 when the user initially activates the switch 30, and supplies the on signal 25 to the flip/flop switch 22 to change it to the on state to activate the on/off control PMOS device 16 via line 23. While activated, the on/off control PMOS device 16 enables system power 17 from the power source 12 to be provided to at least the sensor 40 and the microprocessor 32. The microprocessor generates an off signal when the user switch is depressed for at least a selected period of time, and supplies the off signal to the flip/flop switch to change it to the off state to deactivate the on/off control PMOS device 16 and thereby disable system power to at least the sensor and the microprocessor.
(24) In some implementations according to the present invention, a power management system 10,
(25) In certain constructions, pressure monitoring system 100,
(26) A user push-button-type POWER/SNOOZE switch 210 extends through the upper surface 208 and is manipulated by a user to initiate one or more of a plurality of functions as described in more detail below. System 200 enables switch 210 to serve as a multiple-functionality switch, assisted by a power on/off flip-flop circuit and a signal transition detection circuit. System 200 includes a Bourdon tube coil 220 having a pointer 222 that is movable relative to indicia 224 including REFILL226 and FULL 228 in this construction. PSI (Pounds per Square Inch) markings 230 include 1000, 2000 and 3000 in one construction. Color-coding can be provided, such as red for REFILL and green for FULL. Further visually perceptible indicia include PSI LOW text and a LED 240, a BATTERY text and LED 242, and a CHARGED text and LED 244. The position of the pointer 222 of the Bourdon tube coil 220 directly correlates to the pressure within a compressed gas tank or other storage unit. In one construction, upper surface 208 has a diameter of approximately 1 and inches, and housing 202 has a height of approximately 1.2 inches. Further details of system 200 are described in more detail below in relation to
(27) Differences between gate-controlled switching within a conventional power management system relative to gate-controlled switching for power management systems according to the present invention can be appreciated by comparing prior art system 600,
(28) Voltages V1 and V2,
(29) In case any of the power voltage source V1 or V2,
(30) Power management system 700a according to the present invention,
(31) Notice that if the source S and drain D connections in M2a were reversed, with the parasitic diode D2a now permitting current flow in the direction of the source S towards the load, the circuit 700a would cease to function correctly. Applying a positive voltage at input OFF 704 would still turn M2a off, but the parasitic diode D2a would be forward biased and would continue to drive current to the load. As a result, the voltage across the load would be higher than zero. In other words, it is a realization of the invention that the circuit in
(32) Another observation is that the M2a circuit in
(33) Dual PMOS component 804b,
(34) Each PMOS device M1b and M2b is a three-terminal device, with terminals named source S1 and S2, gate G1 and G2, and drain D1 and D2, respectively. Each source terminal S1 and S2 is internally connected to the transistor's bulk, also referred to as the substrate. A parasitic internal diode 801, also referred to as an intrinsic diode, is established between the source S1 and the drain D1, and a parasitic internal diode 803 is established between source S2 and drain D2. In one construction, the two PMOS devices are located on a single dual-PMOS integrated circuit package.
(35) In preferred constructions, the directionality in the connection of these two PMOS devices is as follows. The inversion protection PMOS device has its drain terminal connected to the positive terminal of the battery, its gate terminal is connected to ground, and its bulk and source terminal powers the on/off control PMOS device, the flip-flop switch and the transition detection circuit. The on/off control PMOS device has its bulk and source terminal connected to the bulk source terminal of the inversion protection PMOS device, its gate terminal connected to the flip-flop switch output, and its drain terminal powers at least the sensor and the microprocessor.
(36) In preferred constructions, the circuit topology ensures a specific behavior of the parasitic internal diode in each one of the PMOS devices as follows. The parasitic internal diode 801 of the inversion protection PMOS device M1b turns off (that is, creates an open circuit) if the battery polarity is inverted. The parasitic internal diode 803 of the on/off control PMOS device M2b turns off (that is, creates an open circuit) if the flip-flop switch output applies a positive voltage on this PMOS gate terminal that forces the PMOS to turn off, effectively shutting off power at least to the sensor and microprocessor as described in relation to
(37) One electronic implementation of a power management system 800 according to the present invention is illustrated in
(38) Normally open switch 814,
(39) In this construction, power management system 800 further includes resistor-capacitor combination 830 with resistor R1 and capacitors C1 and C2 which is a requirement of the particular microprocessor/JTAG interface configuration. Component 840 is a crystal to drive the microprocessor internal clock and component 850 is a JTAG (Joint Test Action Group) connector to download the microprocessor software from a host computer in the illustrated construction. Capacitor C4 ensures that the flip flop switch 860,
(40) The electrical configuration of dual PMOS component 804, having first and second PMOS M1 and M2 as labelled in
(41) In this construction, NOR gates A and B,
(42) An alternative quad NOR arrangement is illustrated in
(43) The node 874 that connects resistor R7 with capacitor C3 is connected to the microprocessor's input P1.3 (pin 5) to monitor the state of the user switch 814 in
(44) In one construction, the microprocessor 808 is a MSP430F20x2 TI microprocessor and is programmed as follows.
(45) After start and initialization, steps 1002 and 1004,
(46) Table 1 below lists the various relevant pins on the MPS430F20x2 microprocessor. The port designation numbers are utilized as described below:
(47) TABLE-US-00001 TABLE 1 Pin description PACK- PULL- MPS430F20x2 AGE FUNC- UP/ PORT DES- PIN TIONAL DIREC- PULL- DESCRIP- IGNATION NUMBER NAME TION DOWN TION P1.0 2 Green Out Active high LED P1.1 3 Yellow Out Active high LED P1.2 4 Red led Out Active high P1.3 5 Snooze In Low: button when not (inverted depressed. logic) High: pressed. P1.4 6 Reed In High: switch Standby. Low: low pressure. P1.5 7 Power off Out External High: pull- Power off. down Low: Functional. P1.6 8 Sounder Out High: Turn on Low: Turn off P1.7 9 Unused Out 1 VDD power 14 Ground
(48) The relevant timing parameters associated with the software timing interrupt services are listed in Table 2 below:
(49) TABLE-US-00002 TABLE 2 Clock and main counter parameters PARAMETER VALUE Timer clock frequency 32,768 Hz. Timer clock period = 1/32,768 Hz 30.5 sec Full counter run count = 2.sup.16 1 65,535 Counter full run period = 65,536/32,768 Hz 2 seconds
(50) Timer 0 interrupt is responsible for creating the sound vibrations in the acoustic sounder, as well as for determining the sound's pitch. Timer 0 interrupt occurs every timer counter (PIEZOHALF) incremental count of 8 for high acoustic pitch, or every incremental count of 16 for low acoustic pitch.
(51) The associated interrupt service routine (ISR) toggles the acoustic sounder on and off to create an acoustic alarm effect. Therefore, the incremental count of 8 or 16 clock periods represents the acoustic sound half period. The resulting frequencies are presented in Table 3 below:
(52) TABLE-US-00003 TABLE 3 Acoustic sounding frequencies PARAMETER VALUE Acoustic frequency (normal) = 1/(16 30.5 sec) 2 KHz Acoustic frequency (power off) = 1/(32 30.5 sec) 1 KHz
(53) Timer 1 interrupt controls the triggering and silencing of the acoustic sounder alarm, and also the LED indications. Timer 1 interrupt occurs in two occasions during every main counter full cycle:
(54) Case 1: Timer 1, Case 1 Interrupt occurs once in the full timer count cycle when the main timer counter reaches a count of 800 for a standby state, or a count of 2,500 for a low pressure state, or a count of 62,000 during power off.
(55) Case 2: Timer 1, Case 2 interrupt also occurs periodically, whenever the main timer counter reaches its full count before rolling over to zero.
(56) In one construction, Case 1 entails the following: 1 Turn all LEDs off. 2 If low pressure state turn off sounder interrupt. 3 Restart the main timer counter every three times going through this step to get a too-too-too-too acoustic effect.
(57) In one construction, Case 2 entails: 1 If standby state and low battery, turn yellow LED on, with green and red LED off. 2 Else, if low pressure state, turn red LED on, with green and yellow LED off. 3 If low pressure and within snooze period, turn off acoustic sounder interrupt.
(58) The sounder interrupt enable controls the functionality and pitch of the acoustic sounder as detailed in Table 4 below:
(59) TABLE-US-00004 TABLE 4 Sounder interrupt enable Sounder timing interrupt enable TURN OFF TURN ON During timer interrupt case 2 ISR if Reed During timer interrupt case 2 ISR if Reed switch indicates low pressure as long as the switch indicates low pressure once the snooze snooze counter is greater than zero and has not counter times out down to zero signaling the counted down yet to zero to end snooze time. end of snooze time or whenever a snooze count Result: Turn off sounder after alarm has of zero indicates no currently logged snooze already alerted low pressure, but snooze button request. Result: Turn on sounder to alert for has been pressed to snooze low pressure after snooze time has elapsed, or before any snooze has been requested. During timer interrupt case 2 ISR when it has been detected that the snooze button has long been held down. Result: Turn on sounder to alert that power is going down. During timer interrupt case 1 ISR for low pressure. Result: Modulate too-too-too-too effect. At the end of every interrupt service routine Result: Modulate too-too-too-too effect.
(60) Table 4 above illustrates that the sounder interrupt enable is dependent on the snooze counter. Table 5 below provides for more information on the snooze counter. The snooze counter controls the snooze capability that silences the alarm only for a finite time after being triggered by a low pressure condition:
(61) TABLE-US-00005 TABLE 5 Snooze counter SNOOZE COUNTER EVENT TRIGGERED BY Cleared to zero The end of every interrupt service routine if a low pressure condition has been newly reported. Initialized to a count of 1800 The end of every interrupt service routine if the snooze button has been newly pressed. Decremented During timer interrupt case 2 ISR if Reed switch signals low pressure and snooze counter >0.
(62) The on/off power states for the three LEDs are also controlled by timer 1 interrupt, as illustrated in Table 6 below:
(63) TABLE-US-00006 TABLE 6 LED on/off power control RED LED GREEN LED YELLOW LED TURN TURN TURN TURN TURN TURN EVENT OFF ON OFF ON OFF ON At the end Yes Yes Yes of every interrupt service routine Case 1 Yes Yes Yes of Timer 1 interrupt Case 2 Low Low Standby Low Standby of Timer pressure pressure pressure and low 1 service battery routine Snooze Snooze Snooze button button button long long long held held held Power Power Power down down down
(64) The power off procedure can be implemented as follows. The mechanism to power off the system is to hold the snooze button down long enough. The microprocessor recognizes this condition and eventually generates a power off signal coming out from pin P1.3 to power off the external power on/off flip-flop. The software mechanism for power off uses the timer 1 interrupt and the hold counter. The hold counter is reset to zero every time the snooze button is released, and it is set to a count of 3 every time the snooze button is pressed.
(65) During timer interrupt case 2 ISR, if the snooze button state is detected as pressed, then if the hold counter is greater than zero, it is decremented. Otherwise, if the hold counter is zero, this indicates that the snooze button has been pressed long enough (at least three full timer count cycles), thus calling for power down and causing the following events under program control: 1 Turn off snooze button interrupt enable. Power down is now inexorable. 2 Set timer 1 interrupt comparison count to a high value62,000. 3 Turn on all LEDs. 4 Signal power down by setting snooze state to snooze power-off. 5 Turn on acoustic sounder interrupt enable. 6 Modify timer 0 interrupt incremental count to 16 for low pitch acoustic sounder alert.
(66) I/O port interrupt-based services can operate as follows. Input ports P1.3 and P1.4 are monitored by the software to generate a port interrupt when the sensed digital high/low input voltage switches from high to low of from low to high. The software habilitates rising and falling transition interrupt enables as needed. P1.3 senses the snooze button state and P1.4 senses the Reed switch as indicated in Table 7 below:
(67) TABLE-US-00007 TABLE 7 Input PORT states P1.3 P1.4 HIGH LOW HIGH LOW Snooze when Snooze not Switch open. Switch closed. pressed pressed Standby. Gauge Low pressure. is pressurized
(68) The power off procedure can be implemented as follows. The capability to power off the battery-operated system using one single multi-functional switch for snooze and power off is at the center of the electronic innovation of the new oxygen alert design according to the present invention. This design feature relies on an external power on/off flip-flop and an edge detection circuit.
(69)
(70)
(71)
(72)
(73) In one construction for respiratory oxygen monitoring, after a predetermined period of time (e.g., twenty minutes) after the Snooze function has been initiated, the microprocessor queries the reed switch to determine is pressure is still below the selected threshold (e.g. 500 PSI). The predetermined period of time is selected in this construction based on typical oxygen depletion rates to lower the pressure to approximately 250 PSI. In certain constructions a second Snooze is not permitted, and in other constructions a shorter duration (e.g., five minutes) is timed for the second Snooze request.
(74) The Power Down state is attained when the Hold Counter, step 522, measures a value greater than 0, button is pushed and held. The program proceeds to step 526, subroutine Power Down. Subroutine Power Down runs through step 527, step 528, step 529 and step 530 which in turn has the effect of all LEDs and audible alarm on at the same time until the invention powers down.
(75) Although specific features of the present invention are shown in some drawings and not in others, this is for convenience only, as each feature may be combined with any or all of the other features in accordance with the invention. While there have been shown, described, and pointed out fundamental novel features of the invention as applied to a preferred embodiment thereof, it will be understood that various omissions, substitutions, and changes in the form and details of the devices illustrated, and in their operation, may be made by those skilled in the art without departing from the spirit and scope of the invention. For example, it is expressly intended that all combinations of those elements and/or steps that perform substantially the same function, in substantially the same way, to achieve the same results be within the scope of the invention. Substitutions of elements from one described embodiment to another are also fully intended and contemplated. Further, some computing or software functions conducted by a microprocessor can be implemented with hardware components. It is also to be understood that the drawings are not necessarily drawn to scale, but that they are merely conceptual in nature.
(76) It is the intention, therefore, to be limited only as indicated by the scope of the claims appended hereto. Other embodiments will occur to those skilled in the art and are within the following claims.