home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp48
- Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!pinbot.enet.dec.com!ervin
- From: ervin@pinbot.enet.dec.com (Joseph James Ervin)
- Subject: Re: Coma mode
- Message-ID: <1992Nov18.173606.6467@engage.pko.dec.com>
- Sender: newsdaemon@engage.pko.dec.com (USENET News Daemon)
- Reply-To: ervin@pinbot.enet.dec.com (Joseph James Ervin)
- Organization: Digital Equipment Corporation
- References: <9211181142.AA01229@turing.u-strasbg.fr>
- Date: Wed, 18 Nov 1992 17:36:06 GMT
- Lines: 46
-
-
- In article <9211181142.AA01229@turing.u-strasbg.fr>, fatri@turing.u-strasbg.FR (fatri -- licence info. --) writes:
-
- |>
- |>
- |>In a recent message Joe said that when the hp48 isn't in coma mode
- |>it wakes up every three days to do some things.
- |>Can someone give me some information about that ?
- |>
- |>-Why ?
- |>-How to notice it ?
- |>
- |>thanks
- |>
- |>-Fatri-
- |>
-
-
- Fatri,
-
- The hardware timer in the HP48 is only 32-bits, and this contains a signed
- two's complement number. Hence ticking backward at 8192 ticks per second,
- the largest positive integer you can load into the hardware timer corresponds
- to about 3 days worth of ticks.
-
- Every time you press a key, the interrupt handler resets the contents of this
- hardware timer to some large positive value, corresponding to the amount of
- time that should pass before the next timer interrupt. You see, when the timer
- hits zero, an interrupt is generated. This will wake the calculator from
- deep sleep.
-
- So, when you shut the calculator off, the code that implements the "OFF"
- function writes the hardware timer with it's largest value, corresponding
- to 3 days from "now" (unless a user alarm is programmed for a time sooner than
- 3 days away, in which case the hardware timer is programmed to hit zero at the
- alarm time).
-
- So, when the hardware time hits zero, an interrupt is generated which wakes the
- calculator from its deep sleep. The HP48 then reprograms the hardware
- time, checks the battery level and several other housekeeping chores, then
- goes back to sleep. The whole operation probably only takes a few milliseconds.
-
- When in coma mode, the hardware timer does not run, so the calculator has
- no concept of time. Hence, it never wakes up due to timer interrupts.
-
- >>>Joe
-