Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: polyForth multitasker question Date: Sat, 15 Apr 2017 17:32:07 -0700 Organization: A noiseless patient Spider Lines: 8 Message-ID: <877f2lfb08.fsf@nightsong.com> References: <91b82032-d469-47a8-8586-b7dfc4dc42ec@googlegroups.com> <46d8a45d-99b8-4f48-a011-f08d4de9e918@googlegroups.com> <8737dcixu5.fsf@nightsong.com> <87vaq7hg4l.fsf@nightsong.com> <87r30vgzd2.fsf@nightsong.com> <87a87ihcxe.fsf@nightsong.com> <871ssugzm0.fsf@nightsong.com> <2017Apr15.144101@mips.complang.tuwien.ac.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="104886ca34cb06a03d33248390dbe2ae"; logging-data="6599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IzH2ACAQdx1pnCjGEIl4r" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:a9zMDC0N6zkblZ390TSC7Lz4BMo= sha1:PDZcxO7XDOPexEVuBJ+SxPXW5ew= Xref: csiph.com comp.lang.forth:57404 rickman writes: > The timer will be running any time you have a time sensitive task, no? > So the power used to wake up at 10 Hz by your numbers is just 150 nA. In the keypad example there is no activity at all until someone presses a key. So no need to wake up at 10 hz. You can stop all the timers. When someone presses a key you would want to start a timer to be able to handle inputting the entry code (or timing out), debouncing, etc.